google-cloud-dlp 0.6.2 → 0.7.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: 05b0c5a265d978916b8148a2887a579dee18296cb1bd4e6f1dbc5916e1a4ba06
4
- data.tar.gz: 1f9ce431757fb783fc54837626f844fa63757d7f1ecccb4dd718fa922a62b2eb
3
+ metadata.gz: 611fcdc6b6008b90f7cf40518dcb1d8816fb463fbf31581aa741a3e10a56af6d
4
+ data.tar.gz: ec08a94091ed1154519a7403d7a95c5f7574f49847dce2325f77721110d13921
5
5
  SHA512:
6
- metadata.gz: 86ef04de2cfa35e0564119ba2e1ee5424cfeaefe2db7502e9ed9e7692460068eb0469fcaa41a411c4d59d23d7719a3bdd1f05c7553ff847a090f96fdc691d7ba
7
- data.tar.gz: 10bd645452fb9d2c1dcba7ed74e15b56e065ad978a64acba1b404568eb92edbc0b1f34734f490b5dca8a096a84bf5b4e909f63817f7a6618071bfa72031b9131
6
+ metadata.gz: cbe6fab2b0dad1d0e422edb6938851d707529d60ef2b4a72d5364d4a9daa26cadbaad8a7f8c50c7eaea100d675e8778755972de9ba34c87b1df53a5cdeecec54
7
+ data.tar.gz: 8b11fb1f7dd7d4306706b797058d0bdc56cc117ad71e2b403ba7420a8e5c241815ef7b99df8ca777adac59e3554c8469660b10c5cd2c0e871872359fa136a71c
@@ -894,6 +894,20 @@ module Google
894
894
  # parameter does not affect the return value. If page streaming is
895
895
  # performed per-page, this determines the maximum number of
896
896
  # resources in a page.
897
+ # @param order_by [String]
898
+ # Optional comma separated list of fields to order by,
899
+ # followed by `asc` or `desc` postfix. This list is case-insensitive,
900
+ # default sorting order is ascending, redundant space characters are
901
+ # insignificant.
902
+ #
903
+ # Example: `name asc,update_time, create_time desc`
904
+ #
905
+ # Supported fields are:
906
+ #
907
+ # * `create_time`: corresponds to time the template was created.
908
+ # * `update_time`: corresponds to time the template was last updated.
909
+ # * `name`: corresponds to template's name.
910
+ # * `display_name`: corresponds to template's display name.
897
911
  # @param options [Google::Gax::CallOptions]
898
912
  # Overrides the default settings for this call, e.g, timeout,
899
913
  # retries, etc.
@@ -928,11 +942,13 @@ module Google
928
942
  def list_inspect_templates \
929
943
  parent,
930
944
  page_size: nil,
945
+ order_by: nil,
931
946
  options: nil,
932
947
  &block
933
948
  req = {
934
949
  parent: parent,
935
- page_size: page_size
950
+ page_size: page_size,
951
+ order_by: order_by
936
952
  }.delete_if { |_, v| v.nil? }
937
953
  req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::ListInspectTemplatesRequest)
938
954
  @list_inspect_templates.call(req, options, &block)
@@ -1111,6 +1127,20 @@ module Google
1111
1127
  # parameter does not affect the return value. If page streaming is
1112
1128
  # performed per-page, this determines the maximum number of
1113
1129
  # resources in a page.
1130
+ # @param order_by [String]
1131
+ # Optional comma separated list of fields to order by,
1132
+ # followed by `asc` or `desc` postfix. This list is case-insensitive,
1133
+ # default sorting order is ascending, redundant space characters are
1134
+ # insignificant.
1135
+ #
1136
+ # Example: `name asc,update_time, create_time desc`
1137
+ #
1138
+ # Supported fields are:
1139
+ #
1140
+ # * `create_time`: corresponds to time the template was created.
1141
+ # * `update_time`: corresponds to time the template was last updated.
1142
+ # * `name`: corresponds to template's name.
1143
+ # * `display_name`: corresponds to template's display name.
1114
1144
  # @param options [Google::Gax::CallOptions]
1115
1145
  # Overrides the default settings for this call, e.g, timeout,
1116
1146
  # retries, etc.
@@ -1145,11 +1175,13 @@ module Google
1145
1175
  def list_deidentify_templates \
1146
1176
  parent,
1147
1177
  page_size: nil,
1178
+ order_by: nil,
1148
1179
  options: nil,
1149
1180
  &block
1150
1181
  req = {
1151
1182
  parent: parent,
1152
- page_size: page_size
1183
+ page_size: page_size,
1184
+ order_by: order_by
1153
1185
  }.delete_if { |_, v| v.nil? }
1154
1186
  req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::ListDeidentifyTemplatesRequest)
1155
1187
  @list_deidentify_templates.call(req, options, &block)
@@ -1449,9 +1481,11 @@ module Google
1449
1481
  #
1450
1482
  # Supported fields are:
1451
1483
  #
1452
- # * `create_time`: corresponds to time the triggeredJob was created.
1453
- # * `update_time`: corresponds to time the triggeredJob was last updated.
1484
+ # * `create_time`: corresponds to time the JobTrigger was created.
1485
+ # * `update_time`: corresponds to time the JobTrigger was last updated.
1454
1486
  # * `name`: corresponds to JobTrigger's name.
1487
+ # * `display_name`: corresponds to JobTrigger's display name.
1488
+ # * `status`: corresponds to JobTrigger's status.
1455
1489
  # @param options [Google::Gax::CallOptions]
1456
1490
  # Overrides the default settings for this call, e.g, timeout,
1457
1491
  # retries, etc.
@@ -6,7 +6,12 @@
6
6
  "DEADLINE_EXCEEDED",
7
7
  "UNAVAILABLE"
8
8
  ],
9
- "non_idempotent": []
9
+ "http_get": [
10
+ "DEADLINE_EXCEEDED",
11
+ "UNAVAILABLE"
12
+ ],
13
+ "non_idempotent": [],
14
+ "no_retry": []
10
15
  },
11
16
  "retry_params": {
12
17
  "default": {
@@ -17,6 +17,55 @@ module Google
17
17
  module Privacy
18
18
  module Dlp
19
19
  module V2
20
+ # List of exclude infoTypes.
21
+ # @!attribute [rw] info_types
22
+ # @return [Array<Google::Privacy::Dlp::V2::InfoType>]
23
+ # InfoType list in ExclusionRule rule drops a finding when it overlaps or
24
+ # contained within with a finding of an infoType from this list. For
25
+ # example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
26
+ # `exclusion_rule` containing `exclude_info_types.info_types` with
27
+ # "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
28
+ # with EMAIL_ADDRESS finding.
29
+ # That leads to "555-222-2222@example.org" to generate only a single
30
+ # finding, namely email address.
31
+ class ExcludeInfoTypes; end
32
+
33
+ # The rule that specifies conditions when findings of infoTypes specified in
34
+ # `InspectionRuleSet` are removed from results.
35
+ # @!attribute [rw] dictionary
36
+ # @return [Google::Privacy::Dlp::V2::CustomInfoType::Dictionary]
37
+ # Dictionary which defines the rule.
38
+ # @!attribute [rw] regex
39
+ # @return [Google::Privacy::Dlp::V2::CustomInfoType::Regex]
40
+ # Regular expression which defines the rule.
41
+ # @!attribute [rw] exclude_info_types
42
+ # @return [Google::Privacy::Dlp::V2::ExcludeInfoTypes]
43
+ # Set of infoTypes for which findings would affect this rule.
44
+ # @!attribute [rw] matching_type
45
+ # @return [Google::Privacy::Dlp::V2::MatchingType]
46
+ # How the rule is applied, see MatchingType documentation for details.
47
+ class ExclusionRule; end
48
+
49
+ # A single inspection rule to be applied to infoTypes, specified in
50
+ # `InspectionRuleSet`.
51
+ # @!attribute [rw] hotword_rule
52
+ # @return [Google::Privacy::Dlp::V2::CustomInfoType::DetectionRule::HotwordRule]
53
+ # Hotword-based detection rule.
54
+ # @!attribute [rw] exclusion_rule
55
+ # @return [Google::Privacy::Dlp::V2::ExclusionRule]
56
+ # Exclusion rule.
57
+ class InspectionRule; end
58
+
59
+ # Rule set for modifying a set of infoTypes to alter behavior under certain
60
+ # circumstances, depending on the specific details of the rules within the set.
61
+ # @!attribute [rw] info_types
62
+ # @return [Array<Google::Privacy::Dlp::V2::InfoType>]
63
+ # List of infoTypes this rule set is applied to.
64
+ # @!attribute [rw] rules
65
+ # @return [Array<Google::Privacy::Dlp::V2::InspectionRule>]
66
+ # Set of rules to be applied to infoTypes. The rules are applied in order.
67
+ class InspectionRuleSet; end
68
+
20
69
  # Configuration description of the scanning process.
21
70
  # When used with redactContent only info_types and min_likelihood are currently
22
71
  # used.
@@ -56,6 +105,11 @@ module Google
56
105
  # @return [Array<Google::Privacy::Dlp::V2::ContentOption>]
57
106
  # List of options defining data content to scan.
58
107
  # If empty, text, images, and other content will be included.
108
+ # @!attribute [rw] rule_set
109
+ # @return [Array<Google::Privacy::Dlp::V2::InspectionRuleSet>]
110
+ # Set of rules to apply to the findings for this InspectConfig.
111
+ # Exclusion rules, contained in the set are executed in the end, other
112
+ # rules are executed in the order they are specified for each info type.
59
113
  class InspectConfig
60
114
  # @!attribute [rw] max_findings_per_item
61
115
  # @return [Integer]
@@ -1887,6 +1941,21 @@ module Google
1887
1941
  # @return [Integer]
1888
1942
  # Optional size of the page, can be limited by server. If zero server returns
1889
1943
  # a page of max size 100.
1944
+ # @!attribute [rw] order_by
1945
+ # @return [String]
1946
+ # Optional comma separated list of fields to order by,
1947
+ # followed by `asc` or `desc` postfix. This list is case-insensitive,
1948
+ # default sorting order is ascending, redundant space characters are
1949
+ # insignificant.
1950
+ #
1951
+ # Example: `name asc,update_time, create_time desc`
1952
+ #
1953
+ # Supported fields are:
1954
+ #
1955
+ # * `create_time`: corresponds to time the template was created.
1956
+ # * `update_time`: corresponds to time the template was last updated.
1957
+ # * `name`: corresponds to template's name.
1958
+ # * `display_name`: corresponds to template's display name.
1890
1959
  class ListInspectTemplatesRequest; end
1891
1960
 
1892
1961
  # Response message for ListInspectTemplates.
@@ -1983,9 +2052,11 @@ module Google
1983
2052
  #
1984
2053
  # Supported fields are:
1985
2054
  #
1986
- # * `create_time`: corresponds to time the triggeredJob was created.
1987
- # * `update_time`: corresponds to time the triggeredJob was last updated.
2055
+ # * `create_time`: corresponds to time the JobTrigger was created.
2056
+ # * `update_time`: corresponds to time the JobTrigger was last updated.
1988
2057
  # * `name`: corresponds to JobTrigger's name.
2058
+ # * `display_name`: corresponds to JobTrigger's display name.
2059
+ # * `status`: corresponds to JobTrigger's status.
1989
2060
  class ListJobTriggersRequest; end
1990
2061
 
1991
2062
  # Response message for ListJobTriggers.
@@ -2193,6 +2264,21 @@ module Google
2193
2264
  # @return [Integer]
2194
2265
  # Optional size of the page, can be limited by server. If zero server returns
2195
2266
  # a page of max size 100.
2267
+ # @!attribute [rw] order_by
2268
+ # @return [String]
2269
+ # Optional comma separated list of fields to order by,
2270
+ # followed by `asc` or `desc` postfix. This list is case-insensitive,
2271
+ # default sorting order is ascending, redundant space characters are
2272
+ # insignificant.
2273
+ #
2274
+ # Example: `name asc,update_time, create_time desc`
2275
+ #
2276
+ # Supported fields are:
2277
+ #
2278
+ # * `create_time`: corresponds to time the template was created.
2279
+ # * `update_time`: corresponds to time the template was last updated.
2280
+ # * `name`: corresponds to template's name.
2281
+ # * `display_name`: corresponds to template's display name.
2196
2282
  class ListDeidentifyTemplatesRequest; end
2197
2283
 
2198
2284
  # Response message for ListDeidentifyTemplates.
@@ -2341,6 +2427,22 @@ module Google
2341
2427
  # @return [Integer]
2342
2428
  # Optional size of the page, can be limited by server. If zero server returns
2343
2429
  # a page of max size 100.
2430
+ # @!attribute [rw] order_by
2431
+ # @return [String]
2432
+ # Optional comma separated list of fields to order by,
2433
+ # followed by `asc` or `desc` postfix. This list is case-insensitive,
2434
+ # default sorting order is ascending, redundant space characters are
2435
+ # insignificant.
2436
+ #
2437
+ # Example: `name asc, display_name, create_time desc`
2438
+ #
2439
+ # Supported fields are:
2440
+ #
2441
+ # * `create_time`: corresponds to time the most recent version of the
2442
+ # resource was created.
2443
+ # * `state`: corresponds to the state of the resource.
2444
+ # * `name`: corresponds to resource name.
2445
+ # * `display_name`: corresponds to info type's display name.
2344
2446
  class ListStoredInfoTypesRequest; end
2345
2447
 
2346
2448
  # Response message for ListStoredInfoTypes.
@@ -2373,6 +2475,35 @@ module Google
2373
2475
  CONTENT_IMAGE = 2
2374
2476
  end
2375
2477
 
2478
+ # Type of the match which can be applied to different ways of matching, like
2479
+ # Dictionary, regular expression and intersecting with findings of another
2480
+ # info type.
2481
+ module MatchingType
2482
+ # Invalid.
2483
+ MATCHING_TYPE_UNSPECIFIED = 0
2484
+
2485
+ # Full match.
2486
+ #
2487
+ # * Dictionary: join of Dictionary results matched complete finding quote
2488
+ # * Regex: all regex matches fill a finding quote start to end
2489
+ # * Exclude info type: completely inside affecting info types findings
2490
+ MATCHING_TYPE_FULL_MATCH = 1
2491
+
2492
+ # Partial match.
2493
+ #
2494
+ # * Dictionary: at least one of the tokens in the finding matches
2495
+ # * Regex: substring of the finding matches
2496
+ # * Exclude info type: intersects with affecting info types findings
2497
+ MATCHING_TYPE_PARTIAL_MATCH = 2
2498
+
2499
+ # Inverse match.
2500
+ #
2501
+ # * Dictionary: no tokens in the finding match the dictionary
2502
+ # * Regex: finding doesn't match the regex
2503
+ # * Exclude info type: no intersection with affecting info types findings
2504
+ MATCHING_TYPE_INVERSE_MATCH = 3
2505
+ end
2506
+
2376
2507
  # Parts of the APIs which use certain infoTypes.
2377
2508
  module InfoTypeSupportedBy
2378
2509
  ENUM_TYPE_UNSPECIFIED = 0
@@ -42,8 +42,12 @@ module Google
42
42
  # sensitive information configurable to the data in question.
43
43
  # @!attribute [rw] info_type
44
44
  # @return [Google::Privacy::Dlp::V2::InfoType]
45
- # All CustomInfoTypes must have a name
46
- # that does not conflict with built-in InfoTypes or other CustomInfoTypes.
45
+ # CustomInfoType can either be a new infoType, or an extension of built-in
46
+ # infoType, when the name matches one of existing infoTypes and that infoType
47
+ # is specified in `InspectContent.info_types` field. Specifying the latter
48
+ # adds findings to the one detected by the system. If built-in info type is
49
+ # not specified in `InspectContent.info_types` list then the name is treated
50
+ # as a custom info type.
47
51
  # @!attribute [rw] likelihood
48
52
  # @return [Google::Privacy::Dlp::V2::Likelihood]
49
53
  # Likelihood to return for this CustomInfoType. This base value can be
@@ -68,6 +72,10 @@ module Google
68
72
  # Set of detection rules to apply to all findings of this CustomInfoType.
69
73
  # Rules are applied in order that they are specified. Not supported for the
70
74
  # `surrogate_type` CustomInfoType.
75
+ # @!attribute [rw] exclusion_type
76
+ # @return [Google::Privacy::Dlp::V2::CustomInfoType::ExclusionType]
77
+ # If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
78
+ # to be returned. It still can be used for rules matching.
71
79
  class CustomInfoType
72
80
  # Custom information type based on a dictionary of words or phrases. This can
73
81
  # be used to match sensitive information specific to the data, such as a list
@@ -112,7 +120,9 @@ module Google
112
120
  # Message defining a custom regular expression.
113
121
  # @!attribute [rw] pattern
114
122
  # @return [String]
115
- # Pattern defining the regular expression.
123
+ # Pattern defining the regular expression. Its syntax
124
+ # (https://github.com/google/re2/wiki/Syntax) can be found under the
125
+ # google/re2 repository on GitHub.
116
126
  class Regex; end
117
127
 
118
128
  # Message for detecting output from deidentification transformations
@@ -179,6 +189,15 @@ module Google
179
189
  # Likelihood adjustment to apply to all matching findings.
180
190
  class HotwordRule; end
181
191
  end
192
+
193
+ module ExclusionType
194
+ # A finding of this custom info type will not be excluded from results.
195
+ EXCLUSION_TYPE_UNSPECIFIED = 0
196
+
197
+ # A finding of this custom info type will be excluded from final results,
198
+ # but can still affect rule execution.
199
+ EXCLUSION_TYPE_EXCLUDE = 1
200
+ end
182
201
  end
183
202
 
184
203
  # General identifier of a data field in a storage service.
@@ -217,10 +236,11 @@ module Google
217
236
  # The kind to process.
218
237
  class DatastoreOptions; end
219
238
 
220
- # Options defining a file or a set of files (path ending with *) within
221
- # a Google Cloud Storage bucket.
239
+ # Options defining a file or a set of files within a Google Cloud Storage
240
+ # bucket.
222
241
  # @!attribute [rw] file_set
223
242
  # @return [Google::Privacy::Dlp::V2::CloudStorageOptions::FileSet]
243
+ # The set of one or more files to scan.
224
244
  # @!attribute [rw] bytes_limit_per_file
225
245
  # @return [Integer]
226
246
  # Max number of bytes to scan from a file. If a scanned file's size is bigger
@@ -248,8 +268,8 @@ module Google
248
268
  # Set of files to scan.
249
269
  # @!attribute [rw] url
250
270
  # @return [String]
251
- # The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the
252
- # path is allowed.
271
+ # The Cloud Storage url of the file(s) to scan, in the format
272
+ # `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
253
273
  class FileSet; end
254
274
 
255
275
  # How to sample bytes if not all bytes are scanned. Meaningful only when used
@@ -15,6 +15,27 @@ require 'google/type/date_pb'
15
15
  require 'google/type/dayofweek_pb'
16
16
  require 'google/type/timeofday_pb'
17
17
  Google::Protobuf::DescriptorPool.generated_pool.build do
18
+ add_message "google.privacy.dlp.v2.ExcludeInfoTypes" do
19
+ repeated :info_types, :message, 1, "google.privacy.dlp.v2.InfoType"
20
+ end
21
+ add_message "google.privacy.dlp.v2.ExclusionRule" do
22
+ optional :matching_type, :enum, 4, "google.privacy.dlp.v2.MatchingType"
23
+ oneof :type do
24
+ optional :dictionary, :message, 1, "google.privacy.dlp.v2.CustomInfoType.Dictionary"
25
+ optional :regex, :message, 2, "google.privacy.dlp.v2.CustomInfoType.Regex"
26
+ optional :exclude_info_types, :message, 3, "google.privacy.dlp.v2.ExcludeInfoTypes"
27
+ end
28
+ end
29
+ add_message "google.privacy.dlp.v2.InspectionRule" do
30
+ oneof :type do
31
+ optional :hotword_rule, :message, 1, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule"
32
+ optional :exclusion_rule, :message, 2, "google.privacy.dlp.v2.ExclusionRule"
33
+ end
34
+ end
35
+ add_message "google.privacy.dlp.v2.InspectionRuleSet" do
36
+ repeated :info_types, :message, 1, "google.privacy.dlp.v2.InfoType"
37
+ repeated :rules, :message, 2, "google.privacy.dlp.v2.InspectionRule"
38
+ end
18
39
  add_message "google.privacy.dlp.v2.InspectConfig" do
19
40
  repeated :info_types, :message, 1, "google.privacy.dlp.v2.InfoType"
20
41
  optional :min_likelihood, :enum, 2, "google.privacy.dlp.v2.Likelihood"
@@ -23,6 +44,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
23
44
  optional :exclude_info_types, :bool, 5
24
45
  repeated :custom_info_types, :message, 6, "google.privacy.dlp.v2.CustomInfoType"
25
46
  repeated :content_options, :enum, 8, "google.privacy.dlp.v2.ContentOption"
47
+ repeated :rule_set, :message, 10, "google.privacy.dlp.v2.InspectionRuleSet"
26
48
  end
27
49
  add_message "google.privacy.dlp.v2.InspectConfig.FindingLimits" do
28
50
  optional :max_findings_per_item, :int32, 1
@@ -664,6 +686,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
664
686
  optional :parent, :string, 1
665
687
  optional :page_token, :string, 2
666
688
  optional :page_size, :int32, 3
689
+ optional :order_by, :string, 4
667
690
  end
668
691
  add_message "google.privacy.dlp.v2.ListInspectTemplatesResponse" do
669
692
  repeated :inspect_templates, :message, 1, "google.privacy.dlp.v2.InspectTemplate"
@@ -771,6 +794,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
771
794
  optional :parent, :string, 1
772
795
  optional :page_token, :string, 2
773
796
  optional :page_size, :int32, 3
797
+ optional :order_by, :string, 4
774
798
  end
775
799
  add_message "google.privacy.dlp.v2.ListDeidentifyTemplatesResponse" do
776
800
  repeated :deidentify_templates, :message, 1, "google.privacy.dlp.v2.DeidentifyTemplate"
@@ -821,6 +845,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
821
845
  optional :parent, :string, 1
822
846
  optional :page_token, :string, 2
823
847
  optional :page_size, :int32, 3
848
+ optional :order_by, :string, 4
824
849
  end
825
850
  add_message "google.privacy.dlp.v2.ListStoredInfoTypesResponse" do
826
851
  repeated :stored_info_types, :message, 1, "google.privacy.dlp.v2.StoredInfoType"
@@ -834,6 +859,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
834
859
  value :CONTENT_TEXT, 1
835
860
  value :CONTENT_IMAGE, 2
836
861
  end
862
+ add_enum "google.privacy.dlp.v2.MatchingType" do
863
+ value :MATCHING_TYPE_UNSPECIFIED, 0
864
+ value :MATCHING_TYPE_FULL_MATCH, 1
865
+ value :MATCHING_TYPE_PARTIAL_MATCH, 2
866
+ value :MATCHING_TYPE_INVERSE_MATCH, 3
867
+ end
837
868
  add_enum "google.privacy.dlp.v2.InfoTypeSupportedBy" do
838
869
  value :ENUM_TYPE_UNSPECIFIED, 0
839
870
  value :INSPECT, 1
@@ -867,6 +898,10 @@ module Google
867
898
  module Privacy
868
899
  module Dlp
869
900
  module V2
901
+ ExcludeInfoTypes = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ExcludeInfoTypes").msgclass
902
+ ExclusionRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ExclusionRule").msgclass
903
+ InspectionRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectionRule").msgclass
904
+ InspectionRuleSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectionRuleSet").msgclass
870
905
  InspectConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectConfig").msgclass
871
906
  InspectConfig::FindingLimits = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectConfig.FindingLimits").msgclass
872
907
  InspectConfig::FindingLimits::InfoTypeLimit = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit").msgclass
@@ -1023,6 +1058,7 @@ module Google
1023
1058
  ListStoredInfoTypesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ListStoredInfoTypesResponse").msgclass
1024
1059
  DeleteStoredInfoTypeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DeleteStoredInfoTypeRequest").msgclass
1025
1060
  ContentOption = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ContentOption").enummodule
1061
+ MatchingType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.MatchingType").enummodule
1026
1062
  InfoTypeSupportedBy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeSupportedBy").enummodule
1027
1063
  RelationalOperator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RelationalOperator").enummodule
1028
1064
  DlpJobType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DlpJobType").enummodule
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/privacy/dlp/v2/dlp.proto for package 'google.privacy.dlp.v2'
3
3
  # Original file comments:
4
- # Copyright 2018 Google LLC
4
+ # Copyright 2018 Google LLC.
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,6 +15,7 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
+ #
18
19
 
19
20
 
20
21
  require 'grpc'
@@ -18,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType"
19
19
  optional :likelihood, :enum, 6, "google.privacy.dlp.v2.Likelihood"
20
20
  repeated :detection_rules, :message, 7, "google.privacy.dlp.v2.CustomInfoType.DetectionRule"
21
+ optional :exclusion_type, :enum, 8, "google.privacy.dlp.v2.CustomInfoType.ExclusionType"
21
22
  oneof :type do
22
23
  optional :dictionary, :message, 2, "google.privacy.dlp.v2.CustomInfoType.Dictionary"
23
24
  optional :regex, :message, 3, "google.privacy.dlp.v2.CustomInfoType.Regex"
@@ -59,6 +60,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
59
60
  optional :proximity, :message, 2, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity"
60
61
  optional :likelihood_adjustment, :message, 3, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment"
61
62
  end
63
+ add_enum "google.privacy.dlp.v2.CustomInfoType.ExclusionType" do
64
+ value :EXCLUSION_TYPE_UNSPECIFIED, 0
65
+ value :EXCLUSION_TYPE_EXCLUDE, 1
66
+ end
62
67
  add_message "google.privacy.dlp.v2.FieldId" do
63
68
  optional :name, :string, 1
64
69
  end
@@ -187,6 +192,7 @@ module Google
187
192
  CustomInfoType::DetectionRule::Proximity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity").msgclass
188
193
  CustomInfoType::DetectionRule::LikelihoodAdjustment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment").msgclass
189
194
  CustomInfoType::DetectionRule::HotwordRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule").msgclass
195
+ CustomInfoType::ExclusionType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.ExclusionType").enummodule
190
196
  FieldId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.FieldId").msgclass
191
197
  PartitionId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.PartitionId").msgclass
192
198
  KindExpression = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.KindExpression").msgclass
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.6.2
4
+ version: 0.7.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-09-21 00:00:00.000000000 Z
11
+ date: 2018-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax