google-cloud-security_center-v1 0.26.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/security_center/v1/security_center/client.rb +856 -15
- data/lib/google/cloud/security_center/v1/security_center/operations.rb +2 -2
- data/lib/google/cloud/security_center/v1/security_center/paths.rb +229 -0
- data/lib/google/cloud/security_center/v1/security_center/rest/client.rb +647 -2
- data/lib/google/cloud/security_center/v1/security_center/rest/operations.rb +2 -2
- data/lib/google/cloud/security_center/v1/security_center/rest/service_stub.rb +590 -0
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/cloud_dlp_data_profile_pb.rb +24 -0
- data/lib/google/cloud/securitycenter/v1/cloud_dlp_inspection_pb.rb +27 -0
- data/lib/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module_pb.rb +35 -0
- data/lib/google/cloud/securitycenter/v1/finding_pb.rb +5 -0
- data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_config_pb.rb +50 -0
- data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_module_pb.rb +40 -0
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +58 -1
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb +30 -0
- data/proto_docs/google/api/client.rb +57 -3
- data/proto_docs/google/cloud/securitycenter/v1/access.rb +28 -29
- data/proto_docs/google/cloud/securitycenter/v1/bigquery_export.rb +5 -5
- data/proto_docs/google/cloud/securitycenter/v1/cloud_dlp_data_profile.rb +37 -0
- data/proto_docs/google/cloud/securitycenter/v1/cloud_dlp_inspection.rb +50 -0
- data/proto_docs/google/cloud/securitycenter/v1/contact_details.rb +2 -2
- data/proto_docs/google/cloud/securitycenter/v1/database.rb +1 -1
- data/proto_docs/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.rb +73 -0
- data/proto_docs/google/cloud/securitycenter/v1/exfiltration.rb +1 -1
- data/proto_docs/google/cloud/securitycenter/v1/finding.rb +41 -27
- data/proto_docs/google/cloud/securitycenter/v1/indicator.rb +4 -3
- data/proto_docs/google/cloud/securitycenter/v1/kernel_rootkit.rb +8 -8
- data/proto_docs/google/cloud/securitycenter/v1/kubernetes.rb +3 -3
- data/proto_docs/google/cloud/securitycenter/v1/mute_config.rb +5 -5
- data/proto_docs/google/cloud/securitycenter/v1/resource.rb +3 -3
- data/proto_docs/google/cloud/securitycenter/v1/security_health_analytics_custom_config.rb +112 -0
- data/proto_docs/google/cloud/securitycenter/v1/security_health_analytics_custom_module.rb +90 -0
- data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +169 -0
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- metadata +12 -2
@@ -78,6 +78,44 @@ module Google
|
|
78
78
|
result
|
79
79
|
end
|
80
80
|
|
81
|
+
##
|
82
|
+
# Baseline implementation for the create_security_health_analytics_custom_module REST call
|
83
|
+
#
|
84
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateSecurityHealthAnalyticsCustomModuleRequest]
|
85
|
+
# A request object representing the call parameters. Required.
|
86
|
+
# @param options [::Gapic::CallOptions]
|
87
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
88
|
+
#
|
89
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
90
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
|
91
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
92
|
+
#
|
93
|
+
# @return [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
|
94
|
+
# A result object deserialized from the server's reply
|
95
|
+
def create_security_health_analytics_custom_module request_pb, options = nil
|
96
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
97
|
+
|
98
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_security_health_analytics_custom_module_request request_pb
|
99
|
+
query_string_params = if query_string_params.any?
|
100
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
101
|
+
else
|
102
|
+
{}
|
103
|
+
end
|
104
|
+
|
105
|
+
response = @client_stub.make_http_request(
|
106
|
+
verb,
|
107
|
+
uri: uri,
|
108
|
+
body: body || "",
|
109
|
+
params: query_string_params,
|
110
|
+
options: options
|
111
|
+
)
|
112
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
113
|
+
result = ::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule.decode_json response.body, ignore_unknown_fields: true
|
114
|
+
|
115
|
+
yield result, operation if block_given?
|
116
|
+
result
|
117
|
+
end
|
118
|
+
|
81
119
|
##
|
82
120
|
# Baseline implementation for the create_source REST call
|
83
121
|
#
|
@@ -306,6 +344,44 @@ module Google
|
|
306
344
|
result
|
307
345
|
end
|
308
346
|
|
347
|
+
##
|
348
|
+
# Baseline implementation for the delete_security_health_analytics_custom_module REST call
|
349
|
+
#
|
350
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::DeleteSecurityHealthAnalyticsCustomModuleRequest]
|
351
|
+
# A request object representing the call parameters. Required.
|
352
|
+
# @param options [::Gapic::CallOptions]
|
353
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
354
|
+
#
|
355
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
356
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
357
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
358
|
+
#
|
359
|
+
# @return [::Google::Protobuf::Empty]
|
360
|
+
# A result object deserialized from the server's reply
|
361
|
+
def delete_security_health_analytics_custom_module request_pb, options = nil
|
362
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
363
|
+
|
364
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_security_health_analytics_custom_module_request request_pb
|
365
|
+
query_string_params = if query_string_params.any?
|
366
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
367
|
+
else
|
368
|
+
{}
|
369
|
+
end
|
370
|
+
|
371
|
+
response = @client_stub.make_http_request(
|
372
|
+
verb,
|
373
|
+
uri: uri,
|
374
|
+
body: body || "",
|
375
|
+
params: query_string_params,
|
376
|
+
options: options
|
377
|
+
)
|
378
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
379
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
380
|
+
|
381
|
+
yield result, operation if block_given?
|
382
|
+
result
|
383
|
+
end
|
384
|
+
|
309
385
|
##
|
310
386
|
# Baseline implementation for the get_big_query_export REST call
|
311
387
|
#
|
@@ -496,6 +572,82 @@ module Google
|
|
496
572
|
result
|
497
573
|
end
|
498
574
|
|
575
|
+
##
|
576
|
+
# Baseline implementation for the get_effective_security_health_analytics_custom_module REST call
|
577
|
+
#
|
578
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest]
|
579
|
+
# A request object representing the call parameters. Required.
|
580
|
+
# @param options [::Gapic::CallOptions]
|
581
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
582
|
+
#
|
583
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
584
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V1::EffectiveSecurityHealthAnalyticsCustomModule]
|
585
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
586
|
+
#
|
587
|
+
# @return [::Google::Cloud::SecurityCenter::V1::EffectiveSecurityHealthAnalyticsCustomModule]
|
588
|
+
# A result object deserialized from the server's reply
|
589
|
+
def get_effective_security_health_analytics_custom_module request_pb, options = nil
|
590
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
591
|
+
|
592
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_effective_security_health_analytics_custom_module_request request_pb
|
593
|
+
query_string_params = if query_string_params.any?
|
594
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
595
|
+
else
|
596
|
+
{}
|
597
|
+
end
|
598
|
+
|
599
|
+
response = @client_stub.make_http_request(
|
600
|
+
verb,
|
601
|
+
uri: uri,
|
602
|
+
body: body || "",
|
603
|
+
params: query_string_params,
|
604
|
+
options: options
|
605
|
+
)
|
606
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
607
|
+
result = ::Google::Cloud::SecurityCenter::V1::EffectiveSecurityHealthAnalyticsCustomModule.decode_json response.body, ignore_unknown_fields: true
|
608
|
+
|
609
|
+
yield result, operation if block_given?
|
610
|
+
result
|
611
|
+
end
|
612
|
+
|
613
|
+
##
|
614
|
+
# Baseline implementation for the get_security_health_analytics_custom_module REST call
|
615
|
+
#
|
616
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::GetSecurityHealthAnalyticsCustomModuleRequest]
|
617
|
+
# A request object representing the call parameters. Required.
|
618
|
+
# @param options [::Gapic::CallOptions]
|
619
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
620
|
+
#
|
621
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
622
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
|
623
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
624
|
+
#
|
625
|
+
# @return [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
|
626
|
+
# A result object deserialized from the server's reply
|
627
|
+
def get_security_health_analytics_custom_module request_pb, options = nil
|
628
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
629
|
+
|
630
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_security_health_analytics_custom_module_request request_pb
|
631
|
+
query_string_params = if query_string_params.any?
|
632
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
633
|
+
else
|
634
|
+
{}
|
635
|
+
end
|
636
|
+
|
637
|
+
response = @client_stub.make_http_request(
|
638
|
+
verb,
|
639
|
+
uri: uri,
|
640
|
+
body: body || "",
|
641
|
+
params: query_string_params,
|
642
|
+
options: options
|
643
|
+
)
|
644
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
645
|
+
result = ::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule.decode_json response.body, ignore_unknown_fields: true
|
646
|
+
|
647
|
+
yield result, operation if block_given?
|
648
|
+
result
|
649
|
+
end
|
650
|
+
|
499
651
|
##
|
500
652
|
# Baseline implementation for the get_source REST call
|
501
653
|
#
|
@@ -648,6 +800,44 @@ module Google
|
|
648
800
|
result
|
649
801
|
end
|
650
802
|
|
803
|
+
##
|
804
|
+
# Baseline implementation for the list_descendant_security_health_analytics_custom_modules REST call
|
805
|
+
#
|
806
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest]
|
807
|
+
# A request object representing the call parameters. Required.
|
808
|
+
# @param options [::Gapic::CallOptions]
|
809
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
810
|
+
#
|
811
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
812
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse]
|
813
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
814
|
+
#
|
815
|
+
# @return [::Google::Cloud::SecurityCenter::V1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse]
|
816
|
+
# A result object deserialized from the server's reply
|
817
|
+
def list_descendant_security_health_analytics_custom_modules request_pb, options = nil
|
818
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
819
|
+
|
820
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_descendant_security_health_analytics_custom_modules_request request_pb
|
821
|
+
query_string_params = if query_string_params.any?
|
822
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
823
|
+
else
|
824
|
+
{}
|
825
|
+
end
|
826
|
+
|
827
|
+
response = @client_stub.make_http_request(
|
828
|
+
verb,
|
829
|
+
uri: uri,
|
830
|
+
body: body || "",
|
831
|
+
params: query_string_params,
|
832
|
+
options: options
|
833
|
+
)
|
834
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
835
|
+
result = ::Google::Cloud::SecurityCenter::V1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse.decode_json response.body, ignore_unknown_fields: true
|
836
|
+
|
837
|
+
yield result, operation if block_given?
|
838
|
+
result
|
839
|
+
end
|
840
|
+
|
651
841
|
##
|
652
842
|
# Baseline implementation for the list_findings REST call
|
653
843
|
#
|
@@ -762,6 +952,82 @@ module Google
|
|
762
952
|
result
|
763
953
|
end
|
764
954
|
|
955
|
+
##
|
956
|
+
# Baseline implementation for the list_effective_security_health_analytics_custom_modules REST call
|
957
|
+
#
|
958
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest]
|
959
|
+
# A request object representing the call parameters. Required.
|
960
|
+
# @param options [::Gapic::CallOptions]
|
961
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
962
|
+
#
|
963
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
964
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse]
|
965
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
966
|
+
#
|
967
|
+
# @return [::Google::Cloud::SecurityCenter::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse]
|
968
|
+
# A result object deserialized from the server's reply
|
969
|
+
def list_effective_security_health_analytics_custom_modules request_pb, options = nil
|
970
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
971
|
+
|
972
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_effective_security_health_analytics_custom_modules_request request_pb
|
973
|
+
query_string_params = if query_string_params.any?
|
974
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
975
|
+
else
|
976
|
+
{}
|
977
|
+
end
|
978
|
+
|
979
|
+
response = @client_stub.make_http_request(
|
980
|
+
verb,
|
981
|
+
uri: uri,
|
982
|
+
body: body || "",
|
983
|
+
params: query_string_params,
|
984
|
+
options: options
|
985
|
+
)
|
986
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
987
|
+
result = ::Google::Cloud::SecurityCenter::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.decode_json response.body, ignore_unknown_fields: true
|
988
|
+
|
989
|
+
yield result, operation if block_given?
|
990
|
+
result
|
991
|
+
end
|
992
|
+
|
993
|
+
##
|
994
|
+
# Baseline implementation for the list_security_health_analytics_custom_modules REST call
|
995
|
+
#
|
996
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::ListSecurityHealthAnalyticsCustomModulesRequest]
|
997
|
+
# A request object representing the call parameters. Required.
|
998
|
+
# @param options [::Gapic::CallOptions]
|
999
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1000
|
+
#
|
1001
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1002
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V1::ListSecurityHealthAnalyticsCustomModulesResponse]
|
1003
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1004
|
+
#
|
1005
|
+
# @return [::Google::Cloud::SecurityCenter::V1::ListSecurityHealthAnalyticsCustomModulesResponse]
|
1006
|
+
# A result object deserialized from the server's reply
|
1007
|
+
def list_security_health_analytics_custom_modules request_pb, options = nil
|
1008
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1009
|
+
|
1010
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_security_health_analytics_custom_modules_request request_pb
|
1011
|
+
query_string_params = if query_string_params.any?
|
1012
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
1013
|
+
else
|
1014
|
+
{}
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
response = @client_stub.make_http_request(
|
1018
|
+
verb,
|
1019
|
+
uri: uri,
|
1020
|
+
body: body || "",
|
1021
|
+
params: query_string_params,
|
1022
|
+
options: options
|
1023
|
+
)
|
1024
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1025
|
+
result = ::Google::Cloud::SecurityCenter::V1::ListSecurityHealthAnalyticsCustomModulesResponse.decode_json response.body, ignore_unknown_fields: true
|
1026
|
+
|
1027
|
+
yield result, operation if block_given?
|
1028
|
+
result
|
1029
|
+
end
|
1030
|
+
|
765
1031
|
##
|
766
1032
|
# Baseline implementation for the list_sources REST call
|
767
1033
|
#
|
@@ -1180,6 +1446,44 @@ module Google
|
|
1180
1446
|
result
|
1181
1447
|
end
|
1182
1448
|
|
1449
|
+
##
|
1450
|
+
# Baseline implementation for the update_security_health_analytics_custom_module REST call
|
1451
|
+
#
|
1452
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateSecurityHealthAnalyticsCustomModuleRequest]
|
1453
|
+
# A request object representing the call parameters. Required.
|
1454
|
+
# @param options [::Gapic::CallOptions]
|
1455
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1456
|
+
#
|
1457
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1458
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
|
1459
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1460
|
+
#
|
1461
|
+
# @return [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
|
1462
|
+
# A result object deserialized from the server's reply
|
1463
|
+
def update_security_health_analytics_custom_module request_pb, options = nil
|
1464
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1465
|
+
|
1466
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_security_health_analytics_custom_module_request request_pb
|
1467
|
+
query_string_params = if query_string_params.any?
|
1468
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
1469
|
+
else
|
1470
|
+
{}
|
1471
|
+
end
|
1472
|
+
|
1473
|
+
response = @client_stub.make_http_request(
|
1474
|
+
verb,
|
1475
|
+
uri: uri,
|
1476
|
+
body: body || "",
|
1477
|
+
params: query_string_params,
|
1478
|
+
options: options
|
1479
|
+
)
|
1480
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1481
|
+
result = ::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule.decode_json response.body, ignore_unknown_fields: true
|
1482
|
+
|
1483
|
+
yield result, operation if block_given?
|
1484
|
+
result
|
1485
|
+
end
|
1486
|
+
|
1183
1487
|
##
|
1184
1488
|
# Baseline implementation for the update_source REST call
|
1185
1489
|
#
|
@@ -1446,6 +1750,44 @@ module Google
|
|
1446
1750
|
transcoder.transcode request_pb
|
1447
1751
|
end
|
1448
1752
|
|
1753
|
+
##
|
1754
|
+
# @private
|
1755
|
+
#
|
1756
|
+
# GRPC transcoding helper method for the create_security_health_analytics_custom_module REST call
|
1757
|
+
#
|
1758
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateSecurityHealthAnalyticsCustomModuleRequest]
|
1759
|
+
# A request object representing the call parameters. Required.
|
1760
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1761
|
+
# Uri, Body, Query string parameters
|
1762
|
+
def self.transcode_create_security_health_analytics_custom_module_request request_pb
|
1763
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1764
|
+
.with_bindings(
|
1765
|
+
uri_method: :post,
|
1766
|
+
uri_template: "/v1/{parent}/customModules",
|
1767
|
+
body: "security_health_analytics_custom_module",
|
1768
|
+
matches: [
|
1769
|
+
["parent", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/?$}, false]
|
1770
|
+
]
|
1771
|
+
)
|
1772
|
+
.with_bindings(
|
1773
|
+
uri_method: :post,
|
1774
|
+
uri_template: "/v1/{parent}/customModules",
|
1775
|
+
body: "security_health_analytics_custom_module",
|
1776
|
+
matches: [
|
1777
|
+
["parent", %r{^folders/[^/]+/securityHealthAnalyticsSettings/?$}, false]
|
1778
|
+
]
|
1779
|
+
)
|
1780
|
+
.with_bindings(
|
1781
|
+
uri_method: :post,
|
1782
|
+
uri_template: "/v1/{parent}/customModules",
|
1783
|
+
body: "security_health_analytics_custom_module",
|
1784
|
+
matches: [
|
1785
|
+
["parent", %r{^projects/[^/]+/securityHealthAnalyticsSettings/?$}, false]
|
1786
|
+
]
|
1787
|
+
)
|
1788
|
+
transcoder.transcode request_pb
|
1789
|
+
end
|
1790
|
+
|
1449
1791
|
##
|
1450
1792
|
# @private
|
1451
1793
|
#
|
@@ -1636,6 +1978,41 @@ module Google
|
|
1636
1978
|
transcoder.transcode request_pb
|
1637
1979
|
end
|
1638
1980
|
|
1981
|
+
##
|
1982
|
+
# @private
|
1983
|
+
#
|
1984
|
+
# GRPC transcoding helper method for the delete_security_health_analytics_custom_module REST call
|
1985
|
+
#
|
1986
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::DeleteSecurityHealthAnalyticsCustomModuleRequest]
|
1987
|
+
# A request object representing the call parameters. Required.
|
1988
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1989
|
+
# Uri, Body, Query string parameters
|
1990
|
+
def self.transcode_delete_security_health_analytics_custom_module_request request_pb
|
1991
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1992
|
+
.with_bindings(
|
1993
|
+
uri_method: :delete,
|
1994
|
+
uri_template: "/v1/{name}",
|
1995
|
+
matches: [
|
1996
|
+
["name", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
|
1997
|
+
]
|
1998
|
+
)
|
1999
|
+
.with_bindings(
|
2000
|
+
uri_method: :delete,
|
2001
|
+
uri_template: "/v1/{name}",
|
2002
|
+
matches: [
|
2003
|
+
["name", %r{^folders/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
|
2004
|
+
]
|
2005
|
+
)
|
2006
|
+
.with_bindings(
|
2007
|
+
uri_method: :delete,
|
2008
|
+
uri_template: "/v1/{name}",
|
2009
|
+
matches: [
|
2010
|
+
["name", %r{^projects/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
|
2011
|
+
]
|
2012
|
+
)
|
2013
|
+
transcoder.transcode request_pb
|
2014
|
+
end
|
2015
|
+
|
1639
2016
|
##
|
1640
2017
|
# @private
|
1641
2018
|
#
|
@@ -1784,6 +2161,76 @@ module Google
|
|
1784
2161
|
transcoder.transcode request_pb
|
1785
2162
|
end
|
1786
2163
|
|
2164
|
+
##
|
2165
|
+
# @private
|
2166
|
+
#
|
2167
|
+
# GRPC transcoding helper method for the get_effective_security_health_analytics_custom_module REST call
|
2168
|
+
#
|
2169
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest]
|
2170
|
+
# A request object representing the call parameters. Required.
|
2171
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2172
|
+
# Uri, Body, Query string parameters
|
2173
|
+
def self.transcode_get_effective_security_health_analytics_custom_module_request request_pb
|
2174
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2175
|
+
.with_bindings(
|
2176
|
+
uri_method: :get,
|
2177
|
+
uri_template: "/v1/{name}",
|
2178
|
+
matches: [
|
2179
|
+
["name", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/effectiveCustomModules/[^/]+/?$}, false]
|
2180
|
+
]
|
2181
|
+
)
|
2182
|
+
.with_bindings(
|
2183
|
+
uri_method: :get,
|
2184
|
+
uri_template: "/v1/{name}",
|
2185
|
+
matches: [
|
2186
|
+
["name", %r{^folders/[^/]+/securityHealthAnalyticsSettings/effectiveCustomModules/[^/]+/?$}, false]
|
2187
|
+
]
|
2188
|
+
)
|
2189
|
+
.with_bindings(
|
2190
|
+
uri_method: :get,
|
2191
|
+
uri_template: "/v1/{name}",
|
2192
|
+
matches: [
|
2193
|
+
["name", %r{^projects/[^/]+/securityHealthAnalyticsSettings/effectiveCustomModules/[^/]+/?$}, false]
|
2194
|
+
]
|
2195
|
+
)
|
2196
|
+
transcoder.transcode request_pb
|
2197
|
+
end
|
2198
|
+
|
2199
|
+
##
|
2200
|
+
# @private
|
2201
|
+
#
|
2202
|
+
# GRPC transcoding helper method for the get_security_health_analytics_custom_module REST call
|
2203
|
+
#
|
2204
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::GetSecurityHealthAnalyticsCustomModuleRequest]
|
2205
|
+
# A request object representing the call parameters. Required.
|
2206
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2207
|
+
# Uri, Body, Query string parameters
|
2208
|
+
def self.transcode_get_security_health_analytics_custom_module_request request_pb
|
2209
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2210
|
+
.with_bindings(
|
2211
|
+
uri_method: :get,
|
2212
|
+
uri_template: "/v1/{name}",
|
2213
|
+
matches: [
|
2214
|
+
["name", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
|
2215
|
+
]
|
2216
|
+
)
|
2217
|
+
.with_bindings(
|
2218
|
+
uri_method: :get,
|
2219
|
+
uri_template: "/v1/{name}",
|
2220
|
+
matches: [
|
2221
|
+
["name", %r{^folders/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
|
2222
|
+
]
|
2223
|
+
)
|
2224
|
+
.with_bindings(
|
2225
|
+
uri_method: :get,
|
2226
|
+
uri_template: "/v1/{name}",
|
2227
|
+
matches: [
|
2228
|
+
["name", %r{^projects/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
|
2229
|
+
]
|
2230
|
+
)
|
2231
|
+
transcoder.transcode request_pb
|
2232
|
+
end
|
2233
|
+
|
1787
2234
|
##
|
1788
2235
|
# @private
|
1789
2236
|
#
|
@@ -1916,6 +2363,41 @@ module Google
|
|
1916
2363
|
transcoder.transcode request_pb
|
1917
2364
|
end
|
1918
2365
|
|
2366
|
+
##
|
2367
|
+
# @private
|
2368
|
+
#
|
2369
|
+
# GRPC transcoding helper method for the list_descendant_security_health_analytics_custom_modules REST call
|
2370
|
+
#
|
2371
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest]
|
2372
|
+
# A request object representing the call parameters. Required.
|
2373
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2374
|
+
# Uri, Body, Query string parameters
|
2375
|
+
def self.transcode_list_descendant_security_health_analytics_custom_modules_request request_pb
|
2376
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2377
|
+
.with_bindings(
|
2378
|
+
uri_method: :get,
|
2379
|
+
uri_template: "/v1/{parent}/customModules:listDescendant",
|
2380
|
+
matches: [
|
2381
|
+
["parent", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/?$}, false]
|
2382
|
+
]
|
2383
|
+
)
|
2384
|
+
.with_bindings(
|
2385
|
+
uri_method: :get,
|
2386
|
+
uri_template: "/v1/{parent}/customModules:listDescendant",
|
2387
|
+
matches: [
|
2388
|
+
["parent", %r{^folders/[^/]+/securityHealthAnalyticsSettings/?$}, false]
|
2389
|
+
]
|
2390
|
+
)
|
2391
|
+
.with_bindings(
|
2392
|
+
uri_method: :get,
|
2393
|
+
uri_template: "/v1/{parent}/customModules:listDescendant",
|
2394
|
+
matches: [
|
2395
|
+
["parent", %r{^projects/[^/]+/securityHealthAnalyticsSettings/?$}, false]
|
2396
|
+
]
|
2397
|
+
)
|
2398
|
+
transcoder.transcode request_pb
|
2399
|
+
end
|
2400
|
+
|
1919
2401
|
##
|
1920
2402
|
# @private
|
1921
2403
|
#
|
@@ -2021,6 +2503,76 @@ module Google
|
|
2021
2503
|
transcoder.transcode request_pb
|
2022
2504
|
end
|
2023
2505
|
|
2506
|
+
##
|
2507
|
+
# @private
|
2508
|
+
#
|
2509
|
+
# GRPC transcoding helper method for the list_effective_security_health_analytics_custom_modules REST call
|
2510
|
+
#
|
2511
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest]
|
2512
|
+
# A request object representing the call parameters. Required.
|
2513
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2514
|
+
# Uri, Body, Query string parameters
|
2515
|
+
def self.transcode_list_effective_security_health_analytics_custom_modules_request request_pb
|
2516
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2517
|
+
.with_bindings(
|
2518
|
+
uri_method: :get,
|
2519
|
+
uri_template: "/v1/{parent}/effectiveCustomModules",
|
2520
|
+
matches: [
|
2521
|
+
["parent", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/?$}, false]
|
2522
|
+
]
|
2523
|
+
)
|
2524
|
+
.with_bindings(
|
2525
|
+
uri_method: :get,
|
2526
|
+
uri_template: "/v1/{parent}/effectiveCustomModules",
|
2527
|
+
matches: [
|
2528
|
+
["parent", %r{^folders/[^/]+/securityHealthAnalyticsSettings/?$}, false]
|
2529
|
+
]
|
2530
|
+
)
|
2531
|
+
.with_bindings(
|
2532
|
+
uri_method: :get,
|
2533
|
+
uri_template: "/v1/{parent}/effectiveCustomModules",
|
2534
|
+
matches: [
|
2535
|
+
["parent", %r{^projects/[^/]+/securityHealthAnalyticsSettings/?$}, false]
|
2536
|
+
]
|
2537
|
+
)
|
2538
|
+
transcoder.transcode request_pb
|
2539
|
+
end
|
2540
|
+
|
2541
|
+
##
|
2542
|
+
# @private
|
2543
|
+
#
|
2544
|
+
# GRPC transcoding helper method for the list_security_health_analytics_custom_modules REST call
|
2545
|
+
#
|
2546
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::ListSecurityHealthAnalyticsCustomModulesRequest]
|
2547
|
+
# A request object representing the call parameters. Required.
|
2548
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2549
|
+
# Uri, Body, Query string parameters
|
2550
|
+
def self.transcode_list_security_health_analytics_custom_modules_request request_pb
|
2551
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2552
|
+
.with_bindings(
|
2553
|
+
uri_method: :get,
|
2554
|
+
uri_template: "/v1/{parent}/customModules",
|
2555
|
+
matches: [
|
2556
|
+
["parent", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/?$}, false]
|
2557
|
+
]
|
2558
|
+
)
|
2559
|
+
.with_bindings(
|
2560
|
+
uri_method: :get,
|
2561
|
+
uri_template: "/v1/{parent}/customModules",
|
2562
|
+
matches: [
|
2563
|
+
["parent", %r{^folders/[^/]+/securityHealthAnalyticsSettings/?$}, false]
|
2564
|
+
]
|
2565
|
+
)
|
2566
|
+
.with_bindings(
|
2567
|
+
uri_method: :get,
|
2568
|
+
uri_template: "/v1/{parent}/customModules",
|
2569
|
+
matches: [
|
2570
|
+
["parent", %r{^projects/[^/]+/securityHealthAnalyticsSettings/?$}, false]
|
2571
|
+
]
|
2572
|
+
)
|
2573
|
+
transcoder.transcode request_pb
|
2574
|
+
end
|
2575
|
+
|
2024
2576
|
##
|
2025
2577
|
# @private
|
2026
2578
|
#
|
@@ -2372,6 +2924,44 @@ module Google
|
|
2372
2924
|
transcoder.transcode request_pb
|
2373
2925
|
end
|
2374
2926
|
|
2927
|
+
##
|
2928
|
+
# @private
|
2929
|
+
#
|
2930
|
+
# GRPC transcoding helper method for the update_security_health_analytics_custom_module REST call
|
2931
|
+
#
|
2932
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateSecurityHealthAnalyticsCustomModuleRequest]
|
2933
|
+
# A request object representing the call parameters. Required.
|
2934
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2935
|
+
# Uri, Body, Query string parameters
|
2936
|
+
def self.transcode_update_security_health_analytics_custom_module_request request_pb
|
2937
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2938
|
+
.with_bindings(
|
2939
|
+
uri_method: :patch,
|
2940
|
+
uri_template: "/v1/{security_health_analytics_custom_module.name}",
|
2941
|
+
body: "security_health_analytics_custom_module",
|
2942
|
+
matches: [
|
2943
|
+
["security_health_analytics_custom_module.name", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
|
2944
|
+
]
|
2945
|
+
)
|
2946
|
+
.with_bindings(
|
2947
|
+
uri_method: :patch,
|
2948
|
+
uri_template: "/v1/{security_health_analytics_custom_module.name}",
|
2949
|
+
body: "security_health_analytics_custom_module",
|
2950
|
+
matches: [
|
2951
|
+
["security_health_analytics_custom_module.name", %r{^folders/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
|
2952
|
+
]
|
2953
|
+
)
|
2954
|
+
.with_bindings(
|
2955
|
+
uri_method: :patch,
|
2956
|
+
uri_template: "/v1/{security_health_analytics_custom_module.name}",
|
2957
|
+
body: "security_health_analytics_custom_module",
|
2958
|
+
matches: [
|
2959
|
+
["security_health_analytics_custom_module.name", %r{^projects/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
|
2960
|
+
]
|
2961
|
+
)
|
2962
|
+
transcoder.transcode request_pb
|
2963
|
+
end
|
2964
|
+
|
2375
2965
|
##
|
2376
2966
|
# @private
|
2377
2967
|
#
|