google-cloud-dlp 0.3.0 → 0.4.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.
@@ -1,69 +0,0 @@
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
@@ -1,130 +0,0 @@
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