google-cloud-dlp 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/google/cloud/dlp.rb +4 -4
- data/lib/google/cloud/dlp/v2.rb +4 -4
- data/lib/google/cloud/dlp/v2/dlp_service_client.rb +34 -34
- data/lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb +99 -99
- data/lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb +31 -31
- data/lib/google/cloud/dlp/v2/doc/google/protobuf/any.rb +8 -8
- data/lib/google/cloud/dlp/v2/doc/google/protobuf/duration.rb +3 -3
- data/lib/google/cloud/dlp/v2/doc/google/protobuf/empty.rb +1 -1
- data/lib/google/cloud/dlp/v2/doc/google/protobuf/field_mask.rb +7 -7
- data/lib/google/cloud/dlp/v2/doc/google/protobuf/timestamp.rb +7 -7
- data/lib/google/cloud/dlp/v2/doc/google/rpc/status.rb +11 -11
- data/lib/google/cloud/dlp/v2/doc/google/type/date.rb +1 -1
- data/lib/google/cloud/dlp/v2/doc/google/type/timeofday.rb +1 -1
- metadata +3 -4
- data/lib/google/cloud/dlp/v2/doc/overview.rb +0 -82
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05b0c5a265d978916b8148a2887a579dee18296cb1bd4e6f1dbc5916e1a4ba06
|
4
|
+
data.tar.gz: 1f9ce431757fb783fc54837626f844fa63757d7f1ecccb4dd718fa922a62b2eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86ef04de2cfa35e0564119ba2e1ee5424cfeaefe2db7502e9ed9e7692460068eb0469fcaa41a411c4d59d23d7719a3bdd1f05c7553ff847a090f96fdc691d7ba
|
7
|
+
data.tar.gz: 10bd645452fb9d2c1dcba7ed74e15b56e065ad978a64acba1b404568eb92edbc0b1f34734f490b5dca8a096a84bf5b4e909f63817f7a6618071bfa72031b9131
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Ruby Client for Cloud Data Loss Prevention (DLP) API ([Alpha](https://github.com/
|
1
|
+
# Ruby Client for Cloud Data Loss Prevention (DLP) API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
|
2
2
|
|
3
3
|
[Cloud Data Loss Prevention (DLP) API][Product Documentation]:
|
4
4
|
Provides methods for detection, risk analysis, and de-identification of
|
@@ -14,7 +14,7 @@ steps:
|
|
14
14
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
15
15
|
2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
16
16
|
3. [Enable the Cloud Data Loss Prevention (DLP) API.](https://console.cloud.google.com/apis/library/dlp.googleapis.com)
|
17
|
-
4. [Setup Authentication.](https://
|
17
|
+
4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
18
18
|
|
19
19
|
### Installation
|
20
20
|
```
|
@@ -26,17 +26,17 @@ $ gem install google-cloud-dlp
|
|
26
26
|
to see other available methods on the client.
|
27
27
|
- Read the [Cloud Data Loss Prevention (DLP) API Product documentation][Product Documentation]
|
28
28
|
to learn more about the product and see How-to Guides.
|
29
|
-
- View this [repository's main README](https://github.com/
|
29
|
+
- View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
30
30
|
to see the full list of Cloud APIs that we cover.
|
31
31
|
|
32
|
-
[Client Library Documentation]: https://
|
32
|
+
[Client Library Documentation]: https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-dlp/latest/google/privacy/dlp/v2
|
33
33
|
[Product Documentation]: https://cloud.google.com/dlp
|
34
34
|
|
35
35
|
## Enabling Logging
|
36
36
|
|
37
37
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
38
38
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
39
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
39
|
+
or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
40
40
|
that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
41
41
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
42
42
|
|
data/lib/google/cloud/dlp.rb
CHANGED
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for Cloud Data Loss Prevention (DLP) API ([Alpha](https://github.com/
|
24
|
+
# # Ruby Client for Cloud Data Loss Prevention (DLP) API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
|
25
25
|
#
|
26
26
|
# [Cloud Data Loss Prevention (DLP) API][Product Documentation]:
|
27
27
|
# Provides methods for detection, risk analysis, and de-identification of
|
@@ -36,7 +36,7 @@ module Google
|
|
36
36
|
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
37
37
|
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
38
38
|
# 3. [Enable the Cloud Data Loss Prevention (DLP) API.](https://console.cloud.google.com/apis/library/dlp.googleapis.com)
|
39
|
-
# 4. [Setup Authentication.](https://
|
39
|
+
# 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
40
40
|
#
|
41
41
|
# ### Installation
|
42
42
|
# ```
|
@@ -46,7 +46,7 @@ module Google
|
|
46
46
|
# ### Next Steps
|
47
47
|
# - Read the [Cloud Data Loss Prevention (DLP) API Product documentation][Product Documentation]
|
48
48
|
# to learn more about the product and see How-to Guides.
|
49
|
-
# - View this [repository's main README](https://github.com/
|
49
|
+
# - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
50
50
|
# to see the full list of Cloud APIs that we cover.
|
51
51
|
#
|
52
52
|
# [Product Documentation]: https://cloud.google.com/dlp
|
@@ -55,7 +55,7 @@ module Google
|
|
55
55
|
#
|
56
56
|
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
57
57
|
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
58
|
-
# or a [`Google::Cloud::Logging::Logger`](https://
|
58
|
+
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
59
59
|
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
60
60
|
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
61
61
|
#
|
data/lib/google/cloud/dlp/v2.rb
CHANGED
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for Cloud Data Loss Prevention (DLP) API ([Alpha](https://github.com/
|
24
|
+
# # Ruby Client for Cloud Data Loss Prevention (DLP) API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
|
25
25
|
#
|
26
26
|
# [Cloud Data Loss Prevention (DLP) API][Product Documentation]:
|
27
27
|
# Provides methods for detection, risk analysis, and de-identification of
|
@@ -36,7 +36,7 @@ module Google
|
|
36
36
|
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
37
37
|
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
38
38
|
# 3. [Enable the Cloud Data Loss Prevention (DLP) API.](https://console.cloud.google.com/apis/library/dlp.googleapis.com)
|
39
|
-
# 4. [Setup Authentication.](https://
|
39
|
+
# 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
40
40
|
#
|
41
41
|
# ### Installation
|
42
42
|
# ```
|
@@ -46,7 +46,7 @@ module Google
|
|
46
46
|
# ### Next Steps
|
47
47
|
# - Read the [Cloud Data Loss Prevention (DLP) API Product documentation][Product Documentation]
|
48
48
|
# to learn more about the product and see How-to Guides.
|
49
|
-
# - View this [repository's main README](https://github.com/
|
49
|
+
# - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
50
50
|
# to see the full list of Cloud APIs that we cover.
|
51
51
|
#
|
52
52
|
# [Product Documentation]: https://cloud.google.com/dlp
|
@@ -55,7 +55,7 @@ module Google
|
|
55
55
|
#
|
56
56
|
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
57
57
|
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
58
|
-
# or a [`Google::Cloud::Logging::Logger`](https://
|
58
|
+
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
59
59
|
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
60
60
|
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
61
61
|
#
|
@@ -661,7 +661,7 @@ module Google
|
|
661
661
|
# reverse. This requires that only reversible transformations
|
662
662
|
# be provided here. The reversible transformations are:
|
663
663
|
#
|
664
|
-
# *
|
664
|
+
# * `CryptoReplaceFfxFpeConfig`
|
665
665
|
# A hash of the same form as `Google::Privacy::Dlp::V2::DeidentifyConfig`
|
666
666
|
# can also be provided.
|
667
667
|
# @param inspect_config [Google::Privacy::Dlp::V2::InspectConfig | Hash]
|
@@ -674,14 +674,14 @@ module Google
|
|
674
674
|
# can also be provided.
|
675
675
|
# @param inspect_template_name [String]
|
676
676
|
# Optional template to use. Any configuration directly specified in
|
677
|
-
#
|
677
|
+
# `inspect_config` will override those set in the template. Singular fields
|
678
678
|
# that are set in this request will replace their corresponding fields in the
|
679
679
|
# template. Repeated fields are appended. Singular sub-messages and groups
|
680
680
|
# are recursively merged.
|
681
681
|
# @param reidentify_template_name [String]
|
682
|
-
# Optional template to use. References an instance of
|
683
|
-
# Any configuration directly specified in
|
684
|
-
#
|
682
|
+
# Optional template to use. References an instance of `DeidentifyTemplate`.
|
683
|
+
# Any configuration directly specified in `reidentify_config` or
|
684
|
+
# `inspect_config` will override those set in the template. Singular fields
|
685
685
|
# that are set in this request will replace their corresponding fields in the
|
686
686
|
# template. Repeated fields are appended. Singular sub-messages and groups
|
687
687
|
# are recursively merged.
|
@@ -773,7 +773,7 @@ module Google
|
|
773
773
|
# @param template_id [String]
|
774
774
|
# The template id can contain uppercase and lowercase letters,
|
775
775
|
# numbers, and hyphens; that is, it must match the regular
|
776
|
-
# expression:
|
776
|
+
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
|
777
777
|
# characters. Can be empty to allow the system to generate one.
|
778
778
|
# @param options [Google::Gax::CallOptions]
|
779
779
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -810,7 +810,7 @@ module Google
|
|
810
810
|
#
|
811
811
|
# @param name [String]
|
812
812
|
# Resource name of organization and inspectTemplate to be updated, for
|
813
|
-
# example
|
813
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
814
814
|
# projects/project-id/inspectTemplates/432452342.
|
815
815
|
# @param inspect_template [Google::Privacy::Dlp::V2::InspectTemplate | Hash]
|
816
816
|
# New InspectTemplate value.
|
@@ -855,7 +855,7 @@ module Google
|
|
855
855
|
#
|
856
856
|
# @param name [String]
|
857
857
|
# Resource name of the organization and inspectTemplate to be read, for
|
858
|
-
# example
|
858
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
859
859
|
# projects/project-id/inspectTemplates/432452342.
|
860
860
|
# @param options [Google::Gax::CallOptions]
|
861
861
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -943,7 +943,7 @@ module Google
|
|
943
943
|
#
|
944
944
|
# @param name [String]
|
945
945
|
# Resource name of the organization and inspectTemplate to be deleted, for
|
946
|
-
# example
|
946
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
947
947
|
# projects/project-id/inspectTemplates/432452342.
|
948
948
|
# @param options [Google::Gax::CallOptions]
|
949
949
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -986,7 +986,7 @@ module Google
|
|
986
986
|
# @param template_id [String]
|
987
987
|
# The template id can contain uppercase and lowercase letters,
|
988
988
|
# numbers, and hyphens; that is, it must match the regular
|
989
|
-
# expression:
|
989
|
+
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
|
990
990
|
# characters. Can be empty to allow the system to generate one.
|
991
991
|
# @param options [Google::Gax::CallOptions]
|
992
992
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -1024,7 +1024,7 @@ module Google
|
|
1024
1024
|
#
|
1025
1025
|
# @param name [String]
|
1026
1026
|
# Resource name of organization and deidentify template to be updated, for
|
1027
|
-
# example
|
1027
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
1028
1028
|
# projects/project-id/deidentifyTemplates/432452342.
|
1029
1029
|
# @param deidentify_template [Google::Privacy::Dlp::V2::DeidentifyTemplate | Hash]
|
1030
1030
|
# New DeidentifyTemplate value.
|
@@ -1070,7 +1070,7 @@ module Google
|
|
1070
1070
|
#
|
1071
1071
|
# @param name [String]
|
1072
1072
|
# Resource name of the organization and deidentify template to be read, for
|
1073
|
-
# example
|
1073
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
1074
1074
|
# projects/project-id/deidentifyTemplates/432452342.
|
1075
1075
|
# @param options [Google::Gax::CallOptions]
|
1076
1076
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -1161,7 +1161,7 @@ module Google
|
|
1161
1161
|
#
|
1162
1162
|
# @param name [String]
|
1163
1163
|
# Resource name of the organization and deidentify template to be deleted,
|
1164
|
-
# for example
|
1164
|
+
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
1165
1165
|
# projects/project-id/deidentifyTemplates/432452342.
|
1166
1166
|
# @param options [Google::Gax::CallOptions]
|
1167
1167
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -1208,7 +1208,7 @@ module Google
|
|
1208
1208
|
# @param job_id [String]
|
1209
1209
|
# The job id can contain uppercase and lowercase letters,
|
1210
1210
|
# numbers, and hyphens; that is, it must match the regular
|
1211
|
-
# expression:
|
1211
|
+
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
|
1212
1212
|
# characters. Can be empty to allow the system to generate one.
|
1213
1213
|
# @param options [Google::Gax::CallOptions]
|
1214
1214
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -1254,16 +1254,16 @@ module Google
|
|
1254
1254
|
# Supported syntax:
|
1255
1255
|
#
|
1256
1256
|
# * Filter expressions are made up of one or more restrictions.
|
1257
|
-
# * Restrictions can be combined by
|
1258
|
-
# sequence of restrictions implicitly uses
|
1259
|
-
# * A restriction has the form of
|
1257
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
1258
|
+
# sequence of restrictions implicitly uses `AND`.
|
1259
|
+
# * A restriction has the form of `<field> <operator> <value>`.
|
1260
1260
|
# * Supported fields/values for inspect jobs:
|
1261
|
-
# *
|
1262
|
-
# *
|
1263
|
-
# *
|
1261
|
+
# * `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
|
1262
|
+
# * `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
1263
|
+
# * `trigger_name` - The resource name of the trigger that created job.
|
1264
1264
|
# * Supported fields for risk analysis jobs:
|
1265
|
-
# *
|
1266
|
-
# * The operator must be
|
1265
|
+
# * `state` - RUNNING|CANCELED|FINISHED|FAILED
|
1266
|
+
# * The operator must be `=` or `!=`.
|
1267
1267
|
#
|
1268
1268
|
# Examples:
|
1269
1269
|
#
|
@@ -1279,7 +1279,7 @@ module Google
|
|
1279
1279
|
# performed per-page, this determines the maximum number of
|
1280
1280
|
# resources in a page.
|
1281
1281
|
# @param type [Google::Privacy::Dlp::V2::DlpJobType]
|
1282
|
-
# The type of job. Defaults to
|
1282
|
+
# The type of job. Defaults to `DlpJobType.INSPECT`
|
1283
1283
|
# @param options [Google::Gax::CallOptions]
|
1284
1284
|
# Overrides the default settings for this call, e.g, timeout,
|
1285
1285
|
# retries, etc.
|
@@ -1432,7 +1432,7 @@ module Google
|
|
1432
1432
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
1433
1433
|
#
|
1434
1434
|
# @param parent [String]
|
1435
|
-
# The parent resource name, for example
|
1435
|
+
# The parent resource name, for example `projects/my-project-id`.
|
1436
1436
|
# @param page_size [Integer]
|
1437
1437
|
# The maximum number of resources contained in the underlying API
|
1438
1438
|
# response. If page streaming is performed per-resource, this
|
@@ -1441,17 +1441,17 @@ module Google
|
|
1441
1441
|
# resources in a page.
|
1442
1442
|
# @param order_by [String]
|
1443
1443
|
# Optional comma separated list of triggeredJob fields to order by,
|
1444
|
-
# followed by
|
1444
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
1445
1445
|
# default sorting order is ascending, redundant space characters are
|
1446
1446
|
# insignificant.
|
1447
1447
|
#
|
1448
|
-
# Example:
|
1448
|
+
# Example: `name asc,update_time, create_time desc`
|
1449
1449
|
#
|
1450
1450
|
# Supported fields are:
|
1451
1451
|
#
|
1452
|
-
# *
|
1453
|
-
# *
|
1454
|
-
# *
|
1452
|
+
# * `create_time`: corresponds to time the triggeredJob was created.
|
1453
|
+
# * `update_time`: corresponds to time the triggeredJob was last updated.
|
1454
|
+
# * `name`: corresponds to JobTrigger's name.
|
1455
1455
|
# @param options [Google::Gax::CallOptions]
|
1456
1456
|
# Overrides the default settings for this call, e.g, timeout,
|
1457
1457
|
# retries, etc.
|
@@ -1503,7 +1503,7 @@ module Google
|
|
1503
1503
|
#
|
1504
1504
|
# @param name [String]
|
1505
1505
|
# Resource name of the project and the triggeredJob, for example
|
1506
|
-
#
|
1506
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1507
1507
|
# @param options [Google::Gax::CallOptions]
|
1508
1508
|
# Overrides the default settings for this call, e.g, timeout,
|
1509
1509
|
# retries, etc.
|
@@ -1535,7 +1535,7 @@ module Google
|
|
1535
1535
|
#
|
1536
1536
|
# @param name [String]
|
1537
1537
|
# Resource name of the project and the triggeredJob, for example
|
1538
|
-
#
|
1538
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1539
1539
|
# @param options [Google::Gax::CallOptions]
|
1540
1540
|
# Overrides the default settings for this call, e.g, timeout,
|
1541
1541
|
# retries, etc.
|
@@ -1548,7 +1548,7 @@ module Google
|
|
1548
1548
|
#
|
1549
1549
|
# dlp_service_client = Google::Cloud::Dlp.new(version: :v2)
|
1550
1550
|
#
|
1551
|
-
# # TODO: Initialize
|
1551
|
+
# # TODO: Initialize `name`:
|
1552
1552
|
# name = ''
|
1553
1553
|
# dlp_service_client.delete_job_trigger(name)
|
1554
1554
|
|
@@ -1569,7 +1569,7 @@ module Google
|
|
1569
1569
|
#
|
1570
1570
|
# @param name [String]
|
1571
1571
|
# Resource name of the project and the triggeredJob, for example
|
1572
|
-
#
|
1572
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1573
1573
|
# @param job_trigger [Google::Privacy::Dlp::V2::JobTrigger | Hash]
|
1574
1574
|
# New JobTrigger value.
|
1575
1575
|
# A hash of the same form as `Google::Privacy::Dlp::V2::JobTrigger`
|
@@ -1621,7 +1621,7 @@ module Google
|
|
1621
1621
|
# @param trigger_id [String]
|
1622
1622
|
# The trigger id can contain uppercase and lowercase letters,
|
1623
1623
|
# numbers, and hyphens; that is, it must match the regular
|
1624
|
-
# expression:
|
1624
|
+
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
|
1625
1625
|
# characters. Can be empty to allow the system to generate one.
|
1626
1626
|
# @param options [Google::Gax::CallOptions]
|
1627
1627
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -60,13 +60,13 @@ module Google
|
|
60
60
|
# @!attribute [rw] max_findings_per_item
|
61
61
|
# @return [Integer]
|
62
62
|
# Max number of findings that will be returned for each item scanned.
|
63
|
-
# When set within
|
63
|
+
# When set within `InspectDataSourceRequest`,
|
64
64
|
# the maximum returned is 1000 regardless if this is set higher.
|
65
|
-
# When set within
|
65
|
+
# When set within `InspectContentRequest`, this field is ignored.
|
66
66
|
# @!attribute [rw] max_findings_per_request
|
67
67
|
# @return [Integer]
|
68
68
|
# Max number of findings that will be returned per request/job.
|
69
|
-
# When set within
|
69
|
+
# When set within `InspectContentRequest`, the maximum returned is 1000
|
70
70
|
# regardless if this is set higher.
|
71
71
|
# @!attribute [rw] max_findings_per_info_type
|
72
72
|
# @return [Array<Google::Privacy::Dlp::V2::InspectConfig::FindingLimits::InfoTypeLimit>]
|
@@ -123,10 +123,10 @@ module Google
|
|
123
123
|
# learn more.
|
124
124
|
# @!attribute [rw] byte_item
|
125
125
|
# @return [Google::Privacy::Dlp::V2::ByteContentItem]
|
126
|
-
# Content data to inspect or redact. Replaces
|
126
|
+
# Content data to inspect or redact. Replaces `type` and `data`.
|
127
127
|
class ContentItem; end
|
128
128
|
|
129
|
-
# Structured content to inspect. Up to 50,000
|
129
|
+
# Structured content to inspect. Up to 50,000 `Value`s per request allowed.
|
130
130
|
# See https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
|
131
131
|
# learn more.
|
132
132
|
# @!attribute [rw] headers
|
@@ -158,16 +158,16 @@ module Google
|
|
158
158
|
# @return [String]
|
159
159
|
# The content that was found. Even if the content is not textual, it
|
160
160
|
# may be converted to a textual representation here.
|
161
|
-
# Provided if
|
161
|
+
# Provided if `include_quote` is true and the finding is
|
162
162
|
# less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes
|
163
163
|
# in length, the quote may be omitted.
|
164
164
|
# @!attribute [rw] info_type
|
165
165
|
# @return [Google::Privacy::Dlp::V2::InfoType]
|
166
166
|
# The type of content that might have been found.
|
167
|
-
# Provided if
|
167
|
+
# Provided if `excluded_types` is false.
|
168
168
|
# @!attribute [rw] likelihood
|
169
169
|
# @return [Google::Privacy::Dlp::V2::Likelihood]
|
170
|
-
# Confidence of how likely it is that the
|
170
|
+
# Confidence of how likely it is that the `info_type` is correct.
|
171
171
|
# @!attribute [rw] location
|
172
172
|
# @return [Google::Privacy::Dlp::V2::Location]
|
173
173
|
# Where the content was found.
|
@@ -244,7 +244,7 @@ module Google
|
|
244
244
|
# Field id of the field containing the finding.
|
245
245
|
# @!attribute [rw] table_location
|
246
246
|
# @return [Google::Privacy::Dlp::V2::TableLocation]
|
247
|
-
# Location within a
|
247
|
+
# Location within a `ContentItem.Table`.
|
248
248
|
class RecordLocation; end
|
249
249
|
|
250
250
|
# Location of a finding within a table.
|
@@ -385,7 +385,7 @@ module Google
|
|
385
385
|
# The de-identified item.
|
386
386
|
# @!attribute [rw] overview
|
387
387
|
# @return [Google::Privacy::Dlp::V2::TransformationOverview]
|
388
|
-
# An overview of the changes that were made on the
|
388
|
+
# An overview of the changes that were made on the `item`.
|
389
389
|
class DeidentifyContentResponse; end
|
390
390
|
|
391
391
|
# Request to re-identify an item.
|
@@ -402,7 +402,7 @@ module Google
|
|
402
402
|
# reverse. This requires that only reversible transformations
|
403
403
|
# be provided here. The reversible transformations are:
|
404
404
|
#
|
405
|
-
# *
|
405
|
+
# * `CryptoReplaceFfxFpeConfig`
|
406
406
|
# @!attribute [rw] inspect_config
|
407
407
|
# @return [Google::Privacy::Dlp::V2::InspectConfig]
|
408
408
|
# Configuration for the inspector.
|
@@ -412,15 +412,15 @@ module Google
|
|
412
412
|
# @!attribute [rw] inspect_template_name
|
413
413
|
# @return [String]
|
414
414
|
# Optional template to use. Any configuration directly specified in
|
415
|
-
#
|
415
|
+
# `inspect_config` will override those set in the template. Singular fields
|
416
416
|
# that are set in this request will replace their corresponding fields in the
|
417
417
|
# template. Repeated fields are appended. Singular sub-messages and groups
|
418
418
|
# are recursively merged.
|
419
419
|
# @!attribute [rw] reidentify_template_name
|
420
420
|
# @return [String]
|
421
|
-
# Optional template to use. References an instance of
|
422
|
-
# Any configuration directly specified in
|
423
|
-
#
|
421
|
+
# Optional template to use. References an instance of `DeidentifyTemplate`.
|
422
|
+
# Any configuration directly specified in `reidentify_config` or
|
423
|
+
# `inspect_config` will override those set in the template. Singular fields
|
424
424
|
# that are set in this request will replace their corresponding fields in the
|
425
425
|
# template. Repeated fields are appended. Singular sub-messages and groups
|
426
426
|
# are recursively merged.
|
@@ -432,7 +432,7 @@ module Google
|
|
432
432
|
# The re-identified item.
|
433
433
|
# @!attribute [rw] overview
|
434
434
|
# @return [Google::Privacy::Dlp::V2::TransformationOverview]
|
435
|
-
# An overview of the changes that were made to the
|
435
|
+
# An overview of the changes that were made to the `item`.
|
436
436
|
class ReidentifyContentResponse; end
|
437
437
|
|
438
438
|
# Request to search for potentially sensitive info in a ContentItem.
|
@@ -471,7 +471,7 @@ module Google
|
|
471
471
|
# generating the date details.
|
472
472
|
#
|
473
473
|
# For Inspect, each column in an existing output table must have the same
|
474
|
-
# name, type, and mode of a field in the
|
474
|
+
# name, type, and mode of a field in the `Finding` object.
|
475
475
|
#
|
476
476
|
# For Risk, an existing output table should be the output of a previous
|
477
477
|
# Risk analysis job run on the same source table, with the same privacy
|
@@ -482,7 +482,7 @@ module Google
|
|
482
482
|
# @return [Google::Privacy::Dlp::V2::OutputStorageConfig::OutputSchema]
|
483
483
|
# Schema used for writing the findings for Inspect jobs. This field is only
|
484
484
|
# used for Inspect and must be unspecified for Risk jobs. Columns are derived
|
485
|
-
# from the
|
485
|
+
# from the `Finding` object. If appending to an existing table, any columns
|
486
486
|
# from the predefined schema that are missing will be added. No columns in
|
487
487
|
# the existing table will be deleted.
|
488
488
|
#
|
@@ -493,8 +493,8 @@ module Google
|
|
493
493
|
module OutputSchema
|
494
494
|
OUTPUT_SCHEMA_UNSPECIFIED = 0
|
495
495
|
|
496
|
-
# Basic schema including only
|
497
|
-
#
|
496
|
+
# Basic schema including only `info_type`, `quote`, `certainty`, and
|
497
|
+
# `timestamp`.
|
498
498
|
BASIC_COLUMNS = 1
|
499
499
|
|
500
500
|
# Schema tailored to findings from scanning Google Cloud Storage.
|
@@ -1135,7 +1135,7 @@ module Google
|
|
1135
1135
|
# @return [Google::Privacy::Dlp::V2::DateShiftConfig]
|
1136
1136
|
class PrimitiveTransformation; end
|
1137
1137
|
|
1138
|
-
# For use with
|
1138
|
+
# For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a
|
1139
1139
|
# portion of the value.
|
1140
1140
|
# @!attribute [rw] part_to_extract
|
1141
1141
|
# @return [Google::Privacy::Dlp::V2::TimePartConfig::TimePart]
|
@@ -1174,7 +1174,7 @@ module Google
|
|
1174
1174
|
# The key used by the hash function.
|
1175
1175
|
class CryptoHashConfig; end
|
1176
1176
|
|
1177
|
-
# Replace each input value with a given
|
1177
|
+
# Replace each input value with a given `Value`.
|
1178
1178
|
# @!attribute [rw] new_value
|
1179
1179
|
# @return [Google::Privacy::Dlp::V2::Value]
|
1180
1180
|
# Value to replace it with.
|
@@ -1183,7 +1183,7 @@ module Google
|
|
1183
1183
|
# Replace each matching finding with the name of the info_type.
|
1184
1184
|
class ReplaceWithInfoTypeConfig; end
|
1185
1185
|
|
1186
|
-
# Redact a given value. For example, if used with an
|
1186
|
+
# Redact a given value. For example, if used with an `InfoTypeTransformation`
|
1187
1187
|
# transforming PHONE_NUMBER, and input 'My phone number is 206-555-0123', the
|
1188
1188
|
# output would be 'My phone number is '.
|
1189
1189
|
class RedactConfig; end
|
@@ -1207,7 +1207,7 @@ module Google
|
|
1207
1207
|
# a-z
|
1208
1208
|
ALPHA_LOWER_CASE = 3
|
1209
1209
|
|
1210
|
-
# US Punctuation, one of !"#$%&'()*+,-./:;<=>?@[\]^_
|
1210
|
+
# US Punctuation, one of !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
|
1211
1211
|
PUNCTUATION = 4
|
1212
1212
|
|
1213
1213
|
# Whitespace character, one of [ \t\n\x0B\f\r]
|
@@ -1233,15 +1233,15 @@ module Google
|
|
1233
1233
|
# masked. Skipped characters do not count towards this tally.
|
1234
1234
|
# @!attribute [rw] reverse_order
|
1235
1235
|
# @return [true, false]
|
1236
|
-
# Mask characters in reverse order. For example, if
|
1237
|
-
# '0', number_to_mask is 14, and
|
1236
|
+
# Mask characters in reverse order. For example, if `masking_character` is
|
1237
|
+
# '0', number_to_mask is 14, and `reverse_order` is false, then
|
1238
1238
|
# 1234-5678-9012-3456 -> 00000000000000-3456
|
1239
|
-
# If
|
1239
|
+
# If `masking_character` is '*', `number_to_mask` is 3, and `reverse_order`
|
1240
1240
|
# is true, then 12345 -> 12***
|
1241
1241
|
# @!attribute [rw] characters_to_ignore
|
1242
1242
|
# @return [Array<Google::Privacy::Dlp::V2::CharsToIgnore>]
|
1243
1243
|
# When masking a string, items in this list will be skipped when replacing.
|
1244
|
-
# For example, if your string is 555-555-5555 and you ask us to skip
|
1244
|
+
# For example, if your string is 555-555-5555 and you ask us to skip `-` and
|
1245
1245
|
# mask 5 chars with * we would produce ***-*55-5555.
|
1246
1246
|
class CharacterMaskConfig; end
|
1247
1247
|
|
@@ -1263,19 +1263,19 @@ module Google
|
|
1263
1263
|
# See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
|
1264
1264
|
# @!attribute [rw] lower_bound
|
1265
1265
|
# @return [Google::Privacy::Dlp::V2::Value]
|
1266
|
-
# Lower bound value of buckets. All values less than
|
1267
|
-
# grouped together into a single bucket; for example if
|
1266
|
+
# Lower bound value of buckets. All values less than `lower_bound` are
|
1267
|
+
# grouped together into a single bucket; for example if `lower_bound` = 10,
|
1268
1268
|
# then all values less than 10 are replaced with the value “-10”. [Required].
|
1269
1269
|
# @!attribute [rw] upper_bound
|
1270
1270
|
# @return [Google::Privacy::Dlp::V2::Value]
|
1271
1271
|
# Upper bound value of buckets. All values greater than upper_bound are
|
1272
|
-
# grouped together into a single bucket; for example if
|
1272
|
+
# grouped together into a single bucket; for example if `upper_bound` = 89,
|
1273
1273
|
# then all values greater than 89 are replaced with the value “89+”.
|
1274
1274
|
# [Required].
|
1275
1275
|
# @!attribute [rw] bucket_size
|
1276
1276
|
# @return [Float]
|
1277
1277
|
# Size of each bucket (except for minimum and maximum buckets). So if
|
1278
|
-
#
|
1278
|
+
# `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
|
1279
1279
|
# following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
|
1280
1280
|
# 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. [Required].
|
1281
1281
|
class FixedSizeBucketingConfig; end
|
@@ -1285,7 +1285,7 @@ module Google
|
|
1285
1285
|
# such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH
|
1286
1286
|
# This can be used on
|
1287
1287
|
# data of type: number, long, string, timestamp.
|
1288
|
-
# If the bound
|
1288
|
+
# If the bound `Value` type differs from the type of data being transformed, we
|
1289
1289
|
# will first attempt converting the type of the data to be transformed to match
|
1290
1290
|
# the type of the bound before comparing.
|
1291
1291
|
# See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
|
@@ -1309,7 +1309,7 @@ module Google
|
|
1309
1309
|
end
|
1310
1310
|
|
1311
1311
|
# Replaces an identifier with a surrogate using FPE with the FFX
|
1312
|
-
# mode of operation; however when used in the
|
1312
|
+
# mode of operation; however when used in the `ReidentifyContent` API method,
|
1313
1313
|
# it serves the opposite function by reversing the surrogate back into
|
1314
1314
|
# the original identifier.
|
1315
1315
|
# The identifier must be encoded as ASCII.
|
@@ -1334,8 +1334,8 @@ module Google
|
|
1334
1334
|
#
|
1335
1335
|
# a default tweak will be used.
|
1336
1336
|
#
|
1337
|
-
# Note that case (1) is expected when an
|
1338
|
-
# applied to both structured and non-structured
|
1337
|
+
# Note that case (1) is expected when an `InfoTypeTransformation` is
|
1338
|
+
# applied to both structured and non-structured `ContentItem`s.
|
1339
1339
|
# Currently, the referenced field may be of value type integer or string.
|
1340
1340
|
#
|
1341
1341
|
# The tweak is constructed as a sequence of bytes in big endian byte order
|
@@ -1371,7 +1371,7 @@ module Google
|
|
1371
1371
|
#
|
1372
1372
|
# This annotation identifies the surrogate when inspecting content using the
|
1373
1373
|
# custom infoType
|
1374
|
-
# [
|
1374
|
+
# [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
|
1375
1375
|
# This facilitates reversal of the surrogate when it occurs in free text.
|
1376
1376
|
#
|
1377
1377
|
# In order for inspection to work properly, the name of this infoType must
|
@@ -1424,7 +1424,7 @@ module Google
|
|
1424
1424
|
# @return [String]
|
1425
1425
|
# Name of the key. [required]
|
1426
1426
|
# This is an arbitrary string used to differentiate different keys.
|
1427
|
-
# A unique key is generated per name: two separate
|
1427
|
+
# A unique key is generated per name: two separate `TransientCryptoKey`
|
1428
1428
|
# protos share the same generated key if their names are the same.
|
1429
1429
|
# When the data crypto key is generated, this name is not used in any way
|
1430
1430
|
# (repeating the api call will result in a different key being generated).
|
@@ -1476,7 +1476,7 @@ module Google
|
|
1476
1476
|
class DateShiftConfig; end
|
1477
1477
|
|
1478
1478
|
# A type of transformation that will scan unstructured text and
|
1479
|
-
# apply various
|
1479
|
+
# apply various `PrimitiveTransformation`s to each finding, where the
|
1480
1480
|
# transformation is applied to only values that were identified as a specific
|
1481
1481
|
# info_type.
|
1482
1482
|
# @!attribute [rw] transformations
|
@@ -1490,7 +1490,7 @@ module Google
|
|
1490
1490
|
# @return [Array<Google::Privacy::Dlp::V2::InfoType>]
|
1491
1491
|
# InfoTypes to apply the transformation to. An empty list will cause
|
1492
1492
|
# this transformation to apply to all findings that correspond to
|
1493
|
-
# infoTypes that were requested in
|
1493
|
+
# infoTypes that were requested in `InspectConfig`.
|
1494
1494
|
# @!attribute [rw] primitive_transformation
|
1495
1495
|
# @return [Google::Privacy::Dlp::V2::PrimitiveTransformation]
|
1496
1496
|
# Primitive transformation to apply to the infoType. [required]
|
@@ -1504,7 +1504,7 @@ module Google
|
|
1504
1504
|
# @!attribute [rw] condition
|
1505
1505
|
# @return [Google::Privacy::Dlp::V2::RecordCondition]
|
1506
1506
|
# Only apply the transformation if the condition evaluates to true for the
|
1507
|
-
# given
|
1507
|
+
# given `RecordCondition`. The conditions are allowed to reference fields
|
1508
1508
|
# that are not used in the actual transformation. [optional]
|
1509
1509
|
#
|
1510
1510
|
# Example Use Cases:
|
@@ -1518,7 +1518,7 @@ module Google
|
|
1518
1518
|
# @!attribute [rw] info_type_transformations
|
1519
1519
|
# @return [Google::Privacy::Dlp::V2::InfoTypeTransformations]
|
1520
1520
|
# Treat the contents of the field as free text, and selectively
|
1521
|
-
# transform content that matches an
|
1521
|
+
# transform content that matches an `InfoType`.
|
1522
1522
|
class FieldTransformation; end
|
1523
1523
|
|
1524
1524
|
# A type of transformation that is applied over structured data such as a
|
@@ -1546,20 +1546,20 @@ module Google
|
|
1546
1546
|
# @return [Google::Privacy::Dlp::V2::RecordCondition::Expressions]
|
1547
1547
|
# An expression.
|
1548
1548
|
class RecordCondition
|
1549
|
-
# The field type of
|
1549
|
+
# The field type of `value` and `field` do not need to match to be
|
1550
1550
|
# considered equal, but not all comparisons are possible.
|
1551
1551
|
#
|
1552
|
-
# A
|
1552
|
+
# A `value` of type:
|
1553
1553
|
#
|
1554
|
-
# *
|
1555
|
-
# *
|
1556
|
-
# *
|
1554
|
+
# * `string` can be compared against all other types
|
1555
|
+
# * `boolean` can only be compared against other booleans
|
1556
|
+
# * `integer` can be compared against doubles or a string if the string value
|
1557
1557
|
# can be parsed as an integer.
|
1558
|
-
# *
|
1558
|
+
# * `double` can be compared against integers or a string if the string can
|
1559
1559
|
# be parsed as a double.
|
1560
|
-
# *
|
1560
|
+
# * `Timestamp` can be compared against strings in RFC 3339 date string
|
1561
1561
|
# format.
|
1562
|
-
# *
|
1562
|
+
# * `TimeOfDay` can be compared against timestamps and strings in the format
|
1563
1563
|
# of 'HH:mm:ss'.
|
1564
1564
|
#
|
1565
1565
|
# If we fail to compare do to type mismatch, a warning will be given and
|
@@ -1572,7 +1572,7 @@ module Google
|
|
1572
1572
|
# Operator used to compare the field or infoType to the value. [required]
|
1573
1573
|
# @!attribute [rw] value
|
1574
1574
|
# @return [Google::Privacy::Dlp::V2::Value]
|
1575
|
-
# Value to compare against. [Required, except for
|
1575
|
+
# Value to compare against. [Required, except for `EXISTS` tests.]
|
1576
1576
|
class Condition; end
|
1577
1577
|
|
1578
1578
|
# A collection of conditions.
|
@@ -1584,7 +1584,7 @@ module Google
|
|
1584
1584
|
# @!attribute [rw] logical_operator
|
1585
1585
|
# @return [Google::Privacy::Dlp::V2::RecordCondition::Expressions::LogicalOperator]
|
1586
1586
|
# The operator to apply to the result of conditions. Default and currently
|
1587
|
-
# only supported value is
|
1587
|
+
# only supported value is `AND`.
|
1588
1588
|
# @!attribute [rw] conditions
|
1589
1589
|
# @return [Google::Privacy::Dlp::V2::RecordCondition::Conditions]
|
1590
1590
|
class Expressions
|
@@ -1632,7 +1632,7 @@ module Google
|
|
1632
1632
|
# Total size in bytes that were transformed in some way.
|
1633
1633
|
class TransformationSummary
|
1634
1634
|
# A collection that informs the user the number of times a particular
|
1635
|
-
#
|
1635
|
+
# `TransformationResultCode` and error details occurred.
|
1636
1636
|
# @!attribute [rw] count
|
1637
1637
|
# @return [Integer]
|
1638
1638
|
# @!attribute [rw] code
|
@@ -1675,8 +1675,8 @@ module Google
|
|
1675
1675
|
# The template name. Output only.
|
1676
1676
|
#
|
1677
1677
|
# The template will have one of the following formats:
|
1678
|
-
#
|
1679
|
-
#
|
1678
|
+
# `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR
|
1679
|
+
# `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`
|
1680
1680
|
# @!attribute [rw] display_name
|
1681
1681
|
# @return [String]
|
1682
1682
|
# Display name (max 256 chars).
|
@@ -1701,8 +1701,8 @@ module Google
|
|
1701
1701
|
# The template name. Output only.
|
1702
1702
|
#
|
1703
1703
|
# The template will have one of the following formats:
|
1704
|
-
#
|
1705
|
-
#
|
1704
|
+
# `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR
|
1705
|
+
# `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID`
|
1706
1706
|
# @!attribute [rw] display_name
|
1707
1707
|
# @return [String]
|
1708
1708
|
# Display name (max 256 chars).
|
@@ -1736,7 +1736,7 @@ module Google
|
|
1736
1736
|
# @return [String]
|
1737
1737
|
# Unique resource name for the triggeredJob, assigned by the service when the
|
1738
1738
|
# triggeredJob is created, for example
|
1739
|
-
#
|
1739
|
+
# `projects/dlp-test-project/triggeredJobs/53234423`.
|
1740
1740
|
# @!attribute [rw] display_name
|
1741
1741
|
# @return [String]
|
1742
1742
|
# Display name (max 100 chars)
|
@@ -1848,7 +1848,7 @@ module Google
|
|
1848
1848
|
# @return [String]
|
1849
1849
|
# The template id can contain uppercase and lowercase letters,
|
1850
1850
|
# numbers, and hyphens; that is, it must match the regular
|
1851
|
-
# expression:
|
1851
|
+
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
|
1852
1852
|
# characters. Can be empty to allow the system to generate one.
|
1853
1853
|
class CreateInspectTemplateRequest; end
|
1854
1854
|
|
@@ -1856,7 +1856,7 @@ module Google
|
|
1856
1856
|
# @!attribute [rw] name
|
1857
1857
|
# @return [String]
|
1858
1858
|
# Resource name of organization and inspectTemplate to be updated, for
|
1859
|
-
# example
|
1859
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
1860
1860
|
# projects/project-id/inspectTemplates/432452342.
|
1861
1861
|
# @!attribute [rw] inspect_template
|
1862
1862
|
# @return [Google::Privacy::Dlp::V2::InspectTemplate]
|
@@ -1870,7 +1870,7 @@ module Google
|
|
1870
1870
|
# @!attribute [rw] name
|
1871
1871
|
# @return [String]
|
1872
1872
|
# Resource name of the organization and inspectTemplate to be read, for
|
1873
|
-
# example
|
1873
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
1874
1874
|
# projects/project-id/inspectTemplates/432452342.
|
1875
1875
|
class GetInspectTemplateRequest; end
|
1876
1876
|
|
@@ -1882,7 +1882,7 @@ module Google
|
|
1882
1882
|
# @!attribute [rw] page_token
|
1883
1883
|
# @return [String]
|
1884
1884
|
# Optional page token to continue retrieval. Comes from previous call
|
1885
|
-
# to
|
1885
|
+
# to `ListInspectTemplates`.
|
1886
1886
|
# @!attribute [rw] page_size
|
1887
1887
|
# @return [Integer]
|
1888
1888
|
# Optional size of the page, can be limited by server. If zero server returns
|
@@ -1903,7 +1903,7 @@ module Google
|
|
1903
1903
|
# @!attribute [rw] name
|
1904
1904
|
# @return [String]
|
1905
1905
|
# Resource name of the organization and inspectTemplate to be deleted, for
|
1906
|
-
# example
|
1906
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
1907
1907
|
# projects/project-id/inspectTemplates/432452342.
|
1908
1908
|
class DeleteInspectTemplateRequest; end
|
1909
1909
|
|
@@ -1918,7 +1918,7 @@ module Google
|
|
1918
1918
|
# @return [String]
|
1919
1919
|
# The trigger id can contain uppercase and lowercase letters,
|
1920
1920
|
# numbers, and hyphens; that is, it must match the regular
|
1921
|
-
# expression:
|
1921
|
+
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
|
1922
1922
|
# characters. Can be empty to allow the system to generate one.
|
1923
1923
|
class CreateJobTriggerRequest; end
|
1924
1924
|
|
@@ -1926,7 +1926,7 @@ module Google
|
|
1926
1926
|
# @!attribute [rw] name
|
1927
1927
|
# @return [String]
|
1928
1928
|
# Resource name of the project and the triggeredJob, for example
|
1929
|
-
#
|
1929
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1930
1930
|
# @!attribute [rw] job_trigger
|
1931
1931
|
# @return [Google::Privacy::Dlp::V2::JobTrigger]
|
1932
1932
|
# New JobTrigger value.
|
@@ -1939,7 +1939,7 @@ module Google
|
|
1939
1939
|
# @!attribute [rw] name
|
1940
1940
|
# @return [String]
|
1941
1941
|
# Resource name of the project and the triggeredJob, for example
|
1942
|
-
#
|
1942
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1943
1943
|
class GetJobTriggerRequest; end
|
1944
1944
|
|
1945
1945
|
# Request message for CreateDlpJobRequest. Used to initiate long running
|
@@ -1956,18 +1956,18 @@ module Google
|
|
1956
1956
|
# @return [String]
|
1957
1957
|
# The job id can contain uppercase and lowercase letters,
|
1958
1958
|
# numbers, and hyphens; that is, it must match the regular
|
1959
|
-
# expression:
|
1959
|
+
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
|
1960
1960
|
# characters. Can be empty to allow the system to generate one.
|
1961
1961
|
class CreateDlpJobRequest; end
|
1962
1962
|
|
1963
1963
|
# Request message for ListJobTriggers.
|
1964
1964
|
# @!attribute [rw] parent
|
1965
1965
|
# @return [String]
|
1966
|
-
# The parent resource name, for example
|
1966
|
+
# The parent resource name, for example `projects/my-project-id`.
|
1967
1967
|
# @!attribute [rw] page_token
|
1968
1968
|
# @return [String]
|
1969
1969
|
# Optional page token to continue retrieval. Comes from previous call
|
1970
|
-
# to ListJobTriggers.
|
1970
|
+
# to ListJobTriggers. `order_by` field must not
|
1971
1971
|
# change for subsequent calls.
|
1972
1972
|
# @!attribute [rw] page_size
|
1973
1973
|
# @return [Integer]
|
@@ -1975,17 +1975,17 @@ module Google
|
|
1975
1975
|
# @!attribute [rw] order_by
|
1976
1976
|
# @return [String]
|
1977
1977
|
# Optional comma separated list of triggeredJob fields to order by,
|
1978
|
-
# followed by
|
1978
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
1979
1979
|
# default sorting order is ascending, redundant space characters are
|
1980
1980
|
# insignificant.
|
1981
1981
|
#
|
1982
|
-
# Example:
|
1982
|
+
# Example: `name asc,update_time, create_time desc`
|
1983
1983
|
#
|
1984
1984
|
# Supported fields are:
|
1985
1985
|
#
|
1986
|
-
# *
|
1987
|
-
# *
|
1988
|
-
# *
|
1986
|
+
# * `create_time`: corresponds to time the triggeredJob was created.
|
1987
|
+
# * `update_time`: corresponds to time the triggeredJob was last updated.
|
1988
|
+
# * `name`: corresponds to JobTrigger's name.
|
1989
1989
|
class ListJobTriggersRequest; end
|
1990
1990
|
|
1991
1991
|
# Response message for ListJobTriggers.
|
@@ -2002,7 +2002,7 @@ module Google
|
|
2002
2002
|
# @!attribute [rw] name
|
2003
2003
|
# @return [String]
|
2004
2004
|
# Resource name of the project and the triggeredJob, for example
|
2005
|
-
#
|
2005
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
2006
2006
|
class DeleteJobTriggerRequest; end
|
2007
2007
|
|
2008
2008
|
# @!attribute [rw] storage_config
|
@@ -2014,7 +2014,7 @@ module Google
|
|
2014
2014
|
# @!attribute [rw] inspect_template_name
|
2015
2015
|
# @return [String]
|
2016
2016
|
# If provided, will be used as the default for all values in InspectConfig.
|
2017
|
-
#
|
2017
|
+
# `inspect_config` will be merged into the values persisted as part of the
|
2018
2018
|
# template.
|
2019
2019
|
# @!attribute [rw] actions
|
2020
2020
|
# @return [Array<Google::Privacy::Dlp::V2::Action>]
|
@@ -2092,16 +2092,16 @@ module Google
|
|
2092
2092
|
# Supported syntax:
|
2093
2093
|
#
|
2094
2094
|
# * Filter expressions are made up of one or more restrictions.
|
2095
|
-
# * Restrictions can be combined by
|
2096
|
-
# sequence of restrictions implicitly uses
|
2097
|
-
# * A restriction has the form of
|
2095
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
2096
|
+
# sequence of restrictions implicitly uses `AND`.
|
2097
|
+
# * A restriction has the form of `<field> <operator> <value>`.
|
2098
2098
|
# * Supported fields/values for inspect jobs:
|
2099
|
-
# *
|
2100
|
-
# *
|
2101
|
-
# *
|
2099
|
+
# * `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
|
2100
|
+
# * `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
2101
|
+
# * `trigger_name` - The resource name of the trigger that created job.
|
2102
2102
|
# * Supported fields for risk analysis jobs:
|
2103
|
-
# *
|
2104
|
-
# * The operator must be
|
2103
|
+
# * `state` - RUNNING|CANCELED|FINISHED|FAILED
|
2104
|
+
# * The operator must be `=` or `!=`.
|
2105
2105
|
#
|
2106
2106
|
# Examples:
|
2107
2107
|
#
|
@@ -2118,7 +2118,7 @@ module Google
|
|
2118
2118
|
# The standard list page token.
|
2119
2119
|
# @!attribute [rw] type
|
2120
2120
|
# @return [Google::Privacy::Dlp::V2::DlpJobType]
|
2121
|
-
# The type of job. Defaults to
|
2121
|
+
# The type of job. Defaults to `DlpJobType.INSPECT`
|
2122
2122
|
class ListDlpJobsRequest; end
|
2123
2123
|
|
2124
2124
|
# The response message for listing DLP jobs.
|
@@ -2154,7 +2154,7 @@ module Google
|
|
2154
2154
|
# @return [String]
|
2155
2155
|
# The template id can contain uppercase and lowercase letters,
|
2156
2156
|
# numbers, and hyphens; that is, it must match the regular
|
2157
|
-
# expression:
|
2157
|
+
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
|
2158
2158
|
# characters. Can be empty to allow the system to generate one.
|
2159
2159
|
class CreateDeidentifyTemplateRequest; end
|
2160
2160
|
|
@@ -2162,7 +2162,7 @@ module Google
|
|
2162
2162
|
# @!attribute [rw] name
|
2163
2163
|
# @return [String]
|
2164
2164
|
# Resource name of organization and deidentify template to be updated, for
|
2165
|
-
# example
|
2165
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
2166
2166
|
# projects/project-id/deidentifyTemplates/432452342.
|
2167
2167
|
# @!attribute [rw] deidentify_template
|
2168
2168
|
# @return [Google::Privacy::Dlp::V2::DeidentifyTemplate]
|
@@ -2176,7 +2176,7 @@ module Google
|
|
2176
2176
|
# @!attribute [rw] name
|
2177
2177
|
# @return [String]
|
2178
2178
|
# Resource name of the organization and deidentify template to be read, for
|
2179
|
-
# example
|
2179
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
2180
2180
|
# projects/project-id/deidentifyTemplates/432452342.
|
2181
2181
|
class GetDeidentifyTemplateRequest; end
|
2182
2182
|
|
@@ -2188,7 +2188,7 @@ module Google
|
|
2188
2188
|
# @!attribute [rw] page_token
|
2189
2189
|
# @return [String]
|
2190
2190
|
# Optional page token to continue retrieval. Comes from previous call
|
2191
|
-
# to
|
2191
|
+
# to `ListDeidentifyTemplates`.
|
2192
2192
|
# @!attribute [rw] page_size
|
2193
2193
|
# @return [Integer]
|
2194
2194
|
# Optional size of the page, can be limited by server. If zero server returns
|
@@ -2210,7 +2210,7 @@ module Google
|
|
2210
2210
|
# @!attribute [rw] name
|
2211
2211
|
# @return [String]
|
2212
2212
|
# Resource name of the organization and deidentify template to be deleted,
|
2213
|
-
# for example
|
2213
|
+
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
2214
2214
|
# projects/project-id/deidentifyTemplates/432452342.
|
2215
2215
|
class DeleteDeidentifyTemplateRequest; end
|
2216
2216
|
|
@@ -2218,7 +2218,7 @@ module Google
|
|
2218
2218
|
# up to the maximum size defined in the
|
2219
2219
|
# [limits](https://cloud.google.com/dlp/limits) page. The artifacts of
|
2220
2220
|
# dictionary creation are stored in the specified Google Cloud Storage
|
2221
|
-
# location. Consider using
|
2221
|
+
# location. Consider using `CustomInfoType.Dictionary` for smaller dictionaries
|
2222
2222
|
# that satisfy the size requirements.
|
2223
2223
|
# @!attribute [rw] output_path
|
2224
2224
|
# @return [Google::Privacy::Dlp::V2::CloudStoragePath]
|
@@ -2270,7 +2270,7 @@ module Google
|
|
2270
2270
|
# deleted by the user or another system, the dictionary becomes invalid.
|
2271
2271
|
# <p>If any errors occur, fix the problem indicated by the error message and
|
2272
2272
|
# use the UpdateStoredInfoType API method to create another version of the
|
2273
|
-
# storedInfoType to continue using it, reusing the same
|
2273
|
+
# storedInfoType to continue using it, reusing the same `config` if it was
|
2274
2274
|
# not the source of the error.
|
2275
2275
|
class StoredInfoTypeVersion; end
|
2276
2276
|
|
@@ -2300,7 +2300,7 @@ module Google
|
|
2300
2300
|
# @return [String]
|
2301
2301
|
# The storedInfoType ID can contain uppercase and lowercase letters,
|
2302
2302
|
# numbers, and hyphens; that is, it must match the regular
|
2303
|
-
# expression:
|
2303
|
+
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
|
2304
2304
|
# characters. Can be empty to allow the system to generate one.
|
2305
2305
|
class CreateStoredInfoTypeRequest; end
|
2306
2306
|
|
@@ -2308,7 +2308,7 @@ module Google
|
|
2308
2308
|
# @!attribute [rw] name
|
2309
2309
|
# @return [String]
|
2310
2310
|
# Resource name of organization and storedInfoType to be updated, for
|
2311
|
-
# example
|
2311
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
2312
2312
|
# projects/project-id/storedInfoTypes/432452342.
|
2313
2313
|
# @!attribute [rw] config
|
2314
2314
|
# @return [Google::Privacy::Dlp::V2::StoredInfoTypeConfig]
|
@@ -2324,7 +2324,7 @@ module Google
|
|
2324
2324
|
# @!attribute [rw] name
|
2325
2325
|
# @return [String]
|
2326
2326
|
# Resource name of the organization and storedInfoType to be read, for
|
2327
|
-
# example
|
2327
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
2328
2328
|
# projects/project-id/storedInfoTypes/432452342.
|
2329
2329
|
class GetStoredInfoTypeRequest; end
|
2330
2330
|
|
@@ -2336,7 +2336,7 @@ module Google
|
|
2336
2336
|
# @!attribute [rw] page_token
|
2337
2337
|
# @return [String]
|
2338
2338
|
# Optional page token to continue retrieval. Comes from previous call
|
2339
|
-
# to
|
2339
|
+
# to `ListStoredInfoTypes`.
|
2340
2340
|
# @!attribute [rw] page_size
|
2341
2341
|
# @return [Integer]
|
2342
2342
|
# Optional size of the page, can be limited by server. If zero server returns
|
@@ -2357,7 +2357,7 @@ module Google
|
|
2357
2357
|
# @!attribute [rw] name
|
2358
2358
|
# @return [String]
|
2359
2359
|
# Resource name of the organization and storedInfoType to be deleted, for
|
2360
|
-
# example
|
2360
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
2361
2361
|
# projects/project-id/storedInfoTypes/432452342.
|
2362
2362
|
class DeleteStoredInfoTypeRequest; end
|
2363
2363
|
|
@@ -2432,12 +2432,12 @@ module Google
|
|
2432
2432
|
READY = 2
|
2433
2433
|
|
2434
2434
|
# StoredInfoType creation failed. All relevant error messages are returned in
|
2435
|
-
# the
|
2435
|
+
# the `StoredInfoTypeVersion` message.
|
2436
2436
|
FAILED = 3
|
2437
2437
|
|
2438
2438
|
# StoredInfoType is no longer valid because artifacts stored in
|
2439
2439
|
# user-controlled storage were modified. To fix an invalid StoredInfoType,
|
2440
|
-
# use the
|
2440
|
+
# use the `UpdateStoredInfoType` method to create a new version.
|
2441
2441
|
INVALID = 4
|
2442
2442
|
end
|
2443
2443
|
end
|