google-cloud-dlp 0.2.0 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc445302ca7be0cf9903cf20f83a3930933ad9684ec465033326738d10196623
4
- data.tar.gz: e80addd408ffab2209d291af7d669967bf74e05c89c55817c860fbf929aa7c41
3
+ metadata.gz: accf807b4bdb2fd1bf755b10027c91ca7a9088e05bf4762ed8f3a367adf8d90f
4
+ data.tar.gz: caa9ac2378bddb21afe3f914343d157500471f5ae697bfa0ba1e7397d12c957a
5
5
  SHA512:
6
- metadata.gz: '092b7d9876ec62cfa77ddb2ccaa7fb5164da82a52dc92310ffe8561529248f0f0a95159e2a0c53ab530c663caa597465b83a9225f3ace02c00b65503fd7367b8'
7
- data.tar.gz: 25270a7d9ce146e253c59ed19a12a32378215652759160c9353743d651475f0ebdf84cf7c0ae9ad09c324b7ce05bcd03ff7af77433ac835d7fb189fafa5ba6e2
6
+ metadata.gz: e940a1074590e59a972d29976b5c0a3b8582afeb9e06c88f277e52c27bbfaea9b770352ab1116611c357a43d1f7413b14f71b121acb4aa514e32a1c1b18e0ee3
7
+ data.tar.gz: 4724199b34b1be8612473fd6e85a4a7d94c4e6e68607f0a5083cc7664f0e2d2592f3bc54c1d03842d91ee04619ba03ececed47ae3467f18aef4de7f54d82a42d
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=DLP API
2
+ --title=Cloud Data Loss Prevention (DLP) API
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
 
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
- # Ruby Client for DLP API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
1
+ # Ruby Client for Cloud Data Loss Prevention (DLP) API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
2
2
 
3
- [DLP API][Product Documentation]:
4
- The Google Data Loss Prevention API provides methods for detection of
5
- privacy-sensitive fragments in text, images, and Google Cloud Platform
6
- storage repositories.
3
+ [Cloud Data Loss Prevention (DLP) API][Product Documentation]:
4
+ Provides methods for detection of privacy-sensitive fragments in text,
5
+ images, and Google Cloud Platform storage repositories.
7
6
  - [Client Library Documentation][]
8
7
  - [Product Documentation][]
9
8
 
@@ -13,7 +12,7 @@ steps:
13
12
 
14
13
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
15
14
  2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
16
- 3. [Enable the DLP API.](https://console.cloud.google.com/apis/api/dlp)
15
+ 3. [Enable the Cloud Data Loss Prevention (DLP) API.](https://console.cloud.google.com/apis/api/dlp)
17
16
  4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
18
17
 
19
18
  ### Installation
@@ -52,9 +51,9 @@ response = dlp.inspect_content parent,
52
51
  ```
53
52
 
54
53
  ### Next Steps
55
- - Read the [Client Library Documentation][] for DLP API
54
+ - Read the [Client Library Documentation][] for Cloud Data Loss Prevention (DLP) API
56
55
  to see other available methods on the client.
57
- - Read the [DLP API Product documentation][Product Documentation]
56
+ - Read the [Cloud Data Loss Prevention (DLP) API Product documentation][Product Documentation]
58
57
  to learn more about the product and see How-to Guides.
59
58
  - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
60
59
  to see the full list of Cloud APIs that we cover.
@@ -20,12 +20,11 @@ module Google
20
20
  # rubocop:disable LineLength
21
21
 
22
22
  ##
23
- # # Ruby Client for DLP API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
23
+ # # Ruby Client for Cloud Data Loss Prevention (DLP) API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
24
24
  #
25
- # [DLP API][Product Documentation]:
26
- # The Google Data Loss Prevention API provides methods for detection of
27
- # privacy-sensitive fragments in text, images, and Google Cloud Platform
28
- # storage repositories.
25
+ # [Cloud Data Loss Prevention (DLP) API][Product Documentation]:
26
+ # Provides methods for detection of privacy-sensitive fragments in text,
27
+ # images, and Google Cloud Platform storage repositories.
29
28
  # - [Product Documentation][]
30
29
  #
31
30
  # ## Quick Start
@@ -34,7 +33,7 @@ module Google
34
33
  #
35
34
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
36
35
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
37
- # 3. [Enable the DLP API.](https://console.cloud.google.com/apis/api/dlp)
36
+ # 3. [Enable the Cloud Data Loss Prevention (DLP) API.](https://console.cloud.google.com/apis/api/dlp)
38
37
  # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
39
38
  #
40
39
  # ### Preview
@@ -53,7 +52,7 @@ module Google
53
52
  # ```
54
53
  #
55
54
  # ### Next Steps
56
- # - Read the [DLP API Product documentation][Product Documentation]
55
+ # - Read the [Cloud Data Loss Prevention (DLP) API Product documentation][Product Documentation]
57
56
  # to learn more about the product and see How-to Guides.
58
57
  # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
59
58
  # to see the full list of Cloud APIs that we cover.
@@ -73,7 +72,7 @@ module Google
73
72
  .map { |dir| File.basename(dir) }
74
73
 
75
74
  ##
76
- # The DLP API is a service that allows clients
75
+ # The Cloud Data Loss Prevention (DLP) API is a service that allows clients
77
76
  # to detect the presence of Personally Identifiable Information (PII) and other
78
77
  # privacy-sensitive data in user-supplied, unstructured data streams, like text
79
78
  # blocks or images.
@@ -19,10 +19,11 @@ module Google
19
19
  # rubocop:disable LineLength
20
20
 
21
21
  ##
22
- # # Ruby Client for DLP API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
23
- #
24
- # [DLP API][Product Documentation]:
22
+ # # Ruby Client for Cloud Data Loss Prevention (DLP) API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
25
23
  #
24
+ # [Cloud Data Loss Prevention (DLP) API][Product Documentation]:
25
+ # Provides methods for detection of privacy-sensitive fragments in text,
26
+ # images, and Google Cloud Platform storage repositories.
26
27
  # - [Product Documentation][]
27
28
  #
28
29
  # ## Quick Start
@@ -31,11 +32,11 @@ module Google
31
32
  #
32
33
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
33
34
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
34
- # 3. [Enable the DLP API.](https://console.cloud.google.com/apis/api/dlp)
35
+ # 3. [Enable the Cloud Data Loss Prevention (DLP) API.](https://console.cloud.google.com/apis/api/dlp)
35
36
  # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
36
37
  #
37
38
  # ### Next Steps
38
- # - Read the [DLP API Product documentation][Product Documentation]
39
+ # - Read the [Cloud Data Loss Prevention (DLP) API Product documentation][Product Documentation]
39
40
  # to learn more about the product and see How-to Guides.
40
41
  # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
41
42
  # to see the full list of Cloud APIs that we cover.
@@ -48,7 +49,7 @@ module Google
48
49
  # rubocop:enable LineLength
49
50
 
50
51
  ##
51
- # The DLP API is a service that allows clients
52
+ # The Cloud Data Loss Prevention (DLP) API is a service that allows clients
52
53
  # to detect the presence of Personally Identifiable Information (PII) and other
53
54
  # privacy-sensitive data in user-supplied, unstructured data streams, like text
54
55
  # blocks or images.
@@ -31,7 +31,7 @@ module Google
31
31
  module Cloud
32
32
  module Dlp
33
33
  module V2
34
- # The DLP API is a service that allows clients
34
+ # The Cloud Data Loss Prevention (DLP) API is a service that allows clients
35
35
  # to detect the presence of Personally Identifiable Information (PII) and other
36
36
  # privacy-sensitive data in user-supplied, unstructured data streams, like text
37
37
  # blocks or images.
@@ -570,7 +570,7 @@ module Google
570
570
  @deidentify_content.call(req, options)
571
571
  end
572
572
 
573
- # Re-identify content that has been de-identified.
573
+ # Re-identifies content that has been de-identified.
574
574
  #
575
575
  # @param parent [String]
576
576
  # The parent resource name.
@@ -639,7 +639,9 @@ module Google
639
639
  @reidentify_content.call(req, options)
640
640
  end
641
641
 
642
- # Returns sensitive information types DLP supports.
642
+ # Returns a list of the sensitive information types that the DLP API
643
+ # supports. For more information, see [Listing supported predefined
644
+ # infoTypes](/dlp/docs/listing-infotypes).
643
645
  #
644
646
  # @param language_code [String]
645
647
  # Optional BCP-47 language code for localized infoType friendly
@@ -830,7 +832,7 @@ module Google
830
832
  @list_inspect_templates.call(req, options)
831
833
  end
832
834
 
833
- # Deletes inspect templates.
835
+ # Deletes an inspect template.
834
836
  #
835
837
  # @param name [String]
836
838
  # Resource name of the organization and inspectTemplate to be deleted, for
@@ -858,7 +860,7 @@ module Google
858
860
  nil
859
861
  end
860
862
 
861
- # Creates an Deidentify template for re-using frequently used configuration
863
+ # Creates a de-identify template for re-using frequently used configuration
862
864
  # for Deidentifying content, images, and storage.
863
865
  #
864
866
  # @param parent [String]
@@ -899,7 +901,7 @@ module Google
899
901
  @create_deidentify_template.call(req, options)
900
902
  end
901
903
 
902
- # Updates the inspect template.
904
+ # Updates the de-identify template.
903
905
  #
904
906
  # @param name [String]
905
907
  # Resource name of organization and deidentify template to be updated, for
@@ -939,7 +941,7 @@ module Google
939
941
  @update_deidentify_template.call(req, options)
940
942
  end
941
943
 
942
- # Gets an inspect template.
944
+ # Gets a de-identify template.
943
945
  #
944
946
  # @param name [String]
945
947
  # Resource name of the organization and deidentify template to be read, for
@@ -967,7 +969,7 @@ module Google
967
969
  @get_deidentify_template.call(req, options)
968
970
  end
969
971
 
970
- # Lists inspect templates.
972
+ # Lists de-identify templates.
971
973
  #
972
974
  # @param parent [String]
973
975
  # The parent resource name, for example projects/my-project-id or
@@ -1018,7 +1020,7 @@ module Google
1018
1020
  @list_deidentify_templates.call(req, options)
1019
1021
  end
1020
1022
 
1021
- # Deletes inspect templates.
1023
+ # Deletes a de-identify template.
1022
1024
  #
1023
1025
  # @param name [String]
1024
1026
  # Resource name of the organization and deidentify template to be deleted,
@@ -1046,7 +1048,7 @@ module Google
1046
1048
  nil
1047
1049
  end
1048
1050
 
1049
- # Create a new job to inspect storage or calculate risk metrics [How-to
1051
+ # Creates a new job to inspect storage or calculate risk metrics [How-to
1050
1052
  # guide](/dlp/docs/compute-risk-analysis).
1051
1053
  #
1052
1054
  # @param parent [String]
@@ -1224,7 +1226,7 @@ module Google
1224
1226
  nil
1225
1227
  end
1226
1228
 
1227
- # Starts asynchronous cancellation on a long-running DlpJob. The server
1229
+ # Starts asynchronous cancellation on a long-running DlpJob. The server
1228
1230
  # makes a best effort to cancel the DlpJob, but success is not
1229
1231
  # guaranteed.
1230
1232
  #
@@ -1413,8 +1415,8 @@ module Google
1413
1415
  @update_job_trigger.call(req, options)
1414
1416
  end
1415
1417
 
1416
- # Creates a job to run DLP actions such as scanning storage for sensitive
1417
- # information on a set schedule.
1418
+ # Creates a job trigger to run DLP actions such as scanning storage for
1419
+ # sensitive information on a set schedule.
1418
1420
  #
1419
1421
  # @param parent [String]
1420
1422
  # The parent resource name, for example projects/my-project-id.
@@ -16,11 +16,11 @@ module Google
16
16
  module Privacy
17
17
  module Dlp
18
18
  ##
19
- # # DLP API Contents
19
+ # # Cloud Data Loss Prevention (DLP) API Contents
20
20
  #
21
21
  # | Class | Description |
22
22
  # | ----- | ----------- |
23
- # | [DlpServiceClient][] | The DLP API is a service that allows clients to detect the presence of Personally Identifiable Information (PII) and other privacy-sensitive data in user-supplied, unstructured data streams, like text blocks or images. |
23
+ # | [DlpServiceClient][] | The Cloud Data Loss Prevention (DLP) API is a service that allows clients to detect the presence of Personally Identifiable Information (PII) and other privacy-sensitive data in user-supplied, unstructured data streams, like text blocks or images. |
24
24
  # | [Data Types][] | Data types for Google::Cloud::Dlp::V2 |
25
25
  #
26
26
  # [DlpServiceClient]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-dlp/latest/google/privacy/dlp/v2/dlpserviceclient
@@ -34,7 +34,6 @@ module Google
34
34
  # @return [Array<Google::Privacy::Dlp::V2::InfoType>]
35
35
  # Restricts what info_types to look for. The values must correspond to
36
36
  # InfoType values returned by ListInfoTypes or found in documentation.
37
- # Empty info_types runs all enabled detectors.
38
37
  # @!attribute [rw] min_likelihood
39
38
  # @return [Google::Privacy::Dlp::V2::Likelihood]
40
39
  # Only returns findings equal or above this threshold. The default is
@@ -59,9 +58,14 @@ module Google
59
58
  # @!attribute [rw] max_findings_per_item
60
59
  # @return [Integer]
61
60
  # Max number of findings that will be returned for each item scanned.
61
+ # When set within +InspectDataSourceRequest+,
62
+ # the maximum returned is 1000 regardless if this is set higher.
63
+ # When set within +InspectContentRequest+, this field is ignored.
62
64
  # @!attribute [rw] max_findings_per_request
63
65
  # @return [Integer]
64
- # Max total number of findings that will be returned per request/job.
66
+ # Max number of findings that will be returned per request/job.
67
+ # When set within +InspectContentRequest+, the maximum returned is 1000
68
+ # regardless if this is set higher.
65
69
  # @!attribute [rw] max_findings_per_info_type
66
70
  # @return [Array<Google::Privacy::Dlp::V2::InspectConfig::FindingLimits::InfoTypeLimit>]
67
71
  # Configuration of findings limit given for specified infoTypes.
@@ -92,6 +96,8 @@ module Google
92
96
  module BytesType
93
97
  BYTES_TYPE_UNSPECIFIED = 0
94
98
 
99
+ IMAGE = 6
100
+
95
101
  IMAGE_JPEG = 1
96
102
 
97
103
  IMAGE_BMP = 2
@@ -164,7 +170,9 @@ module Google
164
170
  # Timestamp when finding was detected.
165
171
  # @!attribute [rw] quote_info
166
172
  # @return [Google::Privacy::Dlp::V2::QuoteInfo]
167
- # InfoType-dependent details parsed from quote.
173
+ # Contains data parsed from quotes. Only populated if include_quote was set
174
+ # to true and a supported infoType was requested. Currently supported
175
+ # infoTypes: DATE, DATE_OF_BIRTH and TIME.
168
176
  class Finding; end
169
177
 
170
178
  # Specifies the location of the finding.
@@ -735,6 +743,9 @@ module Google
735
743
  # @return [Array<Google::Privacy::Dlp::V2::ValueFrequency>]
736
744
  # Sample of value frequencies in this bucket. The total number of
737
745
  # values returned per bucket is capped at 20.
746
+ # @!attribute [rw] bucket_value_count
747
+ # @return [Integer]
748
+ # Total number of distinct values in this bucket.
738
749
  class CategoricalStatsHistogramBucket; end
739
750
  end
740
751
 
@@ -768,6 +779,9 @@ module Google
768
779
  # @return [Array<Google::Privacy::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityEquivalenceClass>]
769
780
  # Sample of equivalence classes in this bucket. The total number of
770
781
  # classes returned per bucket is capped at 20.
782
+ # @!attribute [rw] bucket_value_count
783
+ # @return [Integer]
784
+ # Total number of distinct equivalence classes in this bucket.
771
785
  class KAnonymityHistogramBucket; end
772
786
  end
773
787
 
@@ -807,6 +821,9 @@ module Google
807
821
  # @return [Array<Google::Privacy::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityEquivalenceClass>]
808
822
  # Sample of equivalence classes in this bucket. The total number of
809
823
  # classes returned per bucket is capped at 20.
824
+ # @!attribute [rw] bucket_value_count
825
+ # @return [Integer]
826
+ # Total number of distinct equivalence classes in this bucket.
810
827
  class LDiversityHistogramBucket; end
811
828
  end
812
829
 
@@ -853,6 +870,9 @@ module Google
853
870
  # @return [Array<Google::Privacy::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationQuasiIdValues>]
854
871
  # Sample of quasi-identifier tuple values in this bucket. The total
855
872
  # number of classes returned per bucket is capped at 20.
873
+ # @!attribute [rw] bucket_value_count
874
+ # @return [Integer]
875
+ # Total number of distinct quasi-identifier tuple values in this bucket.
856
876
  class KMapEstimationHistogramBucket; end
857
877
  end
858
878
  end
@@ -1128,6 +1148,7 @@ module Google
1128
1148
  # replaced with the same surrogate.
1129
1149
  # Identifiers must be at least two characters long.
1130
1150
  # In the case that the identifier is the empty string, it will be skipped.
1151
+ # See [Pseudonymization](https://cloud.google.com/dlp/docs/pseudonymization) for example usage.
1131
1152
  # @!attribute [rw] crypto_key
1132
1153
  # @return [Google::Privacy::Dlp::V2::CryptoKey]
1133
1154
  # The key used by the encryption algorithm. [required]
@@ -88,7 +88,7 @@ module Google
88
88
 
89
89
  # Message for detecting output from deidentification transformations
90
90
  # such as
91
- # [+CryptoReplaceFfxFpeConfig+](https://cloud.google.com/dlp/docs/reference/rest/v2/content/deidentify#CryptoReplaceFfxFpeConfig).
91
+ # [+CryptoReplaceFfxFpeConfig+](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
92
92
  # These types of transformations are
93
93
  # those that perform pseudonymization, thereby producing a "surrogate" as
94
94
  # output. This should be used in conjunction with a field on the
@@ -196,6 +196,11 @@ module Google
196
196
  # @return [Integer]
197
197
  # Max number of bytes to scan from a file. If a scanned file's size is bigger
198
198
  # than this value then the rest of the bytes are omitted.
199
+ # @!attribute [rw] file_types
200
+ # @return [Array<Google::Privacy::Dlp::V2::FileType>]
201
+ # List of file type groups to include in the scan.
202
+ # If empty, all files are scanned and available data format processors
203
+ # are applied.
199
204
  class CloudStorageOptions
200
205
  # Set of files to scan.
201
206
  # @!attribute [rw] url
@@ -359,6 +364,23 @@ module Google
359
364
  # Many matching elements.
360
365
  VERY_LIKELY = 5
361
366
  end
367
+
368
+ # Definitions of file type groups to scan.
369
+ module FileType
370
+ # Includes all files.
371
+ FILE_TYPE_UNSPECIFIED = 0
372
+
373
+ # Includes all file extensions not covered by other types.
374
+ BINARY_FILE = 1
375
+
376
+ # Included file extensions:
377
+ # c, cc, cpp, cxx, c++, cs, css, dart, eml, go, h, hh, hpp, hxx, h++, hs,
378
+ # html, htm, shtml, shtm, xhtml, lhs, ini, java, js, json, ocaml, md, mkd,
379
+ # markdown, m, ml, mli, pl, pm, php, phtml, pht, py, pyw, rb, rbw, rs, rc,
380
+ # scala, sh, sql, tex, txt, asc, text, brf, vcard, vcs, wml, xml, xsl, xsd,
381
+ # yml, yaml.
382
+ TEXT_FILE = 2
383
+ end
362
384
  end
363
385
  end
364
386
  end
@@ -17,10 +17,11 @@ module Google
17
17
  # rubocop:disable LineLength
18
18
 
19
19
  ##
20
- # # Ruby Client for DLP API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
21
- #
22
- # [DLP API][Product Documentation]:
20
+ # # Ruby Client for Cloud Data Loss Prevention (DLP) API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
23
21
  #
22
+ # [Cloud Data Loss Prevention (DLP) API][Product Documentation]:
23
+ # Provides methods for detection of privacy-sensitive fragments in text,
24
+ # images, and Google Cloud Platform storage repositories.
24
25
  # - [Product Documentation][]
25
26
  #
26
27
  # ## Quick Start
@@ -29,7 +30,7 @@ module Google
29
30
  #
30
31
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
31
32
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
32
- # 3. [Enable the DLP API.](https://console.cloud.google.com/apis/api/dlp)
33
+ # 3. [Enable the Cloud Data Loss Prevention (DLP) API.](https://console.cloud.google.com/apis/api/dlp)
33
34
  # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
34
35
  #
35
36
  # ### Installation
@@ -38,7 +39,7 @@ module Google
38
39
  # ```
39
40
  #
40
41
  # ### Next Steps
41
- # - Read the [DLP API Product documentation][Product Documentation]
42
+ # - Read the [Cloud Data Loss Prevention (DLP) API Product documentation][Product Documentation]
42
43
  # to learn more about the product and see How-to Guides.
43
44
  # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
44
45
  # to see the full list of Cloud APIs that we cover.
@@ -38,6 +38,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
38
38
  end
39
39
  add_enum "google.privacy.dlp.v2.ByteContentItem.BytesType" do
40
40
  value :BYTES_TYPE_UNSPECIFIED, 0
41
+ value :IMAGE, 6
41
42
  value :IMAGE_JPEG, 1
42
43
  value :IMAGE_BMP, 2
43
44
  value :IMAGE_PNG, 3
@@ -280,6 +281,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
280
281
  optional :value_frequency_upper_bound, :int64, 2
281
282
  optional :bucket_size, :int64, 3
282
283
  repeated :bucket_values, :message, 4, "google.privacy.dlp.v2.ValueFrequency"
284
+ optional :bucket_value_count, :int64, 5
283
285
  end
284
286
  add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult" do
285
287
  repeated :equivalence_class_histogram_buckets, :message, 5, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket"
@@ -293,6 +295,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
293
295
  optional :equivalence_class_size_upper_bound, :int64, 2
294
296
  optional :bucket_size, :int64, 3
295
297
  repeated :bucket_values, :message, 4, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass"
298
+ optional :bucket_value_count, :int64, 5
296
299
  end
297
300
  add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult" do
298
301
  repeated :sensitive_value_frequency_histogram_buckets, :message, 5, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket"
@@ -308,6 +311,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
308
311
  optional :sensitive_value_frequency_upper_bound, :int64, 2
309
312
  optional :bucket_size, :int64, 3
310
313
  repeated :bucket_values, :message, 4, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass"
314
+ optional :bucket_value_count, :int64, 5
311
315
  end
312
316
  add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult" do
313
317
  repeated :k_map_estimation_histogram, :message, 1, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket"
@@ -321,6 +325,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
321
325
  optional :max_anonymity, :int64, 2
322
326
  optional :bucket_size, :int64, 5
323
327
  repeated :bucket_values, :message, 6, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues"
328
+ optional :bucket_value_count, :int64, 7
324
329
  end
325
330
  add_message "google.privacy.dlp.v2.ValueFrequency" do
326
331
  optional :value, :message, 1, "google.privacy.dlp.v2.Value"
@@ -24,7 +24,7 @@ module Google
24
24
  module Dlp
25
25
  module V2
26
26
  module DlpService
27
- # The DLP API is a service that allows clients
27
+ # The Cloud Data Loss Prevention (DLP) API is a service that allows clients
28
28
  # to detect the presence of Personally Identifiable Information (PII) and other
29
29
  # privacy-sensitive data in user-supplied, unstructured data streams, like text
30
30
  # blocks or images.
@@ -51,9 +51,11 @@ module Google
51
51
  # This method has limits on input size and output size.
52
52
  # [How-to guide](/dlp/docs/deidentify-sensitive-data)
53
53
  rpc :DeidentifyContent, DeidentifyContentRequest, DeidentifyContentResponse
54
- # Re-identify content that has been de-identified.
54
+ # Re-identifies content that has been de-identified.
55
55
  rpc :ReidentifyContent, ReidentifyContentRequest, ReidentifyContentResponse
56
- # Returns sensitive information types DLP supports.
56
+ # Returns a list of the sensitive information types that the DLP API
57
+ # supports. For more information, see [Listing supported predefined
58
+ # infoTypes](/dlp/docs/listing-infotypes).
57
59
  rpc :ListInfoTypes, ListInfoTypesRequest, ListInfoTypesResponse
58
60
  # Creates an inspect template for re-using frequently used configuration
59
61
  # for inspecting content, images, and storage.
@@ -64,21 +66,21 @@ module Google
64
66
  rpc :GetInspectTemplate, GetInspectTemplateRequest, InspectTemplate
65
67
  # Lists inspect templates.
66
68
  rpc :ListInspectTemplates, ListInspectTemplatesRequest, ListInspectTemplatesResponse
67
- # Deletes inspect templates.
69
+ # Deletes an inspect template.
68
70
  rpc :DeleteInspectTemplate, DeleteInspectTemplateRequest, Google::Protobuf::Empty
69
- # Creates an Deidentify template for re-using frequently used configuration
71
+ # Creates a de-identify template for re-using frequently used configuration
70
72
  # for Deidentifying content, images, and storage.
71
73
  rpc :CreateDeidentifyTemplate, CreateDeidentifyTemplateRequest, DeidentifyTemplate
72
- # Updates the inspect template.
74
+ # Updates the de-identify template.
73
75
  rpc :UpdateDeidentifyTemplate, UpdateDeidentifyTemplateRequest, DeidentifyTemplate
74
- # Gets an inspect template.
76
+ # Gets a de-identify template.
75
77
  rpc :GetDeidentifyTemplate, GetDeidentifyTemplateRequest, DeidentifyTemplate
76
- # Lists inspect templates.
78
+ # Lists de-identify templates.
77
79
  rpc :ListDeidentifyTemplates, ListDeidentifyTemplatesRequest, ListDeidentifyTemplatesResponse
78
- # Deletes inspect templates.
80
+ # Deletes a de-identify template.
79
81
  rpc :DeleteDeidentifyTemplate, DeleteDeidentifyTemplateRequest, Google::Protobuf::Empty
80
- # Creates a job to run DLP actions such as scanning storage for sensitive
81
- # information on a set schedule.
82
+ # Creates a job trigger to run DLP actions such as scanning storage for
83
+ # sensitive information on a set schedule.
82
84
  rpc :CreateJobTrigger, CreateJobTriggerRequest, JobTrigger
83
85
  # Updates a job trigger.
84
86
  rpc :UpdateJobTrigger, UpdateJobTriggerRequest, JobTrigger
@@ -88,7 +90,7 @@ module Google
88
90
  rpc :ListJobTriggers, ListJobTriggersRequest, ListJobTriggersResponse
89
91
  # Deletes a job trigger.
90
92
  rpc :DeleteJobTrigger, DeleteJobTriggerRequest, Google::Protobuf::Empty
91
- # Create a new job to inspect storage or calculate risk metrics [How-to
93
+ # Creates a new job to inspect storage or calculate risk metrics [How-to
92
94
  # guide](/dlp/docs/compute-risk-analysis).
93
95
  rpc :CreateDlpJob, CreateDlpJobRequest, DlpJob
94
96
  # Lists DlpJobs that match the specified filter in the request.
@@ -99,7 +101,7 @@ module Google
99
101
  # no longer interested in the DlpJob result. The job will be cancelled if
100
102
  # possible.
101
103
  rpc :DeleteDlpJob, DeleteDlpJobRequest, Google::Protobuf::Empty
102
- # Starts asynchronous cancellation on a long-running DlpJob. The server
104
+ # Starts asynchronous cancellation on a long-running DlpJob. The server
103
105
  # makes a best effort to cancel the DlpJob, but success is not
104
106
  # guaranteed.
105
107
  rpc :CancelDlpJob, CancelDlpJobRequest, Google::Protobuf::Empty
@@ -69,6 +69,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
69
69
  add_message "google.privacy.dlp.v2.CloudStorageOptions" do
70
70
  optional :file_set, :message, 1, "google.privacy.dlp.v2.CloudStorageOptions.FileSet"
71
71
  optional :bytes_limit_per_file, :int64, 4
72
+ repeated :file_types, :enum, 5, "google.privacy.dlp.v2.FileType"
72
73
  end
73
74
  add_message "google.privacy.dlp.v2.CloudStorageOptions.FileSet" do
74
75
  optional :url, :string, 1
@@ -128,6 +129,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
128
129
  value :LIKELY, 4
129
130
  value :VERY_LIKELY, 5
130
131
  end
132
+ add_enum "google.privacy.dlp.v2.FileType" do
133
+ value :FILE_TYPE_UNSPECIFIED, 0
134
+ value :BINARY_FILE, 1
135
+ value :TEXT_FILE, 2
136
+ end
131
137
  end
132
138
 
133
139
  module Google
@@ -160,6 +166,7 @@ module Google
160
166
  RecordKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RecordKey").msgclass
161
167
  BigQueryTable = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryTable").msgclass
162
168
  Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Likelihood").enummodule
169
+ FileType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.FileType").enummodule
163
170
  end
164
171
  end
165
172
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dlp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-17 00:00:00.000000000 Z
11
+ date: 2018-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -66,7 +66,8 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.9'
69
- description: google-cloud-dlp is the official library for DLP API.
69
+ description: google-cloud-dlp is the official library for Cloud Data Loss Prevention
70
+ (DLP) API.
70
71
  email: googleapis-packages@google.com
71
72
  executables: []
72
73
  extensions: []
@@ -131,5 +132,5 @@ rubyforge_project:
131
132
  rubygems_version: 2.7.6
132
133
  signing_key:
133
134
  specification_version: 4
134
- summary: API Client library for DLP API
135
+ summary: API Client library for Cloud Data Loss Prevention (DLP) API
135
136
  test_files: []