google-cloud-dlp-v2 1.0.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -242,6 +242,21 @@ module Google
242
242
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
243
243
  }
244
244
 
245
+ default_config.rpcs.list_file_store_data_profiles.timeout = 300.0
246
+ default_config.rpcs.list_file_store_data_profiles.retry_policy = {
247
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
248
+ }
249
+
250
+ default_config.rpcs.get_file_store_data_profile.timeout = 300.0
251
+ default_config.rpcs.get_file_store_data_profile.retry_policy = {
252
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
253
+ }
254
+
255
+ default_config.rpcs.delete_file_store_data_profile.timeout = 300.0
256
+ default_config.rpcs.delete_file_store_data_profile.retry_policy = {
257
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
258
+ }
259
+
245
260
  default_config.rpcs.get_table_data_profile.timeout = 300.0
246
261
  default_config.rpcs.get_table_data_profile.retry_policy = {
247
262
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
@@ -398,10 +413,10 @@ module Google
398
413
  # processing
399
414
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
400
415
  #
401
- # + Projects scope, location specified:<br/>
402
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
403
- # + Projects scope, no location specified (defaults to global):<br/>
404
- # `projects/`<var>PROJECT_ID</var>
416
+ # + Projects scope, location specified:
417
+ # `projects/{project_id}/locations/{location_id}`
418
+ # + Projects scope, no location specified (defaults to global):
419
+ # `projects/{project_id}`
405
420
  #
406
421
  # The following example `parent` string specifies a parent project with the
407
422
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -520,10 +535,10 @@ module Google
520
535
  # processing
521
536
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
522
537
  #
523
- # + Projects scope, location specified:<br/>
524
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
525
- # + Projects scope, no location specified (defaults to global):<br/>
526
- # `projects/`<var>PROJECT_ID</var>
538
+ # + Projects scope, location specified:
539
+ # `projects/{project_id}/locations/{location_id}`
540
+ # + Projects scope, no location specified (defaults to global):
541
+ # `projects/{project_id}`
527
542
  #
528
543
  # The following example `parent` string specifies a parent project with the
529
544
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -640,10 +655,10 @@ module Google
640
655
  # processing
641
656
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
642
657
  #
643
- # + Projects scope, location specified:<br/>
644
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
645
- # + Projects scope, no location specified (defaults to global):<br/>
646
- # `projects/`<var>PROJECT_ID</var>
658
+ # + Projects scope, location specified:
659
+ # `projects/{project_id}/locations/{location_id}`
660
+ # + Projects scope, no location specified (defaults to global):
661
+ # `projects/{project_id}`
647
662
  #
648
663
  # The following example `parent` string specifies a parent project with the
649
664
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -775,10 +790,10 @@ module Google
775
790
  # processing
776
791
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
777
792
  #
778
- # + Projects scope, location specified:<br/>
779
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
780
- # + Projects scope, no location specified (defaults to global):<br/>
781
- # `projects/`<var>PROJECT_ID</var>
793
+ # + Projects scope, location specified:
794
+ # `projects/{project_id}/locations/{location_id}`
795
+ # + Projects scope, no location specified (defaults to global):
796
+ # `projects/{project_id}`
782
797
  #
783
798
  # The following example `parent` string specifies a parent project with the
784
799
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -908,7 +923,7 @@ module Google
908
923
  #
909
924
  # The format of this value is as follows:
910
925
  #
911
- # locations/<var>LOCATION_ID</var>
926
+ # `locations/{location_id}`
912
927
  # @param language_code [::String]
913
928
  # BCP-47 language code for localized infoType friendly
914
929
  # names. If omitted, or if localized strings are not available,
@@ -1005,14 +1020,14 @@ module Google
1005
1020
  # (project or organization) and whether you have [specified a processing
1006
1021
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1007
1022
  #
1008
- # + Projects scope, location specified:<br/>
1009
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1010
- # + Projects scope, no location specified (defaults to global):<br/>
1011
- # `projects/`<var>PROJECT_ID</var>
1012
- # + Organizations scope, location specified:<br/>
1013
- # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1014
- # + Organizations scope, no location specified (defaults to global):<br/>
1015
- # `organizations/`<var>ORG_ID</var>
1023
+ # + Projects scope, location specified:
1024
+ # `projects/{project_id}/locations/{location_id}`
1025
+ # + Projects scope, no location specified (defaults to global):
1026
+ # `projects/{project_id}`
1027
+ # + Organizations scope, location specified:
1028
+ # `organizations/{org_id}/locations/{location_id}`
1029
+ # + Organizations scope, no location specified (defaults to global):
1030
+ # `organizations/{org_id}`
1016
1031
  #
1017
1032
  # The following example `parent` string specifies a parent project with the
1018
1033
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -1308,14 +1323,14 @@ module Google
1308
1323
  # (project or organization) and whether you have [specified a processing
1309
1324
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1310
1325
  #
1311
- # + Projects scope, location specified:<br/>
1312
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1313
- # + Projects scope, no location specified (defaults to global):<br/>
1314
- # `projects/`<var>PROJECT_ID</var>
1315
- # + Organizations scope, location specified:<br/>
1316
- # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1317
- # + Organizations scope, no location specified (defaults to global):<br/>
1318
- # `organizations/`<var>ORG_ID</var>
1326
+ # + Projects scope, location specified:
1327
+ # `projects/{project_id}/locations/{location_id}`
1328
+ # + Projects scope, no location specified (defaults to global):
1329
+ # `projects/{project_id}`
1330
+ # + Organizations scope, location specified:
1331
+ # `organizations/{org_id}/locations/{location_id}`
1332
+ # + Organizations scope, no location specified (defaults to global):
1333
+ # `organizations/{org_id}`
1319
1334
  #
1320
1335
  # The following example `parent` string specifies a parent project with the
1321
1336
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -1329,7 +1344,7 @@ module Google
1329
1344
  # Size of the page. This value can be limited by the server. If zero server
1330
1345
  # returns a page of max size 100.
1331
1346
  # @param order_by [::String]
1332
- # Comma separated list of fields to order by,
1347
+ # Comma-separated list of fields to order by,
1333
1348
  # followed by `asc` or `desc` postfix. This list is case insensitive. The
1334
1349
  # default sorting order is ascending. Redundant space characters are
1335
1350
  # insignificant.
@@ -1535,14 +1550,14 @@ module Google
1535
1550
  # (project or organization) and whether you have [specified a processing
1536
1551
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1537
1552
  #
1538
- # + Projects scope, location specified:<br/>
1539
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1540
- # + Projects scope, no location specified (defaults to global):<br/>
1541
- # `projects/`<var>PROJECT_ID</var>
1542
- # + Organizations scope, location specified:<br/>
1543
- # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1544
- # + Organizations scope, no location specified (defaults to global):<br/>
1545
- # `organizations/`<var>ORG_ID</var>
1553
+ # + Projects scope, location specified:
1554
+ # `projects/{project_id}/locations/{location_id}`
1555
+ # + Projects scope, no location specified (defaults to global):
1556
+ # `projects/{project_id}`
1557
+ # + Organizations scope, location specified:
1558
+ # `organizations/{org_id}/locations/{location_id}`
1559
+ # + Organizations scope, no location specified (defaults to global):
1560
+ # `organizations/{org_id}`
1546
1561
  #
1547
1562
  # The following example `parent` string specifies a parent project with the
1548
1563
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -1839,14 +1854,14 @@ module Google
1839
1854
  # (project or organization) and whether you have [specified a processing
1840
1855
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1841
1856
  #
1842
- # + Projects scope, location specified:<br/>
1843
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1844
- # + Projects scope, no location specified (defaults to global):<br/>
1845
- # `projects/`<var>PROJECT_ID</var>
1846
- # + Organizations scope, location specified:<br/>
1847
- # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1848
- # + Organizations scope, no location specified (defaults to global):<br/>
1849
- # `organizations/`<var>ORG_ID</var>
1857
+ # + Projects scope, location specified:
1858
+ # `projects/{project_id}/locations/{location_id}`
1859
+ # + Projects scope, no location specified (defaults to global):
1860
+ # `projects/{project_id}`
1861
+ # + Organizations scope, location specified:
1862
+ # `organizations/{org_id}/locations/{location_id}`
1863
+ # + Organizations scope, no location specified (defaults to global):
1864
+ # `organizations/{org_id}`
1850
1865
  #
1851
1866
  # The following example `parent` string specifies a parent project with the
1852
1867
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -1860,7 +1875,7 @@ module Google
1860
1875
  # Size of the page. This value can be limited by the server. If zero server
1861
1876
  # returns a page of max size 100.
1862
1877
  # @param order_by [::String]
1863
- # Comma separated list of fields to order by,
1878
+ # Comma-separated list of fields to order by,
1864
1879
  # followed by `asc` or `desc` postfix. This list is case insensitive. The
1865
1880
  # default sorting order is ascending. Redundant space characters are
1866
1881
  # insignificant.
@@ -2067,10 +2082,10 @@ module Google
2067
2082
  # processing
2068
2083
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
2069
2084
  #
2070
- # + Projects scope, location specified:<br/>
2071
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2072
- # + Projects scope, no location specified (defaults to global):<br/>
2073
- # `projects/`<var>PROJECT_ID</var>
2085
+ # + Projects scope, location specified:
2086
+ # `projects/{project_id}/locations/{location_id}`
2087
+ # + Projects scope, no location specified (defaults to global):
2088
+ # `projects/{project_id}`
2074
2089
  #
2075
2090
  # The following example `parent` string specifies a parent project with the
2076
2091
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -2455,10 +2470,10 @@ module Google
2455
2470
  # processing
2456
2471
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
2457
2472
  #
2458
- # + Projects scope, location specified:<br/>
2459
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2460
- # + Projects scope, no location specified (defaults to global):<br/>
2461
- # `projects/`<var>PROJECT_ID</var>
2473
+ # + Projects scope, location specified:
2474
+ # `projects/{project_id}/locations/{location_id}`
2475
+ # + Projects scope, no location specified (defaults to global):
2476
+ # `projects/{project_id}`
2462
2477
  #
2463
2478
  # The following example `parent` string specifies a parent project with the
2464
2479
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -2472,7 +2487,7 @@ module Google
2472
2487
  # @param page_size [::Integer]
2473
2488
  # Size of the page. This value can be limited by a server.
2474
2489
  # @param order_by [::String]
2475
- # Comma separated list of triggeredJob fields to order by,
2490
+ # Comma-separated list of triggeredJob fields to order by,
2476
2491
  # followed by `asc` or `desc` postfix. This list is case insensitive. The
2477
2492
  # default sorting order is ascending. Redundant space characters are
2478
2493
  # insignificant.
@@ -2786,8 +2801,13 @@ module Google
2786
2801
  # @param parent [::String]
2787
2802
  # Required. Parent resource name.
2788
2803
  #
2789
- # The format of this value is as follows:
2790
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2804
+ # The format of this value varies depending on the scope of the request
2805
+ # (project or organization):
2806
+ #
2807
+ # + Projects scope:
2808
+ # `projects/{project_id}/locations/{location_id}`
2809
+ # + Organizations scope:
2810
+ # `organizations/{org_id}/locations/{location_id}`
2791
2811
  #
2792
2812
  # The following example `parent` string specifies a parent project with the
2793
2813
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -3067,7 +3087,7 @@ module Google
3067
3087
  # Required. Parent resource name.
3068
3088
  #
3069
3089
  # The format of this value is as follows:
3070
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3090
+ # `projects/{project_id}/locations/{location_id}`
3071
3091
  #
3072
3092
  # The following example `parent` string specifies a parent project with the
3073
3093
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -3081,7 +3101,7 @@ module Google
3081
3101
  # @param page_size [::Integer]
3082
3102
  # Size of the page. This value can be limited by a server.
3083
3103
  # @param order_by [::String]
3084
- # Comma separated list of config fields to order by,
3104
+ # Comma-separated list of config fields to order by,
3085
3105
  # followed by `asc` or `desc` postfix. This list is case insensitive. The
3086
3106
  # default sorting order is ascending. Redundant space characters are
3087
3107
  # insignificant.
@@ -3285,10 +3305,10 @@ module Google
3285
3305
  # processing
3286
3306
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3287
3307
  #
3288
- # + Projects scope, location specified:<br/>
3289
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3290
- # + Projects scope, no location specified (defaults to global):<br/>
3291
- # `projects/`<var>PROJECT_ID</var>
3308
+ # + Projects scope, location specified:
3309
+ # `projects/{project_id}/locations/{location_id}`
3310
+ # + Projects scope, no location specified (defaults to global):
3311
+ # `projects/{project_id}`
3292
3312
  #
3293
3313
  # The following example `parent` string specifies a parent project with the
3294
3314
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -3403,10 +3423,10 @@ module Google
3403
3423
  # processing
3404
3424
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3405
3425
  #
3406
- # + Projects scope, location specified:<br/>
3407
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3408
- # + Projects scope, no location specified (defaults to global):<br/>
3409
- # `projects/`<var>PROJECT_ID</var>
3426
+ # + Projects scope, location specified:
3427
+ # `projects/{project_id}/locations/{location_id}`
3428
+ # + Projects scope, no location specified (defaults to global):
3429
+ # `projects/{project_id}`
3410
3430
  #
3411
3431
  # The following example `parent` string specifies a parent project with the
3412
3432
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -3449,7 +3469,7 @@ module Google
3449
3469
  # @param type [::Google::Cloud::Dlp::V2::DlpJobType]
3450
3470
  # The type of job. Defaults to `DlpJobType.INSPECT`
3451
3471
  # @param order_by [::String]
3452
- # Comma separated list of fields to order by,
3472
+ # Comma-separated list of fields to order by,
3453
3473
  # followed by `asc` or `desc` postfix. This list is case insensitive. The
3454
3474
  # default sorting order is ascending. Redundant space characters are
3455
3475
  # insignificant.
@@ -3840,14 +3860,14 @@ module Google
3840
3860
  # (project or organization) and whether you have [specified a processing
3841
3861
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3842
3862
  #
3843
- # + Projects scope, location specified:<br/>
3844
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3845
- # + Projects scope, no location specified (defaults to global):<br/>
3846
- # `projects/`<var>PROJECT_ID</var>
3847
- # + Organizations scope, location specified:<br/>
3848
- # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
3849
- # + Organizations scope, no location specified (defaults to global):<br/>
3850
- # `organizations/`<var>ORG_ID</var>
3863
+ # + Projects scope, location specified:
3864
+ # `projects/{project_id}/locations/{location_id}`
3865
+ # + Projects scope, no location specified (defaults to global):
3866
+ # `projects/{project_id}`
3867
+ # + Organizations scope, location specified:
3868
+ # `organizations/{org_id}/locations/{location_id}`
3869
+ # + Organizations scope, no location specified (defaults to global):
3870
+ # `organizations/{org_id}`
3851
3871
  #
3852
3872
  # The following example `parent` string specifies a parent project with the
3853
3873
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -4146,10 +4166,10 @@ module Google
4146
4166
  # (project or organization) and whether you have [specified a processing
4147
4167
  # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
4148
4168
  #
4149
- # + Projects scope, location specified:<br/>
4150
- # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
4151
- # + Projects scope, no location specified (defaults to global):<br/>
4152
- # `projects/`<var>PROJECT_ID</var>
4169
+ # + Projects scope, location specified:
4170
+ # `projects/{project_id}/locations/{location_id}`
4171
+ # + Projects scope, no location specified (defaults to global):
4172
+ # `projects/{project_id}`
4153
4173
  #
4154
4174
  # The following example `parent` string specifies a parent project with the
4155
4175
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -4163,7 +4183,7 @@ module Google
4163
4183
  # Size of the page. This value can be limited by the server. If zero server
4164
4184
  # returns a page of max size 100.
4165
4185
  # @param order_by [::String]
4166
- # Comma separated list of fields to order by,
4186
+ # Comma-separated list of fields to order by,
4167
4187
  # followed by `asc` or `desc` postfix. This list is case insensitive. The
4168
4188
  # default sorting order is ascending. Redundant space characters are
4169
4189
  # insignificant.
@@ -4367,7 +4387,7 @@ module Google
4367
4387
  # Size of the page. This value can be limited by the server. If zero, server
4368
4388
  # returns a page of max size 100.
4369
4389
  # @param order_by [::String]
4370
- # Comma separated list of fields to order by, followed by `asc` or `desc`
4390
+ # Comma-separated list of fields to order by, followed by `asc` or `desc`
4371
4391
  # postfix. This list is case insensitive. The default sorting order is
4372
4392
  # ascending. Redundant space characters are insignificant. Only one order
4373
4393
  # field at a time is allowed.
@@ -4504,7 +4524,7 @@ module Google
4504
4524
  # Size of the page. This value can be limited by the server. If zero, server
4505
4525
  # returns a page of max size 100.
4506
4526
  # @param order_by [::String]
4507
- # Comma separated list of fields to order by, followed by `asc` or `desc`
4527
+ # Comma-separated list of fields to order by, followed by `asc` or `desc`
4508
4528
  # postfix. This list is case insensitive. The default sorting order is
4509
4529
  # ascending. Redundant space characters are insignificant. Only one order
4510
4530
  # field at a time is allowed.
@@ -4652,12 +4672,13 @@ module Google
4652
4672
  # Size of the page. This value can be limited by the server. If zero, server
4653
4673
  # returns a page of max size 100.
4654
4674
  # @param order_by [::String]
4655
- # Comma separated list of fields to order by, followed by `asc` or `desc`
4675
+ # Comma-separated list of fields to order by, followed by `asc` or `desc`
4656
4676
  # postfix. This list is case insensitive. The default sorting order is
4657
4677
  # ascending. Redundant space characters are insignificant. Only one order
4658
4678
  # field at a time is allowed.
4659
4679
  #
4660
4680
  # Examples:
4681
+ #
4661
4682
  # * `project_id asc`
4662
4683
  # * `table_id`
4663
4684
  # * `sensitivity_level desc`
@@ -4860,6 +4881,328 @@ module Google
4860
4881
  raise ::Google::Cloud::Error.from_error(e)
4861
4882
  end
4862
4883
 
4884
+ ##
4885
+ # Lists file store data profiles for an organization.
4886
+ #
4887
+ # @overload list_file_store_data_profiles(request, options = nil)
4888
+ # Pass arguments to `list_file_store_data_profiles` via a request object, either of type
4889
+ # {::Google::Cloud::Dlp::V2::ListFileStoreDataProfilesRequest} or an equivalent Hash.
4890
+ #
4891
+ # @param request [::Google::Cloud::Dlp::V2::ListFileStoreDataProfilesRequest, ::Hash]
4892
+ # A request object representing the call parameters. Required. To specify no
4893
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4894
+ # @param options [::Gapic::CallOptions, ::Hash]
4895
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4896
+ #
4897
+ # @overload list_file_store_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil)
4898
+ # Pass arguments to `list_file_store_data_profiles` via keyword arguments. Note that at
4899
+ # least one keyword argument is required. To specify no parameters, or to keep all
4900
+ # the default parameter values, pass an empty Hash as a request object (see above).
4901
+ #
4902
+ # @param parent [::String]
4903
+ # Required. Resource name of the organization or project, for
4904
+ # example `organizations/433245324/locations/europe` or
4905
+ # `projects/project-id/locations/asia`.
4906
+ # @param page_token [::String]
4907
+ # Optional. Page token to continue retrieval.
4908
+ # @param page_size [::Integer]
4909
+ # Optional. Size of the page. This value can be limited by the server. If
4910
+ # zero, server returns a page of max size 100.
4911
+ # @param order_by [::String]
4912
+ # Optional. Comma-separated list of fields to order by, followed by `asc` or
4913
+ # `desc` postfix. This list is case insensitive. The default sorting order is
4914
+ # ascending. Redundant space characters are insignificant. Only one order
4915
+ # field at a time is allowed.
4916
+ #
4917
+ # Examples:
4918
+ #
4919
+ # * `project_id asc`
4920
+ # * `name`
4921
+ # * `sensitivity_level desc`
4922
+ #
4923
+ # Supported fields are:
4924
+ #
4925
+ # - `project_id`: The Google Cloud project ID.
4926
+ # - `sensitivity_level`: How sensitive the data in a table is, at most.
4927
+ # - `data_risk_level`: How much risk is associated with this data.
4928
+ # - `profile_last_generated`: When the profile was last updated in epoch
4929
+ # seconds.
4930
+ # - `last_modified`: The last time the resource was modified.
4931
+ # - `resource_visibility`: Visibility restriction for this resource.
4932
+ # - `name`: The name of the profile.
4933
+ # - `create_time`: The time the file store was first created.
4934
+ # @param filter [::String]
4935
+ # Optional. Allows filtering.
4936
+ #
4937
+ # Supported syntax:
4938
+ #
4939
+ # * Filter expressions are made up of one or more restrictions.
4940
+ # * Restrictions can be combined by `AND` or `OR` logical operators. A
4941
+ # sequence of restrictions implicitly uses `AND`.
4942
+ # * A restriction has the form of `{field} {operator} {value}`.
4943
+ # * Supported fields/values:
4944
+ # - `project_id` - The Google Cloud project ID.
4945
+ # - `file_store_path` - The path like "gs://bucket".
4946
+ # - `sensitivity_level` - HIGH|MODERATE|LOW
4947
+ # - `data_risk_level` - HIGH|MODERATE|LOW
4948
+ # - `resource_visibility`: PUBLIC|RESTRICTED
4949
+ # - `status_code` - an RPC status code as defined in
4950
+ # https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
4951
+ # * The operator must be `=` or `!=`.
4952
+ #
4953
+ # Examples:
4954
+ #
4955
+ # * `project_id = 12345 AND status_code = 1`
4956
+ # * `project_id = 12345 AND sensitivity_level = HIGH`
4957
+ # * `project_id = 12345 AND resource_visibility = PUBLIC`
4958
+ # * `file_store_path = "gs://mybucket"`
4959
+ #
4960
+ # The length of this field should be no more than 500 characters.
4961
+ #
4962
+ # @yield [response, operation] Access the result along with the RPC operation
4963
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::FileStoreDataProfile>]
4964
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4965
+ #
4966
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::FileStoreDataProfile>]
4967
+ #
4968
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4969
+ #
4970
+ # @example Basic example
4971
+ # require "google/cloud/dlp/v2"
4972
+ #
4973
+ # # Create a client object. The client can be reused for multiple calls.
4974
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
4975
+ #
4976
+ # # Create a request. To set request fields, pass in keyword arguments.
4977
+ # request = Google::Cloud::Dlp::V2::ListFileStoreDataProfilesRequest.new
4978
+ #
4979
+ # # Call the list_file_store_data_profiles method.
4980
+ # result = client.list_file_store_data_profiles request
4981
+ #
4982
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4983
+ # # over elements, and API calls will be issued to fetch pages as needed.
4984
+ # result.each do |item|
4985
+ # # Each element is of type ::Google::Cloud::Dlp::V2::FileStoreDataProfile.
4986
+ # p item
4987
+ # end
4988
+ #
4989
+ def list_file_store_data_profiles request, options = nil
4990
+ raise ::ArgumentError, "request must be provided" if request.nil?
4991
+
4992
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListFileStoreDataProfilesRequest
4993
+
4994
+ # Converts hash and nil to an options object
4995
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4996
+
4997
+ # Customize the options with defaults
4998
+ metadata = @config.rpcs.list_file_store_data_profiles.metadata.to_h
4999
+
5000
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5001
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5002
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5003
+ gapic_version: ::Google::Cloud::Dlp::V2::VERSION
5004
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5005
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5006
+
5007
+ header_params = {}
5008
+ if request.parent
5009
+ header_params["parent"] = request.parent
5010
+ end
5011
+
5012
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5013
+ metadata[:"x-goog-request-params"] ||= request_params_header
5014
+
5015
+ options.apply_defaults timeout: @config.rpcs.list_file_store_data_profiles.timeout,
5016
+ metadata: metadata,
5017
+ retry_policy: @config.rpcs.list_file_store_data_profiles.retry_policy
5018
+
5019
+ options.apply_defaults timeout: @config.timeout,
5020
+ metadata: @config.metadata,
5021
+ retry_policy: @config.retry_policy
5022
+
5023
+ @dlp_service_stub.call_rpc :list_file_store_data_profiles, request, options: options do |response, operation|
5024
+ response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_file_store_data_profiles, request, response, operation, options
5025
+ yield response, operation if block_given?
5026
+ return response
5027
+ end
5028
+ rescue ::GRPC::BadStatus => e
5029
+ raise ::Google::Cloud::Error.from_error(e)
5030
+ end
5031
+
5032
+ ##
5033
+ # Gets a file store data profile.
5034
+ #
5035
+ # @overload get_file_store_data_profile(request, options = nil)
5036
+ # Pass arguments to `get_file_store_data_profile` via a request object, either of type
5037
+ # {::Google::Cloud::Dlp::V2::GetFileStoreDataProfileRequest} or an equivalent Hash.
5038
+ #
5039
+ # @param request [::Google::Cloud::Dlp::V2::GetFileStoreDataProfileRequest, ::Hash]
5040
+ # A request object representing the call parameters. Required. To specify no
5041
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5042
+ # @param options [::Gapic::CallOptions, ::Hash]
5043
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5044
+ #
5045
+ # @overload get_file_store_data_profile(name: nil)
5046
+ # Pass arguments to `get_file_store_data_profile` via keyword arguments. Note that at
5047
+ # least one keyword argument is required. To specify no parameters, or to keep all
5048
+ # the default parameter values, pass an empty Hash as a request object (see above).
5049
+ #
5050
+ # @param name [::String]
5051
+ # Required. Resource name, for example
5052
+ # `organizations/12345/locations/us/fileStoreDataProfiles/53234423`.
5053
+ #
5054
+ # @yield [response, operation] Access the result along with the RPC operation
5055
+ # @yieldparam response [::Google::Cloud::Dlp::V2::FileStoreDataProfile]
5056
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5057
+ #
5058
+ # @return [::Google::Cloud::Dlp::V2::FileStoreDataProfile]
5059
+ #
5060
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5061
+ #
5062
+ # @example Basic example
5063
+ # require "google/cloud/dlp/v2"
5064
+ #
5065
+ # # Create a client object. The client can be reused for multiple calls.
5066
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
5067
+ #
5068
+ # # Create a request. To set request fields, pass in keyword arguments.
5069
+ # request = Google::Cloud::Dlp::V2::GetFileStoreDataProfileRequest.new
5070
+ #
5071
+ # # Call the get_file_store_data_profile method.
5072
+ # result = client.get_file_store_data_profile request
5073
+ #
5074
+ # # The returned object is of type Google::Cloud::Dlp::V2::FileStoreDataProfile.
5075
+ # p result
5076
+ #
5077
+ def get_file_store_data_profile request, options = nil
5078
+ raise ::ArgumentError, "request must be provided" if request.nil?
5079
+
5080
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetFileStoreDataProfileRequest
5081
+
5082
+ # Converts hash and nil to an options object
5083
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5084
+
5085
+ # Customize the options with defaults
5086
+ metadata = @config.rpcs.get_file_store_data_profile.metadata.to_h
5087
+
5088
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5089
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5090
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5091
+ gapic_version: ::Google::Cloud::Dlp::V2::VERSION
5092
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5093
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5094
+
5095
+ header_params = {}
5096
+ if request.name
5097
+ header_params["name"] = request.name
5098
+ end
5099
+
5100
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5101
+ metadata[:"x-goog-request-params"] ||= request_params_header
5102
+
5103
+ options.apply_defaults timeout: @config.rpcs.get_file_store_data_profile.timeout,
5104
+ metadata: metadata,
5105
+ retry_policy: @config.rpcs.get_file_store_data_profile.retry_policy
5106
+
5107
+ options.apply_defaults timeout: @config.timeout,
5108
+ metadata: @config.metadata,
5109
+ retry_policy: @config.retry_policy
5110
+
5111
+ @dlp_service_stub.call_rpc :get_file_store_data_profile, request, options: options do |response, operation|
5112
+ yield response, operation if block_given?
5113
+ return response
5114
+ end
5115
+ rescue ::GRPC::BadStatus => e
5116
+ raise ::Google::Cloud::Error.from_error(e)
5117
+ end
5118
+
5119
+ ##
5120
+ # Delete a FileStoreDataProfile. Will not prevent the profile from being
5121
+ # regenerated if the resource is still included in a discovery configuration.
5122
+ #
5123
+ # @overload delete_file_store_data_profile(request, options = nil)
5124
+ # Pass arguments to `delete_file_store_data_profile` via a request object, either of type
5125
+ # {::Google::Cloud::Dlp::V2::DeleteFileStoreDataProfileRequest} or an equivalent Hash.
5126
+ #
5127
+ # @param request [::Google::Cloud::Dlp::V2::DeleteFileStoreDataProfileRequest, ::Hash]
5128
+ # A request object representing the call parameters. Required. To specify no
5129
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5130
+ # @param options [::Gapic::CallOptions, ::Hash]
5131
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5132
+ #
5133
+ # @overload delete_file_store_data_profile(name: nil)
5134
+ # Pass arguments to `delete_file_store_data_profile` via keyword arguments. Note that at
5135
+ # least one keyword argument is required. To specify no parameters, or to keep all
5136
+ # the default parameter values, pass an empty Hash as a request object (see above).
5137
+ #
5138
+ # @param name [::String]
5139
+ # Required. Resource name of the file store data profile.
5140
+ #
5141
+ # @yield [response, operation] Access the result along with the RPC operation
5142
+ # @yieldparam response [::Google::Protobuf::Empty]
5143
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5144
+ #
5145
+ # @return [::Google::Protobuf::Empty]
5146
+ #
5147
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5148
+ #
5149
+ # @example Basic example
5150
+ # require "google/cloud/dlp/v2"
5151
+ #
5152
+ # # Create a client object. The client can be reused for multiple calls.
5153
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
5154
+ #
5155
+ # # Create a request. To set request fields, pass in keyword arguments.
5156
+ # request = Google::Cloud::Dlp::V2::DeleteFileStoreDataProfileRequest.new
5157
+ #
5158
+ # # Call the delete_file_store_data_profile method.
5159
+ # result = client.delete_file_store_data_profile request
5160
+ #
5161
+ # # The returned object is of type Google::Protobuf::Empty.
5162
+ # p result
5163
+ #
5164
+ def delete_file_store_data_profile request, options = nil
5165
+ raise ::ArgumentError, "request must be provided" if request.nil?
5166
+
5167
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeleteFileStoreDataProfileRequest
5168
+
5169
+ # Converts hash and nil to an options object
5170
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5171
+
5172
+ # Customize the options with defaults
5173
+ metadata = @config.rpcs.delete_file_store_data_profile.metadata.to_h
5174
+
5175
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5176
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5177
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5178
+ gapic_version: ::Google::Cloud::Dlp::V2::VERSION
5179
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5180
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5181
+
5182
+ header_params = {}
5183
+ if request.name
5184
+ header_params["name"] = request.name
5185
+ end
5186
+
5187
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5188
+ metadata[:"x-goog-request-params"] ||= request_params_header
5189
+
5190
+ options.apply_defaults timeout: @config.rpcs.delete_file_store_data_profile.timeout,
5191
+ metadata: metadata,
5192
+ retry_policy: @config.rpcs.delete_file_store_data_profile.retry_policy
5193
+
5194
+ options.apply_defaults timeout: @config.timeout,
5195
+ metadata: @config.metadata,
5196
+ retry_policy: @config.retry_policy
5197
+
5198
+ @dlp_service_stub.call_rpc :delete_file_store_data_profile, request, options: options do |response, operation|
5199
+ yield response, operation if block_given?
5200
+ return response
5201
+ end
5202
+ rescue ::GRPC::BadStatus => e
5203
+ raise ::Google::Cloud::Error.from_error(e)
5204
+ end
5205
+
4863
5206
  ##
4864
5207
  # Gets a table data profile.
4865
5208
  #
@@ -5318,8 +5661,15 @@ module Google
5318
5661
  # the default parameter values, pass an empty Hash as a request object (see above).
5319
5662
  #
5320
5663
  # @param parent [::String]
5321
- # Required. Parent resource name in the format:
5322
- # `projects/{project}/locations/{location}`.
5664
+ # Required. Parent resource name.
5665
+ #
5666
+ # The format of this value varies depending on the scope of the request
5667
+ # (project or organization):
5668
+ #
5669
+ # + Projects scope:
5670
+ # `projects/{project_id}/locations/{location_id}`
5671
+ # + Organizations scope:
5672
+ # `organizations/{org_id}/locations/{location_id}`
5323
5673
  # @param connection [::Google::Cloud::Dlp::V2::Connection, ::Hash]
5324
5674
  # Required. The connection resource.
5325
5675
  #
@@ -5476,7 +5826,8 @@ module Google
5476
5826
  end
5477
5827
 
5478
5828
  ##
5479
- # Lists Connections in a parent.
5829
+ # Lists Connections in a parent. Use SearchConnections to see all connections
5830
+ # within an organization.
5480
5831
  #
5481
5832
  # @overload list_connections(request, options = nil)
5482
5833
  # Pass arguments to `list_connections` via a request object, either of type
@@ -5494,8 +5845,9 @@ module Google
5494
5845
  # the default parameter values, pass an empty Hash as a request object (see above).
5495
5846
  #
5496
5847
  # @param parent [::String]
5497
- # Required. Parent name, for example:
5498
- # `projects/project-id/locations/global`.
5848
+ # Required. Resource name of the organization or project, for
5849
+ # example, `organizations/433245324/locations/europe` or
5850
+ # `projects/project-id/locations/asia`.
5499
5851
  # @param page_size [::Integer]
5500
5852
  # Optional. Number of results per page, max 1000.
5501
5853
  # @param page_token [::String]
@@ -5593,8 +5945,9 @@ module Google
5593
5945
  # the default parameter values, pass an empty Hash as a request object (see above).
5594
5946
  #
5595
5947
  # @param parent [::String]
5596
- # Required. Parent name, typically an organization, without location.
5597
- # For example: `organizations/12345678`.
5948
+ # Required. Resource name of the organization or project with a wildcard
5949
+ # location, for example, `organizations/433245324/locations/-` or
5950
+ # `projects/project-id/locations/-`.
5598
5951
  # @param page_size [::Integer]
5599
5952
  # Optional. Number of results per page, max 1000.
5600
5953
  # @param page_token [::String]
@@ -6210,6 +6563,21 @@ module Google
6210
6563
  #
6211
6564
  attr_reader :get_project_data_profile
6212
6565
  ##
6566
+ # RPC-specific configuration for `list_file_store_data_profiles`
6567
+ # @return [::Gapic::Config::Method]
6568
+ #
6569
+ attr_reader :list_file_store_data_profiles
6570
+ ##
6571
+ # RPC-specific configuration for `get_file_store_data_profile`
6572
+ # @return [::Gapic::Config::Method]
6573
+ #
6574
+ attr_reader :get_file_store_data_profile
6575
+ ##
6576
+ # RPC-specific configuration for `delete_file_store_data_profile`
6577
+ # @return [::Gapic::Config::Method]
6578
+ #
6579
+ attr_reader :delete_file_store_data_profile
6580
+ ##
6213
6581
  # RPC-specific configuration for `get_table_data_profile`
6214
6582
  # @return [::Gapic::Config::Method]
6215
6583
  #
@@ -6349,6 +6717,12 @@ module Google
6349
6717
  @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config
6350
6718
  get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile
6351
6719
  @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config
6720
+ list_file_store_data_profiles_config = parent_rpcs.list_file_store_data_profiles if parent_rpcs.respond_to? :list_file_store_data_profiles
6721
+ @list_file_store_data_profiles = ::Gapic::Config::Method.new list_file_store_data_profiles_config
6722
+ get_file_store_data_profile_config = parent_rpcs.get_file_store_data_profile if parent_rpcs.respond_to? :get_file_store_data_profile
6723
+ @get_file_store_data_profile = ::Gapic::Config::Method.new get_file_store_data_profile_config
6724
+ delete_file_store_data_profile_config = parent_rpcs.delete_file_store_data_profile if parent_rpcs.respond_to? :delete_file_store_data_profile
6725
+ @delete_file_store_data_profile = ::Gapic::Config::Method.new delete_file_store_data_profile_config
6352
6726
  get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile
6353
6727
  @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config
6354
6728
  get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile