google-cloud-dlp 0.9.1 → 0.10.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: 559657b5842795388714a124ef772a8ed27dfa5ba29e83825e67ddc34c50f58e
4
- data.tar.gz: 06dcee2a5d5074147f2d414454fe7e067d28db8f123c8b0b80c4e40398ad65b2
3
+ metadata.gz: dd11c8befcf47d806e917e019bcea21e9d283a1de9d7b984e23f7626ffe5bcd6
4
+ data.tar.gz: 0dc943f89679d615723caa2502386432954e8f37afa482f6d23aef65c77d7dec
5
5
  SHA512:
6
- metadata.gz: e7c7a8631d727a848f421e29597969a91417a9cd027bd6f8ef3933f38f995dc7af7b948c8e313f789ec8f663d6ad38f92a1a23be827c4471876d8e92b6bf06e9
7
- data.tar.gz: f43f65d72a13dd210906412363127f2bbec6ea868a683760e615af16aae2a047a48c2ea25451438e3d1b1b64ca85db4dfb3c0da5886921057deaec226fc2ba8c
6
+ metadata.gz: 1215f4fab7ca4984d893d5495cd6035e2ff2a268caa4fb3199b325909dc43a86986ab3d615687a73a3d1c934bbfb975baf90fc9298c220927880d809a66c2207
7
+ data.tar.gz: 441e4e35124d90b5264a4d6f61d330549742e7aab9ce9e57c901a9e555dc37adcc3eff59d406edc3490df19b6c209ff8764710efffb7686dfbf5e116f64dd5d7
@@ -27,6 +27,7 @@ require "google/gax"
27
27
 
28
28
  require "google/privacy/dlp/v2/dlp_pb"
29
29
  require "google/cloud/dlp/v2/credentials"
30
+ require "google/cloud/dlp/version"
30
31
 
31
32
  module Google
32
33
  module Cloud
@@ -319,7 +320,7 @@ module Google
319
320
  updater_proc = credentials.updater_proc
320
321
  end
321
322
 
322
- package_version = Gem.loaded_specs['google-cloud-dlp'].version.version
323
+ package_version = Google::Cloud::Dlp::VERSION
323
324
 
324
325
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
325
326
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -1443,8 +1444,12 @@ module Google
1443
1444
  # * `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
1444
1445
  # * `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
1445
1446
  # * `trigger_name` - The resource name of the trigger that created job.
1447
+ # * 'end_time` - Corresponds to time the job finished.
1448
+ # * 'start_time` - Corresponds to time the job finished.
1446
1449
  # * Supported fields for risk analysis jobs:
1447
1450
  # * `state` - RUNNING|CANCELED|FINISHED|FAILED
1451
+ # * 'end_time` - Corresponds to time the job finished.
1452
+ # * 'start_time` - Corresponds to time the job finished.
1448
1453
  # * The operator must be `=` or `!=`.
1449
1454
  #
1450
1455
  # Examples:
@@ -1452,6 +1457,7 @@ module Google
1452
1457
  # * inspected_storage = cloud_storage AND state = done
1453
1458
  # * inspected_storage = cloud_storage OR inspected_storage = bigquery
1454
1459
  # * inspected_storage = cloud_storage AND (state = done OR state = canceled)
1460
+ # * end_time > \"2017-12-12T00:00:00+00:00\"
1455
1461
  #
1456
1462
  # The length of this field should be no more than 500 characters.
1457
1463
  # @param page_size [Integer]
@@ -1950,7 +1950,10 @@ module Google
1950
1950
  # @return [Google::Privacy::Dlp::V2::OutputStorageConfig]
1951
1951
  class SaveFindings; end
1952
1952
 
1953
- # Publish the results of a DlpJob to a pub sub channel.
1953
+ # Publish a message into given Pub/Sub topic when DlpJob has completed. The
1954
+ # message contains a single field, `DlpJobName`, which is equal to the
1955
+ # finished job's
1956
+ # [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
1954
1957
  # Compatible with: Inspect, Risk
1955
1958
  # @!attribute [rw] topic
1956
1959
  # @return [String]
@@ -2210,8 +2213,7 @@ module Google
2210
2213
  # template.
2211
2214
  # @!attribute [rw] actions
2212
2215
  # @return [Array<Google::Privacy::Dlp::V2::Action>]
2213
- # Actions to execute at the completion of the job. Are executed in the order
2214
- # provided.
2216
+ # Actions to execute at the completion of the job.
2215
2217
  class InspectJobConfig; end
2216
2218
 
2217
2219
  # Combines all of the information about a DLP job.
@@ -2291,8 +2293,12 @@ module Google
2291
2293
  # * `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
2292
2294
  # * `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
2293
2295
  # * `trigger_name` - The resource name of the trigger that created job.
2296
+ # * 'end_time` - Corresponds to time the job finished.
2297
+ # * 'start_time` - Corresponds to time the job finished.
2294
2298
  # * Supported fields for risk analysis jobs:
2295
2299
  # * `state` - RUNNING|CANCELED|FINISHED|FAILED
2300
+ # * 'end_time` - Corresponds to time the job finished.
2301
+ # * 'start_time` - Corresponds to time the job finished.
2296
2302
  # * The operator must be `=` or `!=`.
2297
2303
  #
2298
2304
  # Examples:
@@ -2300,6 +2306,7 @@ module Google
2300
2306
  # * inspected_storage = cloud_storage AND state = done
2301
2307
  # * inspected_storage = cloud_storage OR inspected_storage = bigquery
2302
2308
  # * inspected_storage = cloud_storage AND (state = done OR state = canceled)
2309
+ # * end_time > \"2017-12-12T00:00:00+00:00\"
2303
2310
  #
2304
2311
  # The length of this field should be no more than 500 characters.
2305
2312
  # @!attribute [rw] page_size
@@ -2456,6 +2463,12 @@ module Google
2456
2463
  # Field in a BigQuery table where each cell represents a dictionary phrase.
2457
2464
  class LargeCustomDictionaryConfig; end
2458
2465
 
2466
+ # Summary statistics of a custom dictionary.
2467
+ # @!attribute [rw] approx_num_phrases
2468
+ # @return [Integer]
2469
+ # Approximate number of distinct phrases in the dictionary.
2470
+ class LargeCustomDictionaryStats; end
2471
+
2459
2472
  # Configuration for a StoredInfoType.
2460
2473
  # @!attribute [rw] display_name
2461
2474
  # @return [String]
@@ -2468,6 +2481,12 @@ module Google
2468
2481
  # StoredInfoType where findings are defined by a dictionary of phrases.
2469
2482
  class StoredInfoTypeConfig; end
2470
2483
 
2484
+ # Statistics for a StoredInfoType.
2485
+ # @!attribute [rw] large_custom_dictionary
2486
+ # @return [Google::Privacy::Dlp::V2::LargeCustomDictionaryStats]
2487
+ # StoredInfoType where findings are defined by a dictionary of phrases.
2488
+ class StoredInfoTypeStats; end
2489
+
2471
2490
  # Version of a StoredInfoType, including the configuration used to build it,
2472
2491
  # create timestamp, and current state.
2473
2492
  # @!attribute [rw] config
@@ -2494,6 +2513,9 @@ module Google
2494
2513
  # use the UpdateStoredInfoType API method to create another version of the
2495
2514
  # storedInfoType to continue using it, reusing the same `config` if it was
2496
2515
  # not the source of the error.
2516
+ # @!attribute [rw] stats
2517
+ # @return [Google::Privacy::Dlp::V2::StoredInfoTypeStats]
2518
+ # Statistics about this storedInfoType version.
2497
2519
  class StoredInfoTypeVersion; end
2498
2520
 
2499
2521
  # StoredInfoType resource message that contains information about the current
@@ -0,0 +1,22 @@
1
+ # Copyright 2019 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ module Google
17
+ module Cloud
18
+ module Dlp
19
+ VERSION = "0.10.0".freeze
20
+ end
21
+ end
22
+ end
@@ -5,7 +5,7 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
- require 'google/api/resource_pb'
8
+ require 'google/api/client_pb'
9
9
  require 'google/privacy/dlp/v2/storage_pb'
10
10
  require 'google/protobuf/duration_pb'
11
11
  require 'google/protobuf/empty_pb'
@@ -826,6 +826,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
826
826
  optional :big_query_field, :message, 3, "google.privacy.dlp.v2.BigQueryField"
827
827
  end
828
828
  end
829
+ add_message "google.privacy.dlp.v2.LargeCustomDictionaryStats" do
830
+ optional :approx_num_phrases, :int64, 1
831
+ end
829
832
  add_message "google.privacy.dlp.v2.StoredInfoTypeConfig" do
830
833
  optional :display_name, :string, 1
831
834
  optional :description, :string, 2
@@ -833,11 +836,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
833
836
  optional :large_custom_dictionary, :message, 3, "google.privacy.dlp.v2.LargeCustomDictionaryConfig"
834
837
  end
835
838
  end
839
+ add_message "google.privacy.dlp.v2.StoredInfoTypeStats" do
840
+ oneof :type do
841
+ optional :large_custom_dictionary, :message, 1, "google.privacy.dlp.v2.LargeCustomDictionaryStats"
842
+ end
843
+ end
836
844
  add_message "google.privacy.dlp.v2.StoredInfoTypeVersion" do
837
845
  optional :config, :message, 1, "google.privacy.dlp.v2.StoredInfoTypeConfig"
838
846
  optional :create_time, :message, 2, "google.protobuf.Timestamp"
839
847
  optional :state, :enum, 3, "google.privacy.dlp.v2.StoredInfoTypeState"
840
848
  repeated :errors, :message, 4, "google.privacy.dlp.v2.Error"
849
+ optional :stats, :message, 5, "google.privacy.dlp.v2.StoredInfoTypeStats"
841
850
  end
842
851
  add_message "google.privacy.dlp.v2.StoredInfoType" do
843
852
  optional :name, :string, 1
@@ -1067,7 +1076,9 @@ module Google
1067
1076
  ListDeidentifyTemplatesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ListDeidentifyTemplatesResponse").msgclass
1068
1077
  DeleteDeidentifyTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest").msgclass
1069
1078
  LargeCustomDictionaryConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.LargeCustomDictionaryConfig").msgclass
1079
+ LargeCustomDictionaryStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.LargeCustomDictionaryStats").msgclass
1070
1080
  StoredInfoTypeConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StoredInfoTypeConfig").msgclass
1081
+ StoredInfoTypeStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StoredInfoTypeStats").msgclass
1071
1082
  StoredInfoTypeVersion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StoredInfoTypeVersion").msgclass
1072
1083
  StoredInfoType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StoredInfoType").msgclass
1073
1084
  CreateStoredInfoTypeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CreateStoredInfoTypeRequest").msgclass
@@ -5,7 +5,6 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
- require 'google/api/resource_pb'
9
8
  require 'google/protobuf/timestamp_pb'
10
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
10
  add_message "google.privacy.dlp.v2.InfoType" do
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.9.1
4
+ version: 0.10.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: 2019-04-30 00:00:00.000000000 Z
11
+ date: 2019-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -140,6 +140,7 @@ files:
140
140
  - lib/google/cloud/dlp/v2/doc/google/rpc/status.rb
141
141
  - lib/google/cloud/dlp/v2/doc/google/type/date.rb
142
142
  - lib/google/cloud/dlp/v2/doc/google/type/timeofday.rb
143
+ - lib/google/cloud/dlp/version.rb
143
144
  - lib/google/privacy/dlp/v2/dlp_pb.rb
144
145
  - lib/google/privacy/dlp/v2/dlp_services_pb.rb
145
146
  - lib/google/privacy/dlp/v2/storage_pb.rb