google-cloud-dlp-v2 0.8.0 → 0.10.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1001ba85c933730e5caad675f6d368f2c473970d29fc13e1f5c7530fd6d8184
4
- data.tar.gz: e09627fd688a5f42fd79ed0b6455aa48ca335c5fb2e6916697230421d5a84b66
3
+ metadata.gz: 7f16fd4beb0176fd2449a44c7cd184afc3b8eab4ef79eae1827f86401c9447ac
4
+ data.tar.gz: cbc46186ab647aaf8a5f6e105de273a348c2a7a9cdd8acaf2ed267d45b6b1d48
5
5
  SHA512:
6
- metadata.gz: b6441e1df665f491651e6b63e156bef3b54745e5206f2e39cfd5cee14340fa39546cbe7f8ca6b32510796ac17f8a420a58989b04add47289209980c9e8927018
7
- data.tar.gz: 25e84ffb76a227844843f04b5f7513236b7bb719aaa2f6ff5637d118d2d0b87e962488c531f4e8e14cd77c37ca1a249ddac3873bde8070a86e23841ec6f1a338
6
+ metadata.gz: efe45c70b041e6e8d33eb1e9dad223ad6b513ebe5886aac251540ff884340f81d2fd270b8ccc5b5a2dd59cd3d49585aa3f9d70ac30894027d70da3f23e21b5c8
7
+ data.tar.gz: 5bfb839327ba5195b749c25499605da5e2269d645a0bba750944c836dd5f028b71dabcbad092cb84106810537284e2b4991b66c6f15ad04dd23c0ad861abaaa8
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Cloud Data Loss Prevention (DLP) V2 API
2
+ --title="Cloud Data Loss Prevention (DLP) V2 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Dlp::V2::InspectContentRequest.new # (request fields
37
37
  response = client.inspect_content request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-dlp-v2/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/dlp)
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.8.0"
24
+ VERSION = "0.10.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/dlp/v2"
29
31
  # client = ::Google::Cloud::Dlp::V2::DlpService::Client.new
30
32
  #
@@ -1,6 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/privacy/dlp/v2/dlp.proto
3
3
 
4
+ require 'google/api/annotations_pb'
4
5
  require 'google/api/client_pb'
5
6
  require 'google/api/field_behavior_pb'
6
7
  require 'google/api/resource_pb'
@@ -13,7 +14,6 @@ require 'google/rpc/status_pb'
13
14
  require 'google/type/date_pb'
14
15
  require 'google/type/dayofweek_pb'
15
16
  require 'google/type/timeofday_pb'
16
- require 'google/api/annotations_pb'
17
17
  require 'google/protobuf'
18
18
 
19
19
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -72,6 +72,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
72
72
  value :TEXT_UTF8, 5
73
73
  value :WORD_DOCUMENT, 7
74
74
  value :PDF, 8
75
+ value :POWERPOINT_DOCUMENT, 9
76
+ value :EXCEL_DOCUMENT, 10
75
77
  value :AVRO, 11
76
78
  value :CSV, 12
77
79
  value :TSV, 13
@@ -832,6 +834,45 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
832
834
  optional :inspect_template_name, :string, 3
833
835
  repeated :actions, :message, 4, "google.privacy.dlp.v2.Action"
834
836
  end
837
+ add_message "google.privacy.dlp.v2.DataProfileAction" do
838
+ oneof :action do
839
+ optional :export_data, :message, 1, "google.privacy.dlp.v2.DataProfileAction.Export"
840
+ optional :pub_sub_notification, :message, 2, "google.privacy.dlp.v2.DataProfileAction.PubSubNotification"
841
+ end
842
+ end
843
+ add_message "google.privacy.dlp.v2.DataProfileAction.Export" do
844
+ optional :profile_table, :message, 1, "google.privacy.dlp.v2.BigQueryTable"
845
+ end
846
+ add_message "google.privacy.dlp.v2.DataProfileAction.PubSubNotification" do
847
+ optional :topic, :string, 1
848
+ optional :event, :enum, 2, "google.privacy.dlp.v2.DataProfileAction.EventType"
849
+ optional :pubsub_condition, :message, 3, "google.privacy.dlp.v2.DataProfilePubSubCondition"
850
+ optional :detail_of_message, :enum, 4, "google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel"
851
+ end
852
+ add_enum "google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel" do
853
+ value :DETAIL_LEVEL_UNSPECIFIED, 0
854
+ value :TABLE_PROFILE, 1
855
+ value :RESOURCE_NAME, 2
856
+ end
857
+ add_enum "google.privacy.dlp.v2.DataProfileAction.EventType" do
858
+ value :EVENT_TYPE_UNSPECIFIED, 0
859
+ value :NEW_PROFILE, 1
860
+ value :CHANGED_PROFILE, 2
861
+ value :SCORE_INCREASED, 3
862
+ value :ERROR_CHANGED, 4
863
+ end
864
+ add_message "google.privacy.dlp.v2.DataProfileJobConfig" do
865
+ optional :location, :message, 1, "google.privacy.dlp.v2.DataProfileLocation"
866
+ optional :project_id, :string, 5
867
+ repeated :inspect_templates, :string, 7
868
+ repeated :data_profile_actions, :message, 6, "google.privacy.dlp.v2.DataProfileAction"
869
+ end
870
+ add_message "google.privacy.dlp.v2.DataProfileLocation" do
871
+ oneof :location do
872
+ optional :organization_id, :int64, 1
873
+ optional :folder_id, :int64, 2
874
+ end
875
+ end
835
876
  add_message "google.privacy.dlp.v2.DlpJob" do
836
877
  optional :name, :string, 1
837
878
  optional :type, :enum, 2, "google.privacy.dlp.v2.DlpJobType"
@@ -993,6 +1034,97 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
993
1034
  end
994
1035
  add_message "google.privacy.dlp.v2.HybridInspectResponse" do
995
1036
  end
1037
+ add_message "google.privacy.dlp.v2.SensitivityScore" do
1038
+ optional :score, :enum, 1, "google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel"
1039
+ end
1040
+ add_enum "google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel" do
1041
+ value :SENSITIVITY_SCORE_UNSPECIFIED, 0
1042
+ value :SENSITIVITY_LOW, 10
1043
+ value :SENSITIVITY_MODERATE, 20
1044
+ value :SENSITIVITY_HIGH, 30
1045
+ end
1046
+ add_message "google.privacy.dlp.v2.DataRiskLevel" do
1047
+ optional :score, :enum, 1, "google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore"
1048
+ end
1049
+ add_enum "google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore" do
1050
+ value :RISK_SCORE_UNSPECIFIED, 0
1051
+ value :RISK_LOW, 10
1052
+ value :RISK_MODERATE, 20
1053
+ value :RISK_HIGH, 30
1054
+ end
1055
+ add_message "google.privacy.dlp.v2.DataProfileConfigSnapshot" do
1056
+ optional :inspect_config, :message, 2, "google.privacy.dlp.v2.InspectConfig"
1057
+ optional :data_profile_job, :message, 3, "google.privacy.dlp.v2.DataProfileJobConfig"
1058
+ end
1059
+ add_message "google.privacy.dlp.v2.TableDataProfile" do
1060
+ optional :name, :string, 1
1061
+ optional :project_data_profile, :string, 2
1062
+ optional :dataset_project_id, :string, 24
1063
+ optional :dataset_location, :string, 29
1064
+ optional :dataset_id, :string, 25
1065
+ optional :table_id, :string, 26
1066
+ optional :full_resource, :string, 3
1067
+ optional :profile_status, :message, 21, "google.privacy.dlp.v2.ProfileStatus"
1068
+ optional :state, :enum, 22, "google.privacy.dlp.v2.TableDataProfile.State"
1069
+ optional :sensitivity_score, :message, 5, "google.privacy.dlp.v2.SensitivityScore"
1070
+ optional :data_risk_level, :message, 6, "google.privacy.dlp.v2.DataRiskLevel"
1071
+ repeated :predicted_info_types, :message, 27, "google.privacy.dlp.v2.InfoTypeSummary"
1072
+ repeated :other_info_types, :message, 28, "google.privacy.dlp.v2.OtherInfoTypeSummary"
1073
+ optional :config_snapshot, :message, 7, "google.privacy.dlp.v2.DataProfileConfigSnapshot"
1074
+ optional :last_modified_time, :message, 8, "google.protobuf.Timestamp"
1075
+ optional :expiration_time, :message, 9, "google.protobuf.Timestamp"
1076
+ optional :scanned_column_count, :int64, 10
1077
+ optional :failed_column_count, :int64, 11
1078
+ optional :table_size_bytes, :int64, 12
1079
+ optional :row_count, :int64, 13
1080
+ optional :encryption_status, :enum, 14, "google.privacy.dlp.v2.EncryptionStatus"
1081
+ optional :resource_visibility, :enum, 15, "google.privacy.dlp.v2.ResourceVisibility"
1082
+ optional :profile_last_generated, :message, 16, "google.protobuf.Timestamp"
1083
+ map :resource_labels, :string, :string, 17
1084
+ optional :create_time, :message, 23, "google.protobuf.Timestamp"
1085
+ end
1086
+ add_enum "google.privacy.dlp.v2.TableDataProfile.State" do
1087
+ value :STATE_UNSPECIFIED, 0
1088
+ value :RUNNING, 1
1089
+ value :DONE, 2
1090
+ end
1091
+ add_message "google.privacy.dlp.v2.ProfileStatus" do
1092
+ optional :status, :message, 1, "google.rpc.Status"
1093
+ optional :timestamp, :message, 3, "google.protobuf.Timestamp"
1094
+ end
1095
+ add_message "google.privacy.dlp.v2.InfoTypeSummary" do
1096
+ optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType"
1097
+ end
1098
+ add_message "google.privacy.dlp.v2.OtherInfoTypeSummary" do
1099
+ optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType"
1100
+ end
1101
+ add_message "google.privacy.dlp.v2.DataProfilePubSubCondition" do
1102
+ optional :expressions, :message, 1, "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions"
1103
+ end
1104
+ add_message "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition" do
1105
+ oneof :value do
1106
+ optional :minimum_risk_score, :enum, 1, "google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket"
1107
+ optional :minimum_sensitivity_score, :enum, 2, "google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket"
1108
+ end
1109
+ end
1110
+ add_message "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions" do
1111
+ optional :logical_operator, :enum, 1, "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator"
1112
+ repeated :conditions, :message, 2, "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition"
1113
+ end
1114
+ add_enum "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator" do
1115
+ value :LOGICAL_OPERATOR_UNSPECIFIED, 0
1116
+ value :OR, 1
1117
+ value :AND, 2
1118
+ end
1119
+ add_enum "google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket" do
1120
+ value :PROFILE_SCORE_BUCKET_UNSPECIFIED, 0
1121
+ value :HIGH, 1
1122
+ value :MEDIUM_OR_HIGH, 2
1123
+ end
1124
+ add_message "google.privacy.dlp.v2.DataProfilePubSubMessage" do
1125
+ optional :profile, :message, 1, "google.privacy.dlp.v2.TableDataProfile"
1126
+ optional :event, :enum, 2, "google.privacy.dlp.v2.DataProfileAction.EventType"
1127
+ end
996
1128
  add_enum "google.privacy.dlp.v2.RelationalOperator" do
997
1129
  value :RELATIONAL_OPERATOR_UNSPECIFIED, 0
998
1130
  value :EQUAL_TO, 1
@@ -1035,6 +1167,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
1035
1167
  value :FAILED, 3
1036
1168
  value :INVALID, 4
1037
1169
  end
1170
+ add_enum "google.privacy.dlp.v2.ResourceVisibility" do
1171
+ value :RESOURCE_VISIBILITY_UNSPECIFIED, 0
1172
+ value :RESOURCE_VISIBILITY_PUBLIC, 10
1173
+ value :RESOURCE_VISIBILITY_RESTRICTED, 20
1174
+ end
1175
+ add_enum "google.privacy.dlp.v2.EncryptionStatus" do
1176
+ value :ENCRYPTION_STATUS_UNSPECIFIED, 0
1177
+ value :ENCRYPTION_GOOGLE_MANAGED, 1
1178
+ value :ENCRYPTION_CUSTOMER_MANAGED, 2
1179
+ end
1038
1180
  end
1039
1181
  end
1040
1182
 
@@ -1193,6 +1335,13 @@ module Google
1193
1335
  ListJobTriggersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ListJobTriggersResponse").msgclass
1194
1336
  DeleteJobTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DeleteJobTriggerRequest").msgclass
1195
1337
  InspectJobConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectJobConfig").msgclass
1338
+ DataProfileAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction").msgclass
1339
+ DataProfileAction::Export = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction.Export").msgclass
1340
+ DataProfileAction::PubSubNotification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction.PubSubNotification").msgclass
1341
+ DataProfileAction::PubSubNotification::DetailLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel").enummodule
1342
+ DataProfileAction::EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction.EventType").enummodule
1343
+ DataProfileJobConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileJobConfig").msgclass
1344
+ DataProfileLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileLocation").msgclass
1196
1345
  DlpJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DlpJob").msgclass
1197
1346
  DlpJob::JobState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DlpJob.JobState").enummodule
1198
1347
  GetDlpJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.GetDlpJobRequest").msgclass
@@ -1224,6 +1373,22 @@ module Google
1224
1373
  HybridContentItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridContentItem").msgclass
1225
1374
  HybridFindingDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridFindingDetails").msgclass
1226
1375
  HybridInspectResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridInspectResponse").msgclass
1376
+ SensitivityScore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.SensitivityScore").msgclass
1377
+ SensitivityScore::SensitivityScoreLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel").enummodule
1378
+ DataRiskLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataRiskLevel").msgclass
1379
+ DataRiskLevel::DataRiskLevelScore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore").enummodule
1380
+ DataProfileConfigSnapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileConfigSnapshot").msgclass
1381
+ TableDataProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TableDataProfile").msgclass
1382
+ TableDataProfile::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TableDataProfile.State").enummodule
1383
+ ProfileStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ProfileStatus").msgclass
1384
+ InfoTypeSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeSummary").msgclass
1385
+ OtherInfoTypeSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.OtherInfoTypeSummary").msgclass
1386
+ DataProfilePubSubCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition").msgclass
1387
+ DataProfilePubSubCondition::PubSubCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition").msgclass
1388
+ DataProfilePubSubCondition::PubSubExpressions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions").msgclass
1389
+ DataProfilePubSubCondition::PubSubExpressions::PubSubLogicalOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator").enummodule
1390
+ DataProfilePubSubCondition::ProfileScoreBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket").enummodule
1391
+ DataProfilePubSubMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubMessage").msgclass
1227
1392
  RelationalOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RelationalOperator").enummodule
1228
1393
  MatchingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.MatchingType").enummodule
1229
1394
  ContentOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ContentOption").enummodule
@@ -1231,6 +1396,8 @@ module Google
1231
1396
  InfoTypeSupportedBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeSupportedBy").enummodule
1232
1397
  DlpJobType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DlpJobType").enummodule
1233
1398
  StoredInfoTypeState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StoredInfoTypeState").enummodule
1399
+ ResourceVisibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ResourceVisibility").enummodule
1400
+ EncryptionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.EncryptionStatus").enummodule
1234
1401
  end
1235
1402
  end
1236
1403
  end
@@ -1,7 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/privacy/dlp/v2/storage.proto
3
3
 
4
- require 'google/api/annotations_pb'
5
4
  require 'google/api/resource_pb'
6
5
  require 'google/protobuf/timestamp_pb'
7
6
  require 'google/protobuf'
@@ -202,6 +201,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
202
201
  value :AVRO, 7
203
202
  value :CSV, 8
204
203
  value :TSV, 9
204
+ value :POWERPOINT, 11
205
+ value :EXCEL, 12
205
206
  end
206
207
  end
207
208
  end
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -106,21 +106,23 @@ module Google
106
106
  # @!attribute [rw] limits
107
107
  # @return [::Google::Cloud::Dlp::V2::InspectConfig::FindingLimits]
108
108
  # Configuration to control the number of findings returned.
109
+ # This is not used for data profiling.
109
110
  # @!attribute [rw] include_quote
110
111
  # @return [::Boolean]
111
112
  # When true, a contextual quote from the data that triggered a finding is
112
113
  # included in the response; see Finding.quote.
114
+ # This is not used for data profiling.
113
115
  # @!attribute [rw] exclude_info_types
114
116
  # @return [::Boolean]
115
117
  # When true, excludes type information of the findings.
118
+ # This is not used for data profiling.
116
119
  # @!attribute [rw] custom_info_types
117
120
  # @return [::Array<::Google::Cloud::Dlp::V2::CustomInfoType>]
118
121
  # CustomInfoTypes provided by the user. See
119
122
  # https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
120
123
  # @!attribute [rw] content_options
121
124
  # @return [::Array<::Google::Cloud::Dlp::V2::ContentOption>]
122
- # List of options defining data content to scan.
123
- # If empty, text, images, and other content will be included.
125
+ # Deprecated and unused.
124
126
  # @!attribute [rw] rule_set
125
127
  # @return [::Array<::Google::Cloud::Dlp::V2::InspectionRuleSet>]
126
128
  # Set of rules to apply to the findings for this InspectConfig.
@@ -130,8 +132,8 @@ module Google
130
132
  include ::Google::Protobuf::MessageExts
131
133
  extend ::Google::Protobuf::MessageExts::ClassMethods
132
134
 
133
- # Configuration to control the number of findings returned. Cannot be set if
134
- # de-identification is requested.
135
+ # Configuration to control the number of findings returned for inspection.
136
+ # This is not used for de-identification or data profiling.
135
137
  # @!attribute [rw] max_findings_per_item
136
138
  # @return [::Integer]
137
139
  # Max number of findings that will be returned for each item scanned.
@@ -210,6 +212,12 @@ module Google
210
212
  # pdf
211
213
  PDF = 8
212
214
 
215
+ # pptx, pptm, potx, potm, pot
216
+ POWERPOINT_DOCUMENT = 9
217
+
218
+ # xlsx, xlsm, xltx, xltm
219
+ EXCEL_DOCUMENT = 10
220
+
213
221
  # avro
214
222
  AVRO = 11
215
223
 
@@ -3172,6 +3180,144 @@ module Google
3172
3180
  extend ::Google::Protobuf::MessageExts::ClassMethods
3173
3181
  end
3174
3182
 
3183
+ # A task to execute when a data profile has been generated.
3184
+ # @!attribute [rw] export_data
3185
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::Export]
3186
+ # Export data profiles into a provided location.
3187
+ # @!attribute [rw] pub_sub_notification
3188
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::PubSubNotification]
3189
+ # Publish a message into the Pub/Sub topic.
3190
+ class DataProfileAction
3191
+ include ::Google::Protobuf::MessageExts
3192
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3193
+
3194
+ # If set, the detailed data profiles will be persisted to the location
3195
+ # of your choice whenever updated.
3196
+ # @!attribute [rw] profile_table
3197
+ # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
3198
+ # Store all table and column profiles in an existing table or a new table
3199
+ # in an existing dataset. Each re-generation will result in a new row in
3200
+ # BigQuery.
3201
+ class Export
3202
+ include ::Google::Protobuf::MessageExts
3203
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3204
+ end
3205
+
3206
+ # Send a Pub/Sub message into the given Pub/Sub topic to connect other
3207
+ # systems to data profile generation. The message payload data will
3208
+ # be the byte serialization of `DataProfilePubSubMessage`.
3209
+ # @!attribute [rw] topic
3210
+ # @return [::String]
3211
+ # Cloud Pub/Sub topic to send notifications to.
3212
+ # Format is projects/\\{project}/topics/\\{topic}.
3213
+ # @!attribute [rw] event
3214
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::EventType]
3215
+ # The type of event that triggers a Pub/Sub. At most one
3216
+ # `PubSubNotification` per EventType is permitted.
3217
+ # @!attribute [rw] pubsub_condition
3218
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition]
3219
+ # Conditions (e.g., data risk or sensitivity level) for triggering a
3220
+ # Pub/Sub.
3221
+ # @!attribute [rw] detail_of_message
3222
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::PubSubNotification::DetailLevel]
3223
+ # How much data to include in the Pub/Sub message. If the user wishes to
3224
+ # limit the size of the message, they can use resource_name and fetch the
3225
+ # profile fields they wish to. Per table profile (not per column).
3226
+ class PubSubNotification
3227
+ include ::Google::Protobuf::MessageExts
3228
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3229
+
3230
+ # The levels of detail that can be included in the Pub/Sub message.
3231
+ module DetailLevel
3232
+ # Unused.
3233
+ DETAIL_LEVEL_UNSPECIFIED = 0
3234
+
3235
+ # The full table data profile.
3236
+ TABLE_PROFILE = 1
3237
+
3238
+ # The resource name of the table.
3239
+ RESOURCE_NAME = 2
3240
+ end
3241
+ end
3242
+
3243
+ # Types of event that can trigger an action.
3244
+ module EventType
3245
+ # Unused.
3246
+ EVENT_TYPE_UNSPECIFIED = 0
3247
+
3248
+ # New profile (not a re-profile).
3249
+ NEW_PROFILE = 1
3250
+
3251
+ # Changed one of the following profile metrics:
3252
+ # * Table data risk score
3253
+ # * Table sensitivity score
3254
+ # * Table resource visibility
3255
+ # * Table encryption type
3256
+ # * Table predicted infoTypes
3257
+ # * Table other infoTypes
3258
+ CHANGED_PROFILE = 2
3259
+
3260
+ # Table data risk score or sensitivity score increased.
3261
+ SCORE_INCREASED = 3
3262
+
3263
+ # A user (non-internal) error occurred.
3264
+ ERROR_CHANGED = 4
3265
+ end
3266
+ end
3267
+
3268
+ # Configuration for setting up a job to scan resources for profile generation.
3269
+ # Only one data profile configuration may exist per organization, folder,
3270
+ # or project.
3271
+ #
3272
+ # The generated data profiles are retained according to the
3273
+ # [data retention policy]
3274
+ # (https://cloud.google.com/dlp/docs/data-profiles#retention).
3275
+ # @!attribute [rw] location
3276
+ # @return [::Google::Cloud::Dlp::V2::DataProfileLocation]
3277
+ # The data to scan.
3278
+ # @!attribute [rw] project_id
3279
+ # @return [::String]
3280
+ # The project that will run the scan. The DLP service
3281
+ # account that exists within this project must have access to all resources
3282
+ # that are profiled, and the Cloud DLP API must be enabled.
3283
+ # @!attribute [rw] inspect_templates
3284
+ # @return [::Array<::String>]
3285
+ # Detection logic for profile generation.
3286
+ #
3287
+ # Not all template features are used by profiles. FindingLimits,
3288
+ # include_quote and exclude_info_types have no impact on
3289
+ # data profiling.
3290
+ #
3291
+ # Multiple templates may be provided if there is data in multiple regions.
3292
+ # At most one template must be specified per-region (including "global").
3293
+ # Each region is scanned using the applicable template. If no region-specific
3294
+ # template is specified, but a "global" template is specified, it will be
3295
+ # copied to that region and used instead. If no global or region-specific
3296
+ # template is provided for a region with data, that region's data will not be
3297
+ # scanned.
3298
+ #
3299
+ # For more information, see
3300
+ # https://cloud.google.com/dlp/docs/data-profiles#data_residency.
3301
+ # @!attribute [rw] data_profile_actions
3302
+ # @return [::Array<::Google::Cloud::Dlp::V2::DataProfileAction>]
3303
+ # Actions to execute at the completion of the job.
3304
+ class DataProfileJobConfig
3305
+ include ::Google::Protobuf::MessageExts
3306
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3307
+ end
3308
+
3309
+ # The data that will be profiled.
3310
+ # @!attribute [rw] organization_id
3311
+ # @return [::Integer]
3312
+ # The ID of an organization to scan.
3313
+ # @!attribute [rw] folder_id
3314
+ # @return [::Integer]
3315
+ # The ID of the Folder within an organization to scan.
3316
+ class DataProfileLocation
3317
+ include ::Google::Protobuf::MessageExts
3318
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3319
+ end
3320
+
3175
3321
  # Combines all of the information about a DLP job.
3176
3322
  # @!attribute [rw] name
3177
3323
  # @return [::String]
@@ -3878,6 +4024,291 @@ module Google
3878
4024
  extend ::Google::Protobuf::MessageExts::ClassMethods
3879
4025
  end
3880
4026
 
4027
+ # Score is a summary of all elements in the data profile.
4028
+ # A higher number means more sensitive.
4029
+ # @!attribute [rw] score
4030
+ # @return [::Google::Cloud::Dlp::V2::SensitivityScore::SensitivityScoreLevel]
4031
+ # The score applied to the resource.
4032
+ class SensitivityScore
4033
+ include ::Google::Protobuf::MessageExts
4034
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4035
+
4036
+ # Various score levels for resources.
4037
+ module SensitivityScoreLevel
4038
+ # Unused.
4039
+ SENSITIVITY_SCORE_UNSPECIFIED = 0
4040
+
4041
+ # No sensitive information detected. Limited access.
4042
+ SENSITIVITY_LOW = 10
4043
+
4044
+ # Medium risk - PII, potentially sensitive data, or fields with free-text
4045
+ # data that are at higher risk of having intermittent sensitive data.
4046
+ # Consider limiting access.
4047
+ SENSITIVITY_MODERATE = 20
4048
+
4049
+ # High risk – SPII may be present. Exfiltration of data may lead to user
4050
+ # data loss. Re-identification of users may be possible. Consider limiting
4051
+ # usage and or removing SPII.
4052
+ SENSITIVITY_HIGH = 30
4053
+ end
4054
+ end
4055
+
4056
+ # Score is a summary of all elements in the data profile.
4057
+ # A higher number means more risky.
4058
+ # @!attribute [rw] score
4059
+ # @return [::Google::Cloud::Dlp::V2::DataRiskLevel::DataRiskLevelScore]
4060
+ # The score applied to the resource.
4061
+ class DataRiskLevel
4062
+ include ::Google::Protobuf::MessageExts
4063
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4064
+
4065
+ # Various score levels for resources.
4066
+ module DataRiskLevelScore
4067
+ # Unused.
4068
+ RISK_SCORE_UNSPECIFIED = 0
4069
+
4070
+ # Low risk - Lower indication of sensitive data that appears to have
4071
+ # additional access restrictions in place or no indication of sensitive
4072
+ # data found.
4073
+ RISK_LOW = 10
4074
+
4075
+ # Medium risk - Sensitive data may be present but additional access or fine
4076
+ # grain access restrictions appears to be present. Consider limiting
4077
+ # access even further or transforming data to mask.
4078
+ RISK_MODERATE = 20
4079
+
4080
+ # High risk – SPII may be present. Access controls may include public
4081
+ # ACLs. Exfiltration of data may lead to user data loss. Re-identification
4082
+ # of users may be possible. Consider limiting usage and or removing SPII.
4083
+ RISK_HIGH = 30
4084
+ end
4085
+ end
4086
+
4087
+ # Snapshot of the configurations used to generate the profile.
4088
+ # @!attribute [rw] inspect_config
4089
+ # @return [::Google::Cloud::Dlp::V2::InspectConfig]
4090
+ # A copy of the inspection config used to generate this profile. This
4091
+ # is a copy of the inspect_template specified in `DataProfileJobConfig`.
4092
+ # @!attribute [rw] data_profile_job
4093
+ # @return [::Google::Cloud::Dlp::V2::DataProfileJobConfig]
4094
+ # A copy of the configuration used to generate this profile.
4095
+ class DataProfileConfigSnapshot
4096
+ include ::Google::Protobuf::MessageExts
4097
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4098
+ end
4099
+
4100
+ # The profile for a scanned table.
4101
+ # @!attribute [rw] name
4102
+ # @return [::String]
4103
+ # The name of the profile.
4104
+ # @!attribute [rw] project_data_profile
4105
+ # @return [::String]
4106
+ # The resource name to the project data profile for this table.
4107
+ # @!attribute [rw] dataset_project_id
4108
+ # @return [::String]
4109
+ # The GCP project ID that owns the BigQuery dataset.
4110
+ # @!attribute [rw] dataset_location
4111
+ # @return [::String]
4112
+ # The BigQuery location where the dataset's data is stored.
4113
+ # See https://cloud.google.com/bigquery/docs/locations for supported
4114
+ # locations.
4115
+ # @!attribute [rw] dataset_id
4116
+ # @return [::String]
4117
+ # The BigQuery dataset ID.
4118
+ # @!attribute [rw] table_id
4119
+ # @return [::String]
4120
+ # The BigQuery table ID.
4121
+ # @!attribute [rw] full_resource
4122
+ # @return [::String]
4123
+ # The resource name of the table.
4124
+ # https://cloud.google.com/apis/design/resource_names#full_resource_name
4125
+ # @!attribute [rw] profile_status
4126
+ # @return [::Google::Cloud::Dlp::V2::ProfileStatus]
4127
+ # Success or error status from the most recent profile generation attempt.
4128
+ # May be empty if the profile is still being generated.
4129
+ # @!attribute [rw] state
4130
+ # @return [::Google::Cloud::Dlp::V2::TableDataProfile::State]
4131
+ # State of a profile.
4132
+ # @!attribute [rw] sensitivity_score
4133
+ # @return [::Google::Cloud::Dlp::V2::SensitivityScore]
4134
+ # The sensitivity score of this table.
4135
+ # @!attribute [rw] data_risk_level
4136
+ # @return [::Google::Cloud::Dlp::V2::DataRiskLevel]
4137
+ # The data risk level of this table.
4138
+ # @!attribute [rw] predicted_info_types
4139
+ # @return [::Array<::Google::Cloud::Dlp::V2::InfoTypeSummary>]
4140
+ # The infoTypes predicted from this table's data.
4141
+ # @!attribute [rw] other_info_types
4142
+ # @return [::Array<::Google::Cloud::Dlp::V2::OtherInfoTypeSummary>]
4143
+ # Other infoTypes found in this table's data.
4144
+ # @!attribute [rw] config_snapshot
4145
+ # @return [::Google::Cloud::Dlp::V2::DataProfileConfigSnapshot]
4146
+ # The snapshot of the configurations used to generate the profile.
4147
+ # @!attribute [rw] last_modified_time
4148
+ # @return [::Google::Protobuf::Timestamp]
4149
+ # The time when this table was last modified
4150
+ # @!attribute [rw] expiration_time
4151
+ # @return [::Google::Protobuf::Timestamp]
4152
+ # Optional. The time when this table expires.
4153
+ # @!attribute [rw] scanned_column_count
4154
+ # @return [::Integer]
4155
+ # The number of columns profiled in the table.
4156
+ # @!attribute [rw] failed_column_count
4157
+ # @return [::Integer]
4158
+ # The number of columns skipped in the table because of an error.
4159
+ # @!attribute [rw] table_size_bytes
4160
+ # @return [::Integer]
4161
+ # The size of the table when the profile was generated.
4162
+ # @!attribute [rw] row_count
4163
+ # @return [::Integer]
4164
+ # Number of rows in the table when the profile was generated.
4165
+ # @!attribute [rw] encryption_status
4166
+ # @return [::Google::Cloud::Dlp::V2::EncryptionStatus]
4167
+ # How the table is encrypted.
4168
+ # @!attribute [rw] resource_visibility
4169
+ # @return [::Google::Cloud::Dlp::V2::ResourceVisibility]
4170
+ # How broadly a resource has been shared.
4171
+ # @!attribute [rw] profile_last_generated
4172
+ # @return [::Google::Protobuf::Timestamp]
4173
+ # The last time the profile was generated.
4174
+ # @!attribute [rw] resource_labels
4175
+ # @return [::Google::Protobuf::Map{::String => ::String}]
4176
+ # The labels applied to the resource at the time the profile was generated.
4177
+ # @!attribute [rw] create_time
4178
+ # @return [::Google::Protobuf::Timestamp]
4179
+ # The time at which the table was created.
4180
+ class TableDataProfile
4181
+ include ::Google::Protobuf::MessageExts
4182
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4183
+
4184
+ # @!attribute [rw] key
4185
+ # @return [::String]
4186
+ # @!attribute [rw] value
4187
+ # @return [::String]
4188
+ class ResourceLabelsEntry
4189
+ include ::Google::Protobuf::MessageExts
4190
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4191
+ end
4192
+
4193
+ # Possible states of a profile. New items may be added.
4194
+ module State
4195
+ # Unused.
4196
+ STATE_UNSPECIFIED = 0
4197
+
4198
+ # The profile is currently running. Once a profile has finished it will
4199
+ # transition to DONE.
4200
+ RUNNING = 1
4201
+
4202
+ # The profile is no longer generating.
4203
+ # If profile_status.status.code is 0, the profile succeeded, otherwise, it
4204
+ # failed.
4205
+ DONE = 2
4206
+ end
4207
+ end
4208
+
4209
+ # @!attribute [rw] status
4210
+ # @return [::Google::Rpc::Status]
4211
+ # Profiling status code and optional message
4212
+ # @!attribute [rw] timestamp
4213
+ # @return [::Google::Protobuf::Timestamp]
4214
+ # Time when the profile generation status was updated
4215
+ class ProfileStatus
4216
+ include ::Google::Protobuf::MessageExts
4217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4218
+ end
4219
+
4220
+ # The infoType details for this column.
4221
+ # @!attribute [rw] info_type
4222
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
4223
+ # The infoType.
4224
+ class InfoTypeSummary
4225
+ include ::Google::Protobuf::MessageExts
4226
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4227
+ end
4228
+
4229
+ # Infotype details for other infoTypes found within a column.
4230
+ # @!attribute [rw] info_type
4231
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
4232
+ # The other infoType.
4233
+ class OtherInfoTypeSummary
4234
+ include ::Google::Protobuf::MessageExts
4235
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4236
+ end
4237
+
4238
+ # A condition for determining whether a PubSub should be triggered.
4239
+ # @!attribute [rw] expressions
4240
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::PubSubExpressions]
4241
+ # An expression.
4242
+ class DataProfilePubSubCondition
4243
+ include ::Google::Protobuf::MessageExts
4244
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4245
+
4246
+ # A condition consisting of a value.
4247
+ # @!attribute [rw] minimum_risk_score
4248
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::ProfileScoreBucket]
4249
+ # The minimum data risk score that triggers the condition.
4250
+ # @!attribute [rw] minimum_sensitivity_score
4251
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::ProfileScoreBucket]
4252
+ # The minimum sensitivity level that triggers the condition.
4253
+ class PubSubCondition
4254
+ include ::Google::Protobuf::MessageExts
4255
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4256
+ end
4257
+
4258
+ # An expression, consisting of an operator and conditions.
4259
+ # @!attribute [rw] logical_operator
4260
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::PubSubExpressions::PubSubLogicalOperator]
4261
+ # The operator to apply to the collection of conditions.
4262
+ # @!attribute [rw] conditions
4263
+ # @return [::Array<::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::PubSubCondition>]
4264
+ # Conditions to apply to the expression.
4265
+ class PubSubExpressions
4266
+ include ::Google::Protobuf::MessageExts
4267
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4268
+
4269
+ # Logical operators for conditional checks.
4270
+ module PubSubLogicalOperator
4271
+ # Unused.
4272
+ LOGICAL_OPERATOR_UNSPECIFIED = 0
4273
+
4274
+ # Conditional OR.
4275
+ OR = 1
4276
+
4277
+ # Conditional AND.
4278
+ AND = 2
4279
+ end
4280
+ end
4281
+
4282
+ # Various score levels for resources.
4283
+ module ProfileScoreBucket
4284
+ # Unused.
4285
+ PROFILE_SCORE_BUCKET_UNSPECIFIED = 0
4286
+
4287
+ # High risk/sensitivity detected.
4288
+ HIGH = 1
4289
+
4290
+ # Medium or high risk/sensitivity detected.
4291
+ MEDIUM_OR_HIGH = 2
4292
+ end
4293
+ end
4294
+
4295
+ # The message that will be published to a Pub/Sub topic.
4296
+ # To receive a message of protocol buffer schema type, convert the message data
4297
+ # to an object of this proto class.
4298
+ # https://cloud.google.com/pubsub/docs/samples/pubsub-subscribe-proto-messages
4299
+ # @!attribute [rw] profile
4300
+ # @return [::Google::Cloud::Dlp::V2::TableDataProfile]
4301
+ # If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.
4302
+ # Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
4303
+ # `full_resource` will be populated.
4304
+ # @!attribute [rw] event
4305
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::EventType]
4306
+ # The event that caused the Pub/Sub message to be sent.
4307
+ class DataProfilePubSubMessage
4308
+ include ::Google::Protobuf::MessageExts
4309
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4310
+ end
4311
+
3881
4312
  # Operators available for comparing the value of fields.
3882
4313
  module RelationalOperator
3883
4314
  # Unused
@@ -3934,7 +4365,7 @@ module Google
3934
4365
  MATCHING_TYPE_INVERSE_MATCH = 3
3935
4366
  end
3936
4367
 
3937
- # Options describing which parts of the provided content should be scanned.
4368
+ # Deprecated and unused.
3938
4369
  module ContentOption
3939
4370
  # Includes entire content of a file or a data stream.
3940
4371
  CONTENT_UNSPECIFIED = 0
@@ -3999,6 +4430,31 @@ module Google
3999
4430
  # use the `UpdateStoredInfoType` method to create a new version.
4000
4431
  INVALID = 4
4001
4432
  end
4433
+
4434
+ # How broadly a resource has been shared. New items may be added over time.
4435
+ # A higher number means more restricted.
4436
+ module ResourceVisibility
4437
+ # Unused.
4438
+ RESOURCE_VISIBILITY_UNSPECIFIED = 0
4439
+
4440
+ # Visible to any user.
4441
+ RESOURCE_VISIBILITY_PUBLIC = 10
4442
+
4443
+ # Visible only to specific users.
4444
+ RESOURCE_VISIBILITY_RESTRICTED = 20
4445
+ end
4446
+
4447
+ # How a resource is encrypted.
4448
+ module EncryptionStatus
4449
+ # Unused.
4450
+ ENCRYPTION_STATUS_UNSPECIFIED = 0
4451
+
4452
+ # Google manages server-side encryption keys on your behalf.
4453
+ ENCRYPTION_GOOGLE_MANAGED = 1
4454
+
4455
+ # Customer provides the key.
4456
+ ENCRYPTION_CUSTOMER_MANAGED = 2
4457
+ end
4002
4458
  end
4003
4459
  end
4004
4460
  end
@@ -103,7 +103,7 @@ module Google
103
103
  # Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
104
104
  # will be replaced with whitespace when scanning for matches, so the
105
105
  # dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
106
- # Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
106
+ # "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
107
107
  # surrounding any match must be of a different type than the adjacent
108
108
  # characters within the word, so letters must be next to non-letters and
109
109
  # digits next to non-digits. For example, the dictionary word "jen" will
@@ -116,7 +116,7 @@ module Google
116
116
  # [limits](https://cloud.google.com/dlp/limits) page contains details about
117
117
  # the size limits of dictionaries. For dictionaries that do not fit within
118
118
  # these constraints, consider using `LargeCustomDictionaryConfig` in the
119
- # [limits](https://cloud.google.com/dlp/limits) page contains details about
119
+ # `StoredInfoType` API.
120
120
  # @!attribute [rw] word_list
121
121
  # @return [::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary::WordList]
122
122
  # List of words or phrases to search for.
@@ -148,7 +148,6 @@ module Google
148
148
  # google/re2 repository on GitHub.
149
149
  # @!attribute [rw] group_indexes
150
150
  # @return [::Array<::Integer>]
151
- # (https://github.com/google/re2/wiki/Syntax) can be found under the
152
151
  # The index of the submatch to extract as findings. When not
153
152
  # specified, the entire match is returned. No more than 3 may be included.
154
153
  class Regex
@@ -161,7 +160,7 @@ module Google
161
160
  # [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
162
161
  # These types of transformations are
163
162
  # those that perform pseudonymization, thereby producing a "surrogate" as
164
- # [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
163
+ # output. This should be used in conjunction with a field on the
165
164
  # transformation such as `surrogate_info_type`. This CustomInfoType does
166
165
  # not support the use of `detection_rules`.
167
166
  class SurrogateType
@@ -343,7 +342,6 @@ module Google
343
342
  # under the google/re2 repository on GitHub.
344
343
  # @!attribute [rw] exclude_regex
345
344
  # @return [::Array<::String>]
346
- # [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
347
345
  # A list of regular expressions matching file paths to exclude. All files in
348
346
  # the bucket that match at least one of these regular expressions will be
349
347
  # excluded from the scan.
@@ -829,6 +827,16 @@ module Google
829
827
  # Included file extensions:
830
828
  # tsv
831
829
  TSV = 9
830
+
831
+ # Powerpoint files >30 MB will be scanned as binary files.
832
+ # Included file extensions:
833
+ # pptx, pptm, potx, potm, pot
834
+ POWERPOINT = 11
835
+
836
+ # Excel files >30 MB will be scanned as binary files.
837
+ # Included file extensions:
838
+ # xlsx, xlsm, xltx, xltm
839
+ EXCEL = 12
832
840
  end
833
841
  end
834
842
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dlp-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
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: 2021-12-07 00:00:00.000000000 Z
11
+ date: 2022-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  - !ruby/object:Gem::Version
213
213
  version: '0'
214
214
  requirements: []
215
- rubygems_version: 3.2.17
215
+ rubygems_version: 3.3.5
216
216
  signing_key:
217
217
  specification_version: 4
218
218
  summary: API Client library for the Cloud Data Loss Prevention (DLP) V2 API