google-cloud-dlp-v2 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -244,6 +244,21 @@ module Google
244
244
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
245
245
  }
246
246
 
247
+ default_config.rpcs.list_file_store_data_profiles.timeout = 300.0
248
+ default_config.rpcs.list_file_store_data_profiles.retry_policy = {
249
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
250
+ }
251
+
252
+ default_config.rpcs.get_file_store_data_profile.timeout = 300.0
253
+ default_config.rpcs.get_file_store_data_profile.retry_policy = {
254
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
255
+ }
256
+
257
+ default_config.rpcs.delete_file_store_data_profile.timeout = 300.0
258
+ default_config.rpcs.delete_file_store_data_profile.retry_policy = {
259
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
260
+ }
261
+
247
262
  default_config.rpcs.get_table_data_profile.timeout = 300.0
248
263
  default_config.rpcs.get_table_data_profile.retry_policy = {
249
264
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
@@ -391,10 +406,10 @@ module Google
391
406
  # processing
392
407
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
393
408
  #
394
- # + Projects scope, location specified:<br/>
395
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
396
- # + Projects scope, no location specified (defaults to global):<br/>
397
- # `projects/`<var>PROJECT_ID</var>
409
+ # + Projects scope, location specified:
410
+ # `projects/{project_id}/locations/{location_id}`
411
+ # + Projects scope, no location specified (defaults to global):
412
+ # `projects/{project_id}`
398
413
  #
399
414
  # The following example `parent` string specifies a parent project with the
400
415
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -506,10 +521,10 @@ module Google
506
521
  # processing
507
522
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
508
523
  #
509
- # + Projects scope, location specified:<br/>
510
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
511
- # + Projects scope, no location specified (defaults to global):<br/>
512
- # `projects/`<var>PROJECT_ID</var>
524
+ # + Projects scope, location specified:
525
+ # `projects/{project_id}/locations/{location_id}`
526
+ # + Projects scope, no location specified (defaults to global):
527
+ # `projects/{project_id}`
513
528
  #
514
529
  # The following example `parent` string specifies a parent project with the
515
530
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -619,10 +634,10 @@ module Google
619
634
  # processing
620
635
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
621
636
  #
622
- # + Projects scope, location specified:<br/>
623
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
624
- # + Projects scope, no location specified (defaults to global):<br/>
625
- # `projects/`<var>PROJECT_ID</var>
637
+ # + Projects scope, location specified:
638
+ # `projects/{project_id}/locations/{location_id}`
639
+ # + Projects scope, no location specified (defaults to global):
640
+ # `projects/{project_id}`
626
641
  #
627
642
  # The following example `parent` string specifies a parent project with the
628
643
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -747,10 +762,10 @@ module Google
747
762
  # processing
748
763
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
749
764
  #
750
- # + Projects scope, location specified:<br/>
751
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
752
- # + Projects scope, no location specified (defaults to global):<br/>
753
- # `projects/`<var>PROJECT_ID</var>
765
+ # + Projects scope, location specified:
766
+ # `projects/{project_id}/locations/{location_id}`
767
+ # + Projects scope, no location specified (defaults to global):
768
+ # `projects/{project_id}`
754
769
  #
755
770
  # The following example `parent` string specifies a parent project with the
756
771
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -873,7 +888,7 @@ module Google
873
888
  #
874
889
  # The format of this value is as follows:
875
890
  #
876
- # locations/<var>LOCATION_ID</var>
891
+ # `locations/{location_id}`
877
892
  # @param language_code [::String]
878
893
  # BCP-47 language code for localized infoType friendly
879
894
  # names. If omitted, or if localized strings are not available,
@@ -971,14 +986,14 @@ module Google
971
986
  # (project or organization) and whether you have [specified a processing
972
987
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
973
988
  #
974
- # + Projects scope, location specified:<br/>
975
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
976
- # + Projects scope, no location specified (defaults to global):<br/>
977
- # `projects/`<var>PROJECT_ID</var>
978
- # + Organizations scope, location specified:<br/>
979
- # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
980
- # + Organizations scope, no location specified (defaults to global):<br/>
981
- # `organizations/`<var>ORG_ID</var>
989
+ # + Projects scope, location specified:
990
+ # `projects/{project_id}/locations/{location_id}`
991
+ # + Projects scope, no location specified (defaults to global):
992
+ # `projects/{project_id}`
993
+ # + Organizations scope, location specified:
994
+ # `organizations/{org_id}/locations/{location_id}`
995
+ # + Organizations scope, no location specified (defaults to global):
996
+ # `organizations/{org_id}`
982
997
  #
983
998
  # The following example `parent` string specifies a parent project with the
984
999
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -1253,14 +1268,14 @@ module Google
1253
1268
  # (project or organization) and whether you have [specified a processing
1254
1269
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1255
1270
  #
1256
- # + Projects scope, location specified:<br/>
1257
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1258
- # + Projects scope, no location specified (defaults to global):<br/>
1259
- # `projects/`<var>PROJECT_ID</var>
1260
- # + Organizations scope, location specified:<br/>
1261
- # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1262
- # + Organizations scope, no location specified (defaults to global):<br/>
1263
- # `organizations/`<var>ORG_ID</var>
1271
+ # + Projects scope, location specified:
1272
+ # `projects/{project_id}/locations/{location_id}`
1273
+ # + Projects scope, no location specified (defaults to global):
1274
+ # `projects/{project_id}`
1275
+ # + Organizations scope, location specified:
1276
+ # `organizations/{org_id}/locations/{location_id}`
1277
+ # + Organizations scope, no location specified (defaults to global):
1278
+ # `organizations/{org_id}`
1264
1279
  #
1265
1280
  # The following example `parent` string specifies a parent project with the
1266
1281
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -1274,7 +1289,7 @@ module Google
1274
1289
  # Size of the page. This value can be limited by the server. If zero server
1275
1290
  # returns a page of max size 100.
1276
1291
  # @param order_by [::String]
1277
- # Comma separated list of fields to order by,
1292
+ # Comma-separated list of fields to order by,
1278
1293
  # followed by `asc` or `desc` postfix. This list is case insensitive. The
1279
1294
  # default sorting order is ascending. Redundant space characters are
1280
1295
  # insignificant.
@@ -1466,14 +1481,14 @@ module Google
1466
1481
  # (project or organization) and whether you have [specified a processing
1467
1482
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1468
1483
  #
1469
- # + Projects scope, location specified:<br/>
1470
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1471
- # + Projects scope, no location specified (defaults to global):<br/>
1472
- # `projects/`<var>PROJECT_ID</var>
1473
- # + Organizations scope, location specified:<br/>
1474
- # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1475
- # + Organizations scope, no location specified (defaults to global):<br/>
1476
- # `organizations/`<var>ORG_ID</var>
1484
+ # + Projects scope, location specified:
1485
+ # `projects/{project_id}/locations/{location_id}`
1486
+ # + Projects scope, no location specified (defaults to global):
1487
+ # `projects/{project_id}`
1488
+ # + Organizations scope, location specified:
1489
+ # `organizations/{org_id}/locations/{location_id}`
1490
+ # + Organizations scope, no location specified (defaults to global):
1491
+ # `organizations/{org_id}`
1477
1492
  #
1478
1493
  # The following example `parent` string specifies a parent project with the
1479
1494
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -1749,14 +1764,14 @@ module Google
1749
1764
  # (project or organization) and whether you have [specified a processing
1750
1765
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1751
1766
  #
1752
- # + Projects scope, location specified:<br/>
1753
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1754
- # + Projects scope, no location specified (defaults to global):<br/>
1755
- # `projects/`<var>PROJECT_ID</var>
1756
- # + Organizations scope, location specified:<br/>
1757
- # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1758
- # + Organizations scope, no location specified (defaults to global):<br/>
1759
- # `organizations/`<var>ORG_ID</var>
1767
+ # + Projects scope, location specified:
1768
+ # `projects/{project_id}/locations/{location_id}`
1769
+ # + Projects scope, no location specified (defaults to global):
1770
+ # `projects/{project_id}`
1771
+ # + Organizations scope, location specified:
1772
+ # `organizations/{org_id}/locations/{location_id}`
1773
+ # + Organizations scope, no location specified (defaults to global):
1774
+ # `organizations/{org_id}`
1760
1775
  #
1761
1776
  # The following example `parent` string specifies a parent project with the
1762
1777
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -1770,7 +1785,7 @@ module Google
1770
1785
  # Size of the page. This value can be limited by the server. If zero server
1771
1786
  # returns a page of max size 100.
1772
1787
  # @param order_by [::String]
1773
- # Comma separated list of fields to order by,
1788
+ # Comma-separated list of fields to order by,
1774
1789
  # followed by `asc` or `desc` postfix. This list is case insensitive. The
1775
1790
  # default sorting order is ascending. Redundant space characters are
1776
1791
  # insignificant.
@@ -1963,10 +1978,10 @@ module Google
1963
1978
  # processing
1964
1979
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1965
1980
  #
1966
- # + Projects scope, location specified:<br/>
1967
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1968
- # + Projects scope, no location specified (defaults to global):<br/>
1969
- # `projects/`<var>PROJECT_ID</var>
1981
+ # + Projects scope, location specified:
1982
+ # `projects/{project_id}/locations/{location_id}`
1983
+ # + Projects scope, no location specified (defaults to global):
1984
+ # `projects/{project_id}`
1970
1985
  #
1971
1986
  # The following example `parent` string specifies a parent project with the
1972
1987
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -2323,10 +2338,10 @@ module Google
2323
2338
  # processing
2324
2339
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
2325
2340
  #
2326
- # + Projects scope, location specified:<br/>
2327
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2328
- # + Projects scope, no location specified (defaults to global):<br/>
2329
- # `projects/`<var>PROJECT_ID</var>
2341
+ # + Projects scope, location specified:
2342
+ # `projects/{project_id}/locations/{location_id}`
2343
+ # + Projects scope, no location specified (defaults to global):
2344
+ # `projects/{project_id}`
2330
2345
  #
2331
2346
  # The following example `parent` string specifies a parent project with the
2332
2347
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -2340,7 +2355,7 @@ module Google
2340
2355
  # @param page_size [::Integer]
2341
2356
  # Size of the page. This value can be limited by a server.
2342
2357
  # @param order_by [::String]
2343
- # Comma separated list of triggeredJob fields to order by,
2358
+ # Comma-separated list of triggeredJob fields to order by,
2344
2359
  # followed by `asc` or `desc` postfix. This list is case insensitive. The
2345
2360
  # default sorting order is ascending. Redundant space characters are
2346
2361
  # insignificant.
@@ -2633,8 +2648,13 @@ module Google
2633
2648
  # @param parent [::String]
2634
2649
  # Required. Parent resource name.
2635
2650
  #
2636
- # The format of this value is as follows:
2637
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2651
+ # The format of this value varies depending on the scope of the request
2652
+ # (project or organization):
2653
+ #
2654
+ # + Projects scope:
2655
+ # `projects/{project_id}/locations/{location_id}`
2656
+ # + Organizations scope:
2657
+ # `organizations/{org_id}/locations/{location_id}`
2638
2658
  #
2639
2659
  # The following example `parent` string specifies a parent project with the
2640
2660
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -2893,7 +2913,7 @@ module Google
2893
2913
  # Required. Parent resource name.
2894
2914
  #
2895
2915
  # The format of this value is as follows:
2896
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2916
+ # `projects/{project_id}/locations/{location_id}`
2897
2917
  #
2898
2918
  # The following example `parent` string specifies a parent project with the
2899
2919
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -2907,7 +2927,7 @@ module Google
2907
2927
  # @param page_size [::Integer]
2908
2928
  # Size of the page. This value can be limited by a server.
2909
2929
  # @param order_by [::String]
2910
- # Comma separated list of config fields to order by,
2930
+ # Comma-separated list of config fields to order by,
2911
2931
  # followed by `asc` or `desc` postfix. This list is case insensitive. The
2912
2932
  # default sorting order is ascending. Redundant space characters are
2913
2933
  # insignificant.
@@ -3097,10 +3117,10 @@ module Google
3097
3117
  # processing
3098
3118
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3099
3119
  #
3100
- # + Projects scope, location specified:<br/>
3101
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3102
- # + Projects scope, no location specified (defaults to global):<br/>
3103
- # `projects/`<var>PROJECT_ID</var>
3120
+ # + Projects scope, location specified:
3121
+ # `projects/{project_id}/locations/{location_id}`
3122
+ # + Projects scope, no location specified (defaults to global):
3123
+ # `projects/{project_id}`
3104
3124
  #
3105
3125
  # The following example `parent` string specifies a parent project with the
3106
3126
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -3208,10 +3228,10 @@ module Google
3208
3228
  # processing
3209
3229
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3210
3230
  #
3211
- # + Projects scope, location specified:<br/>
3212
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3213
- # + Projects scope, no location specified (defaults to global):<br/>
3214
- # `projects/`<var>PROJECT_ID</var>
3231
+ # + Projects scope, location specified:
3232
+ # `projects/{project_id}/locations/{location_id}`
3233
+ # + Projects scope, no location specified (defaults to global):
3234
+ # `projects/{project_id}`
3215
3235
  #
3216
3236
  # The following example `parent` string specifies a parent project with the
3217
3237
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -3254,7 +3274,7 @@ module Google
3254
3274
  # @param type [::Google::Cloud::Dlp::V2::DlpJobType]
3255
3275
  # The type of job. Defaults to `DlpJobType.INSPECT`
3256
3276
  # @param order_by [::String]
3257
- # Comma separated list of fields to order by,
3277
+ # Comma-separated list of fields to order by,
3258
3278
  # followed by `asc` or `desc` postfix. This list is case insensitive. The
3259
3279
  # default sorting order is ascending. Redundant space characters are
3260
3280
  # insignificant.
@@ -3617,14 +3637,14 @@ module Google
3617
3637
  # (project or organization) and whether you have [specified a processing
3618
3638
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3619
3639
  #
3620
- # + Projects scope, location specified:<br/>
3621
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3622
- # + Projects scope, no location specified (defaults to global):<br/>
3623
- # `projects/`<var>PROJECT_ID</var>
3624
- # + Organizations scope, location specified:<br/>
3625
- # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
3626
- # + Organizations scope, no location specified (defaults to global):<br/>
3627
- # `organizations/`<var>ORG_ID</var>
3640
+ # + Projects scope, location specified:
3641
+ # `projects/{project_id}/locations/{location_id}`
3642
+ # + Projects scope, no location specified (defaults to global):
3643
+ # `projects/{project_id}`
3644
+ # + Organizations scope, location specified:
3645
+ # `organizations/{org_id}/locations/{location_id}`
3646
+ # + Organizations scope, no location specified (defaults to global):
3647
+ # `organizations/{org_id}`
3628
3648
  #
3629
3649
  # The following example `parent` string specifies a parent project with the
3630
3650
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -3902,10 +3922,10 @@ module Google
3902
3922
  # (project or organization) and whether you have [specified a processing
3903
3923
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3904
3924
  #
3905
- # + Projects scope, location specified:<br/>
3906
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3907
- # + Projects scope, no location specified (defaults to global):<br/>
3908
- # `projects/`<var>PROJECT_ID</var>
3925
+ # + Projects scope, location specified:
3926
+ # `projects/{project_id}/locations/{location_id}`
3927
+ # + Projects scope, no location specified (defaults to global):
3928
+ # `projects/{project_id}`
3909
3929
  #
3910
3930
  # The following example `parent` string specifies a parent project with the
3911
3931
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -3919,7 +3939,7 @@ module Google
3919
3939
  # Size of the page. This value can be limited by the server. If zero server
3920
3940
  # returns a page of max size 100.
3921
3941
  # @param order_by [::String]
3922
- # Comma separated list of fields to order by,
3942
+ # Comma-separated list of fields to order by,
3923
3943
  # followed by `asc` or `desc` postfix. This list is case insensitive. The
3924
3944
  # default sorting order is ascending. Redundant space characters are
3925
3945
  # insignificant.
@@ -4109,7 +4129,7 @@ module Google
4109
4129
  # Size of the page. This value can be limited by the server. If zero, server
4110
4130
  # returns a page of max size 100.
4111
4131
  # @param order_by [::String]
4112
- # Comma separated list of fields to order by, followed by `asc` or `desc`
4132
+ # Comma-separated list of fields to order by, followed by `asc` or `desc`
4113
4133
  # postfix. This list is case insensitive. The default sorting order is
4114
4134
  # ascending. Redundant space characters are insignificant. Only one order
4115
4135
  # field at a time is allowed.
@@ -4239,7 +4259,7 @@ module Google
4239
4259
  # Size of the page. This value can be limited by the server. If zero, server
4240
4260
  # returns a page of max size 100.
4241
4261
  # @param order_by [::String]
4242
- # Comma separated list of fields to order by, followed by `asc` or `desc`
4262
+ # Comma-separated list of fields to order by, followed by `asc` or `desc`
4243
4263
  # postfix. This list is case insensitive. The default sorting order is
4244
4264
  # ascending. Redundant space characters are insignificant. Only one order
4245
4265
  # field at a time is allowed.
@@ -4380,12 +4400,13 @@ module Google
4380
4400
  # Size of the page. This value can be limited by the server. If zero, server
4381
4401
  # returns a page of max size 100.
4382
4402
  # @param order_by [::String]
4383
- # Comma separated list of fields to order by, followed by `asc` or `desc`
4403
+ # Comma-separated list of fields to order by, followed by `asc` or `desc`
4384
4404
  # postfix. This list is case insensitive. The default sorting order is
4385
4405
  # ascending. Redundant space characters are insignificant. Only one order
4386
4406
  # field at a time is allowed.
4387
4407
  #
4388
4408
  # Examples:
4409
+ #
4389
4410
  # * `project_id asc`
4390
4411
  # * `table_id`
4391
4412
  # * `sensitivity_level desc`
@@ -4574,6 +4595,307 @@ module Google
4574
4595
  raise ::Google::Cloud::Error.from_error(e)
4575
4596
  end
4576
4597
 
4598
+ ##
4599
+ # Lists file store data profiles for an organization.
4600
+ #
4601
+ # @overload list_file_store_data_profiles(request, options = nil)
4602
+ # Pass arguments to `list_file_store_data_profiles` via a request object, either of type
4603
+ # {::Google::Cloud::Dlp::V2::ListFileStoreDataProfilesRequest} or an equivalent Hash.
4604
+ #
4605
+ # @param request [::Google::Cloud::Dlp::V2::ListFileStoreDataProfilesRequest, ::Hash]
4606
+ # A request object representing the call parameters. Required. To specify no
4607
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4608
+ # @param options [::Gapic::CallOptions, ::Hash]
4609
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4610
+ #
4611
+ # @overload list_file_store_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil)
4612
+ # Pass arguments to `list_file_store_data_profiles` via keyword arguments. Note that at
4613
+ # least one keyword argument is required. To specify no parameters, or to keep all
4614
+ # the default parameter values, pass an empty Hash as a request object (see above).
4615
+ #
4616
+ # @param parent [::String]
4617
+ # Required. Resource name of the organization or project, for
4618
+ # example `organizations/433245324/locations/europe` or
4619
+ # `projects/project-id/locations/asia`.
4620
+ # @param page_token [::String]
4621
+ # Optional. Page token to continue retrieval.
4622
+ # @param page_size [::Integer]
4623
+ # Optional. Size of the page. This value can be limited by the server. If
4624
+ # zero, server returns a page of max size 100.
4625
+ # @param order_by [::String]
4626
+ # Optional. Comma-separated list of fields to order by, followed by `asc` or
4627
+ # `desc` postfix. This list is case insensitive. The default sorting order is
4628
+ # ascending. Redundant space characters are insignificant. Only one order
4629
+ # field at a time is allowed.
4630
+ #
4631
+ # Examples:
4632
+ #
4633
+ # * `project_id asc`
4634
+ # * `name`
4635
+ # * `sensitivity_level desc`
4636
+ #
4637
+ # Supported fields are:
4638
+ #
4639
+ # - `project_id`: The Google Cloud project ID.
4640
+ # - `sensitivity_level`: How sensitive the data in a table is, at most.
4641
+ # - `data_risk_level`: How much risk is associated with this data.
4642
+ # - `profile_last_generated`: When the profile was last updated in epoch
4643
+ # seconds.
4644
+ # - `last_modified`: The last time the resource was modified.
4645
+ # - `resource_visibility`: Visibility restriction for this resource.
4646
+ # - `name`: The name of the profile.
4647
+ # - `create_time`: The time the file store was first created.
4648
+ # @param filter [::String]
4649
+ # Optional. Allows filtering.
4650
+ #
4651
+ # Supported syntax:
4652
+ #
4653
+ # * Filter expressions are made up of one or more restrictions.
4654
+ # * Restrictions can be combined by `AND` or `OR` logical operators. A
4655
+ # sequence of restrictions implicitly uses `AND`.
4656
+ # * A restriction has the form of `{field} {operator} {value}`.
4657
+ # * Supported fields/values:
4658
+ # - `project_id` - The Google Cloud project ID.
4659
+ # - `file_store_path` - The path like "gs://bucket".
4660
+ # - `sensitivity_level` - HIGH|MODERATE|LOW
4661
+ # - `data_risk_level` - HIGH|MODERATE|LOW
4662
+ # - `resource_visibility`: PUBLIC|RESTRICTED
4663
+ # - `status_code` - an RPC status code as defined in
4664
+ # https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
4665
+ # * The operator must be `=` or `!=`.
4666
+ #
4667
+ # Examples:
4668
+ #
4669
+ # * `project_id = 12345 AND status_code = 1`
4670
+ # * `project_id = 12345 AND sensitivity_level = HIGH`
4671
+ # * `project_id = 12345 AND resource_visibility = PUBLIC`
4672
+ # * `file_store_path = "gs://mybucket"`
4673
+ #
4674
+ # The length of this field should be no more than 500 characters.
4675
+ # @yield [result, operation] Access the result along with the TransportOperation object
4676
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::FileStoreDataProfile>]
4677
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4678
+ #
4679
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::FileStoreDataProfile>]
4680
+ #
4681
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4682
+ #
4683
+ # @example Basic example
4684
+ # require "google/cloud/dlp/v2"
4685
+ #
4686
+ # # Create a client object. The client can be reused for multiple calls.
4687
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
4688
+ #
4689
+ # # Create a request. To set request fields, pass in keyword arguments.
4690
+ # request = Google::Cloud::Dlp::V2::ListFileStoreDataProfilesRequest.new
4691
+ #
4692
+ # # Call the list_file_store_data_profiles method.
4693
+ # result = client.list_file_store_data_profiles request
4694
+ #
4695
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4696
+ # # over elements, and API calls will be issued to fetch pages as needed.
4697
+ # result.each do |item|
4698
+ # # Each element is of type ::Google::Cloud::Dlp::V2::FileStoreDataProfile.
4699
+ # p item
4700
+ # end
4701
+ #
4702
+ def list_file_store_data_profiles request, options = nil
4703
+ raise ::ArgumentError, "request must be provided" if request.nil?
4704
+
4705
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListFileStoreDataProfilesRequest
4706
+
4707
+ # Converts hash and nil to an options object
4708
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4709
+
4710
+ # Customize the options with defaults
4711
+ call_metadata = @config.rpcs.list_file_store_data_profiles.metadata.to_h
4712
+
4713
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4714
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4715
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4716
+ gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
4717
+ transports_version_send: [:rest]
4718
+
4719
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4720
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4721
+
4722
+ options.apply_defaults timeout: @config.rpcs.list_file_store_data_profiles.timeout,
4723
+ metadata: call_metadata,
4724
+ retry_policy: @config.rpcs.list_file_store_data_profiles.retry_policy
4725
+
4726
+ options.apply_defaults timeout: @config.timeout,
4727
+ metadata: @config.metadata,
4728
+ retry_policy: @config.retry_policy
4729
+
4730
+ @dlp_service_stub.list_file_store_data_profiles request, options do |result, operation|
4731
+ result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_file_store_data_profiles, "file_store_data_profiles", request, result, options
4732
+ yield result, operation if block_given?
4733
+ return result
4734
+ end
4735
+ rescue ::Gapic::Rest::Error => e
4736
+ raise ::Google::Cloud::Error.from_error(e)
4737
+ end
4738
+
4739
+ ##
4740
+ # Gets a file store data profile.
4741
+ #
4742
+ # @overload get_file_store_data_profile(request, options = nil)
4743
+ # Pass arguments to `get_file_store_data_profile` via a request object, either of type
4744
+ # {::Google::Cloud::Dlp::V2::GetFileStoreDataProfileRequest} or an equivalent Hash.
4745
+ #
4746
+ # @param request [::Google::Cloud::Dlp::V2::GetFileStoreDataProfileRequest, ::Hash]
4747
+ # A request object representing the call parameters. Required. To specify no
4748
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4749
+ # @param options [::Gapic::CallOptions, ::Hash]
4750
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4751
+ #
4752
+ # @overload get_file_store_data_profile(name: nil)
4753
+ # Pass arguments to `get_file_store_data_profile` via keyword arguments. Note that at
4754
+ # least one keyword argument is required. To specify no parameters, or to keep all
4755
+ # the default parameter values, pass an empty Hash as a request object (see above).
4756
+ #
4757
+ # @param name [::String]
4758
+ # Required. Resource name, for example
4759
+ # `organizations/12345/locations/us/fileStoreDataProfiles/53234423`.
4760
+ # @yield [result, operation] Access the result along with the TransportOperation object
4761
+ # @yieldparam result [::Google::Cloud::Dlp::V2::FileStoreDataProfile]
4762
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4763
+ #
4764
+ # @return [::Google::Cloud::Dlp::V2::FileStoreDataProfile]
4765
+ #
4766
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4767
+ #
4768
+ # @example Basic example
4769
+ # require "google/cloud/dlp/v2"
4770
+ #
4771
+ # # Create a client object. The client can be reused for multiple calls.
4772
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
4773
+ #
4774
+ # # Create a request. To set request fields, pass in keyword arguments.
4775
+ # request = Google::Cloud::Dlp::V2::GetFileStoreDataProfileRequest.new
4776
+ #
4777
+ # # Call the get_file_store_data_profile method.
4778
+ # result = client.get_file_store_data_profile request
4779
+ #
4780
+ # # The returned object is of type Google::Cloud::Dlp::V2::FileStoreDataProfile.
4781
+ # p result
4782
+ #
4783
+ def get_file_store_data_profile request, options = nil
4784
+ raise ::ArgumentError, "request must be provided" if request.nil?
4785
+
4786
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetFileStoreDataProfileRequest
4787
+
4788
+ # Converts hash and nil to an options object
4789
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4790
+
4791
+ # Customize the options with defaults
4792
+ call_metadata = @config.rpcs.get_file_store_data_profile.metadata.to_h
4793
+
4794
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4795
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4796
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4797
+ gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
4798
+ transports_version_send: [:rest]
4799
+
4800
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4801
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4802
+
4803
+ options.apply_defaults timeout: @config.rpcs.get_file_store_data_profile.timeout,
4804
+ metadata: call_metadata,
4805
+ retry_policy: @config.rpcs.get_file_store_data_profile.retry_policy
4806
+
4807
+ options.apply_defaults timeout: @config.timeout,
4808
+ metadata: @config.metadata,
4809
+ retry_policy: @config.retry_policy
4810
+
4811
+ @dlp_service_stub.get_file_store_data_profile request, options do |result, operation|
4812
+ yield result, operation if block_given?
4813
+ return result
4814
+ end
4815
+ rescue ::Gapic::Rest::Error => e
4816
+ raise ::Google::Cloud::Error.from_error(e)
4817
+ end
4818
+
4819
+ ##
4820
+ # Delete a FileStoreDataProfile. Will not prevent the profile from being
4821
+ # regenerated if the resource is still included in a discovery configuration.
4822
+ #
4823
+ # @overload delete_file_store_data_profile(request, options = nil)
4824
+ # Pass arguments to `delete_file_store_data_profile` via a request object, either of type
4825
+ # {::Google::Cloud::Dlp::V2::DeleteFileStoreDataProfileRequest} or an equivalent Hash.
4826
+ #
4827
+ # @param request [::Google::Cloud::Dlp::V2::DeleteFileStoreDataProfileRequest, ::Hash]
4828
+ # A request object representing the call parameters. Required. To specify no
4829
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4830
+ # @param options [::Gapic::CallOptions, ::Hash]
4831
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4832
+ #
4833
+ # @overload delete_file_store_data_profile(name: nil)
4834
+ # Pass arguments to `delete_file_store_data_profile` via keyword arguments. Note that at
4835
+ # least one keyword argument is required. To specify no parameters, or to keep all
4836
+ # the default parameter values, pass an empty Hash as a request object (see above).
4837
+ #
4838
+ # @param name [::String]
4839
+ # Required. Resource name of the file store data profile.
4840
+ # @yield [result, operation] Access the result along with the TransportOperation object
4841
+ # @yieldparam result [::Google::Protobuf::Empty]
4842
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4843
+ #
4844
+ # @return [::Google::Protobuf::Empty]
4845
+ #
4846
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4847
+ #
4848
+ # @example Basic example
4849
+ # require "google/cloud/dlp/v2"
4850
+ #
4851
+ # # Create a client object. The client can be reused for multiple calls.
4852
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
4853
+ #
4854
+ # # Create a request. To set request fields, pass in keyword arguments.
4855
+ # request = Google::Cloud::Dlp::V2::DeleteFileStoreDataProfileRequest.new
4856
+ #
4857
+ # # Call the delete_file_store_data_profile method.
4858
+ # result = client.delete_file_store_data_profile request
4859
+ #
4860
+ # # The returned object is of type Google::Protobuf::Empty.
4861
+ # p result
4862
+ #
4863
+ def delete_file_store_data_profile request, options = nil
4864
+ raise ::ArgumentError, "request must be provided" if request.nil?
4865
+
4866
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeleteFileStoreDataProfileRequest
4867
+
4868
+ # Converts hash and nil to an options object
4869
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4870
+
4871
+ # Customize the options with defaults
4872
+ call_metadata = @config.rpcs.delete_file_store_data_profile.metadata.to_h
4873
+
4874
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4875
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4876
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4877
+ gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
4878
+ transports_version_send: [:rest]
4879
+
4880
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4881
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4882
+
4883
+ options.apply_defaults timeout: @config.rpcs.delete_file_store_data_profile.timeout,
4884
+ metadata: call_metadata,
4885
+ retry_policy: @config.rpcs.delete_file_store_data_profile.retry_policy
4886
+
4887
+ options.apply_defaults timeout: @config.timeout,
4888
+ metadata: @config.metadata,
4889
+ retry_policy: @config.retry_policy
4890
+
4891
+ @dlp_service_stub.delete_file_store_data_profile request, options do |result, operation|
4892
+ yield result, operation if block_given?
4893
+ return result
4894
+ end
4895
+ rescue ::Gapic::Rest::Error => e
4896
+ raise ::Google::Cloud::Error.from_error(e)
4897
+ end
4898
+
4577
4899
  ##
4578
4900
  # Gets a table data profile.
4579
4901
  #
@@ -4997,8 +5319,15 @@ module Google
4997
5319
  # the default parameter values, pass an empty Hash as a request object (see above).
4998
5320
  #
4999
5321
  # @param parent [::String]
5000
- # Required. Parent resource name in the format:
5001
- # `projects/{project}/locations/{location}`.
5322
+ # Required. Parent resource name.
5323
+ #
5324
+ # The format of this value varies depending on the scope of the request
5325
+ # (project or organization):
5326
+ #
5327
+ # + Projects scope:
5328
+ # `projects/{project_id}/locations/{location_id}`
5329
+ # + Organizations scope:
5330
+ # `organizations/{org_id}/locations/{location_id}`
5002
5331
  # @param connection [::Google::Cloud::Dlp::V2::Connection, ::Hash]
5003
5332
  # Required. The connection resource.
5004
5333
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -5141,7 +5470,8 @@ module Google
5141
5470
  end
5142
5471
 
5143
5472
  ##
5144
- # Lists Connections in a parent.
5473
+ # Lists Connections in a parent. Use SearchConnections to see all connections
5474
+ # within an organization.
5145
5475
  #
5146
5476
  # @overload list_connections(request, options = nil)
5147
5477
  # Pass arguments to `list_connections` via a request object, either of type
@@ -5159,8 +5489,9 @@ module Google
5159
5489
  # the default parameter values, pass an empty Hash as a request object (see above).
5160
5490
  #
5161
5491
  # @param parent [::String]
5162
- # Required. Parent name, for example:
5163
- # `projects/project-id/locations/global`.
5492
+ # Required. Resource name of the organization or project, for
5493
+ # example, `organizations/433245324/locations/europe` or
5494
+ # `projects/project-id/locations/asia`.
5164
5495
  # @param page_size [::Integer]
5165
5496
  # Optional. Number of results per page, max 1000.
5166
5497
  # @param page_token [::String]
@@ -5251,8 +5582,9 @@ module Google
5251
5582
  # the default parameter values, pass an empty Hash as a request object (see above).
5252
5583
  #
5253
5584
  # @param parent [::String]
5254
- # Required. Parent name, typically an organization, without location.
5255
- # For example: `organizations/12345678`.
5585
+ # Required. Resource name of the organization or project with a wildcard
5586
+ # location, for example, `organizations/433245324/locations/-` or
5587
+ # `projects/project-id/locations/-`.
5256
5588
  # @param page_size [::Integer]
5257
5589
  # Optional. Number of results per page, max 1000.
5258
5590
  # @param page_token [::String]
@@ -5827,6 +6159,21 @@ module Google
5827
6159
  #
5828
6160
  attr_reader :get_project_data_profile
5829
6161
  ##
6162
+ # RPC-specific configuration for `list_file_store_data_profiles`
6163
+ # @return [::Gapic::Config::Method]
6164
+ #
6165
+ attr_reader :list_file_store_data_profiles
6166
+ ##
6167
+ # RPC-specific configuration for `get_file_store_data_profile`
6168
+ # @return [::Gapic::Config::Method]
6169
+ #
6170
+ attr_reader :get_file_store_data_profile
6171
+ ##
6172
+ # RPC-specific configuration for `delete_file_store_data_profile`
6173
+ # @return [::Gapic::Config::Method]
6174
+ #
6175
+ attr_reader :delete_file_store_data_profile
6176
+ ##
5830
6177
  # RPC-specific configuration for `get_table_data_profile`
5831
6178
  # @return [::Gapic::Config::Method]
5832
6179
  #
@@ -5966,6 +6313,12 @@ module Google
5966
6313
  @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config
5967
6314
  get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile
5968
6315
  @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config
6316
+ list_file_store_data_profiles_config = parent_rpcs.list_file_store_data_profiles if parent_rpcs.respond_to? :list_file_store_data_profiles
6317
+ @list_file_store_data_profiles = ::Gapic::Config::Method.new list_file_store_data_profiles_config
6318
+ get_file_store_data_profile_config = parent_rpcs.get_file_store_data_profile if parent_rpcs.respond_to? :get_file_store_data_profile
6319
+ @get_file_store_data_profile = ::Gapic::Config::Method.new get_file_store_data_profile_config
6320
+ delete_file_store_data_profile_config = parent_rpcs.delete_file_store_data_profile if parent_rpcs.respond_to? :delete_file_store_data_profile
6321
+ @delete_file_store_data_profile = ::Gapic::Config::Method.new delete_file_store_data_profile_config
5969
6322
  get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile
5970
6323
  @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config
5971
6324
  get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile