google-cloud-dlp 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: accf807b4bdb2fd1bf755b10027c91ca7a9088e05bf4762ed8f3a367adf8d90f
4
- data.tar.gz: caa9ac2378bddb21afe3f914343d157500471f5ae697bfa0ba1e7397d12c957a
3
+ metadata.gz: 644a89d5eac5e54e20c7d6d81cdf261776529518e5f4ce6f17763f7e338f673e
4
+ data.tar.gz: 1959d2073e6c41f6dcefa28f243b211fc1786a3d1a7a052483b10ac6659ffd4b
5
5
  SHA512:
6
- metadata.gz: e940a1074590e59a972d29976b5c0a3b8582afeb9e06c88f277e52c27bbfaea9b770352ab1116611c357a43d1f7413b14f71b121acb4aa514e32a1c1b18e0ee3
7
- data.tar.gz: 4724199b34b1be8612473fd6e85a4a7d94c4e6e68607f0a5083cc7664f0e2d2592f3bc54c1d03842d91ee04619ba03ececed47ae3467f18aef4de7f54d82a42d
6
+ metadata.gz: 62aa3abcc43aa35af82812ebb1c086d822f7edf793eac7345bafa05568ad98c1d0ad09fbc1ddf9a2865e2cea8f39c5f246bed7145827075f01887cfbc5d0770b
7
+ data.tar.gz: 4668b1b7581c3cda086faf3aec44752cc36a183c14c238527a21091cd882538168c9800651b172ae6c1d902796d90b0926ea70e1f8637a3415ec69c98a4dcfc8
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Ruby Client for Cloud Data Loss Prevention (DLP) API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
2
2
 
3
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.
4
+ Provides methods for detection, risk analysis, and de-identification of
5
+ privacy-sensitive fragments in text, images, and Google Cloud Platform
6
+ storage repositories.
6
7
  - [Client Library Documentation][]
7
8
  - [Product Documentation][]
8
9
 
@@ -23,8 +23,9 @@ module Google
23
23
  # # Ruby Client for Cloud Data Loss Prevention (DLP) API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
24
24
  #
25
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.
26
+ # Provides methods for detection, risk analysis, and de-identification of
27
+ # privacy-sensitive fragments in text, images, and Google Cloud Platform
28
+ # storage repositories.
28
29
  # - [Product Documentation][]
29
30
  #
30
31
  # ## Quick Start
@@ -22,8 +22,9 @@ module Google
22
22
  # # Ruby Client for Cloud Data Loss Prevention (DLP) API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
23
23
  #
24
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.
25
+ # Provides methods for detection, risk analysis, and de-identification of
26
+ # privacy-sensitive fragments in text, images, and Google Cloud Platform
27
+ # storage repositories.
27
28
  # - [Product Documentation][]
28
29
  #
29
30
  # ## Quick Start
@@ -673,7 +673,7 @@ module Google
673
673
  @list_info_types.call(req, options)
674
674
  end
675
675
 
676
- # Creates an inspect template for re-using frequently used configuration
676
+ # Creates an InspectTemplate for re-using frequently used configuration
677
677
  # for inspecting content, images, and storage.
678
678
  #
679
679
  # @param parent [String]
@@ -714,7 +714,7 @@ module Google
714
714
  @create_inspect_template.call(req, options)
715
715
  end
716
716
 
717
- # Updates the inspect template.
717
+ # Updates the InspectTemplate.
718
718
  #
719
719
  # @param name [String]
720
720
  # Resource name of organization and inspectTemplate to be updated, for
@@ -754,7 +754,7 @@ module Google
754
754
  @update_inspect_template.call(req, options)
755
755
  end
756
756
 
757
- # Gets an inspect template.
757
+ # Gets an InspectTemplate.
758
758
  #
759
759
  # @param name [String]
760
760
  # Resource name of the organization and inspectTemplate to be read, for
@@ -781,7 +781,7 @@ module Google
781
781
  @get_inspect_template.call(req, options)
782
782
  end
783
783
 
784
- # Lists inspect templates.
784
+ # Lists InspectTemplates.
785
785
  #
786
786
  # @param parent [String]
787
787
  # The parent resource name, for example projects/my-project-id or
@@ -832,7 +832,7 @@ module Google
832
832
  @list_inspect_templates.call(req, options)
833
833
  end
834
834
 
835
- # Deletes an inspect template.
835
+ # Deletes an InspectTemplate.
836
836
  #
837
837
  # @param name [String]
838
838
  # Resource name of the organization and inspectTemplate to be deleted, for
@@ -860,8 +860,8 @@ module Google
860
860
  nil
861
861
  end
862
862
 
863
- # Creates a de-identify template for re-using frequently used configuration
864
- # for Deidentifying content, images, and storage.
863
+ # Creates a DeidentifyTemplate for re-using frequently used configuration
864
+ # for de-identifying content, images, and storage.
865
865
  #
866
866
  # @param parent [String]
867
867
  # The parent resource name, for example projects/my-project-id or
@@ -901,7 +901,7 @@ module Google
901
901
  @create_deidentify_template.call(req, options)
902
902
  end
903
903
 
904
- # Updates the de-identify template.
904
+ # Updates the DeidentifyTemplate.
905
905
  #
906
906
  # @param name [String]
907
907
  # Resource name of organization and deidentify template to be updated, for
@@ -941,7 +941,7 @@ module Google
941
941
  @update_deidentify_template.call(req, options)
942
942
  end
943
943
 
944
- # Gets a de-identify template.
944
+ # Gets a DeidentifyTemplate.
945
945
  #
946
946
  # @param name [String]
947
947
  # Resource name of the organization and deidentify template to be read, for
@@ -969,7 +969,7 @@ module Google
969
969
  @get_deidentify_template.call(req, options)
970
970
  end
971
971
 
972
- # Lists de-identify templates.
972
+ # Lists DeidentifyTemplates.
973
973
  #
974
974
  # @param parent [String]
975
975
  # The parent resource name, for example projects/my-project-id or
@@ -1020,7 +1020,7 @@ module Google
1020
1020
  @list_deidentify_templates.call(req, options)
1021
1021
  end
1022
1022
 
1023
- # Deletes a de-identify template.
1023
+ # Deletes a DeidentifyTemplate.
1024
1024
  #
1025
1025
  # @param name [String]
1026
1026
  # Resource name of the organization and deidentify template to be deleted,
@@ -1048,8 +1048,8 @@ module Google
1048
1048
  nil
1049
1049
  end
1050
1050
 
1051
- # Creates a new job to inspect storage or calculate risk metrics [How-to
1052
- # guide](/dlp/docs/compute-risk-analysis).
1051
+ # Creates a new job to inspect storage or calculate risk metrics.
1052
+ # [How-to guide](https://cloud.google.com/dlp/docs/compute-risk-analysis).
1053
1053
  #
1054
1054
  # @param parent [String]
1055
1055
  # The parent resource name, for example projects/my-project-id.
@@ -508,7 +508,7 @@ module Google
508
508
  class InspectDataSourceDetails
509
509
  # @!attribute [rw] snapshot_inspect_template
510
510
  # @return [Google::Privacy::Dlp::V2::InspectTemplate]
511
- # If run with an inspect template, a snapshot of it's state at the time of
511
+ # If run with an InspectTemplate, a snapshot of its state at the time of
512
512
  # this run.
513
513
  # @!attribute [rw] job_config
514
514
  # @return [Google::Privacy::Dlp::V2::InspectJobConfig]
@@ -608,6 +608,18 @@ module Google
608
608
  # repeated data types are not supported; however, nested fields are
609
609
  # supported so long as they are not structs themselves or nested within
610
610
  # a repeated field.
611
+ # @!attribute [rw] entity_id
612
+ # @return [Google::Privacy::Dlp::V2::EntityId]
613
+ # Optional message indicating that multiple rows might be associated to a
614
+ # single individual. If the same entity_id is associated to multiple
615
+ # quasi-identifier tuples over distict rows, we consider the entire
616
+ # collection of tuples as the composite quasi-identifier. This collection
617
+ # is a multiset: the order in which the different tuples appear in the
618
+ # dataset is ignored, but their frequency is taken into account.
619
+ #
620
+ # Important note: a maximum of 1000 rows can be associated to a single
621
+ # entity ID. If more rows are associated with the same entity ID, some
622
+ # might be ignored.
611
623
  class KAnonymityConfig; end
612
624
 
613
625
  # l-diversity metric, used for analysis of reidentification risk.
@@ -1627,15 +1639,20 @@ module Google
1627
1639
  # @!attribute [rw] pub_sub
1628
1640
  # @return [Google::Privacy::Dlp::V2::Action::PublishToPubSub]
1629
1641
  # Publish a notification to a pubsub topic.
1642
+ # @!attribute [rw] publish_summary_to_cscc
1643
+ # @return [Google::Privacy::Dlp::V2::Action::PublishSummaryToCscc]
1644
+ # Publish summary to Cloud Security Command Center (Alpha).
1630
1645
  class Action
1631
1646
  # If set, the detailed findings will be persisted to the specified
1632
- # OutputStorageConfig. Compatible with: Inspect
1647
+ # OutputStorageConfig. Only a single instance of this action can be
1648
+ # specified.
1649
+ # Compatible with: Inspect
1633
1650
  # @!attribute [rw] output_config
1634
1651
  # @return [Google::Privacy::Dlp::V2::OutputStorageConfig]
1635
1652
  class SaveFindings; end
1636
1653
 
1637
1654
  # Publish the results of a DlpJob to a pub sub channel.
1638
- # Compatible with: Inpect, Risk
1655
+ # Compatible with: Inspect, Risk
1639
1656
  # @!attribute [rw] topic
1640
1657
  # @return [String]
1641
1658
  # Cloud Pub/Sub topic to send notifications to. The topic must have given
@@ -1643,6 +1660,18 @@ module Google
1643
1660
  # the long running DlpJob sending the notifications.
1644
1661
  # Format is projects/{project}/topics/{topic}.
1645
1662
  class PublishToPubSub; end
1663
+
1664
+ # Publish the result summary of a DlpJob to the Cloud Security
1665
+ # Command Center (CSCC Alpha).
1666
+ # This action is only available for projects which are parts of
1667
+ # an organization and whitelisted for the alpha Cloud Security Command
1668
+ # Center.
1669
+ # The action will publish count of finding instances and their info types.
1670
+ # The summary of findings will be persisted in CSCC and are governed by CSCC
1671
+ # service-specific policy, see https://cloud.google.com/terms/service-terms
1672
+ # Only a single instance of this action can be specified.
1673
+ # Compatible with: Inspect
1674
+ class PublishSummaryToCscc; end
1646
1675
  end
1647
1676
 
1648
1677
  # Request message for CreateInspectTemplate.
@@ -70,6 +70,10 @@ module Google
70
70
  # @!attribute [rw] word_list
71
71
  # @return [Google::Privacy::Dlp::V2::CustomInfoType::Dictionary::WordList]
72
72
  # List of words or phrases to search for.
73
+ # @!attribute [rw] cloud_storage_path
74
+ # @return [Google::Privacy::Dlp::V2::CloudStoragePath]
75
+ # Newline-delimited file of words in Cloud Storage. Only a single file
76
+ # is accepted.
73
77
  class Dictionary
74
78
  # Message defining a list of words or phrases to search for in the data.
75
79
  # @!attribute [rw] words
@@ -210,6 +214,13 @@ module Google
210
214
  class FileSet; end
211
215
  end
212
216
 
217
+ # Message representing a path in Cloud Storage.
218
+ # @!attribute [rw] path
219
+ # @return [String]
220
+ # A url representing a file or path (no wildcards) in Cloud Storage.
221
+ # Example: gs://[BUCKET_NAME]/dictionary.txt
222
+ class CloudStoragePath; end
223
+
213
224
  # Options defining BigQuery table and row identifiers.
214
225
  # @!attribute [rw] table_reference
215
226
  # @return [Google::Privacy::Dlp::V2::BigQueryTable]
@@ -218,6 +229,11 @@ module Google
218
229
  # @return [Array<Google::Privacy::Dlp::V2::FieldId>]
219
230
  # References to fields uniquely identifying rows within the table.
220
231
  # Nested fields in the format, like +person.birthdate.year+, are allowed.
232
+ # @!attribute [rw] rows_limit
233
+ # @return [Integer]
234
+ # Max number of rows to scan. If the table has more rows than this value, the
235
+ # rest of the rows are omitted. If not set, or if set to 0, all rows will be
236
+ # scanned. Cannot be used in conjunction with TimespanConfig.
221
237
  class BigQueryOptions; end
222
238
 
223
239
  # Shared message indicating Cloud storage type.
@@ -345,6 +361,16 @@ module Google
345
361
  # Name of the table.
346
362
  class BigQueryTable; end
347
363
 
364
+ # An entity in a dataset is a field or set of fields that correspond to a
365
+ # single person. For example, in medical records the +EntityId+ might be a
366
+ # patient identifier, or for financial records it might be an account
367
+ # identifier. This message is used when generalizations or analysis must take
368
+ # into account that multiple rows correspond to the same entity.
369
+ # @!attribute [rw] field
370
+ # @return [Google::Privacy::Dlp::V2::FieldId]
371
+ # Composite key indicating which field contains the entity identifier.
372
+ class EntityId; end
373
+
348
374
  # Categorization of results based on how likely they are to represent a match,
349
375
  # based on the number of elements they contain which imply a match.
350
376
  module Likelihood
@@ -370,15 +396,15 @@ module Google
370
396
  # Includes all files.
371
397
  FILE_TYPE_UNSPECIFIED = 0
372
398
 
373
- # Includes all file extensions not covered by other types.
399
+ # Includes all file extensions not covered by text file types.
374
400
  BINARY_FILE = 1
375
401
 
376
402
  # 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.
403
+ # asc, brf, c, cc, cpp, csv, cxx, c++, cs, css, dart, eml, go, h, hh, hpp,
404
+ # hxx, h++, hs, html, htm, shtml, shtm, xhtml, lhs, ini, java, js, json,
405
+ # ocaml, md, mkd, markdown, m, ml, mli, pl, pm, php, phtml, pht, py, pyw,
406
+ # rb, rbw, rs, rc, scala, sh, sql, tex, txt, text, tsv, vcard, vcs, wml,
407
+ # xml, xsl, xsd, yml, yaml.
382
408
  TEXT_FILE = 2
383
409
  end
384
410
  end
@@ -20,8 +20,9 @@ module Google
20
20
  # # Ruby Client for Cloud Data Loss Prevention (DLP) API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
21
21
  #
22
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.
23
+ # Provides methods for detection, risk analysis, and de-identification of
24
+ # privacy-sensitive fragments in text, images, and Google Cloud Platform
25
+ # storage repositories.
25
26
  # - [Product Documentation][]
26
27
  #
27
28
  # ## Quick Start
@@ -230,6 +230,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
230
230
  end
231
231
  add_message "google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig" do
232
232
  repeated :quasi_ids, :message, 1, "google.privacy.dlp.v2.FieldId"
233
+ optional :entity_id, :message, 2, "google.privacy.dlp.v2.EntityId"
233
234
  end
234
235
  add_message "google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig" do
235
236
  repeated :quasi_ids, :message, 1, "google.privacy.dlp.v2.FieldId"
@@ -594,6 +595,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
594
595
  oneof :action do
595
596
  optional :save_findings, :message, 1, "google.privacy.dlp.v2.Action.SaveFindings"
596
597
  optional :pub_sub, :message, 2, "google.privacy.dlp.v2.Action.PublishToPubSub"
598
+ optional :publish_summary_to_cscc, :message, 3, "google.privacy.dlp.v2.Action.PublishSummaryToCscc"
597
599
  end
598
600
  end
599
601
  add_message "google.privacy.dlp.v2.Action.SaveFindings" do
@@ -602,6 +604,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
602
604
  add_message "google.privacy.dlp.v2.Action.PublishToPubSub" do
603
605
  optional :topic, :string, 1
604
606
  end
607
+ add_message "google.privacy.dlp.v2.Action.PublishSummaryToCscc" do
608
+ end
605
609
  add_message "google.privacy.dlp.v2.CreateInspectTemplateRequest" do
606
610
  optional :parent, :string, 1
607
611
  optional :inspect_template, :message, 2, "google.privacy.dlp.v2.InspectTemplate"
@@ -875,6 +879,7 @@ module Google
875
879
  Action = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action").msgclass
876
880
  Action::SaveFindings = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.SaveFindings").msgclass
877
881
  Action::PublishToPubSub = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.PublishToPubSub").msgclass
882
+ Action::PublishSummaryToCscc = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.PublishSummaryToCscc").msgclass
878
883
  CreateInspectTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CreateInspectTemplateRequest").msgclass
879
884
  UpdateInspectTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.UpdateInspectTemplateRequest").msgclass
880
885
  GetInspectTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.GetInspectTemplateRequest").msgclass
@@ -57,27 +57,27 @@ module Google
57
57
  # supports. For more information, see [Listing supported predefined
58
58
  # infoTypes](/dlp/docs/listing-infotypes).
59
59
  rpc :ListInfoTypes, ListInfoTypesRequest, ListInfoTypesResponse
60
- # Creates an inspect template for re-using frequently used configuration
60
+ # Creates an InspectTemplate for re-using frequently used configuration
61
61
  # for inspecting content, images, and storage.
62
62
  rpc :CreateInspectTemplate, CreateInspectTemplateRequest, InspectTemplate
63
- # Updates the inspect template.
63
+ # Updates the InspectTemplate.
64
64
  rpc :UpdateInspectTemplate, UpdateInspectTemplateRequest, InspectTemplate
65
- # Gets an inspect template.
65
+ # Gets an InspectTemplate.
66
66
  rpc :GetInspectTemplate, GetInspectTemplateRequest, InspectTemplate
67
- # Lists inspect templates.
67
+ # Lists InspectTemplates.
68
68
  rpc :ListInspectTemplates, ListInspectTemplatesRequest, ListInspectTemplatesResponse
69
- # Deletes an inspect template.
69
+ # Deletes an InspectTemplate.
70
70
  rpc :DeleteInspectTemplate, DeleteInspectTemplateRequest, Google::Protobuf::Empty
71
- # Creates a de-identify template for re-using frequently used configuration
72
- # for Deidentifying content, images, and storage.
71
+ # Creates a DeidentifyTemplate for re-using frequently used configuration
72
+ # for de-identifying content, images, and storage.
73
73
  rpc :CreateDeidentifyTemplate, CreateDeidentifyTemplateRequest, DeidentifyTemplate
74
- # Updates the de-identify template.
74
+ # Updates the DeidentifyTemplate.
75
75
  rpc :UpdateDeidentifyTemplate, UpdateDeidentifyTemplateRequest, DeidentifyTemplate
76
- # Gets a de-identify template.
76
+ # Gets a DeidentifyTemplate.
77
77
  rpc :GetDeidentifyTemplate, GetDeidentifyTemplateRequest, DeidentifyTemplate
78
- # Lists de-identify templates.
78
+ # Lists DeidentifyTemplates.
79
79
  rpc :ListDeidentifyTemplates, ListDeidentifyTemplatesRequest, ListDeidentifyTemplatesResponse
80
- # Deletes a de-identify template.
80
+ # Deletes a DeidentifyTemplate.
81
81
  rpc :DeleteDeidentifyTemplate, DeleteDeidentifyTemplateRequest, Google::Protobuf::Empty
82
82
  # Creates a job trigger to run DLP actions such as scanning storage for
83
83
  # sensitive information on a set schedule.
@@ -90,8 +90,8 @@ module Google
90
90
  rpc :ListJobTriggers, ListJobTriggersRequest, ListJobTriggersResponse
91
91
  # Deletes a job trigger.
92
92
  rpc :DeleteJobTrigger, DeleteJobTriggerRequest, Google::Protobuf::Empty
93
- # Creates a new job to inspect storage or calculate risk metrics [How-to
94
- # guide](/dlp/docs/compute-risk-analysis).
93
+ # Creates a new job to inspect storage or calculate risk metrics.
94
+ # [How-to guide](/dlp/docs/compute-risk-analysis).
95
95
  rpc :CreateDlpJob, CreateDlpJobRequest, DlpJob
96
96
  # Lists DlpJobs that match the specified filter in the request.
97
97
  rpc :ListDlpJobs, ListDlpJobsRequest, ListDlpJobsResponse
@@ -22,6 +22,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
22
  add_message "google.privacy.dlp.v2.CustomInfoType.Dictionary" do
23
23
  oneof :source do
24
24
  optional :word_list, :message, 1, "google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList"
25
+ optional :cloud_storage_path, :message, 3, "google.privacy.dlp.v2.CloudStoragePath"
25
26
  end
26
27
  end
27
28
  add_message "google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList" do
@@ -74,9 +75,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
74
75
  add_message "google.privacy.dlp.v2.CloudStorageOptions.FileSet" do
75
76
  optional :url, :string, 1
76
77
  end
78
+ add_message "google.privacy.dlp.v2.CloudStoragePath" do
79
+ optional :path, :string, 1
80
+ end
77
81
  add_message "google.privacy.dlp.v2.BigQueryOptions" do
78
82
  optional :table_reference, :message, 1, "google.privacy.dlp.v2.BigQueryTable"
79
83
  repeated :identifying_fields, :message, 2, "google.privacy.dlp.v2.FieldId"
84
+ optional :rows_limit, :int64, 3
80
85
  end
81
86
  add_message "google.privacy.dlp.v2.StorageConfig" do
82
87
  optional :timespan_config, :message, 6, "google.privacy.dlp.v2.StorageConfig.TimespanConfig"
@@ -121,6 +126,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
121
126
  optional :dataset_id, :string, 2
122
127
  optional :table_id, :string, 3
123
128
  end
129
+ add_message "google.privacy.dlp.v2.EntityId" do
130
+ optional :field, :message, 1, "google.privacy.dlp.v2.FieldId"
131
+ end
124
132
  add_enum "google.privacy.dlp.v2.Likelihood" do
125
133
  value :LIKELIHOOD_UNSPECIFIED, 0
126
134
  value :VERY_UNLIKELY, 1
@@ -156,6 +164,7 @@ module Google
156
164
  DatastoreOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DatastoreOptions").msgclass
157
165
  CloudStorageOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageOptions").msgclass
158
166
  CloudStorageOptions::FileSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageOptions.FileSet").msgclass
167
+ CloudStoragePath = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStoragePath").msgclass
159
168
  BigQueryOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryOptions").msgclass
160
169
  StorageConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StorageConfig").msgclass
161
170
  StorageConfig::TimespanConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StorageConfig.TimespanConfig").msgclass
@@ -165,6 +174,7 @@ module Google
165
174
  Key::PathElement = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Key.PathElement").msgclass
166
175
  RecordKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RecordKey").msgclass
167
176
  BigQueryTable = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryTable").msgclass
177
+ EntityId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.EntityId").msgclass
168
178
  Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Likelihood").enummodule
169
179
  FileType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.FileType").enummodule
170
180
  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.3.0
4
+ version: 0.4.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-04-11 00:00:00.000000000 Z
11
+ date: 2018-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -92,24 +92,10 @@ files:
92
92
  - lib/google/cloud/dlp/v2/doc/google/type/date.rb
93
93
  - lib/google/cloud/dlp/v2/doc/google/type/timeofday.rb
94
94
  - lib/google/cloud/dlp/v2/doc/overview.rb
95
- - lib/google/cloud/dlp/v2beta1.rb
96
- - lib/google/cloud/dlp/v2beta1/dlp_service_client.rb
97
- - lib/google/cloud/dlp/v2beta1/dlp_service_client_config.json
98
- - lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb
99
- - lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/storage.rb
100
- - lib/google/cloud/dlp/v2beta1/doc/google/protobuf/any.rb
101
- - lib/google/cloud/dlp/v2beta1/doc/google/protobuf/timestamp.rb
102
- - lib/google/cloud/dlp/v2beta1/doc/google/rpc/status.rb
103
- - lib/google/cloud/dlp/v2beta1/doc/google/type/date.rb
104
- - lib/google/cloud/dlp/v2beta1/doc/google/type/timeofday.rb
105
- - lib/google/cloud/dlp/v2beta1/doc/overview.rb
106
95
  - lib/google/privacy/dlp/v2/dlp_pb.rb
107
96
  - lib/google/privacy/dlp/v2/dlp_services_pb.rb
108
97
  - lib/google/privacy/dlp/v2/storage_pb.rb
109
- - lib/google/privacy/dlp/v2beta1/dlp_pb.rb
110
- - lib/google/privacy/dlp/v2beta1/dlp_services_pb.rb
111
- - lib/google/privacy/dlp/v2beta1/storage_pb.rb
112
- homepage: https://github.com/googleapis/googleapis
98
+ homepage: https://github.com/GoogleCloudPlatform/google-cloud-ruby/tree/master/google-cloud-dlp
113
99
  licenses:
114
100
  - Apache-2.0
115
101
  metadata: {}