google-cloud-dlp-v2 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +470 -96
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +76 -9
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +449 -96
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +245 -10
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +31 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +9 -1
- data/lib/google/privacy/dlp/v2/storage_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +823 -108
- data/proto_docs/google/privacy/dlp/v2/storage.rb +9 -7
- metadata +2 -2
@@ -1619,6 +1619,120 @@ module Google
|
|
1619
1619
|
result
|
1620
1620
|
end
|
1621
1621
|
|
1622
|
+
##
|
1623
|
+
# Baseline implementation for the list_file_store_data_profiles REST call
|
1624
|
+
#
|
1625
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListFileStoreDataProfilesRequest]
|
1626
|
+
# A request object representing the call parameters. Required.
|
1627
|
+
# @param options [::Gapic::CallOptions]
|
1628
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1629
|
+
#
|
1630
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1631
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::ListFileStoreDataProfilesResponse]
|
1632
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1633
|
+
#
|
1634
|
+
# @return [::Google::Cloud::Dlp::V2::ListFileStoreDataProfilesResponse]
|
1635
|
+
# A result object deserialized from the server's reply
|
1636
|
+
def list_file_store_data_profiles request_pb, options = nil
|
1637
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1638
|
+
|
1639
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_file_store_data_profiles_request request_pb
|
1640
|
+
query_string_params = if query_string_params.any?
|
1641
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1642
|
+
else
|
1643
|
+
{}
|
1644
|
+
end
|
1645
|
+
|
1646
|
+
response = @client_stub.make_http_request(
|
1647
|
+
verb,
|
1648
|
+
uri: uri,
|
1649
|
+
body: body || "",
|
1650
|
+
params: query_string_params,
|
1651
|
+
options: options
|
1652
|
+
)
|
1653
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1654
|
+
result = ::Google::Cloud::Dlp::V2::ListFileStoreDataProfilesResponse.decode_json response.body, ignore_unknown_fields: true
|
1655
|
+
|
1656
|
+
yield result, operation if block_given?
|
1657
|
+
result
|
1658
|
+
end
|
1659
|
+
|
1660
|
+
##
|
1661
|
+
# Baseline implementation for the get_file_store_data_profile REST call
|
1662
|
+
#
|
1663
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetFileStoreDataProfileRequest]
|
1664
|
+
# A request object representing the call parameters. Required.
|
1665
|
+
# @param options [::Gapic::CallOptions]
|
1666
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1667
|
+
#
|
1668
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1669
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::FileStoreDataProfile]
|
1670
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1671
|
+
#
|
1672
|
+
# @return [::Google::Cloud::Dlp::V2::FileStoreDataProfile]
|
1673
|
+
# A result object deserialized from the server's reply
|
1674
|
+
def get_file_store_data_profile request_pb, options = nil
|
1675
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1676
|
+
|
1677
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_file_store_data_profile_request request_pb
|
1678
|
+
query_string_params = if query_string_params.any?
|
1679
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1680
|
+
else
|
1681
|
+
{}
|
1682
|
+
end
|
1683
|
+
|
1684
|
+
response = @client_stub.make_http_request(
|
1685
|
+
verb,
|
1686
|
+
uri: uri,
|
1687
|
+
body: body || "",
|
1688
|
+
params: query_string_params,
|
1689
|
+
options: options
|
1690
|
+
)
|
1691
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1692
|
+
result = ::Google::Cloud::Dlp::V2::FileStoreDataProfile.decode_json response.body, ignore_unknown_fields: true
|
1693
|
+
|
1694
|
+
yield result, operation if block_given?
|
1695
|
+
result
|
1696
|
+
end
|
1697
|
+
|
1698
|
+
##
|
1699
|
+
# Baseline implementation for the delete_file_store_data_profile REST call
|
1700
|
+
#
|
1701
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::DeleteFileStoreDataProfileRequest]
|
1702
|
+
# A request object representing the call parameters. Required.
|
1703
|
+
# @param options [::Gapic::CallOptions]
|
1704
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1705
|
+
#
|
1706
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1707
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
1708
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1709
|
+
#
|
1710
|
+
# @return [::Google::Protobuf::Empty]
|
1711
|
+
# A result object deserialized from the server's reply
|
1712
|
+
def delete_file_store_data_profile request_pb, options = nil
|
1713
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1714
|
+
|
1715
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_file_store_data_profile_request request_pb
|
1716
|
+
query_string_params = if query_string_params.any?
|
1717
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1718
|
+
else
|
1719
|
+
{}
|
1720
|
+
end
|
1721
|
+
|
1722
|
+
response = @client_stub.make_http_request(
|
1723
|
+
verb,
|
1724
|
+
uri: uri,
|
1725
|
+
body: body || "",
|
1726
|
+
params: query_string_params,
|
1727
|
+
options: options
|
1728
|
+
)
|
1729
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1730
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
1731
|
+
|
1732
|
+
yield result, operation if block_given?
|
1733
|
+
result
|
1734
|
+
end
|
1735
|
+
|
1622
1736
|
##
|
1623
1737
|
# Baseline implementation for the get_table_data_profile REST call
|
1624
1738
|
#
|
@@ -2199,7 +2313,7 @@ module Google
|
|
2199
2313
|
uri_template: "/v2/{parent}/inspectTemplates",
|
2200
2314
|
body: "*",
|
2201
2315
|
matches: [
|
2202
|
-
["parent", %r{^
|
2316
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2203
2317
|
]
|
2204
2318
|
)
|
2205
2319
|
.with_bindings(
|
@@ -2223,7 +2337,7 @@ module Google
|
|
2223
2337
|
uri_template: "/v2/{parent}/inspectTemplates",
|
2224
2338
|
body: "*",
|
2225
2339
|
matches: [
|
2226
|
-
["parent", %r{^
|
2340
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
2227
2341
|
]
|
2228
2342
|
)
|
2229
2343
|
transcoder.transcode request_pb
|
@@ -2245,7 +2359,7 @@ module Google
|
|
2245
2359
|
uri_template: "/v2/{name}",
|
2246
2360
|
body: "*",
|
2247
2361
|
matches: [
|
2248
|
-
["name", %r{^
|
2362
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2249
2363
|
]
|
2250
2364
|
)
|
2251
2365
|
.with_bindings(
|
@@ -2269,7 +2383,7 @@ module Google
|
|
2269
2383
|
uri_template: "/v2/{name}",
|
2270
2384
|
body: "*",
|
2271
2385
|
matches: [
|
2272
|
-
["name", %r{^
|
2386
|
+
["name", %r{^organizations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2273
2387
|
]
|
2274
2388
|
)
|
2275
2389
|
transcoder.transcode request_pb
|
@@ -2290,7 +2404,7 @@ module Google
|
|
2290
2404
|
uri_method: :get,
|
2291
2405
|
uri_template: "/v2/{name}",
|
2292
2406
|
matches: [
|
2293
|
-
["name", %r{^
|
2407
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2294
2408
|
]
|
2295
2409
|
)
|
2296
2410
|
.with_bindings(
|
@@ -2311,7 +2425,7 @@ module Google
|
|
2311
2425
|
uri_method: :get,
|
2312
2426
|
uri_template: "/v2/{name}",
|
2313
2427
|
matches: [
|
2314
|
-
["name", %r{^
|
2428
|
+
["name", %r{^organizations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2315
2429
|
]
|
2316
2430
|
)
|
2317
2431
|
transcoder.transcode request_pb
|
@@ -2332,7 +2446,7 @@ module Google
|
|
2332
2446
|
uri_method: :get,
|
2333
2447
|
uri_template: "/v2/{parent}/inspectTemplates",
|
2334
2448
|
matches: [
|
2335
|
-
["parent", %r{^
|
2449
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2336
2450
|
]
|
2337
2451
|
)
|
2338
2452
|
.with_bindings(
|
@@ -2353,7 +2467,7 @@ module Google
|
|
2353
2467
|
uri_method: :get,
|
2354
2468
|
uri_template: "/v2/{parent}/inspectTemplates",
|
2355
2469
|
matches: [
|
2356
|
-
["parent", %r{^
|
2470
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
2357
2471
|
]
|
2358
2472
|
)
|
2359
2473
|
transcoder.transcode request_pb
|
@@ -2374,7 +2488,7 @@ module Google
|
|
2374
2488
|
uri_method: :delete,
|
2375
2489
|
uri_template: "/v2/{name}",
|
2376
2490
|
matches: [
|
2377
|
-
["name", %r{^
|
2491
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2378
2492
|
]
|
2379
2493
|
)
|
2380
2494
|
.with_bindings(
|
@@ -2395,7 +2509,7 @@ module Google
|
|
2395
2509
|
uri_method: :delete,
|
2396
2510
|
uri_template: "/v2/{name}",
|
2397
2511
|
matches: [
|
2398
|
-
["name", %r{^
|
2512
|
+
["name", %r{^organizations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2399
2513
|
]
|
2400
2514
|
)
|
2401
2515
|
transcoder.transcode request_pb
|
@@ -3477,6 +3591,90 @@ module Google
|
|
3477
3591
|
transcoder.transcode request_pb
|
3478
3592
|
end
|
3479
3593
|
|
3594
|
+
##
|
3595
|
+
# @private
|
3596
|
+
#
|
3597
|
+
# GRPC transcoding helper method for the list_file_store_data_profiles REST call
|
3598
|
+
#
|
3599
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListFileStoreDataProfilesRequest]
|
3600
|
+
# A request object representing the call parameters. Required.
|
3601
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3602
|
+
# Uri, Body, Query string parameters
|
3603
|
+
def self.transcode_list_file_store_data_profiles_request request_pb
|
3604
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3605
|
+
.with_bindings(
|
3606
|
+
uri_method: :get,
|
3607
|
+
uri_template: "/v2/{parent}/fileStoreDataProfiles",
|
3608
|
+
matches: [
|
3609
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
3610
|
+
]
|
3611
|
+
)
|
3612
|
+
.with_bindings(
|
3613
|
+
uri_method: :get,
|
3614
|
+
uri_template: "/v2/{parent}/fileStoreDataProfiles",
|
3615
|
+
matches: [
|
3616
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3617
|
+
]
|
3618
|
+
)
|
3619
|
+
transcoder.transcode request_pb
|
3620
|
+
end
|
3621
|
+
|
3622
|
+
##
|
3623
|
+
# @private
|
3624
|
+
#
|
3625
|
+
# GRPC transcoding helper method for the get_file_store_data_profile REST call
|
3626
|
+
#
|
3627
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetFileStoreDataProfileRequest]
|
3628
|
+
# A request object representing the call parameters. Required.
|
3629
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3630
|
+
# Uri, Body, Query string parameters
|
3631
|
+
def self.transcode_get_file_store_data_profile_request request_pb
|
3632
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3633
|
+
.with_bindings(
|
3634
|
+
uri_method: :get,
|
3635
|
+
uri_template: "/v2/{name}",
|
3636
|
+
matches: [
|
3637
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/fileStoreDataProfiles/[^/]+/?$}, false]
|
3638
|
+
]
|
3639
|
+
)
|
3640
|
+
.with_bindings(
|
3641
|
+
uri_method: :get,
|
3642
|
+
uri_template: "/v2/{name}",
|
3643
|
+
matches: [
|
3644
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/fileStoreDataProfiles/[^/]+/?$}, false]
|
3645
|
+
]
|
3646
|
+
)
|
3647
|
+
transcoder.transcode request_pb
|
3648
|
+
end
|
3649
|
+
|
3650
|
+
##
|
3651
|
+
# @private
|
3652
|
+
#
|
3653
|
+
# GRPC transcoding helper method for the delete_file_store_data_profile REST call
|
3654
|
+
#
|
3655
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::DeleteFileStoreDataProfileRequest]
|
3656
|
+
# A request object representing the call parameters. Required.
|
3657
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3658
|
+
# Uri, Body, Query string parameters
|
3659
|
+
def self.transcode_delete_file_store_data_profile_request request_pb
|
3660
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3661
|
+
.with_bindings(
|
3662
|
+
uri_method: :delete,
|
3663
|
+
uri_template: "/v2/{name}",
|
3664
|
+
matches: [
|
3665
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/fileStoreDataProfiles/[^/]+/?$}, false]
|
3666
|
+
]
|
3667
|
+
)
|
3668
|
+
.with_bindings(
|
3669
|
+
uri_method: :delete,
|
3670
|
+
uri_template: "/v2/{name}",
|
3671
|
+
matches: [
|
3672
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/fileStoreDataProfiles/[^/]+/?$}, false]
|
3673
|
+
]
|
3674
|
+
)
|
3675
|
+
transcoder.transcode request_pb
|
3676
|
+
end
|
3677
|
+
|
3480
3678
|
##
|
3481
3679
|
# @private
|
3482
3680
|
#
|
@@ -3624,6 +3822,14 @@ module Google
|
|
3624
3822
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3625
3823
|
]
|
3626
3824
|
)
|
3825
|
+
.with_bindings(
|
3826
|
+
uri_method: :post,
|
3827
|
+
uri_template: "/v2/{parent}/connections",
|
3828
|
+
body: "*",
|
3829
|
+
matches: [
|
3830
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
3831
|
+
]
|
3832
|
+
)
|
3627
3833
|
transcoder.transcode request_pb
|
3628
3834
|
end
|
3629
3835
|
|
@@ -3645,6 +3851,13 @@ module Google
|
|
3645
3851
|
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/?$}, false]
|
3646
3852
|
]
|
3647
3853
|
)
|
3854
|
+
.with_bindings(
|
3855
|
+
uri_method: :get,
|
3856
|
+
uri_template: "/v2/{name}",
|
3857
|
+
matches: [
|
3858
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/connections/[^/]+/?$}, false]
|
3859
|
+
]
|
3860
|
+
)
|
3648
3861
|
transcoder.transcode request_pb
|
3649
3862
|
end
|
3650
3863
|
|
@@ -3666,6 +3879,13 @@ module Google
|
|
3666
3879
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3667
3880
|
]
|
3668
3881
|
)
|
3882
|
+
.with_bindings(
|
3883
|
+
uri_method: :get,
|
3884
|
+
uri_template: "/v2/{parent}/connections",
|
3885
|
+
matches: [
|
3886
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
3887
|
+
]
|
3888
|
+
)
|
3669
3889
|
transcoder.transcode request_pb
|
3670
3890
|
end
|
3671
3891
|
|
@@ -3715,6 +3935,13 @@ module Google
|
|
3715
3935
|
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/?$}, false]
|
3716
3936
|
]
|
3717
3937
|
)
|
3938
|
+
.with_bindings(
|
3939
|
+
uri_method: :delete,
|
3940
|
+
uri_template: "/v2/{name}",
|
3941
|
+
matches: [
|
3942
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/connections/[^/]+/?$}, false]
|
3943
|
+
]
|
3944
|
+
)
|
3718
3945
|
transcoder.transcode request_pb
|
3719
3946
|
end
|
3720
3947
|
|
@@ -3737,6 +3964,14 @@ module Google
|
|
3737
3964
|
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/?$}, false]
|
3738
3965
|
]
|
3739
3966
|
)
|
3967
|
+
.with_bindings(
|
3968
|
+
uri_method: :patch,
|
3969
|
+
uri_template: "/v2/{name}",
|
3970
|
+
body: "*",
|
3971
|
+
matches: [
|
3972
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/connections/[^/]+/?$}, false]
|
3973
|
+
]
|
3974
|
+
)
|
3740
3975
|
transcoder.transcode request_pb
|
3741
3976
|
end
|
3742
3977
|
end
|