google-cloud-dlp-v2 0.4.0 → 0.5.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: 532bee2d8fd58203eb35dd788853ce9173dd7fd2ee469d05ba70de27c0c46ce7
4
- data.tar.gz: e14647ef944ae34c1016b43be48f1300adbcfbb4178ef68896e6933d930faae1
3
+ metadata.gz: 650ad3676f37e3e9aceffd30c659024601317a40d87e909ff531072f9d78629f
4
+ data.tar.gz: 7ad95e9d84eb8cd5fd21efd3a3c76697f0bd7ac797309a684e718809233f8562
5
5
  SHA512:
6
- metadata.gz: 5ad21583233ebe765e5943444543adf86ae5c1615bf17a140a02cbe409b568d15803275ad54f37fcf4b055501a9b8a73dd4abe65c15510ed35fd59dcca4e7ffb
7
- data.tar.gz: bedccec1545c50c028b1b4c6d8490e46802c3f92633a6d3eea2c5b1ae63a6a4796adcf993ea30d233d2c3d3ceec3b88193cad0f6c0f54d1abbbd0174d178eb48
6
+ metadata.gz: df3ee8e2dfe1d681d1f2546c1cd3680f1d814f9380add4c093b91bf841e6a128d4c0a8993f203510e95831f408d7d9d72526701538e24fe3de607ca6a861573b
7
+ data.tar.gz: d0a6d4296daa330cb3e28600b06ecf29dc9c816d7f0eef6deedeac18495a906b89b09b953e07e893b27eadf79d8d18f7affb040a3528ff9ba5ec5d241515f8c1
@@ -78,7 +78,7 @@ module Google
78
78
  initial_delay: 0.1,
79
79
  max_delay: 60.0,
80
80
  multiplier: 1.3,
81
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
81
+ retry_codes: [14, 4]
82
82
  }
83
83
 
84
84
  default_config.rpcs.redact_image.timeout = 300.0
@@ -86,7 +86,7 @@ module Google
86
86
  initial_delay: 0.1,
87
87
  max_delay: 60.0,
88
88
  multiplier: 1.3,
89
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
89
+ retry_codes: [14, 4]
90
90
  }
91
91
 
92
92
  default_config.rpcs.deidentify_content.timeout = 300.0
@@ -94,7 +94,7 @@ module Google
94
94
  initial_delay: 0.1,
95
95
  max_delay: 60.0,
96
96
  multiplier: 1.3,
97
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
97
+ retry_codes: [14, 4]
98
98
  }
99
99
 
100
100
  default_config.rpcs.reidentify_content.timeout = 300.0
@@ -102,7 +102,7 @@ module Google
102
102
  initial_delay: 0.1,
103
103
  max_delay: 60.0,
104
104
  multiplier: 1.3,
105
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
105
+ retry_codes: [14, 4]
106
106
  }
107
107
 
108
108
  default_config.rpcs.list_info_types.timeout = 300.0
@@ -110,7 +110,7 @@ module Google
110
110
  initial_delay: 0.1,
111
111
  max_delay: 60.0,
112
112
  multiplier: 1.3,
113
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
113
+ retry_codes: [14, 4]
114
114
  }
115
115
 
116
116
  default_config.rpcs.create_inspect_template.timeout = 300.0
@@ -122,7 +122,7 @@ module Google
122
122
  initial_delay: 0.1,
123
123
  max_delay: 60.0,
124
124
  multiplier: 1.3,
125
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
125
+ retry_codes: [14, 4]
126
126
  }
127
127
 
128
128
  default_config.rpcs.list_inspect_templates.timeout = 300.0
@@ -130,7 +130,7 @@ module Google
130
130
  initial_delay: 0.1,
131
131
  max_delay: 60.0,
132
132
  multiplier: 1.3,
133
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
133
+ retry_codes: [14, 4]
134
134
  }
135
135
 
136
136
  default_config.rpcs.delete_inspect_template.timeout = 300.0
@@ -138,7 +138,7 @@ module Google
138
138
  initial_delay: 0.1,
139
139
  max_delay: 60.0,
140
140
  multiplier: 1.3,
141
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
141
+ retry_codes: [14, 4]
142
142
  }
143
143
 
144
144
  default_config.rpcs.create_deidentify_template.timeout = 300.0
@@ -150,7 +150,7 @@ module Google
150
150
  initial_delay: 0.1,
151
151
  max_delay: 60.0,
152
152
  multiplier: 1.3,
153
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
153
+ retry_codes: [14, 4]
154
154
  }
155
155
 
156
156
  default_config.rpcs.list_deidentify_templates.timeout = 300.0
@@ -158,7 +158,7 @@ module Google
158
158
  initial_delay: 0.1,
159
159
  max_delay: 60.0,
160
160
  multiplier: 1.3,
161
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
161
+ retry_codes: [14, 4]
162
162
  }
163
163
 
164
164
  default_config.rpcs.delete_deidentify_template.timeout = 300.0
@@ -166,7 +166,7 @@ module Google
166
166
  initial_delay: 0.1,
167
167
  max_delay: 60.0,
168
168
  multiplier: 1.3,
169
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
169
+ retry_codes: [14, 4]
170
170
  }
171
171
 
172
172
  default_config.rpcs.create_job_trigger.timeout = 300.0
@@ -180,7 +180,7 @@ module Google
180
180
  initial_delay: 0.1,
181
181
  max_delay: 60.0,
182
182
  multiplier: 1.3,
183
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
183
+ retry_codes: [14, 4]
184
184
  }
185
185
 
186
186
  default_config.rpcs.list_job_triggers.timeout = 300.0
@@ -188,7 +188,7 @@ module Google
188
188
  initial_delay: 0.1,
189
189
  max_delay: 60.0,
190
190
  multiplier: 1.3,
191
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
191
+ retry_codes: [14, 4]
192
192
  }
193
193
 
194
194
  default_config.rpcs.delete_job_trigger.timeout = 300.0
@@ -196,7 +196,7 @@ module Google
196
196
  initial_delay: 0.1,
197
197
  max_delay: 60.0,
198
198
  multiplier: 1.3,
199
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
199
+ retry_codes: [14, 4]
200
200
  }
201
201
 
202
202
  default_config.rpcs.activate_job_trigger.timeout = 300.0
@@ -208,7 +208,7 @@ module Google
208
208
  initial_delay: 0.1,
209
209
  max_delay: 60.0,
210
210
  multiplier: 1.3,
211
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
211
+ retry_codes: [14, 4]
212
212
  }
213
213
 
214
214
  default_config.rpcs.get_dlp_job.timeout = 300.0
@@ -216,7 +216,7 @@ module Google
216
216
  initial_delay: 0.1,
217
217
  max_delay: 60.0,
218
218
  multiplier: 1.3,
219
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
219
+ retry_codes: [14, 4]
220
220
  }
221
221
 
222
222
  default_config.rpcs.delete_dlp_job.timeout = 300.0
@@ -224,7 +224,7 @@ module Google
224
224
  initial_delay: 0.1,
225
225
  max_delay: 60.0,
226
226
  multiplier: 1.3,
227
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
227
+ retry_codes: [14, 4]
228
228
  }
229
229
 
230
230
  default_config.rpcs.cancel_dlp_job.timeout = 300.0
@@ -238,7 +238,7 @@ module Google
238
238
  initial_delay: 0.1,
239
239
  max_delay: 60.0,
240
240
  multiplier: 1.3,
241
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
241
+ retry_codes: [14, 4]
242
242
  }
243
243
 
244
244
  default_config.rpcs.list_stored_info_types.timeout = 300.0
@@ -246,7 +246,7 @@ module Google
246
246
  initial_delay: 0.1,
247
247
  max_delay: 60.0,
248
248
  multiplier: 1.3,
249
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
249
+ retry_codes: [14, 4]
250
250
  }
251
251
 
252
252
  default_config.rpcs.delete_stored_info_type.timeout = 300.0
@@ -254,7 +254,7 @@ module Google
254
254
  initial_delay: 0.1,
255
255
  max_delay: 60.0,
256
256
  multiplier: 1.3,
257
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
257
+ retry_codes: [14, 4]
258
258
  }
259
259
 
260
260
  default_config.rpcs.hybrid_inspect_dlp_job.timeout = 300.0
@@ -368,8 +368,21 @@ module Google
368
368
  #
369
369
  # @param parent [::String]
370
370
  # Parent resource name.
371
- # - Format:projects/[PROJECT-ID]
372
- # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
371
+ #
372
+ # The format of this value varies depending on whether you have [specified a
373
+ # processing
374
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
375
+ #
376
+ # + Projects scope, location specified:<br/>
377
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
378
+ # + Projects scope, no location specified (defaults to global):<br/>
379
+ # `projects/`<var>PROJECT_ID</var>
380
+ #
381
+ # The following example `parent` string specifies a parent project with the
382
+ # identifier `example-project`, and specifies the `europe-west3` location
383
+ # for processing data:
384
+ #
385
+ # parent=projects/example-project/locations/europe-west3
373
386
  # @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
374
387
  # Configuration for the inspector. What specified here will override
375
388
  # the template referenced by the inspect_template_name argument.
@@ -455,9 +468,22 @@ module Google
455
468
  # the default parameter values, pass an empty Hash as a request object (see above).
456
469
  #
457
470
  # @param parent [::String]
458
- # The parent resource name.
459
- # - Format:projects/[PROJECT-ID]
460
- # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
471
+ # Parent resource name.
472
+ #
473
+ # The format of this value varies depending on whether you have [specified a
474
+ # processing
475
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
476
+ #
477
+ # + Projects scope, location specified:<br/>
478
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
479
+ # + Projects scope, no location specified (defaults to global):<br/>
480
+ # `projects/`<var>PROJECT_ID</var>
481
+ #
482
+ # The following example `parent` string specifies a parent project with the
483
+ # identifier `example-project`, and specifies the `europe-west3` location
484
+ # for processing data:
485
+ #
486
+ # parent=projects/example-project/locations/europe-west3
461
487
  # @param location_id [::String]
462
488
  # Deprecated. This field has no effect.
463
489
  # @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
@@ -542,8 +568,21 @@ module Google
542
568
  #
543
569
  # @param parent [::String]
544
570
  # Parent resource name.
545
- # - Format:projects/[PROJECT-ID]
546
- # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
571
+ #
572
+ # The format of this value varies depending on whether you have [specified a
573
+ # processing
574
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
575
+ #
576
+ # + Projects scope, location specified:<br/>
577
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
578
+ # + Projects scope, no location specified (defaults to global):<br/>
579
+ # `projects/`<var>PROJECT_ID</var>
580
+ #
581
+ # The following example `parent` string specifies a parent project with the
582
+ # identifier `example-project`, and specifies the `europe-west3` location
583
+ # for processing data:
584
+ #
585
+ # parent=projects/example-project/locations/europe-west3
547
586
  # @param deidentify_config [::Google::Cloud::Dlp::V2::DeidentifyConfig, ::Hash]
548
587
  # Configuration for the de-identification of the content item.
549
588
  # Items specified here will override the template referenced by the
@@ -636,9 +675,22 @@ module Google
636
675
  # the default parameter values, pass an empty Hash as a request object (see above).
637
676
  #
638
677
  # @param parent [::String]
639
- # Required. The parent resource name.
640
- # - Format:projects/[PROJECT-ID]
641
- # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
678
+ # Required. Parent resource name.
679
+ #
680
+ # The format of this value varies depending on whether you have [specified a
681
+ # processing
682
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
683
+ #
684
+ # + Projects scope, location specified:<br/>
685
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
686
+ # + Projects scope, no location specified (defaults to global):<br/>
687
+ # `projects/`<var>PROJECT_ID</var>
688
+ #
689
+ # The following example `parent` string specifies a parent project with the
690
+ # identifier `example-project`, and specifies the `europe-west3` location
691
+ # for processing data:
692
+ #
693
+ # parent=projects/example-project/locations/europe-west3
642
694
  # @param reidentify_config [::Google::Cloud::Dlp::V2::DeidentifyConfig, ::Hash]
643
695
  # Configuration for the re-identification of the content item.
644
696
  # This field shares the same proto message type that is used for
@@ -663,10 +715,11 @@ module Google
663
715
  # @param reidentify_template_name [::String]
664
716
  # Template to use. References an instance of `DeidentifyTemplate`.
665
717
  # Any configuration directly specified in `reidentify_config` or
666
- # `inspect_config` will override those set in the template. Singular fields
667
- # that are set in this request will replace their corresponding fields in the
668
- # template. Repeated fields are appended. Singular sub-messages and groups
669
- # are recursively merged.
718
+ # `inspect_config` will override those set in the template. The
719
+ # `DeidentifyTemplate` used must include only reversible transformations.
720
+ # Singular fields that are set in this request will replace their
721
+ # corresponding fields in the template. Repeated fields are appended.
722
+ # Singular sub-messages and groups are recursively merged.
670
723
  # @param location_id [::String]
671
724
  # Deprecated. This field has no effect.
672
725
  #
@@ -737,7 +790,10 @@ module Google
737
790
  #
738
791
  # @param parent [::String]
739
792
  # The parent resource name.
740
- # - Format:locations/[LOCATION-ID]
793
+ #
794
+ # The format of this value is as follows:
795
+ #
796
+ # locations/<var>LOCATION_ID</var>
741
797
  # @param language_code [::String]
742
798
  # BCP-47 language code for localized infoType friendly
743
799
  # names. If omitted, or if localized strings are not available,
@@ -809,16 +865,31 @@ module Google
809
865
  #
810
866
  # @param parent [::String]
811
867
  # Required. Parent resource name.
812
- # - Format:projects/[PROJECT-ID]
813
- # - Format:organizations/[ORGANIZATION-ID]
814
- # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
815
- # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
868
+ #
869
+ # The format of this value varies depending on the scope of the request
870
+ # (project or organization) and whether you have [specified a processing
871
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
872
+ #
873
+ # + Projects scope, location specified:<br/>
874
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
875
+ # + Projects scope, no location specified (defaults to global):<br/>
876
+ # `projects/`<var>PROJECT_ID</var>
877
+ # + Organizations scope, location specified:<br/>
878
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
879
+ # + Organizations scope, no location specified (defaults to global):<br/>
880
+ # `organizations/`<var>ORG_ID</var>
881
+ #
882
+ # The following example `parent` string specifies a parent project with the
883
+ # identifier `example-project`, and specifies the `europe-west3` location
884
+ # for processing data:
885
+ #
886
+ # parent=projects/example-project/locations/europe-west3
816
887
  # @param inspect_template [::Google::Cloud::Dlp::V2::InspectTemplate, ::Hash]
817
888
  # Required. The InspectTemplate to create.
818
889
  # @param template_id [::String]
819
890
  # The template id can contain uppercase and lowercase letters,
820
891
  # numbers, and hyphens; that is, it must match the regular
821
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
892
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
822
893
  # characters. Can be empty to allow the system to generate one.
823
894
  # @param location_id [::String]
824
895
  # Deprecated. This field has no effect.
@@ -1031,10 +1102,25 @@ module Google
1031
1102
  #
1032
1103
  # @param parent [::String]
1033
1104
  # Required. Parent resource name.
1034
- # - Format:projects/[PROJECT-ID]
1035
- # - Format:organizations/[ORGANIZATION-ID]
1036
- # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
1037
- # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
1105
+ #
1106
+ # The format of this value varies depending on the scope of the request
1107
+ # (project or organization) and whether you have [specified a processing
1108
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
1109
+ #
1110
+ # + Projects scope, location specified:<br/>
1111
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1112
+ # + Projects scope, no location specified (defaults to global):<br/>
1113
+ # `projects/`<var>PROJECT_ID</var>
1114
+ # + Organizations scope, location specified:<br/>
1115
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1116
+ # + Organizations scope, no location specified (defaults to global):<br/>
1117
+ # `organizations/`<var>ORG_ID</var>
1118
+ #
1119
+ # The following example `parent` string specifies a parent project with the
1120
+ # identifier `example-project`, and specifies the `europe-west3` location
1121
+ # for processing data:
1122
+ #
1123
+ # parent=projects/example-project/locations/europe-west3
1038
1124
  # @param page_token [::String]
1039
1125
  # Page token to continue retrieval. Comes from previous call
1040
1126
  # to `ListInspectTemplates`.
@@ -1196,16 +1282,31 @@ module Google
1196
1282
  #
1197
1283
  # @param parent [::String]
1198
1284
  # Required. Parent resource name.
1199
- # - Format:projects/[PROJECT-ID]
1200
- # - Format:organizations/[ORGANIZATION-ID]
1201
- # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
1202
- # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
1285
+ #
1286
+ # The format of this value varies depending on the scope of the request
1287
+ # (project or organization) and whether you have [specified a processing
1288
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
1289
+ #
1290
+ # + Projects scope, location specified:<br/>
1291
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1292
+ # + Projects scope, no location specified (defaults to global):<br/>
1293
+ # `projects/`<var>PROJECT_ID</var>
1294
+ # + Organizations scope, location specified:<br/>
1295
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1296
+ # + Organizations scope, no location specified (defaults to global):<br/>
1297
+ # `organizations/`<var>ORG_ID</var>
1298
+ #
1299
+ # The following example `parent` string specifies a parent project with the
1300
+ # identifier `example-project`, and specifies the `europe-west3` location
1301
+ # for processing data:
1302
+ #
1303
+ # parent=projects/example-project/locations/europe-west3
1203
1304
  # @param deidentify_template [::Google::Cloud::Dlp::V2::DeidentifyTemplate, ::Hash]
1204
1305
  # Required. The DeidentifyTemplate to create.
1205
1306
  # @param template_id [::String]
1206
1307
  # The template id can contain uppercase and lowercase letters,
1207
1308
  # numbers, and hyphens; that is, it must match the regular
1208
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
1309
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
1209
1310
  # characters. Can be empty to allow the system to generate one.
1210
1311
  # @param location_id [::String]
1211
1312
  # Deprecated. This field has no effect.
@@ -1421,10 +1522,25 @@ module Google
1421
1522
  #
1422
1523
  # @param parent [::String]
1423
1524
  # Required. Parent resource name.
1424
- # - Format:projects/[PROJECT-ID]
1425
- # - Format:organizations/[ORGANIZATION-ID]
1426
- # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
1427
- # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
1525
+ #
1526
+ # The format of this value varies depending on the scope of the request
1527
+ # (project or organization) and whether you have [specified a processing
1528
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
1529
+ #
1530
+ # + Projects scope, location specified:<br/>
1531
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1532
+ # + Projects scope, no location specified (defaults to global):<br/>
1533
+ # `projects/`<var>PROJECT_ID</var>
1534
+ # + Organizations scope, location specified:<br/>
1535
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1536
+ # + Organizations scope, no location specified (defaults to global):<br/>
1537
+ # `organizations/`<var>ORG_ID</var>
1538
+ #
1539
+ # The following example `parent` string specifies a parent project with the
1540
+ # identifier `example-project`, and specifies the `europe-west3` location
1541
+ # for processing data:
1542
+ #
1543
+ # parent=projects/example-project/locations/europe-west3
1428
1544
  # @param page_token [::String]
1429
1545
  # Page token to continue retrieval. Comes from previous call
1430
1546
  # to `ListDeidentifyTemplates`.
@@ -1586,14 +1702,27 @@ module Google
1586
1702
  #
1587
1703
  # @param parent [::String]
1588
1704
  # Required. Parent resource name.
1589
- # - Format:projects/[PROJECT-ID]
1590
- # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
1705
+ #
1706
+ # The format of this value varies depending on whether you have [specified a
1707
+ # processing
1708
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
1709
+ #
1710
+ # + Projects scope, location specified:<br/>
1711
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1712
+ # + Projects scope, no location specified (defaults to global):<br/>
1713
+ # `projects/`<var>PROJECT_ID</var>
1714
+ #
1715
+ # The following example `parent` string specifies a parent project with the
1716
+ # identifier `example-project`, and specifies the `europe-west3` location
1717
+ # for processing data:
1718
+ #
1719
+ # parent=projects/example-project/locations/europe-west3
1591
1720
  # @param job_trigger [::Google::Cloud::Dlp::V2::JobTrigger, ::Hash]
1592
1721
  # Required. The JobTrigger to create.
1593
1722
  # @param trigger_id [::String]
1594
1723
  # The trigger id can contain uppercase and lowercase letters,
1595
1724
  # numbers, and hyphens; that is, it must match the regular
1596
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
1725
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
1597
1726
  # characters. Can be empty to allow the system to generate one.
1598
1727
  # @param location_id [::String]
1599
1728
  # Deprecated. This field has no effect.
@@ -1878,8 +2007,21 @@ module Google
1878
2007
  #
1879
2008
  # @param parent [::String]
1880
2009
  # Required. Parent resource name.
1881
- # - Format:projects/[PROJECT-ID]
1882
- # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
2010
+ #
2011
+ # The format of this value varies depending on whether you have [specified a
2012
+ # processing
2013
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
2014
+ #
2015
+ # + Projects scope, location specified:<br/>
2016
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2017
+ # + Projects scope, no location specified (defaults to global):<br/>
2018
+ # `projects/`<var>PROJECT_ID</var>
2019
+ #
2020
+ # The following example `parent` string specifies a parent project with the
2021
+ # identifier `example-project`, and specifies the `europe-west3` location
2022
+ # for processing data:
2023
+ #
2024
+ # parent=projects/example-project/locations/europe-west3
1883
2025
  # @param page_token [::String]
1884
2026
  # Page token to continue retrieval. Comes from previous call
1885
2027
  # to ListJobTriggers. `order_by` field must not
@@ -2138,8 +2280,21 @@ module Google
2138
2280
  #
2139
2281
  # @param parent [::String]
2140
2282
  # Required. Parent resource name.
2141
- # - Format:projects/[PROJECT-ID]
2142
- # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
2283
+ #
2284
+ # The format of this value varies depending on whether you have [specified a
2285
+ # processing
2286
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
2287
+ #
2288
+ # + Projects scope, location specified:<br/>
2289
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2290
+ # + Projects scope, no location specified (defaults to global):<br/>
2291
+ # `projects/`<var>PROJECT_ID</var>
2292
+ #
2293
+ # The following example `parent` string specifies a parent project with the
2294
+ # identifier `example-project`, and specifies the `europe-west3` location
2295
+ # for processing data:
2296
+ #
2297
+ # parent=projects/example-project/locations/europe-west3
2143
2298
  # @param inspect_job [::Google::Cloud::Dlp::V2::InspectJobConfig, ::Hash]
2144
2299
  # Set to control what and how to inspect.
2145
2300
  # @param risk_job [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig, ::Hash]
@@ -2147,7 +2302,7 @@ module Google
2147
2302
  # @param job_id [::String]
2148
2303
  # The job id can contain uppercase and lowercase letters,
2149
2304
  # numbers, and hyphens; that is, it must match the regular
2150
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2305
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
2151
2306
  # characters. Can be empty to allow the system to generate one.
2152
2307
  # @param location_id [::String]
2153
2308
  # Deprecated. This field has no effect.
@@ -2219,8 +2374,21 @@ module Google
2219
2374
  #
2220
2375
  # @param parent [::String]
2221
2376
  # Required. Parent resource name.
2222
- # - Format:projects/[PROJECT-ID]
2223
- # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
2377
+ #
2378
+ # The format of this value varies depending on whether you have [specified a
2379
+ # processing
2380
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
2381
+ #
2382
+ # + Projects scope, location specified:<br/>
2383
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2384
+ # + Projects scope, no location specified (defaults to global):<br/>
2385
+ # `projects/`<var>PROJECT_ID</var>
2386
+ #
2387
+ # The following example `parent` string specifies a parent project with the
2388
+ # identifier `example-project`, and specifies the `europe-west3` location
2389
+ # for processing data:
2390
+ #
2391
+ # parent=projects/example-project/locations/europe-west3
2224
2392
  # @param filter [::String]
2225
2393
  # Allows filtering.
2226
2394
  #
@@ -2549,16 +2717,31 @@ module Google
2549
2717
  #
2550
2718
  # @param parent [::String]
2551
2719
  # Required. Parent resource name.
2552
- # - Format:projects/[PROJECT-ID]
2553
- # - Format:organizations/[ORGANIZATION-ID]
2554
- # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
2555
- # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
2720
+ #
2721
+ # The format of this value varies depending on the scope of the request
2722
+ # (project or organization) and whether you have [specified a processing
2723
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
2724
+ #
2725
+ # + Projects scope, location specified:<br/>
2726
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2727
+ # + Projects scope, no location specified (defaults to global):<br/>
2728
+ # `projects/`<var>PROJECT_ID</var>
2729
+ # + Organizations scope, location specified:<br/>
2730
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
2731
+ # + Organizations scope, no location specified (defaults to global):<br/>
2732
+ # `organizations/`<var>ORG_ID</var>
2733
+ #
2734
+ # The following example `parent` string specifies a parent project with the
2735
+ # identifier `example-project`, and specifies the `europe-west3` location
2736
+ # for processing data:
2737
+ #
2738
+ # parent=projects/example-project/locations/europe-west3
2556
2739
  # @param config [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig, ::Hash]
2557
2740
  # Required. Configuration of the storedInfoType to create.
2558
2741
  # @param stored_info_type_id [::String]
2559
2742
  # The storedInfoType ID can contain uppercase and lowercase letters,
2560
2743
  # numbers, and hyphens; that is, it must match the regular
2561
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2744
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
2562
2745
  # characters. Can be empty to allow the system to generate one.
2563
2746
  # @param location_id [::String]
2564
2747
  # Deprecated. This field has no effect.
@@ -2777,10 +2960,25 @@ module Google
2777
2960
  #
2778
2961
  # @param parent [::String]
2779
2962
  # Required. Parent resource name.
2780
- # - Format:projects/[PROJECT-ID]
2781
- # - Format:organizations/[ORGANIZATION-ID]
2782
- # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
2783
- # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
2963
+ #
2964
+ # The format of this value varies depending on the scope of the request
2965
+ # (project or organization) and whether you have [specified a processing
2966
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
2967
+ #
2968
+ # + Projects scope, location specified:<br/>
2969
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2970
+ # + Projects scope, no location specified (defaults to global):<br/>
2971
+ # `projects/`<var>PROJECT_ID</var>
2972
+ # + Organizations scope, location specified:<br/>
2973
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
2974
+ # + Organizations scope, no location specified (defaults to global):<br/>
2975
+ # `organizations/`<var>ORG_ID</var>
2976
+ #
2977
+ # The following example `parent` string specifies a parent project with the
2978
+ # identifier `example-project`, and specifies the `europe-west3` location
2979
+ # for processing data:
2980
+ #
2981
+ # parent=projects/example-project/locations/europe-west3
2784
2982
  # @param page_token [::String]
2785
2983
  # Page token to continue retrieval. Comes from previous call
2786
2984
  # to `ListStoredInfoTypes`.
@@ -3150,7 +3348,7 @@ module Google
3150
3348
 
3151
3349
  config_attr :endpoint, "dlp.googleapis.com", ::String
3152
3350
  config_attr :credentials, nil do |value|
3153
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3351
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3154
3352
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
3155
3353
  allowed.any? { |klass| klass === value }
3156
3354
  end