google-cloud-dlp 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +8 -0
- data/LICENSE +201 -0
- data/README.md +48 -0
- data/lib/google/cloud/dlp.rb +126 -0
- data/lib/google/cloud/dlp/credentials.rb +30 -0
- data/lib/google/cloud/dlp/v2beta1.rb +119 -0
- data/lib/google/cloud/dlp/v2beta1/dlp_service_client.rb +638 -0
- data/lib/google/cloud/dlp/v2beta1/dlp_service_client_config.json +66 -0
- data/lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb +1241 -0
- data/lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/storage.rb +258 -0
- data/lib/google/cloud/dlp/v2beta1/doc/google/protobuf/any.rb +124 -0
- data/lib/google/cloud/dlp/v2beta1/doc/google/protobuf/timestamp.rb +106 -0
- data/lib/google/cloud/dlp/v2beta1/doc/google/rpc/status.rb +83 -0
- data/lib/google/cloud/dlp/v2beta1/doc/google/type/date.rb +37 -0
- data/lib/google/cloud/dlp/v2beta1/doc/google/type/timeofday.rb +36 -0
- data/lib/google/cloud/dlp/v2beta1/doc/overview.rb +71 -0
- data/lib/google/privacy/dlp/v2beta1/dlp_pb.rb +562 -0
- data/lib/google/privacy/dlp/v2beta1/dlp_services_pb.rb +69 -0
- data/lib/google/privacy/dlp/v2beta1/storage_pb.rb +130 -0
- metadata +118 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/privacy/dlp/v2beta1/dlp.proto for package 'google.privacy.dlp.v2beta1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2017 Google Inc.
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/privacy/dlp/v2beta1/dlp_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Privacy
|
24
|
+
module Dlp
|
25
|
+
module V2beta1
|
26
|
+
module DlpService
|
27
|
+
# The DLP API is a service that allows clients
|
28
|
+
# to detect the presence of Personally Identifiable Information (PII) and other
|
29
|
+
# privacy-sensitive data in user-supplied, unstructured data streams, like text
|
30
|
+
# blocks or images.
|
31
|
+
# The service also includes methods for sensitive data redaction and
|
32
|
+
# scheduling of data scans on Google Cloud Platform based data sets.
|
33
|
+
class Service
|
34
|
+
|
35
|
+
include GRPC::GenericService
|
36
|
+
|
37
|
+
self.marshal_class_method = :encode
|
38
|
+
self.unmarshal_class_method = :decode
|
39
|
+
self.service_name = 'google.privacy.dlp.v2beta1.DlpService'
|
40
|
+
|
41
|
+
# Finds potentially sensitive info in a list of strings.
|
42
|
+
# This method has limits on input size, processing time, and output size.
|
43
|
+
rpc :InspectContent, InspectContentRequest, InspectContentResponse
|
44
|
+
# Redacts potentially sensitive info from a list of strings.
|
45
|
+
# This method has limits on input size, processing time, and output size.
|
46
|
+
rpc :RedactContent, RedactContentRequest, RedactContentResponse
|
47
|
+
# De-identifies potentially sensitive info from a list of strings.
|
48
|
+
# This method has limits on input size and output size.
|
49
|
+
rpc :DeidentifyContent, DeidentifyContentRequest, DeidentifyContentResponse
|
50
|
+
# Schedules a job scanning content in a Google Cloud Platform data
|
51
|
+
# repository.
|
52
|
+
rpc :CreateInspectOperation, CreateInspectOperationRequest, Google::Longrunning::Operation
|
53
|
+
# Schedules a job to compute risk analysis metrics over content in a Google
|
54
|
+
# Cloud Platform repository.
|
55
|
+
rpc :AnalyzeDataSourceRisk, AnalyzeDataSourceRiskRequest, Google::Longrunning::Operation
|
56
|
+
# Returns list of results for given inspect operation result set id.
|
57
|
+
rpc :ListInspectFindings, ListInspectFindingsRequest, ListInspectFindingsResponse
|
58
|
+
# Returns sensitive information types for given category.
|
59
|
+
rpc :ListInfoTypes, ListInfoTypesRequest, ListInfoTypesResponse
|
60
|
+
# Returns the list of root categories of sensitive information.
|
61
|
+
rpc :ListRootCategories, ListRootCategoriesRequest, ListRootCategoriesResponse
|
62
|
+
end
|
63
|
+
|
64
|
+
Stub = Service.rpc_stub_class
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,130 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/privacy/dlp/v2beta1/storage.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_message "google.privacy.dlp.v2beta1.InfoType" do
|
10
|
+
optional :name, :string, 1
|
11
|
+
end
|
12
|
+
add_message "google.privacy.dlp.v2beta1.CustomInfoType" do
|
13
|
+
optional :info_type, :message, 1, "google.privacy.dlp.v2beta1.InfoType"
|
14
|
+
oneof :type do
|
15
|
+
optional :dictionary, :message, 2, "google.privacy.dlp.v2beta1.CustomInfoType.Dictionary"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
add_message "google.privacy.dlp.v2beta1.CustomInfoType.Dictionary" do
|
19
|
+
oneof :source do
|
20
|
+
optional :word_list, :message, 1, "google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
add_message "google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList" do
|
24
|
+
repeated :words, :string, 1
|
25
|
+
end
|
26
|
+
add_message "google.privacy.dlp.v2beta1.FieldId" do
|
27
|
+
optional :column_name, :string, 1
|
28
|
+
end
|
29
|
+
add_message "google.privacy.dlp.v2beta1.PartitionId" do
|
30
|
+
optional :project_id, :string, 2
|
31
|
+
optional :namespace_id, :string, 4
|
32
|
+
end
|
33
|
+
add_message "google.privacy.dlp.v2beta1.KindExpression" do
|
34
|
+
optional :name, :string, 1
|
35
|
+
end
|
36
|
+
add_message "google.privacy.dlp.v2beta1.PropertyReference" do
|
37
|
+
optional :name, :string, 2
|
38
|
+
end
|
39
|
+
add_message "google.privacy.dlp.v2beta1.Projection" do
|
40
|
+
optional :property, :message, 1, "google.privacy.dlp.v2beta1.PropertyReference"
|
41
|
+
end
|
42
|
+
add_message "google.privacy.dlp.v2beta1.DatastoreOptions" do
|
43
|
+
optional :partition_id, :message, 1, "google.privacy.dlp.v2beta1.PartitionId"
|
44
|
+
optional :kind, :message, 2, "google.privacy.dlp.v2beta1.KindExpression"
|
45
|
+
repeated :projection, :message, 3, "google.privacy.dlp.v2beta1.Projection"
|
46
|
+
end
|
47
|
+
add_message "google.privacy.dlp.v2beta1.CloudStorageOptions" do
|
48
|
+
optional :file_set, :message, 1, "google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet"
|
49
|
+
end
|
50
|
+
add_message "google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet" do
|
51
|
+
optional :url, :string, 1
|
52
|
+
end
|
53
|
+
add_message "google.privacy.dlp.v2beta1.CloudStoragePath" do
|
54
|
+
optional :path, :string, 1
|
55
|
+
end
|
56
|
+
add_message "google.privacy.dlp.v2beta1.BigQueryOptions" do
|
57
|
+
optional :table_reference, :message, 1, "google.privacy.dlp.v2beta1.BigQueryTable"
|
58
|
+
repeated :identifying_fields, :message, 2, "google.privacy.dlp.v2beta1.FieldId"
|
59
|
+
end
|
60
|
+
add_message "google.privacy.dlp.v2beta1.StorageConfig" do
|
61
|
+
oneof :type do
|
62
|
+
optional :datastore_options, :message, 2, "google.privacy.dlp.v2beta1.DatastoreOptions"
|
63
|
+
optional :cloud_storage_options, :message, 3, "google.privacy.dlp.v2beta1.CloudStorageOptions"
|
64
|
+
optional :big_query_options, :message, 4, "google.privacy.dlp.v2beta1.BigQueryOptions"
|
65
|
+
end
|
66
|
+
end
|
67
|
+
add_message "google.privacy.dlp.v2beta1.CloudStorageKey" do
|
68
|
+
optional :file_path, :string, 1
|
69
|
+
optional :start_offset, :int64, 2
|
70
|
+
end
|
71
|
+
add_message "google.privacy.dlp.v2beta1.DatastoreKey" do
|
72
|
+
optional :entity_key, :message, 1, "google.privacy.dlp.v2beta1.Key"
|
73
|
+
end
|
74
|
+
add_message "google.privacy.dlp.v2beta1.Key" do
|
75
|
+
optional :partition_id, :message, 1, "google.privacy.dlp.v2beta1.PartitionId"
|
76
|
+
repeated :path, :message, 2, "google.privacy.dlp.v2beta1.Key.PathElement"
|
77
|
+
end
|
78
|
+
add_message "google.privacy.dlp.v2beta1.Key.PathElement" do
|
79
|
+
optional :kind, :string, 1
|
80
|
+
oneof :id_type do
|
81
|
+
optional :id, :int64, 2
|
82
|
+
optional :name, :string, 3
|
83
|
+
end
|
84
|
+
end
|
85
|
+
add_message "google.privacy.dlp.v2beta1.RecordKey" do
|
86
|
+
oneof :type do
|
87
|
+
optional :cloud_storage_key, :message, 1, "google.privacy.dlp.v2beta1.CloudStorageKey"
|
88
|
+
optional :datastore_key, :message, 2, "google.privacy.dlp.v2beta1.DatastoreKey"
|
89
|
+
end
|
90
|
+
end
|
91
|
+
add_message "google.privacy.dlp.v2beta1.BigQueryTable" do
|
92
|
+
optional :project_id, :string, 1
|
93
|
+
optional :dataset_id, :string, 2
|
94
|
+
optional :table_id, :string, 3
|
95
|
+
end
|
96
|
+
add_message "google.privacy.dlp.v2beta1.EntityId" do
|
97
|
+
optional :field, :message, 1, "google.privacy.dlp.v2beta1.FieldId"
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
module Google
|
102
|
+
module Privacy
|
103
|
+
module Dlp
|
104
|
+
module V2beta1
|
105
|
+
InfoType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.InfoType").msgclass
|
106
|
+
CustomInfoType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.CustomInfoType").msgclass
|
107
|
+
CustomInfoType::Dictionary = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.CustomInfoType.Dictionary").msgclass
|
108
|
+
CustomInfoType::Dictionary::WordList = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList").msgclass
|
109
|
+
FieldId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.FieldId").msgclass
|
110
|
+
PartitionId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.PartitionId").msgclass
|
111
|
+
KindExpression = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.KindExpression").msgclass
|
112
|
+
PropertyReference = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.PropertyReference").msgclass
|
113
|
+
Projection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.Projection").msgclass
|
114
|
+
DatastoreOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.DatastoreOptions").msgclass
|
115
|
+
CloudStorageOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.CloudStorageOptions").msgclass
|
116
|
+
CloudStorageOptions::FileSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet").msgclass
|
117
|
+
CloudStoragePath = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.CloudStoragePath").msgclass
|
118
|
+
BigQueryOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.BigQueryOptions").msgclass
|
119
|
+
StorageConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.StorageConfig").msgclass
|
120
|
+
CloudStorageKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.CloudStorageKey").msgclass
|
121
|
+
DatastoreKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.DatastoreKey").msgclass
|
122
|
+
Key = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.Key").msgclass
|
123
|
+
Key::PathElement = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.Key.PathElement").msgclass
|
124
|
+
RecordKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.RecordKey").msgclass
|
125
|
+
BigQueryTable = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.BigQueryTable").msgclass
|
126
|
+
EntityId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2beta1.EntityId").msgclass
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
metadata
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: google-cloud-dlp
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Google LLC
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-12-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: google-gax
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.10'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5.10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "<="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.35.1
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "<="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.35.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: simplecov
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.9'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.9'
|
69
|
+
description: google-cloud-dlp is the official library for DLP API.
|
70
|
+
email: googleapis-packages@google.com
|
71
|
+
executables: []
|
72
|
+
extensions: []
|
73
|
+
extra_rdoc_files: []
|
74
|
+
files:
|
75
|
+
- ".yardopts"
|
76
|
+
- LICENSE
|
77
|
+
- README.md
|
78
|
+
- lib/google/cloud/dlp.rb
|
79
|
+
- lib/google/cloud/dlp/credentials.rb
|
80
|
+
- lib/google/cloud/dlp/v2beta1.rb
|
81
|
+
- lib/google/cloud/dlp/v2beta1/dlp_service_client.rb
|
82
|
+
- lib/google/cloud/dlp/v2beta1/dlp_service_client_config.json
|
83
|
+
- lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb
|
84
|
+
- lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/storage.rb
|
85
|
+
- lib/google/cloud/dlp/v2beta1/doc/google/protobuf/any.rb
|
86
|
+
- lib/google/cloud/dlp/v2beta1/doc/google/protobuf/timestamp.rb
|
87
|
+
- lib/google/cloud/dlp/v2beta1/doc/google/rpc/status.rb
|
88
|
+
- lib/google/cloud/dlp/v2beta1/doc/google/type/date.rb
|
89
|
+
- lib/google/cloud/dlp/v2beta1/doc/google/type/timeofday.rb
|
90
|
+
- lib/google/cloud/dlp/v2beta1/doc/overview.rb
|
91
|
+
- lib/google/privacy/dlp/v2beta1/dlp_pb.rb
|
92
|
+
- lib/google/privacy/dlp/v2beta1/dlp_services_pb.rb
|
93
|
+
- lib/google/privacy/dlp/v2beta1/storage_pb.rb
|
94
|
+
homepage: https://github.com/googleapis/googleapis
|
95
|
+
licenses:
|
96
|
+
- Apache-2.0
|
97
|
+
metadata: {}
|
98
|
+
post_install_message:
|
99
|
+
rdoc_options: []
|
100
|
+
require_paths:
|
101
|
+
- lib
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 2.0.0
|
107
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
requirements: []
|
113
|
+
rubyforge_project:
|
114
|
+
rubygems_version: 2.7.4
|
115
|
+
signing_key:
|
116
|
+
specification_version: 4
|
117
|
+
summary: API Client library for DLP API
|
118
|
+
test_files: []
|