google-cloud-dlp-v2 0.3.3 → 0.4.4

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: d2925eaa182f4b6592deee2241c10cfd50509a1d0804f3d66c5175125cfd6e18
4
- data.tar.gz: 23d13d4c73b7ffd42af97fe06a26de8265f90e9cc5673ff89530128c95eecaae
3
+ metadata.gz: 548717c05eff99a75af158e3396e39f060a2e7da612a8ea1645fb12ca8c78e8b
4
+ data.tar.gz: 2b5c13dd7783d4472e5844cc48804e0eb91459229c2e18f9685996b99dadc87e
5
5
  SHA512:
6
- metadata.gz: 4890af84f89cdf5f8ccf424cf96ad61c85a9edb35991360481efd8359c2b4357e2fe2447cfb37cfdcedd5852d966960eb1ceb2bd78914f8e825821335ab50397
7
- data.tar.gz: 543bfc5523ede369d03ce7d856b9be20edd0eda883efb6328bd3428e9350a063db29a15efbd895979bb8b500be33c4f46200328e5dccd90a089388cc95c9d5d1
6
+ metadata.gz: b9d1312a1cd4b0f087a07d2022aa264ea0a2d8e9b3357bd49f9849fcc4f0a9ba3ebd106aa001ab18844d6628958c90143898984a79999652f091cd96604bfd2d
7
+ data.tar.gz: 3c0c06d0bd2154e25b633456edc1e98304fa670868cff705117952b9a6d68ce5c0ebebb760955543c513b83661c526445ddbf7b6f467c624b3c892a8b446d54b
@@ -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
@@ -174,19 +174,13 @@ module Google
174
174
  default_config.rpcs.update_job_trigger.timeout = 300.0
175
175
 
176
176
  default_config.rpcs.hybrid_inspect_job_trigger.timeout = 300.0
177
- default_config.rpcs.hybrid_inspect_job_trigger.retry_policy = {
178
- initial_delay: 0.1,
179
- max_delay: 60.0,
180
- multiplier: 1.3,
181
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
182
- }
183
177
 
184
178
  default_config.rpcs.get_job_trigger.timeout = 300.0
185
179
  default_config.rpcs.get_job_trigger.retry_policy = {
186
180
  initial_delay: 0.1,
187
181
  max_delay: 60.0,
188
182
  multiplier: 1.3,
189
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
183
+ retry_codes: [14, 4]
190
184
  }
191
185
 
192
186
  default_config.rpcs.list_job_triggers.timeout = 300.0
@@ -194,7 +188,7 @@ module Google
194
188
  initial_delay: 0.1,
195
189
  max_delay: 60.0,
196
190
  multiplier: 1.3,
197
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
191
+ retry_codes: [14, 4]
198
192
  }
199
193
 
200
194
  default_config.rpcs.delete_job_trigger.timeout = 300.0
@@ -202,7 +196,7 @@ module Google
202
196
  initial_delay: 0.1,
203
197
  max_delay: 60.0,
204
198
  multiplier: 1.3,
205
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
199
+ retry_codes: [14, 4]
206
200
  }
207
201
 
208
202
  default_config.rpcs.activate_job_trigger.timeout = 300.0
@@ -214,7 +208,7 @@ module Google
214
208
  initial_delay: 0.1,
215
209
  max_delay: 60.0,
216
210
  multiplier: 1.3,
217
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
211
+ retry_codes: [14, 4]
218
212
  }
219
213
 
220
214
  default_config.rpcs.get_dlp_job.timeout = 300.0
@@ -222,7 +216,7 @@ module Google
222
216
  initial_delay: 0.1,
223
217
  max_delay: 60.0,
224
218
  multiplier: 1.3,
225
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
219
+ retry_codes: [14, 4]
226
220
  }
227
221
 
228
222
  default_config.rpcs.delete_dlp_job.timeout = 300.0
@@ -230,7 +224,7 @@ module Google
230
224
  initial_delay: 0.1,
231
225
  max_delay: 60.0,
232
226
  multiplier: 1.3,
233
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
227
+ retry_codes: [14, 4]
234
228
  }
235
229
 
236
230
  default_config.rpcs.cancel_dlp_job.timeout = 300.0
@@ -244,7 +238,7 @@ module Google
244
238
  initial_delay: 0.1,
245
239
  max_delay: 60.0,
246
240
  multiplier: 1.3,
247
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
241
+ retry_codes: [14, 4]
248
242
  }
249
243
 
250
244
  default_config.rpcs.list_stored_info_types.timeout = 300.0
@@ -252,7 +246,7 @@ module Google
252
246
  initial_delay: 0.1,
253
247
  max_delay: 60.0,
254
248
  multiplier: 1.3,
255
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
249
+ retry_codes: [14, 4]
256
250
  }
257
251
 
258
252
  default_config.rpcs.delete_stored_info_type.timeout = 300.0
@@ -260,24 +254,12 @@ module Google
260
254
  initial_delay: 0.1,
261
255
  max_delay: 60.0,
262
256
  multiplier: 1.3,
263
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
257
+ retry_codes: [14, 4]
264
258
  }
265
259
 
266
260
  default_config.rpcs.hybrid_inspect_dlp_job.timeout = 300.0
267
- default_config.rpcs.hybrid_inspect_dlp_job.retry_policy = {
268
- initial_delay: 0.1,
269
- max_delay: 60.0,
270
- multiplier: 1.3,
271
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
272
- }
273
261
 
274
262
  default_config.rpcs.finish_dlp_job.timeout = 300.0
275
- default_config.rpcs.finish_dlp_job.retry_policy = {
276
- initial_delay: 0.1,
277
- max_delay: 60.0,
278
- multiplier: 1.3,
279
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
280
- }
281
263
 
282
264
  default_config
283
265
  end
@@ -385,8 +367,22 @@ module Google
385
367
  # the default parameter values, pass an empty Hash as a request object (see above).
386
368
  #
387
369
  # @param parent [::String]
388
- # The parent resource name, for example projects/my-project-id
389
- # or projects/my-project-id/locations/\\{location_id}
370
+ # Parent resource name.
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
390
386
  # @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
391
387
  # Configuration for the inspector. What specified here will override
392
388
  # the template referenced by the inspect_template_name argument.
@@ -472,8 +468,22 @@ module Google
472
468
  # the default parameter values, pass an empty Hash as a request object (see above).
473
469
  #
474
470
  # @param parent [::String]
475
- # The parent resource name, for example projects/my-project-id
476
- # or projects/my-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
477
487
  # @param location_id [::String]
478
488
  # Deprecated. This field has no effect.
479
489
  # @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
@@ -557,8 +567,22 @@ module Google
557
567
  # the default parameter values, pass an empty Hash as a request object (see above).
558
568
  #
559
569
  # @param parent [::String]
560
- # The parent resource name, for example projects/my-project-id
561
- # or projects/my-project-id/locations/\\{location_id}.
570
+ # Parent resource name.
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
562
586
  # @param deidentify_config [::Google::Cloud::Dlp::V2::DeidentifyConfig, ::Hash]
563
587
  # Configuration for the de-identification of the content item.
564
588
  # Items specified here will override the template referenced by the
@@ -651,7 +675,22 @@ module Google
651
675
  # the default parameter values, pass an empty Hash as a request object (see above).
652
676
  #
653
677
  # @param parent [::String]
654
- # Required. The parent resource name.
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
655
694
  # @param reidentify_config [::Google::Cloud::Dlp::V2::DeidentifyConfig, ::Hash]
656
695
  # Configuration for the re-identification of the content item.
657
696
  # This field shares the same proto message type that is used for
@@ -676,10 +715,11 @@ module Google
676
715
  # @param reidentify_template_name [::String]
677
716
  # Template to use. References an instance of `DeidentifyTemplate`.
678
717
  # Any configuration directly specified in `reidentify_config` or
679
- # `inspect_config` will override those set in the template. Singular fields
680
- # that are set in this request will replace their corresponding fields in the
681
- # template. Repeated fields are appended. Singular sub-messages and groups
682
- # 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.
683
723
  # @param location_id [::String]
684
724
  # Deprecated. This field has no effect.
685
725
  #
@@ -749,7 +789,11 @@ module Google
749
789
  # the default parameter values, pass an empty Hash as a request object (see above).
750
790
  #
751
791
  # @param parent [::String]
752
- # The parent resource name, for example locations/\\{location_id}
792
+ # The parent resource name.
793
+ #
794
+ # The format of this value is as follows:
795
+ #
796
+ # locations/<var>LOCATION_ID</var>
753
797
  # @param language_code [::String]
754
798
  # BCP-47 language code for localized infoType friendly
755
799
  # names. If omitted, or if localized strings are not available,
@@ -820,14 +864,32 @@ module Google
820
864
  # the default parameter values, pass an empty Hash as a request object (see above).
821
865
  #
822
866
  # @param parent [::String]
823
- # Required. The parent resource name, for example projects/my-project-id or
824
- # organizations/my-org-id or projects/my-project-id/locations/\\{location-id}.
867
+ # Required. Parent resource name.
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
825
887
  # @param inspect_template [::Google::Cloud::Dlp::V2::InspectTemplate, ::Hash]
826
888
  # Required. The InspectTemplate to create.
827
889
  # @param template_id [::String]
828
890
  # The template id can contain uppercase and lowercase letters,
829
891
  # numbers, and hyphens; that is, it must match the regular
830
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
892
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
831
893
  # characters. Can be empty to allow the system to generate one.
832
894
  # @param location_id [::String]
833
895
  # Deprecated. This field has no effect.
@@ -897,8 +959,8 @@ module Google
897
959
  # the default parameter values, pass an empty Hash as a request object (see above).
898
960
  #
899
961
  # @param name [::String]
900
- # Required. Resource name of organization and inspectTemplate to be updated,
901
- # for example `organizations/433245324/inspectTemplates/432452342` or
962
+ # Required. Resource name of organization and inspectTemplate to be updated, for
963
+ # example `organizations/433245324/inspectTemplates/432452342` or
902
964
  # projects/project-id/inspectTemplates/432452342.
903
965
  # @param inspect_template [::Google::Cloud::Dlp::V2::InspectTemplate, ::Hash]
904
966
  # New InspectTemplate value.
@@ -970,8 +1032,8 @@ module Google
970
1032
  # the default parameter values, pass an empty Hash as a request object (see above).
971
1033
  #
972
1034
  # @param name [::String]
973
- # Required. Resource name of the organization and inspectTemplate to be read,
974
- # for example `organizations/433245324/inspectTemplates/432452342` or
1035
+ # Required. Resource name of the organization and inspectTemplate to be read, for
1036
+ # example `organizations/433245324/inspectTemplates/432452342` or
975
1037
  # projects/project-id/inspectTemplates/432452342.
976
1038
  #
977
1039
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1039,8 +1101,26 @@ module Google
1039
1101
  # the default parameter values, pass an empty Hash as a request object (see above).
1040
1102
  #
1041
1103
  # @param parent [::String]
1042
- # Required. The parent resource name, for example projects/my-project-id or
1043
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
1104
+ # Required. Parent resource name.
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
1044
1124
  # @param page_token [::String]
1045
1125
  # Page token to continue retrieval. Comes from previous call
1046
1126
  # to `ListInspectTemplates`.
@@ -1130,9 +1210,9 @@ module Google
1130
1210
  # the default parameter values, pass an empty Hash as a request object (see above).
1131
1211
  #
1132
1212
  # @param name [::String]
1133
- # Required. Resource name of the organization and inspectTemplate to be
1134
- # deleted, for example `organizations/433245324/inspectTemplates/432452342`
1135
- # or projects/project-id/inspectTemplates/432452342.
1213
+ # Required. Resource name of the organization and inspectTemplate to be deleted, for
1214
+ # example `organizations/433245324/inspectTemplates/432452342` or
1215
+ # projects/project-id/inspectTemplates/432452342.
1136
1216
  #
1137
1217
  # @yield [response, operation] Access the result along with the RPC operation
1138
1218
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -1201,14 +1281,32 @@ module Google
1201
1281
  # the default parameter values, pass an empty Hash as a request object (see above).
1202
1282
  #
1203
1283
  # @param parent [::String]
1204
- # Required. The parent resource name, for example projects/my-project-id or
1205
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
1284
+ # Required. Parent resource name.
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
1206
1304
  # @param deidentify_template [::Google::Cloud::Dlp::V2::DeidentifyTemplate, ::Hash]
1207
1305
  # Required. The DeidentifyTemplate to create.
1208
1306
  # @param template_id [::String]
1209
1307
  # The template id can contain uppercase and lowercase letters,
1210
1308
  # numbers, and hyphens; that is, it must match the regular
1211
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
1309
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
1212
1310
  # characters. Can be empty to allow the system to generate one.
1213
1311
  # @param location_id [::String]
1214
1312
  # Deprecated. This field has no effect.
@@ -1279,9 +1377,8 @@ module Google
1279
1377
  # the default parameter values, pass an empty Hash as a request object (see above).
1280
1378
  #
1281
1379
  # @param name [::String]
1282
- # Required. Resource name of organization and deidentify template to be
1283
- # updated, for example
1284
- # `organizations/433245324/deidentifyTemplates/432452342` or
1380
+ # Required. Resource name of organization and deidentify template to be updated, for
1381
+ # example `organizations/433245324/deidentifyTemplates/432452342` or
1285
1382
  # projects/project-id/deidentifyTemplates/432452342.
1286
1383
  # @param deidentify_template [::Google::Cloud::Dlp::V2::DeidentifyTemplate, ::Hash]
1287
1384
  # New DeidentifyTemplate value.
@@ -1354,9 +1451,9 @@ module Google
1354
1451
  # the default parameter values, pass an empty Hash as a request object (see above).
1355
1452
  #
1356
1453
  # @param name [::String]
1357
- # Required. Resource name of the organization and deidentify template to be
1358
- # read, for example `organizations/433245324/deidentifyTemplates/432452342`
1359
- # or projects/project-id/deidentifyTemplates/432452342.
1454
+ # Required. Resource name of the organization and deidentify template to be read, for
1455
+ # example `organizations/433245324/deidentifyTemplates/432452342` or
1456
+ # projects/project-id/deidentifyTemplates/432452342.
1360
1457
  #
1361
1458
  # @yield [response, operation] Access the result along with the RPC operation
1362
1459
  # @yieldparam response [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
@@ -1424,8 +1521,26 @@ module Google
1424
1521
  # the default parameter values, pass an empty Hash as a request object (see above).
1425
1522
  #
1426
1523
  # @param parent [::String]
1427
- # Required. The parent resource name, for example projects/my-project-id or
1428
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
1524
+ # Required. Parent resource name.
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
1429
1544
  # @param page_token [::String]
1430
1545
  # Page token to continue retrieval. Comes from previous call
1431
1546
  # to `ListDeidentifyTemplates`.
@@ -1516,9 +1631,8 @@ module Google
1516
1631
  # the default parameter values, pass an empty Hash as a request object (see above).
1517
1632
  #
1518
1633
  # @param name [::String]
1519
- # Required. Resource name of the organization and deidentify template to be
1520
- # deleted, for example
1521
- # `organizations/433245324/deidentifyTemplates/432452342` or
1634
+ # Required. Resource name of the organization and deidentify template to be deleted,
1635
+ # for example `organizations/433245324/deidentifyTemplates/432452342` or
1522
1636
  # projects/project-id/deidentifyTemplates/432452342.
1523
1637
  #
1524
1638
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1587,14 +1701,28 @@ module Google
1587
1701
  # the default parameter values, pass an empty Hash as a request object (see above).
1588
1702
  #
1589
1703
  # @param parent [::String]
1590
- # Required. The parent resource name, for example projects/my-project-id
1591
- # or projects/my-project-id/locations/\\{location_id}.
1704
+ # Required. Parent resource name.
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
1592
1720
  # @param job_trigger [::Google::Cloud::Dlp::V2::JobTrigger, ::Hash]
1593
1721
  # Required. The JobTrigger to create.
1594
1722
  # @param trigger_id [::String]
1595
1723
  # The trigger id can contain uppercase and lowercase letters,
1596
1724
  # numbers, and hyphens; that is, it must match the regular
1597
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
1725
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
1598
1726
  # characters. Can be empty to allow the system to generate one.
1599
1727
  # @param location_id [::String]
1600
1728
  # Deprecated. This field has no effect.
@@ -1740,8 +1868,8 @@ module Google
1740
1868
  # the default parameter values, pass an empty Hash as a request object (see above).
1741
1869
  #
1742
1870
  # @param name [::String]
1743
- # Required. Resource name of the trigger to execute a hybrid inspect on, for
1744
- # example `projects/dlp-test-project/jobTriggers/53234423`.
1871
+ # Required. Resource name of the trigger to execute a hybrid inspect on, for example
1872
+ # `projects/dlp-test-project/jobTriggers/53234423`.
1745
1873
  # @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
1746
1874
  # The item to inspect.
1747
1875
  #
@@ -1878,8 +2006,22 @@ module Google
1878
2006
  # the default parameter values, pass an empty Hash as a request object (see above).
1879
2007
  #
1880
2008
  # @param parent [::String]
1881
- # Required. The parent resource name, for example `projects/my-project-id`
1882
- # or projects/my-project-id/locations/\\{location_id}.
2009
+ # Required. Parent resource name.
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
@@ -2137,8 +2279,22 @@ module Google
2137
2279
  # the default parameter values, pass an empty Hash as a request object (see above).
2138
2280
  #
2139
2281
  # @param parent [::String]
2140
- # Required. The parent resource name, for example projects/my-project-id
2141
- # or projects/my-project-id/locations/\\{location_id}.
2282
+ # Required. Parent resource name.
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
2142
2298
  # @param inspect_job [::Google::Cloud::Dlp::V2::InspectJobConfig, ::Hash]
2143
2299
  # Set to control what and how to inspect.
2144
2300
  # @param risk_job [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig, ::Hash]
@@ -2146,7 +2302,7 @@ module Google
2146
2302
  # @param job_id [::String]
2147
2303
  # The job id can contain uppercase and lowercase letters,
2148
2304
  # numbers, and hyphens; that is, it must match the regular
2149
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2305
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
2150
2306
  # characters. Can be empty to allow the system to generate one.
2151
2307
  # @param location_id [::String]
2152
2308
  # Deprecated. This field has no effect.
@@ -2217,8 +2373,22 @@ module Google
2217
2373
  # the default parameter values, pass an empty Hash as a request object (see above).
2218
2374
  #
2219
2375
  # @param parent [::String]
2220
- # Required. The parent resource name, for example projects/my-project-id
2221
- # or projects/my-project-id/locations/\\{location_id}.
2376
+ # Required. Parent resource name.
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
2222
2392
  # @param filter [::String]
2223
2393
  # Allows filtering.
2224
2394
  #
@@ -2546,14 +2716,32 @@ module Google
2546
2716
  # the default parameter values, pass an empty Hash as a request object (see above).
2547
2717
  #
2548
2718
  # @param parent [::String]
2549
- # Required. The parent resource name, for example projects/my-project-id or
2550
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}
2719
+ # Required. Parent resource name.
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
2551
2739
  # @param config [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig, ::Hash]
2552
2740
  # Required. Configuration of the storedInfoType to create.
2553
2741
  # @param stored_info_type_id [::String]
2554
2742
  # The storedInfoType ID can contain uppercase and lowercase letters,
2555
2743
  # numbers, and hyphens; that is, it must match the regular
2556
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2744
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
2557
2745
  # characters. Can be empty to allow the system to generate one.
2558
2746
  # @param location_id [::String]
2559
2747
  # Deprecated. This field has no effect.
@@ -2701,8 +2889,8 @@ module Google
2701
2889
  # the default parameter values, pass an empty Hash as a request object (see above).
2702
2890
  #
2703
2891
  # @param name [::String]
2704
- # Required. Resource name of the organization and storedInfoType to be read,
2705
- # for example `organizations/433245324/storedInfoTypes/432452342` or
2892
+ # Required. Resource name of the organization and storedInfoType to be read, for
2893
+ # example `organizations/433245324/storedInfoTypes/432452342` or
2706
2894
  # projects/project-id/storedInfoTypes/432452342.
2707
2895
  #
2708
2896
  # @yield [response, operation] Access the result along with the RPC operation
@@ -2771,8 +2959,26 @@ module Google
2771
2959
  # the default parameter values, pass an empty Hash as a request object (see above).
2772
2960
  #
2773
2961
  # @param parent [::String]
2774
- # Required. The parent resource name, for example projects/my-project-id or
2775
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
2962
+ # Required. Parent resource name.
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
2776
2982
  # @param page_token [::String]
2777
2983
  # Page token to continue retrieval. Comes from previous call
2778
2984
  # to `ListStoredInfoTypes`.
@@ -2864,8 +3070,8 @@ module Google
2864
3070
  # the default parameter values, pass an empty Hash as a request object (see above).
2865
3071
  #
2866
3072
  # @param name [::String]
2867
- # Required. Resource name of the organization and storedInfoType to be
2868
- # deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
3073
+ # Required. Resource name of the organization and storedInfoType to be deleted, for
3074
+ # example `organizations/433245324/storedInfoTypes/432452342` or
2869
3075
  # projects/project-id/storedInfoTypes/432452342.
2870
3076
  #
2871
3077
  # @yield [response, operation] Access the result along with the RPC operation
@@ -2937,8 +3143,8 @@ module Google
2937
3143
  # the default parameter values, pass an empty Hash as a request object (see above).
2938
3144
  #
2939
3145
  # @param name [::String]
2940
- # Required. Resource name of the job to execute a hybrid inspect on, for
2941
- # example `projects/dlp-test-project/dlpJob/53234423`.
3146
+ # Required. Resource name of the job to execute a hybrid inspect on, for example
3147
+ # `projects/dlp-test-project/dlpJob/53234423`.
2942
3148
  # @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
2943
3149
  # The item to inspect.
2944
3150
  #
@@ -3142,7 +3348,7 @@ module Google
3142
3348
 
3143
3349
  config_attr :endpoint, "dlp.googleapis.com", ::String
3144
3350
  config_attr :credentials, nil do |value|
3145
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3351
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3146
3352
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
3147
3353
  allowed.any? { |klass| klass === value }
3148
3354
  end