google-cloud-security_center-v1 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -1
  3. data/lib/google/cloud/security_center/v1/security_center/client.rb +2096 -182
  4. data/lib/google/cloud/security_center/v1/security_center/paths.rb +313 -0
  5. data/lib/google/cloud/security_center/v1/security_center/rest/client.rb +1977 -189
  6. data/lib/google/cloud/security_center/v1/security_center/rest/service_stub.rb +1926 -595
  7. data/lib/google/cloud/security_center/v1/version.rb +1 -1
  8. data/lib/google/cloud/securitycenter/v1/asset_pb.rb +1 -1
  9. data/lib/google/cloud/securitycenter/v1/attack_exposure_pb.rb +46 -0
  10. data/lib/google/cloud/securitycenter/v1/attack_path_pb.rb +49 -0
  11. data/lib/google/cloud/securitycenter/v1/bigquery_export_pb.rb +1 -1
  12. data/lib/google/cloud/securitycenter/v1/effective_event_threat_detection_custom_module_pb.rb +48 -0
  13. data/lib/google/cloud/securitycenter/v1/event_threat_detection_custom_module_pb.rb +50 -0
  14. data/lib/google/cloud/securitycenter/v1/event_threat_detection_custom_module_validation_errors_pb.rb +44 -0
  15. data/lib/google/cloud/securitycenter/v1/external_system_pb.rb +1 -1
  16. data/lib/google/cloud/securitycenter/v1/finding_pb.rb +6 -1
  17. data/lib/google/cloud/securitycenter/v1/mitre_attack_pb.rb +1 -1
  18. data/lib/google/cloud/securitycenter/v1/mute_config_pb.rb +2 -1
  19. data/lib/google/cloud/securitycenter/v1/notification_config_pb.rb +1 -1
  20. data/lib/google/cloud/securitycenter/v1/organization_settings_pb.rb +1 -1
  21. data/lib/google/cloud/securitycenter/v1/resource_pb.rb +13 -1
  22. data/lib/google/cloud/securitycenter/v1/resource_value_config_pb.rb +50 -0
  23. data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +45 -2
  24. data/lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb +54 -0
  25. data/lib/google/cloud/securitycenter/v1/simulation_pb.rb +50 -0
  26. data/lib/google/cloud/securitycenter/v1/valued_resource_pb.rb +46 -0
  27. data/lib/google/cloud/securitycenter/v1/vulnerability_pb.rb +1 -1
  28. data/proto_docs/google/api/client.rb +14 -10
  29. data/proto_docs/google/api/resource.rb +7 -2
  30. data/proto_docs/google/cloud/securitycenter/v1/attack_exposure.rb +73 -0
  31. data/proto_docs/google/cloud/securitycenter/v1/attack_path.rb +147 -0
  32. data/proto_docs/google/cloud/securitycenter/v1/cloud_armor.rb +6 -6
  33. data/proto_docs/google/cloud/securitycenter/v1/effective_event_threat_detection_custom_module.rb +77 -0
  34. data/proto_docs/google/cloud/securitycenter/v1/event_threat_detection_custom_module.rb +88 -0
  35. data/proto_docs/google/cloud/securitycenter/v1/event_threat_detection_custom_module_validation_errors.rb +69 -0
  36. data/proto_docs/google/cloud/securitycenter/v1/finding.rb +50 -0
  37. data/proto_docs/google/cloud/securitycenter/v1/mitre_attack.rb +19 -1
  38. data/proto_docs/google/cloud/securitycenter/v1/mute_config.rb +36 -3
  39. data/proto_docs/google/cloud/securitycenter/v1/resource.rb +223 -0
  40. data/proto_docs/google/cloud/securitycenter/v1/resource_value_config.rb +125 -0
  41. data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +626 -87
  42. data/proto_docs/google/cloud/securitycenter/v1/simulation.rb +46 -0
  43. data/proto_docs/google/cloud/securitycenter/v1/valued_resource.rb +86 -0
  44. data/proto_docs/google/cloud/securitycenter/v1/vulnerability.rb +3 -0
  45. metadata +18 -2
@@ -403,6 +403,82 @@ module Google
403
403
  result
404
404
  end
405
405
 
406
+ ##
407
+ # Baseline implementation for the get_simulation REST call
408
+ #
409
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetSimulationRequest]
410
+ # A request object representing the call parameters. Required.
411
+ # @param options [::Gapic::CallOptions]
412
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
413
+ #
414
+ # @yield [result, operation] Access the result along with the TransportOperation object
415
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::Simulation]
416
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
417
+ #
418
+ # @return [::Google::Cloud::SecurityCenter::V1::Simulation]
419
+ # A result object deserialized from the server's reply
420
+ def get_simulation request_pb, options = nil
421
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
422
+
423
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_simulation_request request_pb
424
+ query_string_params = if query_string_params.any?
425
+ query_string_params.to_h { |p| p.split "=", 2 }
426
+ else
427
+ {}
428
+ end
429
+
430
+ response = @client_stub.make_http_request(
431
+ verb,
432
+ uri: uri,
433
+ body: body || "",
434
+ params: query_string_params,
435
+ options: options
436
+ )
437
+ operation = ::Gapic::Rest::TransportOperation.new response
438
+ result = ::Google::Cloud::SecurityCenter::V1::Simulation.decode_json response.body, ignore_unknown_fields: true
439
+
440
+ yield result, operation if block_given?
441
+ result
442
+ end
443
+
444
+ ##
445
+ # Baseline implementation for the get_valued_resource REST call
446
+ #
447
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetValuedResourceRequest]
448
+ # A request object representing the call parameters. Required.
449
+ # @param options [::Gapic::CallOptions]
450
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
451
+ #
452
+ # @yield [result, operation] Access the result along with the TransportOperation object
453
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::ValuedResource]
454
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
455
+ #
456
+ # @return [::Google::Cloud::SecurityCenter::V1::ValuedResource]
457
+ # A result object deserialized from the server's reply
458
+ def get_valued_resource request_pb, options = nil
459
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
460
+
461
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_valued_resource_request request_pb
462
+ query_string_params = if query_string_params.any?
463
+ query_string_params.to_h { |p| p.split "=", 2 }
464
+ else
465
+ {}
466
+ end
467
+
468
+ response = @client_stub.make_http_request(
469
+ verb,
470
+ uri: uri,
471
+ body: body || "",
472
+ params: query_string_params,
473
+ options: options
474
+ )
475
+ operation = ::Gapic::Rest::TransportOperation.new response
476
+ result = ::Google::Cloud::SecurityCenter::V1::ValuedResource.decode_json response.body, ignore_unknown_fields: true
477
+
478
+ yield result, operation if block_given?
479
+ result
480
+ end
481
+
406
482
  ##
407
483
  # Baseline implementation for the get_big_query_export REST call
408
484
  #
@@ -1772,158 +1848,1235 @@ module Google
1772
1848
  end
1773
1849
 
1774
1850
  ##
1775
- # @private
1776
- #
1777
- # GRPC transcoding helper method for the bulk_mute_findings REST call
1851
+ # Baseline implementation for the create_event_threat_detection_custom_module REST call
1778
1852
  #
1779
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::BulkMuteFindingsRequest]
1853
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateEventThreatDetectionCustomModuleRequest]
1780
1854
  # A request object representing the call parameters. Required.
1781
- # @return [Array(String, [String, nil], Hash{String => String})]
1782
- # Uri, Body, Query string parameters
1783
- def self.transcode_bulk_mute_findings_request request_pb
1784
- transcoder = Gapic::Rest::GrpcTranscoder.new
1785
- .with_bindings(
1786
- uri_method: :post,
1787
- uri_template: "/v1/{parent}/findings:bulkMute",
1788
- body: "*",
1789
- matches: [
1790
- ["parent", %r{^organizations/[^/]+/?$}, false]
1791
- ]
1792
- )
1793
- .with_bindings(
1794
- uri_method: :post,
1795
- uri_template: "/v1/{parent}/findings:bulkMute",
1796
- body: "*",
1797
- matches: [
1798
- ["parent", %r{^folders/[^/]+/?$}, false]
1799
- ]
1800
- )
1801
- .with_bindings(
1802
- uri_method: :post,
1803
- uri_template: "/v1/{parent}/findings:bulkMute",
1804
- body: "*",
1805
- matches: [
1806
- ["parent", %r{^projects/[^/]+/?$}, false]
1807
- ]
1808
- )
1809
- transcoder.transcode request_pb
1810
- end
1811
-
1812
- ##
1813
- # @private
1855
+ # @param options [::Gapic::CallOptions]
1856
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1814
1857
  #
1815
- # GRPC transcoding helper method for the create_security_health_analytics_custom_module REST call
1858
+ # @yield [result, operation] Access the result along with the TransportOperation object
1859
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::EventThreatDetectionCustomModule]
1860
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1816
1861
  #
1817
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateSecurityHealthAnalyticsCustomModuleRequest]
1818
- # A request object representing the call parameters. Required.
1819
- # @return [Array(String, [String, nil], Hash{String => String})]
1820
- # Uri, Body, Query string parameters
1821
- def self.transcode_create_security_health_analytics_custom_module_request request_pb
1822
- transcoder = Gapic::Rest::GrpcTranscoder.new
1823
- .with_bindings(
1824
- uri_method: :post,
1825
- uri_template: "/v1/{parent}/customModules",
1826
- body: "security_health_analytics_custom_module",
1827
- matches: [
1828
- ["parent", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/?$}, false]
1829
- ]
1830
- )
1831
- .with_bindings(
1832
- uri_method: :post,
1833
- uri_template: "/v1/{parent}/customModules",
1834
- body: "security_health_analytics_custom_module",
1835
- matches: [
1836
- ["parent", %r{^folders/[^/]+/securityHealthAnalyticsSettings/?$}, false]
1837
- ]
1838
- )
1839
- .with_bindings(
1840
- uri_method: :post,
1841
- uri_template: "/v1/{parent}/customModules",
1842
- body: "security_health_analytics_custom_module",
1843
- matches: [
1844
- ["parent", %r{^projects/[^/]+/securityHealthAnalyticsSettings/?$}, false]
1845
- ]
1846
- )
1847
- transcoder.transcode request_pb
1862
+ # @return [::Google::Cloud::SecurityCenter::V1::EventThreatDetectionCustomModule]
1863
+ # A result object deserialized from the server's reply
1864
+ def create_event_threat_detection_custom_module request_pb, options = nil
1865
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1866
+
1867
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_event_threat_detection_custom_module_request request_pb
1868
+ query_string_params = if query_string_params.any?
1869
+ query_string_params.to_h { |p| p.split "=", 2 }
1870
+ else
1871
+ {}
1872
+ end
1873
+
1874
+ response = @client_stub.make_http_request(
1875
+ verb,
1876
+ uri: uri,
1877
+ body: body || "",
1878
+ params: query_string_params,
1879
+ options: options
1880
+ )
1881
+ operation = ::Gapic::Rest::TransportOperation.new response
1882
+ result = ::Google::Cloud::SecurityCenter::V1::EventThreatDetectionCustomModule.decode_json response.body, ignore_unknown_fields: true
1883
+
1884
+ yield result, operation if block_given?
1885
+ result
1848
1886
  end
1849
1887
 
1850
1888
  ##
1851
- # @private
1889
+ # Baseline implementation for the delete_event_threat_detection_custom_module REST call
1852
1890
  #
1853
- # GRPC transcoding helper method for the create_source REST call
1854
- #
1855
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateSourceRequest]
1891
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::DeleteEventThreatDetectionCustomModuleRequest]
1856
1892
  # A request object representing the call parameters. Required.
1857
- # @return [Array(String, [String, nil], Hash{String => String})]
1858
- # Uri, Body, Query string parameters
1859
- def self.transcode_create_source_request request_pb
1860
- transcoder = Gapic::Rest::GrpcTranscoder.new
1861
- .with_bindings(
1862
- uri_method: :post,
1863
- uri_template: "/v1/{parent}/sources",
1864
- body: "source",
1865
- matches: [
1866
- ["parent", %r{^organizations/[^/]+/?$}, false]
1867
- ]
1868
- )
1869
- transcoder.transcode request_pb
1893
+ # @param options [::Gapic::CallOptions]
1894
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1895
+ #
1896
+ # @yield [result, operation] Access the result along with the TransportOperation object
1897
+ # @yieldparam result [::Google::Protobuf::Empty]
1898
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1899
+ #
1900
+ # @return [::Google::Protobuf::Empty]
1901
+ # A result object deserialized from the server's reply
1902
+ def delete_event_threat_detection_custom_module request_pb, options = nil
1903
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1904
+
1905
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_event_threat_detection_custom_module_request request_pb
1906
+ query_string_params = if query_string_params.any?
1907
+ query_string_params.to_h { |p| p.split "=", 2 }
1908
+ else
1909
+ {}
1910
+ end
1911
+
1912
+ response = @client_stub.make_http_request(
1913
+ verb,
1914
+ uri: uri,
1915
+ body: body || "",
1916
+ params: query_string_params,
1917
+ options: options
1918
+ )
1919
+ operation = ::Gapic::Rest::TransportOperation.new response
1920
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1921
+
1922
+ yield result, operation if block_given?
1923
+ result
1870
1924
  end
1871
1925
 
1872
1926
  ##
1873
- # @private
1874
- #
1875
- # GRPC transcoding helper method for the create_finding REST call
1927
+ # Baseline implementation for the get_event_threat_detection_custom_module REST call
1876
1928
  #
1877
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateFindingRequest]
1929
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetEventThreatDetectionCustomModuleRequest]
1878
1930
  # A request object representing the call parameters. Required.
1879
- # @return [Array(String, [String, nil], Hash{String => String})]
1880
- # Uri, Body, Query string parameters
1881
- def self.transcode_create_finding_request request_pb
1882
- transcoder = Gapic::Rest::GrpcTranscoder.new
1883
- .with_bindings(
1884
- uri_method: :post,
1885
- uri_template: "/v1/{parent}/findings",
1886
- body: "finding",
1887
- matches: [
1888
- ["parent", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
1889
- ]
1890
- )
1891
- transcoder.transcode request_pb
1931
+ # @param options [::Gapic::CallOptions]
1932
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1933
+ #
1934
+ # @yield [result, operation] Access the result along with the TransportOperation object
1935
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::EventThreatDetectionCustomModule]
1936
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1937
+ #
1938
+ # @return [::Google::Cloud::SecurityCenter::V1::EventThreatDetectionCustomModule]
1939
+ # A result object deserialized from the server's reply
1940
+ def get_event_threat_detection_custom_module request_pb, options = nil
1941
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1942
+
1943
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_event_threat_detection_custom_module_request request_pb
1944
+ query_string_params = if query_string_params.any?
1945
+ query_string_params.to_h { |p| p.split "=", 2 }
1946
+ else
1947
+ {}
1948
+ end
1949
+
1950
+ response = @client_stub.make_http_request(
1951
+ verb,
1952
+ uri: uri,
1953
+ body: body || "",
1954
+ params: query_string_params,
1955
+ options: options
1956
+ )
1957
+ operation = ::Gapic::Rest::TransportOperation.new response
1958
+ result = ::Google::Cloud::SecurityCenter::V1::EventThreatDetectionCustomModule.decode_json response.body, ignore_unknown_fields: true
1959
+
1960
+ yield result, operation if block_given?
1961
+ result
1892
1962
  end
1893
1963
 
1894
1964
  ##
1895
- # @private
1896
- #
1897
- # GRPC transcoding helper method for the create_mute_config REST call
1965
+ # Baseline implementation for the list_descendant_event_threat_detection_custom_modules REST call
1898
1966
  #
1899
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateMuteConfigRequest]
1967
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListDescendantEventThreatDetectionCustomModulesRequest]
1900
1968
  # A request object representing the call parameters. Required.
1901
- # @return [Array(String, [String, nil], Hash{String => String})]
1902
- # Uri, Body, Query string parameters
1903
- def self.transcode_create_mute_config_request request_pb
1904
- transcoder = Gapic::Rest::GrpcTranscoder.new
1905
- .with_bindings(
1906
- uri_method: :post,
1907
- uri_template: "/v1/{parent}/muteConfigs",
1908
- body: "mute_config",
1969
+ # @param options [::Gapic::CallOptions]
1970
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1971
+ #
1972
+ # @yield [result, operation] Access the result along with the TransportOperation object
1973
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::ListDescendantEventThreatDetectionCustomModulesResponse]
1974
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1975
+ #
1976
+ # @return [::Google::Cloud::SecurityCenter::V1::ListDescendantEventThreatDetectionCustomModulesResponse]
1977
+ # A result object deserialized from the server's reply
1978
+ def list_descendant_event_threat_detection_custom_modules request_pb, options = nil
1979
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1980
+
1981
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_descendant_event_threat_detection_custom_modules_request request_pb
1982
+ query_string_params = if query_string_params.any?
1983
+ query_string_params.to_h { |p| p.split "=", 2 }
1984
+ else
1985
+ {}
1986
+ end
1987
+
1988
+ response = @client_stub.make_http_request(
1989
+ verb,
1990
+ uri: uri,
1991
+ body: body || "",
1992
+ params: query_string_params,
1993
+ options: options
1994
+ )
1995
+ operation = ::Gapic::Rest::TransportOperation.new response
1996
+ result = ::Google::Cloud::SecurityCenter::V1::ListDescendantEventThreatDetectionCustomModulesResponse.decode_json response.body, ignore_unknown_fields: true
1997
+
1998
+ yield result, operation if block_given?
1999
+ result
2000
+ end
2001
+
2002
+ ##
2003
+ # Baseline implementation for the list_event_threat_detection_custom_modules REST call
2004
+ #
2005
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListEventThreatDetectionCustomModulesRequest]
2006
+ # A request object representing the call parameters. Required.
2007
+ # @param options [::Gapic::CallOptions]
2008
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2009
+ #
2010
+ # @yield [result, operation] Access the result along with the TransportOperation object
2011
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::ListEventThreatDetectionCustomModulesResponse]
2012
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2013
+ #
2014
+ # @return [::Google::Cloud::SecurityCenter::V1::ListEventThreatDetectionCustomModulesResponse]
2015
+ # A result object deserialized from the server's reply
2016
+ def list_event_threat_detection_custom_modules request_pb, options = nil
2017
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2018
+
2019
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_event_threat_detection_custom_modules_request request_pb
2020
+ query_string_params = if query_string_params.any?
2021
+ query_string_params.to_h { |p| p.split "=", 2 }
2022
+ else
2023
+ {}
2024
+ end
2025
+
2026
+ response = @client_stub.make_http_request(
2027
+ verb,
2028
+ uri: uri,
2029
+ body: body || "",
2030
+ params: query_string_params,
2031
+ options: options
2032
+ )
2033
+ operation = ::Gapic::Rest::TransportOperation.new response
2034
+ result = ::Google::Cloud::SecurityCenter::V1::ListEventThreatDetectionCustomModulesResponse.decode_json response.body, ignore_unknown_fields: true
2035
+
2036
+ yield result, operation if block_given?
2037
+ result
2038
+ end
2039
+
2040
+ ##
2041
+ # Baseline implementation for the update_event_threat_detection_custom_module REST call
2042
+ #
2043
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateEventThreatDetectionCustomModuleRequest]
2044
+ # A request object representing the call parameters. Required.
2045
+ # @param options [::Gapic::CallOptions]
2046
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2047
+ #
2048
+ # @yield [result, operation] Access the result along with the TransportOperation object
2049
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::EventThreatDetectionCustomModule]
2050
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2051
+ #
2052
+ # @return [::Google::Cloud::SecurityCenter::V1::EventThreatDetectionCustomModule]
2053
+ # A result object deserialized from the server's reply
2054
+ def update_event_threat_detection_custom_module request_pb, options = nil
2055
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2056
+
2057
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_event_threat_detection_custom_module_request request_pb
2058
+ query_string_params = if query_string_params.any?
2059
+ query_string_params.to_h { |p| p.split "=", 2 }
2060
+ else
2061
+ {}
2062
+ end
2063
+
2064
+ response = @client_stub.make_http_request(
2065
+ verb,
2066
+ uri: uri,
2067
+ body: body || "",
2068
+ params: query_string_params,
2069
+ options: options
2070
+ )
2071
+ operation = ::Gapic::Rest::TransportOperation.new response
2072
+ result = ::Google::Cloud::SecurityCenter::V1::EventThreatDetectionCustomModule.decode_json response.body, ignore_unknown_fields: true
2073
+
2074
+ yield result, operation if block_given?
2075
+ result
2076
+ end
2077
+
2078
+ ##
2079
+ # Baseline implementation for the validate_event_threat_detection_custom_module REST call
2080
+ #
2081
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ValidateEventThreatDetectionCustomModuleRequest]
2082
+ # A request object representing the call parameters. Required.
2083
+ # @param options [::Gapic::CallOptions]
2084
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2085
+ #
2086
+ # @yield [result, operation] Access the result along with the TransportOperation object
2087
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::ValidateEventThreatDetectionCustomModuleResponse]
2088
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2089
+ #
2090
+ # @return [::Google::Cloud::SecurityCenter::V1::ValidateEventThreatDetectionCustomModuleResponse]
2091
+ # A result object deserialized from the server's reply
2092
+ def validate_event_threat_detection_custom_module request_pb, options = nil
2093
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2094
+
2095
+ verb, uri, query_string_params, body = ServiceStub.transcode_validate_event_threat_detection_custom_module_request request_pb
2096
+ query_string_params = if query_string_params.any?
2097
+ query_string_params.to_h { |p| p.split "=", 2 }
2098
+ else
2099
+ {}
2100
+ end
2101
+
2102
+ response = @client_stub.make_http_request(
2103
+ verb,
2104
+ uri: uri,
2105
+ body: body || "",
2106
+ params: query_string_params,
2107
+ options: options
2108
+ )
2109
+ operation = ::Gapic::Rest::TransportOperation.new response
2110
+ result = ::Google::Cloud::SecurityCenter::V1::ValidateEventThreatDetectionCustomModuleResponse.decode_json response.body, ignore_unknown_fields: true
2111
+
2112
+ yield result, operation if block_given?
2113
+ result
2114
+ end
2115
+
2116
+ ##
2117
+ # Baseline implementation for the get_effective_event_threat_detection_custom_module REST call
2118
+ #
2119
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetEffectiveEventThreatDetectionCustomModuleRequest]
2120
+ # A request object representing the call parameters. Required.
2121
+ # @param options [::Gapic::CallOptions]
2122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2123
+ #
2124
+ # @yield [result, operation] Access the result along with the TransportOperation object
2125
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::EffectiveEventThreatDetectionCustomModule]
2126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2127
+ #
2128
+ # @return [::Google::Cloud::SecurityCenter::V1::EffectiveEventThreatDetectionCustomModule]
2129
+ # A result object deserialized from the server's reply
2130
+ def get_effective_event_threat_detection_custom_module request_pb, options = nil
2131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2132
+
2133
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_effective_event_threat_detection_custom_module_request request_pb
2134
+ query_string_params = if query_string_params.any?
2135
+ query_string_params.to_h { |p| p.split "=", 2 }
2136
+ else
2137
+ {}
2138
+ end
2139
+
2140
+ response = @client_stub.make_http_request(
2141
+ verb,
2142
+ uri: uri,
2143
+ body: body || "",
2144
+ params: query_string_params,
2145
+ options: options
2146
+ )
2147
+ operation = ::Gapic::Rest::TransportOperation.new response
2148
+ result = ::Google::Cloud::SecurityCenter::V1::EffectiveEventThreatDetectionCustomModule.decode_json response.body, ignore_unknown_fields: true
2149
+
2150
+ yield result, operation if block_given?
2151
+ result
2152
+ end
2153
+
2154
+ ##
2155
+ # Baseline implementation for the list_effective_event_threat_detection_custom_modules REST call
2156
+ #
2157
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListEffectiveEventThreatDetectionCustomModulesRequest]
2158
+ # A request object representing the call parameters. Required.
2159
+ # @param options [::Gapic::CallOptions]
2160
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2161
+ #
2162
+ # @yield [result, operation] Access the result along with the TransportOperation object
2163
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::ListEffectiveEventThreatDetectionCustomModulesResponse]
2164
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2165
+ #
2166
+ # @return [::Google::Cloud::SecurityCenter::V1::ListEffectiveEventThreatDetectionCustomModulesResponse]
2167
+ # A result object deserialized from the server's reply
2168
+ def list_effective_event_threat_detection_custom_modules request_pb, options = nil
2169
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2170
+
2171
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_effective_event_threat_detection_custom_modules_request request_pb
2172
+ query_string_params = if query_string_params.any?
2173
+ query_string_params.to_h { |p| p.split "=", 2 }
2174
+ else
2175
+ {}
2176
+ end
2177
+
2178
+ response = @client_stub.make_http_request(
2179
+ verb,
2180
+ uri: uri,
2181
+ body: body || "",
2182
+ params: query_string_params,
2183
+ options: options
2184
+ )
2185
+ operation = ::Gapic::Rest::TransportOperation.new response
2186
+ result = ::Google::Cloud::SecurityCenter::V1::ListEffectiveEventThreatDetectionCustomModulesResponse.decode_json response.body, ignore_unknown_fields: true
2187
+
2188
+ yield result, operation if block_given?
2189
+ result
2190
+ end
2191
+
2192
+ ##
2193
+ # Baseline implementation for the batch_create_resource_value_configs REST call
2194
+ #
2195
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::BatchCreateResourceValueConfigsRequest]
2196
+ # A request object representing the call parameters. Required.
2197
+ # @param options [::Gapic::CallOptions]
2198
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2199
+ #
2200
+ # @yield [result, operation] Access the result along with the TransportOperation object
2201
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::BatchCreateResourceValueConfigsResponse]
2202
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2203
+ #
2204
+ # @return [::Google::Cloud::SecurityCenter::V1::BatchCreateResourceValueConfigsResponse]
2205
+ # A result object deserialized from the server's reply
2206
+ def batch_create_resource_value_configs request_pb, options = nil
2207
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2208
+
2209
+ verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_resource_value_configs_request request_pb
2210
+ query_string_params = if query_string_params.any?
2211
+ query_string_params.to_h { |p| p.split "=", 2 }
2212
+ else
2213
+ {}
2214
+ end
2215
+
2216
+ response = @client_stub.make_http_request(
2217
+ verb,
2218
+ uri: uri,
2219
+ body: body || "",
2220
+ params: query_string_params,
2221
+ options: options
2222
+ )
2223
+ operation = ::Gapic::Rest::TransportOperation.new response
2224
+ result = ::Google::Cloud::SecurityCenter::V1::BatchCreateResourceValueConfigsResponse.decode_json response.body, ignore_unknown_fields: true
2225
+
2226
+ yield result, operation if block_given?
2227
+ result
2228
+ end
2229
+
2230
+ ##
2231
+ # Baseline implementation for the delete_resource_value_config REST call
2232
+ #
2233
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::DeleteResourceValueConfigRequest]
2234
+ # A request object representing the call parameters. Required.
2235
+ # @param options [::Gapic::CallOptions]
2236
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2237
+ #
2238
+ # @yield [result, operation] Access the result along with the TransportOperation object
2239
+ # @yieldparam result [::Google::Protobuf::Empty]
2240
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2241
+ #
2242
+ # @return [::Google::Protobuf::Empty]
2243
+ # A result object deserialized from the server's reply
2244
+ def delete_resource_value_config request_pb, options = nil
2245
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2246
+
2247
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_resource_value_config_request request_pb
2248
+ query_string_params = if query_string_params.any?
2249
+ query_string_params.to_h { |p| p.split "=", 2 }
2250
+ else
2251
+ {}
2252
+ end
2253
+
2254
+ response = @client_stub.make_http_request(
2255
+ verb,
2256
+ uri: uri,
2257
+ body: body || "",
2258
+ params: query_string_params,
2259
+ options: options
2260
+ )
2261
+ operation = ::Gapic::Rest::TransportOperation.new response
2262
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
2263
+
2264
+ yield result, operation if block_given?
2265
+ result
2266
+ end
2267
+
2268
+ ##
2269
+ # Baseline implementation for the get_resource_value_config REST call
2270
+ #
2271
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetResourceValueConfigRequest]
2272
+ # A request object representing the call parameters. Required.
2273
+ # @param options [::Gapic::CallOptions]
2274
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2275
+ #
2276
+ # @yield [result, operation] Access the result along with the TransportOperation object
2277
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::ResourceValueConfig]
2278
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2279
+ #
2280
+ # @return [::Google::Cloud::SecurityCenter::V1::ResourceValueConfig]
2281
+ # A result object deserialized from the server's reply
2282
+ def get_resource_value_config request_pb, options = nil
2283
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2284
+
2285
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_resource_value_config_request request_pb
2286
+ query_string_params = if query_string_params.any?
2287
+ query_string_params.to_h { |p| p.split "=", 2 }
2288
+ else
2289
+ {}
2290
+ end
2291
+
2292
+ response = @client_stub.make_http_request(
2293
+ verb,
2294
+ uri: uri,
2295
+ body: body || "",
2296
+ params: query_string_params,
2297
+ options: options
2298
+ )
2299
+ operation = ::Gapic::Rest::TransportOperation.new response
2300
+ result = ::Google::Cloud::SecurityCenter::V1::ResourceValueConfig.decode_json response.body, ignore_unknown_fields: true
2301
+
2302
+ yield result, operation if block_given?
2303
+ result
2304
+ end
2305
+
2306
+ ##
2307
+ # Baseline implementation for the list_resource_value_configs REST call
2308
+ #
2309
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListResourceValueConfigsRequest]
2310
+ # A request object representing the call parameters. Required.
2311
+ # @param options [::Gapic::CallOptions]
2312
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2313
+ #
2314
+ # @yield [result, operation] Access the result along with the TransportOperation object
2315
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::ListResourceValueConfigsResponse]
2316
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2317
+ #
2318
+ # @return [::Google::Cloud::SecurityCenter::V1::ListResourceValueConfigsResponse]
2319
+ # A result object deserialized from the server's reply
2320
+ def list_resource_value_configs request_pb, options = nil
2321
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2322
+
2323
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_resource_value_configs_request request_pb
2324
+ query_string_params = if query_string_params.any?
2325
+ query_string_params.to_h { |p| p.split "=", 2 }
2326
+ else
2327
+ {}
2328
+ end
2329
+
2330
+ response = @client_stub.make_http_request(
2331
+ verb,
2332
+ uri: uri,
2333
+ body: body || "",
2334
+ params: query_string_params,
2335
+ options: options
2336
+ )
2337
+ operation = ::Gapic::Rest::TransportOperation.new response
2338
+ result = ::Google::Cloud::SecurityCenter::V1::ListResourceValueConfigsResponse.decode_json response.body, ignore_unknown_fields: true
2339
+
2340
+ yield result, operation if block_given?
2341
+ result
2342
+ end
2343
+
2344
+ ##
2345
+ # Baseline implementation for the update_resource_value_config REST call
2346
+ #
2347
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateResourceValueConfigRequest]
2348
+ # A request object representing the call parameters. Required.
2349
+ # @param options [::Gapic::CallOptions]
2350
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2351
+ #
2352
+ # @yield [result, operation] Access the result along with the TransportOperation object
2353
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::ResourceValueConfig]
2354
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2355
+ #
2356
+ # @return [::Google::Cloud::SecurityCenter::V1::ResourceValueConfig]
2357
+ # A result object deserialized from the server's reply
2358
+ def update_resource_value_config request_pb, options = nil
2359
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2360
+
2361
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_resource_value_config_request request_pb
2362
+ query_string_params = if query_string_params.any?
2363
+ query_string_params.to_h { |p| p.split "=", 2 }
2364
+ else
2365
+ {}
2366
+ end
2367
+
2368
+ response = @client_stub.make_http_request(
2369
+ verb,
2370
+ uri: uri,
2371
+ body: body || "",
2372
+ params: query_string_params,
2373
+ options: options
2374
+ )
2375
+ operation = ::Gapic::Rest::TransportOperation.new response
2376
+ result = ::Google::Cloud::SecurityCenter::V1::ResourceValueConfig.decode_json response.body, ignore_unknown_fields: true
2377
+
2378
+ yield result, operation if block_given?
2379
+ result
2380
+ end
2381
+
2382
+ ##
2383
+ # Baseline implementation for the list_valued_resources REST call
2384
+ #
2385
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListValuedResourcesRequest]
2386
+ # A request object representing the call parameters. Required.
2387
+ # @param options [::Gapic::CallOptions]
2388
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2389
+ #
2390
+ # @yield [result, operation] Access the result along with the TransportOperation object
2391
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::ListValuedResourcesResponse]
2392
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2393
+ #
2394
+ # @return [::Google::Cloud::SecurityCenter::V1::ListValuedResourcesResponse]
2395
+ # A result object deserialized from the server's reply
2396
+ def list_valued_resources request_pb, options = nil
2397
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2398
+
2399
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_valued_resources_request request_pb
2400
+ query_string_params = if query_string_params.any?
2401
+ query_string_params.to_h { |p| p.split "=", 2 }
2402
+ else
2403
+ {}
2404
+ end
2405
+
2406
+ response = @client_stub.make_http_request(
2407
+ verb,
2408
+ uri: uri,
2409
+ body: body || "",
2410
+ params: query_string_params,
2411
+ options: options
2412
+ )
2413
+ operation = ::Gapic::Rest::TransportOperation.new response
2414
+ result = ::Google::Cloud::SecurityCenter::V1::ListValuedResourcesResponse.decode_json response.body, ignore_unknown_fields: true
2415
+
2416
+ yield result, operation if block_given?
2417
+ result
2418
+ end
2419
+
2420
+ ##
2421
+ # Baseline implementation for the list_attack_paths REST call
2422
+ #
2423
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListAttackPathsRequest]
2424
+ # A request object representing the call parameters. Required.
2425
+ # @param options [::Gapic::CallOptions]
2426
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2427
+ #
2428
+ # @yield [result, operation] Access the result along with the TransportOperation object
2429
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::ListAttackPathsResponse]
2430
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2431
+ #
2432
+ # @return [::Google::Cloud::SecurityCenter::V1::ListAttackPathsResponse]
2433
+ # A result object deserialized from the server's reply
2434
+ def list_attack_paths request_pb, options = nil
2435
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2436
+
2437
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_attack_paths_request request_pb
2438
+ query_string_params = if query_string_params.any?
2439
+ query_string_params.to_h { |p| p.split "=", 2 }
2440
+ else
2441
+ {}
2442
+ end
2443
+
2444
+ response = @client_stub.make_http_request(
2445
+ verb,
2446
+ uri: uri,
2447
+ body: body || "",
2448
+ params: query_string_params,
2449
+ options: options
2450
+ )
2451
+ operation = ::Gapic::Rest::TransportOperation.new response
2452
+ result = ::Google::Cloud::SecurityCenter::V1::ListAttackPathsResponse.decode_json response.body, ignore_unknown_fields: true
2453
+
2454
+ yield result, operation if block_given?
2455
+ result
2456
+ end
2457
+
2458
+ ##
2459
+ # @private
2460
+ #
2461
+ # GRPC transcoding helper method for the bulk_mute_findings REST call
2462
+ #
2463
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::BulkMuteFindingsRequest]
2464
+ # A request object representing the call parameters. Required.
2465
+ # @return [Array(String, [String, nil], Hash{String => String})]
2466
+ # Uri, Body, Query string parameters
2467
+ def self.transcode_bulk_mute_findings_request request_pb
2468
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2469
+ .with_bindings(
2470
+ uri_method: :post,
2471
+ uri_template: "/v1/{parent}/findings:bulkMute",
2472
+ body: "*",
2473
+ matches: [
2474
+ ["parent", %r{^organizations/[^/]+/?$}, false]
2475
+ ]
2476
+ )
2477
+ .with_bindings(
2478
+ uri_method: :post,
2479
+ uri_template: "/v1/{parent}/findings:bulkMute",
2480
+ body: "*",
2481
+ matches: [
2482
+ ["parent", %r{^folders/[^/]+/?$}, false]
2483
+ ]
2484
+ )
2485
+ .with_bindings(
2486
+ uri_method: :post,
2487
+ uri_template: "/v1/{parent}/findings:bulkMute",
2488
+ body: "*",
2489
+ matches: [
2490
+ ["parent", %r{^projects/[^/]+/?$}, false]
2491
+ ]
2492
+ )
2493
+ transcoder.transcode request_pb
2494
+ end
2495
+
2496
+ ##
2497
+ # @private
2498
+ #
2499
+ # GRPC transcoding helper method for the create_security_health_analytics_custom_module REST call
2500
+ #
2501
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateSecurityHealthAnalyticsCustomModuleRequest]
2502
+ # A request object representing the call parameters. Required.
2503
+ # @return [Array(String, [String, nil], Hash{String => String})]
2504
+ # Uri, Body, Query string parameters
2505
+ def self.transcode_create_security_health_analytics_custom_module_request request_pb
2506
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2507
+ .with_bindings(
2508
+ uri_method: :post,
2509
+ uri_template: "/v1/{parent}/customModules",
2510
+ body: "security_health_analytics_custom_module",
2511
+ matches: [
2512
+ ["parent", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2513
+ ]
2514
+ )
2515
+ .with_bindings(
2516
+ uri_method: :post,
2517
+ uri_template: "/v1/{parent}/customModules",
2518
+ body: "security_health_analytics_custom_module",
2519
+ matches: [
2520
+ ["parent", %r{^folders/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2521
+ ]
2522
+ )
2523
+ .with_bindings(
2524
+ uri_method: :post,
2525
+ uri_template: "/v1/{parent}/customModules",
2526
+ body: "security_health_analytics_custom_module",
2527
+ matches: [
2528
+ ["parent", %r{^projects/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2529
+ ]
2530
+ )
2531
+ transcoder.transcode request_pb
2532
+ end
2533
+
2534
+ ##
2535
+ # @private
2536
+ #
2537
+ # GRPC transcoding helper method for the create_source REST call
2538
+ #
2539
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateSourceRequest]
2540
+ # A request object representing the call parameters. Required.
2541
+ # @return [Array(String, [String, nil], Hash{String => String})]
2542
+ # Uri, Body, Query string parameters
2543
+ def self.transcode_create_source_request request_pb
2544
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2545
+ .with_bindings(
2546
+ uri_method: :post,
2547
+ uri_template: "/v1/{parent}/sources",
2548
+ body: "source",
2549
+ matches: [
2550
+ ["parent", %r{^organizations/[^/]+/?$}, false]
2551
+ ]
2552
+ )
2553
+ transcoder.transcode request_pb
2554
+ end
2555
+
2556
+ ##
2557
+ # @private
2558
+ #
2559
+ # GRPC transcoding helper method for the create_finding REST call
2560
+ #
2561
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateFindingRequest]
2562
+ # A request object representing the call parameters. Required.
2563
+ # @return [Array(String, [String, nil], Hash{String => String})]
2564
+ # Uri, Body, Query string parameters
2565
+ def self.transcode_create_finding_request request_pb
2566
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2567
+ .with_bindings(
2568
+ uri_method: :post,
2569
+ uri_template: "/v1/{parent}/findings",
2570
+ body: "finding",
2571
+ matches: [
2572
+ ["parent", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
2573
+ ]
2574
+ )
2575
+ transcoder.transcode request_pb
2576
+ end
2577
+
2578
+ ##
2579
+ # @private
2580
+ #
2581
+ # GRPC transcoding helper method for the create_mute_config REST call
2582
+ #
2583
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateMuteConfigRequest]
2584
+ # A request object representing the call parameters. Required.
2585
+ # @return [Array(String, [String, nil], Hash{String => String})]
2586
+ # Uri, Body, Query string parameters
2587
+ def self.transcode_create_mute_config_request request_pb
2588
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2589
+ .with_bindings(
2590
+ uri_method: :post,
2591
+ uri_template: "/v1/{parent}/muteConfigs",
2592
+ body: "mute_config",
2593
+ matches: [
2594
+ ["parent", %r{^organizations/[^/]+/?$}, false]
2595
+ ]
2596
+ )
2597
+ .with_bindings(
2598
+ uri_method: :post,
2599
+ uri_template: "/v1/{parent}/muteConfigs",
2600
+ body: "mute_config",
2601
+ matches: [
2602
+ ["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
2603
+ ]
2604
+ )
2605
+ .with_bindings(
2606
+ uri_method: :post,
2607
+ uri_template: "/v1/{parent}/muteConfigs",
2608
+ body: "mute_config",
2609
+ matches: [
2610
+ ["parent", %r{^folders/[^/]+/?$}, false]
2611
+ ]
2612
+ )
2613
+ .with_bindings(
2614
+ uri_method: :post,
2615
+ uri_template: "/v1/{parent}/muteConfigs",
2616
+ body: "mute_config",
2617
+ matches: [
2618
+ ["parent", %r{^folders/[^/]+/locations/[^/]+/?$}, false]
2619
+ ]
2620
+ )
2621
+ .with_bindings(
2622
+ uri_method: :post,
2623
+ uri_template: "/v1/{parent}/muteConfigs",
2624
+ body: "mute_config",
2625
+ matches: [
2626
+ ["parent", %r{^projects/[^/]+/?$}, false]
2627
+ ]
2628
+ )
2629
+ .with_bindings(
2630
+ uri_method: :post,
2631
+ uri_template: "/v1/{parent}/muteConfigs",
2632
+ body: "mute_config",
2633
+ matches: [
2634
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2635
+ ]
2636
+ )
2637
+ transcoder.transcode request_pb
2638
+ end
2639
+
2640
+ ##
2641
+ # @private
2642
+ #
2643
+ # GRPC transcoding helper method for the create_notification_config REST call
2644
+ #
2645
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateNotificationConfigRequest]
2646
+ # A request object representing the call parameters. Required.
2647
+ # @return [Array(String, [String, nil], Hash{String => String})]
2648
+ # Uri, Body, Query string parameters
2649
+ def self.transcode_create_notification_config_request request_pb
2650
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2651
+ .with_bindings(
2652
+ uri_method: :post,
2653
+ uri_template: "/v1/{parent}/notificationConfigs",
2654
+ body: "notification_config",
2655
+ matches: [
2656
+ ["parent", %r{^organizations/[^/]+/?$}, false]
2657
+ ]
2658
+ )
2659
+ .with_bindings(
2660
+ uri_method: :post,
2661
+ uri_template: "/v1/{parent}/notificationConfigs",
2662
+ body: "notification_config",
2663
+ matches: [
2664
+ ["parent", %r{^folders/[^/]+/?$}, false]
2665
+ ]
2666
+ )
2667
+ .with_bindings(
2668
+ uri_method: :post,
2669
+ uri_template: "/v1/{parent}/notificationConfigs",
2670
+ body: "notification_config",
2671
+ matches: [
2672
+ ["parent", %r{^projects/[^/]+/?$}, false]
2673
+ ]
2674
+ )
2675
+ transcoder.transcode request_pb
2676
+ end
2677
+
2678
+ ##
2679
+ # @private
2680
+ #
2681
+ # GRPC transcoding helper method for the delete_mute_config REST call
2682
+ #
2683
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::DeleteMuteConfigRequest]
2684
+ # A request object representing the call parameters. Required.
2685
+ # @return [Array(String, [String, nil], Hash{String => String})]
2686
+ # Uri, Body, Query string parameters
2687
+ def self.transcode_delete_mute_config_request request_pb
2688
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2689
+ .with_bindings(
2690
+ uri_method: :delete,
2691
+ uri_template: "/v1/{name}",
2692
+ matches: [
2693
+ ["name", %r{^organizations/[^/]+/muteConfigs/[^/]+/?$}, false]
2694
+ ]
2695
+ )
2696
+ .with_bindings(
2697
+ uri_method: :delete,
2698
+ uri_template: "/v1/{name}",
2699
+ matches: [
2700
+ ["name", %r{^folders/[^/]+/muteConfigs/[^/]+/?$}, false]
2701
+ ]
2702
+ )
2703
+ .with_bindings(
2704
+ uri_method: :delete,
2705
+ uri_template: "/v1/{name}",
2706
+ matches: [
2707
+ ["name", %r{^projects/[^/]+/muteConfigs/[^/]+/?$}, false]
2708
+ ]
2709
+ )
2710
+ .with_bindings(
2711
+ uri_method: :delete,
2712
+ uri_template: "/v1/{name}",
2713
+ matches: [
2714
+ ["name", %r{^organizations/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
2715
+ ]
2716
+ )
2717
+ .with_bindings(
2718
+ uri_method: :delete,
2719
+ uri_template: "/v1/{name}",
2720
+ matches: [
2721
+ ["name", %r{^folders/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
2722
+ ]
2723
+ )
2724
+ .with_bindings(
2725
+ uri_method: :delete,
2726
+ uri_template: "/v1/{name}",
2727
+ matches: [
2728
+ ["name", %r{^projects/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
2729
+ ]
2730
+ )
2731
+ transcoder.transcode request_pb
2732
+ end
2733
+
2734
+ ##
2735
+ # @private
2736
+ #
2737
+ # GRPC transcoding helper method for the delete_notification_config REST call
2738
+ #
2739
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::DeleteNotificationConfigRequest]
2740
+ # A request object representing the call parameters. Required.
2741
+ # @return [Array(String, [String, nil], Hash{String => String})]
2742
+ # Uri, Body, Query string parameters
2743
+ def self.transcode_delete_notification_config_request request_pb
2744
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2745
+ .with_bindings(
2746
+ uri_method: :delete,
2747
+ uri_template: "/v1/{name}",
2748
+ matches: [
2749
+ ["name", %r{^organizations/[^/]+/notificationConfigs/[^/]+/?$}, false]
2750
+ ]
2751
+ )
2752
+ .with_bindings(
2753
+ uri_method: :delete,
2754
+ uri_template: "/v1/{name}",
2755
+ matches: [
2756
+ ["name", %r{^folders/[^/]+/notificationConfigs/[^/]+/?$}, false]
2757
+ ]
2758
+ )
2759
+ .with_bindings(
2760
+ uri_method: :delete,
2761
+ uri_template: "/v1/{name}",
2762
+ matches: [
2763
+ ["name", %r{^projects/[^/]+/notificationConfigs/[^/]+/?$}, false]
2764
+ ]
2765
+ )
2766
+ transcoder.transcode request_pb
2767
+ end
2768
+
2769
+ ##
2770
+ # @private
2771
+ #
2772
+ # GRPC transcoding helper method for the delete_security_health_analytics_custom_module REST call
2773
+ #
2774
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::DeleteSecurityHealthAnalyticsCustomModuleRequest]
2775
+ # A request object representing the call parameters. Required.
2776
+ # @return [Array(String, [String, nil], Hash{String => String})]
2777
+ # Uri, Body, Query string parameters
2778
+ def self.transcode_delete_security_health_analytics_custom_module_request request_pb
2779
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2780
+ .with_bindings(
2781
+ uri_method: :delete,
2782
+ uri_template: "/v1/{name}",
2783
+ matches: [
2784
+ ["name", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
2785
+ ]
2786
+ )
2787
+ .with_bindings(
2788
+ uri_method: :delete,
2789
+ uri_template: "/v1/{name}",
2790
+ matches: [
2791
+ ["name", %r{^folders/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
2792
+ ]
2793
+ )
2794
+ .with_bindings(
2795
+ uri_method: :delete,
2796
+ uri_template: "/v1/{name}",
2797
+ matches: [
2798
+ ["name", %r{^projects/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
2799
+ ]
2800
+ )
2801
+ transcoder.transcode request_pb
2802
+ end
2803
+
2804
+ ##
2805
+ # @private
2806
+ #
2807
+ # GRPC transcoding helper method for the get_simulation REST call
2808
+ #
2809
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetSimulationRequest]
2810
+ # A request object representing the call parameters. Required.
2811
+ # @return [Array(String, [String, nil], Hash{String => String})]
2812
+ # Uri, Body, Query string parameters
2813
+ def self.transcode_get_simulation_request request_pb
2814
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2815
+ .with_bindings(
2816
+ uri_method: :get,
2817
+ uri_template: "/v1/{name}",
2818
+ matches: [
2819
+ ["name", %r{^organizations/[^/]+/simulations/[^/]+/?$}, false]
2820
+ ]
2821
+ )
2822
+ transcoder.transcode request_pb
2823
+ end
2824
+
2825
+ ##
2826
+ # @private
2827
+ #
2828
+ # GRPC transcoding helper method for the get_valued_resource REST call
2829
+ #
2830
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetValuedResourceRequest]
2831
+ # A request object representing the call parameters. Required.
2832
+ # @return [Array(String, [String, nil], Hash{String => String})]
2833
+ # Uri, Body, Query string parameters
2834
+ def self.transcode_get_valued_resource_request request_pb
2835
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2836
+ .with_bindings(
2837
+ uri_method: :get,
2838
+ uri_template: "/v1/{name}",
2839
+ matches: [
2840
+ ["name", %r{^organizations/[^/]+/simulations/[^/]+/valuedResources/[^/]+/?$}, false]
2841
+ ]
2842
+ )
2843
+ transcoder.transcode request_pb
2844
+ end
2845
+
2846
+ ##
2847
+ # @private
2848
+ #
2849
+ # GRPC transcoding helper method for the get_big_query_export REST call
2850
+ #
2851
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetBigQueryExportRequest]
2852
+ # A request object representing the call parameters. Required.
2853
+ # @return [Array(String, [String, nil], Hash{String => String})]
2854
+ # Uri, Body, Query string parameters
2855
+ def self.transcode_get_big_query_export_request request_pb
2856
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2857
+ .with_bindings(
2858
+ uri_method: :get,
2859
+ uri_template: "/v1/{name}",
2860
+ matches: [
2861
+ ["name", %r{^organizations/[^/]+/bigQueryExports/[^/]+/?$}, false]
2862
+ ]
2863
+ )
2864
+ .with_bindings(
2865
+ uri_method: :get,
2866
+ uri_template: "/v1/{name}",
2867
+ matches: [
2868
+ ["name", %r{^folders/[^/]+/bigQueryExports/[^/]+/?$}, false]
2869
+ ]
2870
+ )
2871
+ .with_bindings(
2872
+ uri_method: :get,
2873
+ uri_template: "/v1/{name}",
2874
+ matches: [
2875
+ ["name", %r{^projects/[^/]+/bigQueryExports/[^/]+/?$}, false]
2876
+ ]
2877
+ )
2878
+ transcoder.transcode request_pb
2879
+ end
2880
+
2881
+ ##
2882
+ # @private
2883
+ #
2884
+ # GRPC transcoding helper method for the get_iam_policy REST call
2885
+ #
2886
+ # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest]
2887
+ # A request object representing the call parameters. Required.
2888
+ # @return [Array(String, [String, nil], Hash{String => String})]
2889
+ # Uri, Body, Query string parameters
2890
+ def self.transcode_get_iam_policy_request request_pb
2891
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2892
+ .with_bindings(
2893
+ uri_method: :post,
2894
+ uri_template: "/v1/{resource}:getIamPolicy",
2895
+ body: "*",
2896
+ matches: [
2897
+ ["resource", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
2898
+ ]
2899
+ )
2900
+ transcoder.transcode request_pb
2901
+ end
2902
+
2903
+ ##
2904
+ # @private
2905
+ #
2906
+ # GRPC transcoding helper method for the get_mute_config REST call
2907
+ #
2908
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetMuteConfigRequest]
2909
+ # A request object representing the call parameters. Required.
2910
+ # @return [Array(String, [String, nil], Hash{String => String})]
2911
+ # Uri, Body, Query string parameters
2912
+ def self.transcode_get_mute_config_request request_pb
2913
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2914
+ .with_bindings(
2915
+ uri_method: :get,
2916
+ uri_template: "/v1/{name}",
2917
+ matches: [
2918
+ ["name", %r{^organizations/[^/]+/muteConfigs/[^/]+/?$}, false]
2919
+ ]
2920
+ )
2921
+ .with_bindings(
2922
+ uri_method: :get,
2923
+ uri_template: "/v1/{name}",
2924
+ matches: [
2925
+ ["name", %r{^folders/[^/]+/muteConfigs/[^/]+/?$}, false]
2926
+ ]
2927
+ )
2928
+ .with_bindings(
2929
+ uri_method: :get,
2930
+ uri_template: "/v1/{name}",
2931
+ matches: [
2932
+ ["name", %r{^projects/[^/]+/muteConfigs/[^/]+/?$}, false]
2933
+ ]
2934
+ )
2935
+ .with_bindings(
2936
+ uri_method: :get,
2937
+ uri_template: "/v1/{name}",
2938
+ matches: [
2939
+ ["name", %r{^organizations/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
2940
+ ]
2941
+ )
2942
+ .with_bindings(
2943
+ uri_method: :get,
2944
+ uri_template: "/v1/{name}",
2945
+ matches: [
2946
+ ["name", %r{^folders/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
2947
+ ]
2948
+ )
2949
+ .with_bindings(
2950
+ uri_method: :get,
2951
+ uri_template: "/v1/{name}",
2952
+ matches: [
2953
+ ["name", %r{^projects/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
2954
+ ]
2955
+ )
2956
+ transcoder.transcode request_pb
2957
+ end
2958
+
2959
+ ##
2960
+ # @private
2961
+ #
2962
+ # GRPC transcoding helper method for the get_notification_config REST call
2963
+ #
2964
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetNotificationConfigRequest]
2965
+ # A request object representing the call parameters. Required.
2966
+ # @return [Array(String, [String, nil], Hash{String => String})]
2967
+ # Uri, Body, Query string parameters
2968
+ def self.transcode_get_notification_config_request request_pb
2969
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2970
+ .with_bindings(
2971
+ uri_method: :get,
2972
+ uri_template: "/v1/{name}",
2973
+ matches: [
2974
+ ["name", %r{^organizations/[^/]+/notificationConfigs/[^/]+/?$}, false]
2975
+ ]
2976
+ )
2977
+ .with_bindings(
2978
+ uri_method: :get,
2979
+ uri_template: "/v1/{name}",
2980
+ matches: [
2981
+ ["name", %r{^folders/[^/]+/notificationConfigs/[^/]+/?$}, false]
2982
+ ]
2983
+ )
2984
+ .with_bindings(
2985
+ uri_method: :get,
2986
+ uri_template: "/v1/{name}",
2987
+ matches: [
2988
+ ["name", %r{^projects/[^/]+/notificationConfigs/[^/]+/?$}, false]
2989
+ ]
2990
+ )
2991
+ transcoder.transcode request_pb
2992
+ end
2993
+
2994
+ ##
2995
+ # @private
2996
+ #
2997
+ # GRPC transcoding helper method for the get_organization_settings REST call
2998
+ #
2999
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetOrganizationSettingsRequest]
3000
+ # A request object representing the call parameters. Required.
3001
+ # @return [Array(String, [String, nil], Hash{String => String})]
3002
+ # Uri, Body, Query string parameters
3003
+ def self.transcode_get_organization_settings_request request_pb
3004
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3005
+ .with_bindings(
3006
+ uri_method: :get,
3007
+ uri_template: "/v1/{name}",
3008
+ matches: [
3009
+ ["name", %r{^organizations/[^/]+/organizationSettings/?$}, false]
3010
+ ]
3011
+ )
3012
+ transcoder.transcode request_pb
3013
+ end
3014
+
3015
+ ##
3016
+ # @private
3017
+ #
3018
+ # GRPC transcoding helper method for the get_effective_security_health_analytics_custom_module REST call
3019
+ #
3020
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest]
3021
+ # A request object representing the call parameters. Required.
3022
+ # @return [Array(String, [String, nil], Hash{String => String})]
3023
+ # Uri, Body, Query string parameters
3024
+ def self.transcode_get_effective_security_health_analytics_custom_module_request request_pb
3025
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3026
+ .with_bindings(
3027
+ uri_method: :get,
3028
+ uri_template: "/v1/{name}",
3029
+ matches: [
3030
+ ["name", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/effectiveCustomModules/[^/]+/?$}, false]
3031
+ ]
3032
+ )
3033
+ .with_bindings(
3034
+ uri_method: :get,
3035
+ uri_template: "/v1/{name}",
3036
+ matches: [
3037
+ ["name", %r{^folders/[^/]+/securityHealthAnalyticsSettings/effectiveCustomModules/[^/]+/?$}, false]
3038
+ ]
3039
+ )
3040
+ .with_bindings(
3041
+ uri_method: :get,
3042
+ uri_template: "/v1/{name}",
3043
+ matches: [
3044
+ ["name", %r{^projects/[^/]+/securityHealthAnalyticsSettings/effectiveCustomModules/[^/]+/?$}, false]
3045
+ ]
3046
+ )
3047
+ transcoder.transcode request_pb
3048
+ end
3049
+
3050
+ ##
3051
+ # @private
3052
+ #
3053
+ # GRPC transcoding helper method for the get_security_health_analytics_custom_module REST call
3054
+ #
3055
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetSecurityHealthAnalyticsCustomModuleRequest]
3056
+ # A request object representing the call parameters. Required.
3057
+ # @return [Array(String, [String, nil], Hash{String => String})]
3058
+ # Uri, Body, Query string parameters
3059
+ def self.transcode_get_security_health_analytics_custom_module_request request_pb
3060
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3061
+ .with_bindings(
3062
+ uri_method: :get,
3063
+ uri_template: "/v1/{name}",
1909
3064
  matches: [
1910
- ["parent", %r{^organizations/[^/]+/?$}, false]
3065
+ ["name", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
1911
3066
  ]
1912
3067
  )
1913
3068
  .with_bindings(
1914
- uri_method: :post,
1915
- uri_template: "/v1/{parent}/muteConfigs",
1916
- body: "mute_config",
3069
+ uri_method: :get,
3070
+ uri_template: "/v1/{name}",
1917
3071
  matches: [
1918
- ["parent", %r{^folders/[^/]+/?$}, false]
3072
+ ["name", %r{^folders/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
1919
3073
  ]
1920
3074
  )
1921
3075
  .with_bindings(
1922
- uri_method: :post,
1923
- uri_template: "/v1/{parent}/muteConfigs",
1924
- body: "mute_config",
3076
+ uri_method: :get,
3077
+ uri_template: "/v1/{name}",
1925
3078
  matches: [
1926
- ["parent", %r{^projects/[^/]+/?$}, false]
3079
+ ["name", %r{^projects/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
1927
3080
  ]
1928
3081
  )
1929
3082
  transcoder.transcode request_pb
@@ -1932,34 +3085,55 @@ module Google
1932
3085
  ##
1933
3086
  # @private
1934
3087
  #
1935
- # GRPC transcoding helper method for the create_notification_config REST call
3088
+ # GRPC transcoding helper method for the get_source REST call
1936
3089
  #
1937
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateNotificationConfigRequest]
3090
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetSourceRequest]
1938
3091
  # A request object representing the call parameters. Required.
1939
3092
  # @return [Array(String, [String, nil], Hash{String => String})]
1940
3093
  # Uri, Body, Query string parameters
1941
- def self.transcode_create_notification_config_request request_pb
3094
+ def self.transcode_get_source_request request_pb
3095
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3096
+ .with_bindings(
3097
+ uri_method: :get,
3098
+ uri_template: "/v1/{name}",
3099
+ matches: [
3100
+ ["name", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
3101
+ ]
3102
+ )
3103
+ transcoder.transcode request_pb
3104
+ end
3105
+
3106
+ ##
3107
+ # @private
3108
+ #
3109
+ # GRPC transcoding helper method for the group_assets REST call
3110
+ #
3111
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GroupAssetsRequest]
3112
+ # A request object representing the call parameters. Required.
3113
+ # @return [Array(String, [String, nil], Hash{String => String})]
3114
+ # Uri, Body, Query string parameters
3115
+ def self.transcode_group_assets_request request_pb
1942
3116
  transcoder = Gapic::Rest::GrpcTranscoder.new
1943
3117
  .with_bindings(
1944
3118
  uri_method: :post,
1945
- uri_template: "/v1/{parent}/notificationConfigs",
1946
- body: "notification_config",
3119
+ uri_template: "/v1/{parent}/assets:group",
3120
+ body: "*",
1947
3121
  matches: [
1948
3122
  ["parent", %r{^organizations/[^/]+/?$}, false]
1949
3123
  ]
1950
3124
  )
1951
3125
  .with_bindings(
1952
3126
  uri_method: :post,
1953
- uri_template: "/v1/{parent}/notificationConfigs",
1954
- body: "notification_config",
3127
+ uri_template: "/v1/{parent}/assets:group",
3128
+ body: "*",
1955
3129
  matches: [
1956
3130
  ["parent", %r{^folders/[^/]+/?$}, false]
1957
3131
  ]
1958
3132
  )
1959
3133
  .with_bindings(
1960
3134
  uri_method: :post,
1961
- uri_template: "/v1/{parent}/notificationConfigs",
1962
- body: "notification_config",
3135
+ uri_template: "/v1/{parent}/assets:group",
3136
+ body: "*",
1963
3137
  matches: [
1964
3138
  ["parent", %r{^projects/[^/]+/?$}, false]
1965
3139
  ]
@@ -1970,33 +3144,36 @@ module Google
1970
3144
  ##
1971
3145
  # @private
1972
3146
  #
1973
- # GRPC transcoding helper method for the delete_mute_config REST call
3147
+ # GRPC transcoding helper method for the group_findings REST call
1974
3148
  #
1975
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::DeleteMuteConfigRequest]
3149
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GroupFindingsRequest]
1976
3150
  # A request object representing the call parameters. Required.
1977
3151
  # @return [Array(String, [String, nil], Hash{String => String})]
1978
3152
  # Uri, Body, Query string parameters
1979
- def self.transcode_delete_mute_config_request request_pb
3153
+ def self.transcode_group_findings_request request_pb
1980
3154
  transcoder = Gapic::Rest::GrpcTranscoder.new
1981
3155
  .with_bindings(
1982
- uri_method: :delete,
1983
- uri_template: "/v1/{name}",
3156
+ uri_method: :post,
3157
+ uri_template: "/v1/{parent}/findings:group",
3158
+ body: "*",
1984
3159
  matches: [
1985
- ["name", %r{^organizations/[^/]+/muteConfigs/[^/]+/?$}, false]
3160
+ ["parent", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
1986
3161
  ]
1987
3162
  )
1988
3163
  .with_bindings(
1989
- uri_method: :delete,
1990
- uri_template: "/v1/{name}",
3164
+ uri_method: :post,
3165
+ uri_template: "/v1/{parent}/findings:group",
3166
+ body: "*",
1991
3167
  matches: [
1992
- ["name", %r{^folders/[^/]+/muteConfigs/[^/]+/?$}, false]
3168
+ ["parent", %r{^folders/[^/]+/sources/[^/]+/?$}, false]
1993
3169
  ]
1994
3170
  )
1995
3171
  .with_bindings(
1996
- uri_method: :delete,
1997
- uri_template: "/v1/{name}",
3172
+ uri_method: :post,
3173
+ uri_template: "/v1/{parent}/findings:group",
3174
+ body: "*",
1998
3175
  matches: [
1999
- ["name", %r{^projects/[^/]+/muteConfigs/[^/]+/?$}, false]
3176
+ ["parent", %r{^projects/[^/]+/sources/[^/]+/?$}, false]
2000
3177
  ]
2001
3178
  )
2002
3179
  transcoder.transcode request_pb
@@ -2005,33 +3182,33 @@ module Google
2005
3182
  ##
2006
3183
  # @private
2007
3184
  #
2008
- # GRPC transcoding helper method for the delete_notification_config REST call
3185
+ # GRPC transcoding helper method for the list_assets REST call
2009
3186
  #
2010
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::DeleteNotificationConfigRequest]
3187
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListAssetsRequest]
2011
3188
  # A request object representing the call parameters. Required.
2012
3189
  # @return [Array(String, [String, nil], Hash{String => String})]
2013
3190
  # Uri, Body, Query string parameters
2014
- def self.transcode_delete_notification_config_request request_pb
3191
+ def self.transcode_list_assets_request request_pb
2015
3192
  transcoder = Gapic::Rest::GrpcTranscoder.new
2016
3193
  .with_bindings(
2017
- uri_method: :delete,
2018
- uri_template: "/v1/{name}",
3194
+ uri_method: :get,
3195
+ uri_template: "/v1/{parent}/assets",
2019
3196
  matches: [
2020
- ["name", %r{^organizations/[^/]+/notificationConfigs/[^/]+/?$}, false]
3197
+ ["parent", %r{^organizations/[^/]+/?$}, false]
2021
3198
  ]
2022
3199
  )
2023
3200
  .with_bindings(
2024
- uri_method: :delete,
2025
- uri_template: "/v1/{name}",
3201
+ uri_method: :get,
3202
+ uri_template: "/v1/{parent}/assets",
2026
3203
  matches: [
2027
- ["name", %r{^folders/[^/]+/notificationConfigs/[^/]+/?$}, false]
3204
+ ["parent", %r{^folders/[^/]+/?$}, false]
2028
3205
  ]
2029
3206
  )
2030
3207
  .with_bindings(
2031
- uri_method: :delete,
2032
- uri_template: "/v1/{name}",
3208
+ uri_method: :get,
3209
+ uri_template: "/v1/{parent}/assets",
2033
3210
  matches: [
2034
- ["name", %r{^projects/[^/]+/notificationConfigs/[^/]+/?$}, false]
3211
+ ["parent", %r{^projects/[^/]+/?$}, false]
2035
3212
  ]
2036
3213
  )
2037
3214
  transcoder.transcode request_pb
@@ -2040,33 +3217,33 @@ module Google
2040
3217
  ##
2041
3218
  # @private
2042
3219
  #
2043
- # GRPC transcoding helper method for the delete_security_health_analytics_custom_module REST call
3220
+ # GRPC transcoding helper method for the list_descendant_security_health_analytics_custom_modules REST call
2044
3221
  #
2045
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::DeleteSecurityHealthAnalyticsCustomModuleRequest]
3222
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest]
2046
3223
  # A request object representing the call parameters. Required.
2047
3224
  # @return [Array(String, [String, nil], Hash{String => String})]
2048
3225
  # Uri, Body, Query string parameters
2049
- def self.transcode_delete_security_health_analytics_custom_module_request request_pb
3226
+ def self.transcode_list_descendant_security_health_analytics_custom_modules_request request_pb
2050
3227
  transcoder = Gapic::Rest::GrpcTranscoder.new
2051
3228
  .with_bindings(
2052
- uri_method: :delete,
2053
- uri_template: "/v1/{name}",
3229
+ uri_method: :get,
3230
+ uri_template: "/v1/{parent}/customModules:listDescendant",
2054
3231
  matches: [
2055
- ["name", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
3232
+ ["parent", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2056
3233
  ]
2057
3234
  )
2058
3235
  .with_bindings(
2059
- uri_method: :delete,
2060
- uri_template: "/v1/{name}",
3236
+ uri_method: :get,
3237
+ uri_template: "/v1/{parent}/customModules:listDescendant",
2061
3238
  matches: [
2062
- ["name", %r{^folders/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
3239
+ ["parent", %r{^folders/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2063
3240
  ]
2064
3241
  )
2065
3242
  .with_bindings(
2066
- uri_method: :delete,
2067
- uri_template: "/v1/{name}",
3243
+ uri_method: :get,
3244
+ uri_template: "/v1/{parent}/customModules:listDescendant",
2068
3245
  matches: [
2069
- ["name", %r{^projects/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
3246
+ ["parent", %r{^projects/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2070
3247
  ]
2071
3248
  )
2072
3249
  transcoder.transcode request_pb
@@ -2075,33 +3252,33 @@ module Google
2075
3252
  ##
2076
3253
  # @private
2077
3254
  #
2078
- # GRPC transcoding helper method for the get_big_query_export REST call
3255
+ # GRPC transcoding helper method for the list_findings REST call
2079
3256
  #
2080
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetBigQueryExportRequest]
3257
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListFindingsRequest]
2081
3258
  # A request object representing the call parameters. Required.
2082
3259
  # @return [Array(String, [String, nil], Hash{String => String})]
2083
3260
  # Uri, Body, Query string parameters
2084
- def self.transcode_get_big_query_export_request request_pb
3261
+ def self.transcode_list_findings_request request_pb
2085
3262
  transcoder = Gapic::Rest::GrpcTranscoder.new
2086
3263
  .with_bindings(
2087
3264
  uri_method: :get,
2088
- uri_template: "/v1/{name}",
3265
+ uri_template: "/v1/{parent}/findings",
2089
3266
  matches: [
2090
- ["name", %r{^organizations/[^/]+/bigQueryExports/[^/]+/?$}, false]
3267
+ ["parent", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
2091
3268
  ]
2092
3269
  )
2093
3270
  .with_bindings(
2094
3271
  uri_method: :get,
2095
- uri_template: "/v1/{name}",
3272
+ uri_template: "/v1/{parent}/findings",
2096
3273
  matches: [
2097
- ["name", %r{^folders/[^/]+/bigQueryExports/[^/]+/?$}, false]
3274
+ ["parent", %r{^folders/[^/]+/sources/[^/]+/?$}, false]
2098
3275
  ]
2099
3276
  )
2100
3277
  .with_bindings(
2101
3278
  uri_method: :get,
2102
- uri_template: "/v1/{name}",
3279
+ uri_template: "/v1/{parent}/findings",
2103
3280
  matches: [
2104
- ["name", %r{^projects/[^/]+/bigQueryExports/[^/]+/?$}, false]
3281
+ ["parent", %r{^projects/[^/]+/sources/[^/]+/?$}, false]
2105
3282
  ]
2106
3283
  )
2107
3284
  transcoder.transcode request_pb
@@ -2110,55 +3287,54 @@ module Google
2110
3287
  ##
2111
3288
  # @private
2112
3289
  #
2113
- # GRPC transcoding helper method for the get_iam_policy REST call
3290
+ # GRPC transcoding helper method for the list_mute_configs REST call
2114
3291
  #
2115
- # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest]
3292
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListMuteConfigsRequest]
2116
3293
  # A request object representing the call parameters. Required.
2117
3294
  # @return [Array(String, [String, nil], Hash{String => String})]
2118
3295
  # Uri, Body, Query string parameters
2119
- def self.transcode_get_iam_policy_request request_pb
3296
+ def self.transcode_list_mute_configs_request request_pb
2120
3297
  transcoder = Gapic::Rest::GrpcTranscoder.new
2121
3298
  .with_bindings(
2122
- uri_method: :post,
2123
- uri_template: "/v1/{resource}:getIamPolicy",
2124
- body: "*",
3299
+ uri_method: :get,
3300
+ uri_template: "/v1/{parent}/muteConfigs",
2125
3301
  matches: [
2126
- ["resource", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
3302
+ ["parent", %r{^organizations/[^/]+/?$}, false]
2127
3303
  ]
2128
3304
  )
2129
- transcoder.transcode request_pb
2130
- end
2131
-
2132
- ##
2133
- # @private
2134
- #
2135
- # GRPC transcoding helper method for the get_mute_config REST call
2136
- #
2137
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetMuteConfigRequest]
2138
- # A request object representing the call parameters. Required.
2139
- # @return [Array(String, [String, nil], Hash{String => String})]
2140
- # Uri, Body, Query string parameters
2141
- def self.transcode_get_mute_config_request request_pb
2142
- transcoder = Gapic::Rest::GrpcTranscoder.new
2143
3305
  .with_bindings(
2144
3306
  uri_method: :get,
2145
- uri_template: "/v1/{name}",
3307
+ uri_template: "/v1/{parent}/muteConfigs",
2146
3308
  matches: [
2147
- ["name", %r{^organizations/[^/]+/muteConfigs/[^/]+/?$}, false]
3309
+ ["parent", %r{^folders/[^/]+/?$}, false]
2148
3310
  ]
2149
3311
  )
2150
3312
  .with_bindings(
2151
3313
  uri_method: :get,
2152
- uri_template: "/v1/{name}",
3314
+ uri_template: "/v1/{parent}/muteConfigs",
2153
3315
  matches: [
2154
- ["name", %r{^folders/[^/]+/muteConfigs/[^/]+/?$}, false]
3316
+ ["parent", %r{^projects/[^/]+/?$}, false]
2155
3317
  ]
2156
3318
  )
2157
3319
  .with_bindings(
2158
3320
  uri_method: :get,
2159
- uri_template: "/v1/{name}",
3321
+ uri_template: "/v1/{parent}",
2160
3322
  matches: [
2161
- ["name", %r{^projects/[^/]+/muteConfigs/[^/]+/?$}, false]
3323
+ ["parent", %r{^organizations/[^/]+/locations/[^/]+/muteConfigs/?$}, false]
3324
+ ]
3325
+ )
3326
+ .with_bindings(
3327
+ uri_method: :get,
3328
+ uri_template: "/v1/{parent}",
3329
+ matches: [
3330
+ ["parent", %r{^folders/[^/]+/locations/[^/]+/muteConfigs/?$}, false]
3331
+ ]
3332
+ )
3333
+ .with_bindings(
3334
+ uri_method: :get,
3335
+ uri_template: "/v1/{parent}",
3336
+ matches: [
3337
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/muteConfigs/?$}, false]
2162
3338
  ]
2163
3339
  )
2164
3340
  transcoder.transcode request_pb
@@ -2167,33 +3343,33 @@ module Google
2167
3343
  ##
2168
3344
  # @private
2169
3345
  #
2170
- # GRPC transcoding helper method for the get_notification_config REST call
3346
+ # GRPC transcoding helper method for the list_notification_configs REST call
2171
3347
  #
2172
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetNotificationConfigRequest]
3348
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest]
2173
3349
  # A request object representing the call parameters. Required.
2174
3350
  # @return [Array(String, [String, nil], Hash{String => String})]
2175
3351
  # Uri, Body, Query string parameters
2176
- def self.transcode_get_notification_config_request request_pb
3352
+ def self.transcode_list_notification_configs_request request_pb
2177
3353
  transcoder = Gapic::Rest::GrpcTranscoder.new
2178
3354
  .with_bindings(
2179
3355
  uri_method: :get,
2180
- uri_template: "/v1/{name}",
3356
+ uri_template: "/v1/{parent}/notificationConfigs",
2181
3357
  matches: [
2182
- ["name", %r{^organizations/[^/]+/notificationConfigs/[^/]+/?$}, false]
3358
+ ["parent", %r{^organizations/[^/]+/?$}, false]
2183
3359
  ]
2184
3360
  )
2185
3361
  .with_bindings(
2186
3362
  uri_method: :get,
2187
- uri_template: "/v1/{name}",
3363
+ uri_template: "/v1/{parent}/notificationConfigs",
2188
3364
  matches: [
2189
- ["name", %r{^folders/[^/]+/notificationConfigs/[^/]+/?$}, false]
3365
+ ["parent", %r{^folders/[^/]+/?$}, false]
2190
3366
  ]
2191
3367
  )
2192
3368
  .with_bindings(
2193
3369
  uri_method: :get,
2194
- uri_template: "/v1/{name}",
3370
+ uri_template: "/v1/{parent}/notificationConfigs",
2195
3371
  matches: [
2196
- ["name", %r{^projects/[^/]+/notificationConfigs/[^/]+/?$}, false]
3372
+ ["parent", %r{^projects/[^/]+/?$}, false]
2197
3373
  ]
2198
3374
  )
2199
3375
  transcoder.transcode request_pb
@@ -2202,19 +3378,33 @@ module Google
2202
3378
  ##
2203
3379
  # @private
2204
3380
  #
2205
- # GRPC transcoding helper method for the get_organization_settings REST call
3381
+ # GRPC transcoding helper method for the list_effective_security_health_analytics_custom_modules REST call
2206
3382
  #
2207
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetOrganizationSettingsRequest]
3383
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest]
2208
3384
  # A request object representing the call parameters. Required.
2209
3385
  # @return [Array(String, [String, nil], Hash{String => String})]
2210
3386
  # Uri, Body, Query string parameters
2211
- def self.transcode_get_organization_settings_request request_pb
3387
+ def self.transcode_list_effective_security_health_analytics_custom_modules_request request_pb
2212
3388
  transcoder = Gapic::Rest::GrpcTranscoder.new
2213
3389
  .with_bindings(
2214
3390
  uri_method: :get,
2215
- uri_template: "/v1/{name}",
3391
+ uri_template: "/v1/{parent}/effectiveCustomModules",
2216
3392
  matches: [
2217
- ["name", %r{^organizations/[^/]+/organizationSettings/?$}, false]
3393
+ ["parent", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/?$}, false]
3394
+ ]
3395
+ )
3396
+ .with_bindings(
3397
+ uri_method: :get,
3398
+ uri_template: "/v1/{parent}/effectiveCustomModules",
3399
+ matches: [
3400
+ ["parent", %r{^folders/[^/]+/securityHealthAnalyticsSettings/?$}, false]
3401
+ ]
3402
+ )
3403
+ .with_bindings(
3404
+ uri_method: :get,
3405
+ uri_template: "/v1/{parent}/effectiveCustomModules",
3406
+ matches: [
3407
+ ["parent", %r{^projects/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2218
3408
  ]
2219
3409
  )
2220
3410
  transcoder.transcode request_pb
@@ -2223,33 +3413,33 @@ module Google
2223
3413
  ##
2224
3414
  # @private
2225
3415
  #
2226
- # GRPC transcoding helper method for the get_effective_security_health_analytics_custom_module REST call
3416
+ # GRPC transcoding helper method for the list_security_health_analytics_custom_modules REST call
2227
3417
  #
2228
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest]
3418
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListSecurityHealthAnalyticsCustomModulesRequest]
2229
3419
  # A request object representing the call parameters. Required.
2230
3420
  # @return [Array(String, [String, nil], Hash{String => String})]
2231
3421
  # Uri, Body, Query string parameters
2232
- def self.transcode_get_effective_security_health_analytics_custom_module_request request_pb
3422
+ def self.transcode_list_security_health_analytics_custom_modules_request request_pb
2233
3423
  transcoder = Gapic::Rest::GrpcTranscoder.new
2234
3424
  .with_bindings(
2235
3425
  uri_method: :get,
2236
- uri_template: "/v1/{name}",
3426
+ uri_template: "/v1/{parent}/customModules",
2237
3427
  matches: [
2238
- ["name", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/effectiveCustomModules/[^/]+/?$}, false]
3428
+ ["parent", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2239
3429
  ]
2240
3430
  )
2241
3431
  .with_bindings(
2242
3432
  uri_method: :get,
2243
- uri_template: "/v1/{name}",
3433
+ uri_template: "/v1/{parent}/customModules",
2244
3434
  matches: [
2245
- ["name", %r{^folders/[^/]+/securityHealthAnalyticsSettings/effectiveCustomModules/[^/]+/?$}, false]
3435
+ ["parent", %r{^folders/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2246
3436
  ]
2247
3437
  )
2248
3438
  .with_bindings(
2249
3439
  uri_method: :get,
2250
- uri_template: "/v1/{name}",
3440
+ uri_template: "/v1/{parent}/customModules",
2251
3441
  matches: [
2252
- ["name", %r{^projects/[^/]+/securityHealthAnalyticsSettings/effectiveCustomModules/[^/]+/?$}, false]
3442
+ ["parent", %r{^projects/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2253
3443
  ]
2254
3444
  )
2255
3445
  transcoder.transcode request_pb
@@ -2258,33 +3448,33 @@ module Google
2258
3448
  ##
2259
3449
  # @private
2260
3450
  #
2261
- # GRPC transcoding helper method for the get_security_health_analytics_custom_module REST call
3451
+ # GRPC transcoding helper method for the list_sources REST call
2262
3452
  #
2263
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetSecurityHealthAnalyticsCustomModuleRequest]
3453
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListSourcesRequest]
2264
3454
  # A request object representing the call parameters. Required.
2265
3455
  # @return [Array(String, [String, nil], Hash{String => String})]
2266
3456
  # Uri, Body, Query string parameters
2267
- def self.transcode_get_security_health_analytics_custom_module_request request_pb
3457
+ def self.transcode_list_sources_request request_pb
2268
3458
  transcoder = Gapic::Rest::GrpcTranscoder.new
2269
3459
  .with_bindings(
2270
3460
  uri_method: :get,
2271
- uri_template: "/v1/{name}",
3461
+ uri_template: "/v1/{parent}/sources",
2272
3462
  matches: [
2273
- ["name", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
3463
+ ["parent", %r{^organizations/[^/]+/?$}, false]
2274
3464
  ]
2275
3465
  )
2276
3466
  .with_bindings(
2277
3467
  uri_method: :get,
2278
- uri_template: "/v1/{name}",
3468
+ uri_template: "/v1/{parent}/sources",
2279
3469
  matches: [
2280
- ["name", %r{^folders/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
3470
+ ["parent", %r{^folders/[^/]+/?$}, false]
2281
3471
  ]
2282
3472
  )
2283
3473
  .with_bindings(
2284
3474
  uri_method: :get,
2285
- uri_template: "/v1/{name}",
3475
+ uri_template: "/v1/{parent}/sources",
2286
3476
  matches: [
2287
- ["name", %r{^projects/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
3477
+ ["parent", %r{^projects/[^/]+/?$}, false]
2288
3478
  ]
2289
3479
  )
2290
3480
  transcoder.transcode request_pb
@@ -2293,19 +3483,20 @@ module Google
2293
3483
  ##
2294
3484
  # @private
2295
3485
  #
2296
- # GRPC transcoding helper method for the get_source REST call
3486
+ # GRPC transcoding helper method for the run_asset_discovery REST call
2297
3487
  #
2298
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetSourceRequest]
3488
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest]
2299
3489
  # A request object representing the call parameters. Required.
2300
3490
  # @return [Array(String, [String, nil], Hash{String => String})]
2301
3491
  # Uri, Body, Query string parameters
2302
- def self.transcode_get_source_request request_pb
3492
+ def self.transcode_run_asset_discovery_request request_pb
2303
3493
  transcoder = Gapic::Rest::GrpcTranscoder.new
2304
3494
  .with_bindings(
2305
- uri_method: :get,
2306
- uri_template: "/v1/{name}",
3495
+ uri_method: :post,
3496
+ uri_template: "/v1/{parent}/assets:runDiscovery",
3497
+ body: "*",
2307
3498
  matches: [
2308
- ["name", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
3499
+ ["parent", %r{^organizations/[^/]+/?$}, false]
2309
3500
  ]
2310
3501
  )
2311
3502
  transcoder.transcode request_pb
@@ -2314,36 +3505,36 @@ module Google
2314
3505
  ##
2315
3506
  # @private
2316
3507
  #
2317
- # GRPC transcoding helper method for the group_assets REST call
3508
+ # GRPC transcoding helper method for the set_finding_state REST call
2318
3509
  #
2319
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::GroupAssetsRequest]
3510
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::SetFindingStateRequest]
2320
3511
  # A request object representing the call parameters. Required.
2321
3512
  # @return [Array(String, [String, nil], Hash{String => String})]
2322
3513
  # Uri, Body, Query string parameters
2323
- def self.transcode_group_assets_request request_pb
3514
+ def self.transcode_set_finding_state_request request_pb
2324
3515
  transcoder = Gapic::Rest::GrpcTranscoder.new
2325
3516
  .with_bindings(
2326
3517
  uri_method: :post,
2327
- uri_template: "/v1/{parent}/assets:group",
3518
+ uri_template: "/v1/{name}:setState",
2328
3519
  body: "*",
2329
3520
  matches: [
2330
- ["parent", %r{^organizations/[^/]+/?$}, false]
3521
+ ["name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
2331
3522
  ]
2332
3523
  )
2333
3524
  .with_bindings(
2334
3525
  uri_method: :post,
2335
- uri_template: "/v1/{parent}/assets:group",
3526
+ uri_template: "/v1/{name}:setState",
2336
3527
  body: "*",
2337
3528
  matches: [
2338
- ["parent", %r{^folders/[^/]+/?$}, false]
3529
+ ["name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
2339
3530
  ]
2340
3531
  )
2341
3532
  .with_bindings(
2342
3533
  uri_method: :post,
2343
- uri_template: "/v1/{parent}/assets:group",
3534
+ uri_template: "/v1/{name}:setState",
2344
3535
  body: "*",
2345
3536
  matches: [
2346
- ["parent", %r{^projects/[^/]+/?$}, false]
3537
+ ["name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
2347
3538
  ]
2348
3539
  )
2349
3540
  transcoder.transcode request_pb
@@ -2352,36 +3543,36 @@ module Google
2352
3543
  ##
2353
3544
  # @private
2354
3545
  #
2355
- # GRPC transcoding helper method for the group_findings REST call
3546
+ # GRPC transcoding helper method for the set_mute REST call
2356
3547
  #
2357
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::GroupFindingsRequest]
3548
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::SetMuteRequest]
2358
3549
  # A request object representing the call parameters. Required.
2359
3550
  # @return [Array(String, [String, nil], Hash{String => String})]
2360
3551
  # Uri, Body, Query string parameters
2361
- def self.transcode_group_findings_request request_pb
3552
+ def self.transcode_set_mute_request request_pb
2362
3553
  transcoder = Gapic::Rest::GrpcTranscoder.new
2363
3554
  .with_bindings(
2364
3555
  uri_method: :post,
2365
- uri_template: "/v1/{parent}/findings:group",
3556
+ uri_template: "/v1/{name}:setMute",
2366
3557
  body: "*",
2367
3558
  matches: [
2368
- ["parent", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
3559
+ ["name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
2369
3560
  ]
2370
3561
  )
2371
3562
  .with_bindings(
2372
3563
  uri_method: :post,
2373
- uri_template: "/v1/{parent}/findings:group",
3564
+ uri_template: "/v1/{name}:setMute",
2374
3565
  body: "*",
2375
3566
  matches: [
2376
- ["parent", %r{^folders/[^/]+/sources/[^/]+/?$}, false]
3567
+ ["name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
2377
3568
  ]
2378
3569
  )
2379
3570
  .with_bindings(
2380
3571
  uri_method: :post,
2381
- uri_template: "/v1/{parent}/findings:group",
3572
+ uri_template: "/v1/{name}:setMute",
2382
3573
  body: "*",
2383
3574
  matches: [
2384
- ["parent", %r{^projects/[^/]+/sources/[^/]+/?$}, false]
3575
+ ["name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
2385
3576
  ]
2386
3577
  )
2387
3578
  transcoder.transcode request_pb
@@ -2390,33 +3581,42 @@ module Google
2390
3581
  ##
2391
3582
  # @private
2392
3583
  #
2393
- # GRPC transcoding helper method for the list_assets REST call
3584
+ # GRPC transcoding helper method for the set_iam_policy REST call
2394
3585
  #
2395
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListAssetsRequest]
3586
+ # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest]
2396
3587
  # A request object representing the call parameters. Required.
2397
3588
  # @return [Array(String, [String, nil], Hash{String => String})]
2398
3589
  # Uri, Body, Query string parameters
2399
- def self.transcode_list_assets_request request_pb
3590
+ def self.transcode_set_iam_policy_request request_pb
2400
3591
  transcoder = Gapic::Rest::GrpcTranscoder.new
2401
3592
  .with_bindings(
2402
- uri_method: :get,
2403
- uri_template: "/v1/{parent}/assets",
2404
- matches: [
2405
- ["parent", %r{^organizations/[^/]+/?$}, false]
2406
- ]
2407
- )
2408
- .with_bindings(
2409
- uri_method: :get,
2410
- uri_template: "/v1/{parent}/assets",
3593
+ uri_method: :post,
3594
+ uri_template: "/v1/{resource}:setIamPolicy",
3595
+ body: "*",
2411
3596
  matches: [
2412
- ["parent", %r{^folders/[^/]+/?$}, false]
3597
+ ["resource", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
2413
3598
  ]
2414
3599
  )
3600
+ transcoder.transcode request_pb
3601
+ end
3602
+
3603
+ ##
3604
+ # @private
3605
+ #
3606
+ # GRPC transcoding helper method for the test_iam_permissions REST call
3607
+ #
3608
+ # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest]
3609
+ # A request object representing the call parameters. Required.
3610
+ # @return [Array(String, [String, nil], Hash{String => String})]
3611
+ # Uri, Body, Query string parameters
3612
+ def self.transcode_test_iam_permissions_request request_pb
3613
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2415
3614
  .with_bindings(
2416
- uri_method: :get,
2417
- uri_template: "/v1/{parent}/assets",
3615
+ uri_method: :post,
3616
+ uri_template: "/v1/{resource}:testIamPermissions",
3617
+ body: "*",
2418
3618
  matches: [
2419
- ["parent", %r{^projects/[^/]+/?$}, false]
3619
+ ["resource", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
2420
3620
  ]
2421
3621
  )
2422
3622
  transcoder.transcode request_pb
@@ -2425,31 +3625,34 @@ module Google
2425
3625
  ##
2426
3626
  # @private
2427
3627
  #
2428
- # GRPC transcoding helper method for the list_descendant_security_health_analytics_custom_modules REST call
3628
+ # GRPC transcoding helper method for the simulate_security_health_analytics_custom_module REST call
2429
3629
  #
2430
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest]
3630
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest]
2431
3631
  # A request object representing the call parameters. Required.
2432
3632
  # @return [Array(String, [String, nil], Hash{String => String})]
2433
3633
  # Uri, Body, Query string parameters
2434
- def self.transcode_list_descendant_security_health_analytics_custom_modules_request request_pb
3634
+ def self.transcode_simulate_security_health_analytics_custom_module_request request_pb
2435
3635
  transcoder = Gapic::Rest::GrpcTranscoder.new
2436
3636
  .with_bindings(
2437
- uri_method: :get,
2438
- uri_template: "/v1/{parent}/customModules:listDescendant",
3637
+ uri_method: :post,
3638
+ uri_template: "/v1/{parent}/customModules:simulate",
3639
+ body: "*",
2439
3640
  matches: [
2440
3641
  ["parent", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2441
3642
  ]
2442
3643
  )
2443
3644
  .with_bindings(
2444
- uri_method: :get,
2445
- uri_template: "/v1/{parent}/customModules:listDescendant",
3645
+ uri_method: :post,
3646
+ uri_template: "/v1/{parent}/customModules:simulate",
3647
+ body: "*",
2446
3648
  matches: [
2447
3649
  ["parent", %r{^folders/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2448
3650
  ]
2449
3651
  )
2450
3652
  .with_bindings(
2451
- uri_method: :get,
2452
- uri_template: "/v1/{parent}/customModules:listDescendant",
3653
+ uri_method: :post,
3654
+ uri_template: "/v1/{parent}/customModules:simulate",
3655
+ body: "*",
2453
3656
  matches: [
2454
3657
  ["parent", %r{^projects/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2455
3658
  ]
@@ -2460,33 +3663,36 @@ module Google
2460
3663
  ##
2461
3664
  # @private
2462
3665
  #
2463
- # GRPC transcoding helper method for the list_findings REST call
3666
+ # GRPC transcoding helper method for the update_external_system REST call
2464
3667
  #
2465
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListFindingsRequest]
3668
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateExternalSystemRequest]
2466
3669
  # A request object representing the call parameters. Required.
2467
3670
  # @return [Array(String, [String, nil], Hash{String => String})]
2468
3671
  # Uri, Body, Query string parameters
2469
- def self.transcode_list_findings_request request_pb
3672
+ def self.transcode_update_external_system_request request_pb
2470
3673
  transcoder = Gapic::Rest::GrpcTranscoder.new
2471
3674
  .with_bindings(
2472
- uri_method: :get,
2473
- uri_template: "/v1/{parent}/findings",
3675
+ uri_method: :patch,
3676
+ uri_template: "/v1/{external_system.name}",
3677
+ body: "external_system",
2474
3678
  matches: [
2475
- ["parent", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
3679
+ ["external_system.name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+/?$}, false]
2476
3680
  ]
2477
3681
  )
2478
3682
  .with_bindings(
2479
- uri_method: :get,
2480
- uri_template: "/v1/{parent}/findings",
3683
+ uri_method: :patch,
3684
+ uri_template: "/v1/{external_system.name}",
3685
+ body: "external_system",
2481
3686
  matches: [
2482
- ["parent", %r{^folders/[^/]+/sources/[^/]+/?$}, false]
3687
+ ["external_system.name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+/?$}, false]
2483
3688
  ]
2484
3689
  )
2485
3690
  .with_bindings(
2486
- uri_method: :get,
2487
- uri_template: "/v1/{parent}/findings",
3691
+ uri_method: :patch,
3692
+ uri_template: "/v1/{external_system.name}",
3693
+ body: "external_system",
2488
3694
  matches: [
2489
- ["parent", %r{^projects/[^/]+/sources/[^/]+/?$}, false]
3695
+ ["external_system.name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+/?$}, false]
2490
3696
  ]
2491
3697
  )
2492
3698
  transcoder.transcode request_pb
@@ -2495,33 +3701,36 @@ module Google
2495
3701
  ##
2496
3702
  # @private
2497
3703
  #
2498
- # GRPC transcoding helper method for the list_mute_configs REST call
3704
+ # GRPC transcoding helper method for the update_finding REST call
2499
3705
  #
2500
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListMuteConfigsRequest]
3706
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateFindingRequest]
2501
3707
  # A request object representing the call parameters. Required.
2502
3708
  # @return [Array(String, [String, nil], Hash{String => String})]
2503
3709
  # Uri, Body, Query string parameters
2504
- def self.transcode_list_mute_configs_request request_pb
3710
+ def self.transcode_update_finding_request request_pb
2505
3711
  transcoder = Gapic::Rest::GrpcTranscoder.new
2506
3712
  .with_bindings(
2507
- uri_method: :get,
2508
- uri_template: "/v1/{parent}/muteConfigs",
3713
+ uri_method: :patch,
3714
+ uri_template: "/v1/{finding.name}",
3715
+ body: "finding",
2509
3716
  matches: [
2510
- ["parent", %r{^organizations/[^/]+/?$}, false]
3717
+ ["finding.name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
2511
3718
  ]
2512
3719
  )
2513
3720
  .with_bindings(
2514
- uri_method: :get,
2515
- uri_template: "/v1/{parent}/muteConfigs",
3721
+ uri_method: :patch,
3722
+ uri_template: "/v1/{finding.name}",
3723
+ body: "finding",
2516
3724
  matches: [
2517
- ["parent", %r{^folders/[^/]+/?$}, false]
3725
+ ["finding.name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
2518
3726
  ]
2519
3727
  )
2520
3728
  .with_bindings(
2521
- uri_method: :get,
2522
- uri_template: "/v1/{parent}/muteConfigs",
3729
+ uri_method: :patch,
3730
+ uri_template: "/v1/{finding.name}",
3731
+ body: "finding",
2523
3732
  matches: [
2524
- ["parent", %r{^projects/[^/]+/?$}, false]
3733
+ ["finding.name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
2525
3734
  ]
2526
3735
  )
2527
3736
  transcoder.transcode request_pb
@@ -2530,33 +3739,60 @@ module Google
2530
3739
  ##
2531
3740
  # @private
2532
3741
  #
2533
- # GRPC transcoding helper method for the list_notification_configs REST call
3742
+ # GRPC transcoding helper method for the update_mute_config REST call
2534
3743
  #
2535
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest]
3744
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateMuteConfigRequest]
2536
3745
  # A request object representing the call parameters. Required.
2537
3746
  # @return [Array(String, [String, nil], Hash{String => String})]
2538
3747
  # Uri, Body, Query string parameters
2539
- def self.transcode_list_notification_configs_request request_pb
3748
+ def self.transcode_update_mute_config_request request_pb
2540
3749
  transcoder = Gapic::Rest::GrpcTranscoder.new
2541
3750
  .with_bindings(
2542
- uri_method: :get,
2543
- uri_template: "/v1/{parent}/notificationConfigs",
3751
+ uri_method: :patch,
3752
+ uri_template: "/v1/{mute_config.name}",
3753
+ body: "mute_config",
2544
3754
  matches: [
2545
- ["parent", %r{^organizations/[^/]+/?$}, false]
3755
+ ["mute_config.name", %r{^organizations/[^/]+/muteConfigs/[^/]+/?$}, false]
2546
3756
  ]
2547
3757
  )
2548
3758
  .with_bindings(
2549
- uri_method: :get,
2550
- uri_template: "/v1/{parent}/notificationConfigs",
3759
+ uri_method: :patch,
3760
+ uri_template: "/v1/{mute_config.name}",
3761
+ body: "mute_config",
2551
3762
  matches: [
2552
- ["parent", %r{^folders/[^/]+/?$}, false]
3763
+ ["mute_config.name", %r{^folders/[^/]+/muteConfigs/[^/]+/?$}, false]
2553
3764
  ]
2554
3765
  )
2555
3766
  .with_bindings(
2556
- uri_method: :get,
2557
- uri_template: "/v1/{parent}/notificationConfigs",
3767
+ uri_method: :patch,
3768
+ uri_template: "/v1/{mute_config.name}",
3769
+ body: "mute_config",
2558
3770
  matches: [
2559
- ["parent", %r{^projects/[^/]+/?$}, false]
3771
+ ["mute_config.name", %r{^projects/[^/]+/muteConfigs/[^/]+/?$}, false]
3772
+ ]
3773
+ )
3774
+ .with_bindings(
3775
+ uri_method: :patch,
3776
+ uri_template: "/v1/{mute_config.name}",
3777
+ body: "mute_config",
3778
+ matches: [
3779
+ ["mute_config.name", %r{^organizations/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
3780
+ ]
3781
+ )
3782
+ .with_bindings(
3783
+ uri_method: :patch,
3784
+ uri_template: "/v1/{mute_config.name}",
3785
+ body: "mute_config",
3786
+ matches: [
3787
+ ["mute_config.name", %r{^folders/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
3788
+ ]
3789
+ )
3790
+ .with_bindings(
3791
+ uri_method: :patch,
3792
+ uri_template: "/v1/{mute_config.name}",
3793
+ body: "mute_config",
3794
+ matches: [
3795
+ ["mute_config.name", %r{^projects/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
2560
3796
  ]
2561
3797
  )
2562
3798
  transcoder.transcode request_pb
@@ -2565,33 +3801,36 @@ module Google
2565
3801
  ##
2566
3802
  # @private
2567
3803
  #
2568
- # GRPC transcoding helper method for the list_effective_security_health_analytics_custom_modules REST call
3804
+ # GRPC transcoding helper method for the update_notification_config REST call
2569
3805
  #
2570
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest]
3806
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest]
2571
3807
  # A request object representing the call parameters. Required.
2572
3808
  # @return [Array(String, [String, nil], Hash{String => String})]
2573
3809
  # Uri, Body, Query string parameters
2574
- def self.transcode_list_effective_security_health_analytics_custom_modules_request request_pb
3810
+ def self.transcode_update_notification_config_request request_pb
2575
3811
  transcoder = Gapic::Rest::GrpcTranscoder.new
2576
3812
  .with_bindings(
2577
- uri_method: :get,
2578
- uri_template: "/v1/{parent}/effectiveCustomModules",
3813
+ uri_method: :patch,
3814
+ uri_template: "/v1/{notification_config.name}",
3815
+ body: "notification_config",
2579
3816
  matches: [
2580
- ["parent", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/?$}, false]
3817
+ ["notification_config.name", %r{^organizations/[^/]+/notificationConfigs/[^/]+/?$}, false]
2581
3818
  ]
2582
3819
  )
2583
3820
  .with_bindings(
2584
- uri_method: :get,
2585
- uri_template: "/v1/{parent}/effectiveCustomModules",
3821
+ uri_method: :patch,
3822
+ uri_template: "/v1/{notification_config.name}",
3823
+ body: "notification_config",
2586
3824
  matches: [
2587
- ["parent", %r{^folders/[^/]+/securityHealthAnalyticsSettings/?$}, false]
3825
+ ["notification_config.name", %r{^folders/[^/]+/notificationConfigs/[^/]+/?$}, false]
2588
3826
  ]
2589
3827
  )
2590
3828
  .with_bindings(
2591
- uri_method: :get,
2592
- uri_template: "/v1/{parent}/effectiveCustomModules",
3829
+ uri_method: :patch,
3830
+ uri_template: "/v1/{notification_config.name}",
3831
+ body: "notification_config",
2593
3832
  matches: [
2594
- ["parent", %r{^projects/[^/]+/securityHealthAnalyticsSettings/?$}, false]
3833
+ ["notification_config.name", %r{^projects/[^/]+/notificationConfigs/[^/]+/?$}, false]
2595
3834
  ]
2596
3835
  )
2597
3836
  transcoder.transcode request_pb
@@ -2600,33 +3839,20 @@ module Google
2600
3839
  ##
2601
3840
  # @private
2602
3841
  #
2603
- # GRPC transcoding helper method for the list_security_health_analytics_custom_modules REST call
3842
+ # GRPC transcoding helper method for the update_organization_settings REST call
2604
3843
  #
2605
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListSecurityHealthAnalyticsCustomModulesRequest]
3844
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest]
2606
3845
  # A request object representing the call parameters. Required.
2607
3846
  # @return [Array(String, [String, nil], Hash{String => String})]
2608
3847
  # Uri, Body, Query string parameters
2609
- def self.transcode_list_security_health_analytics_custom_modules_request request_pb
3848
+ def self.transcode_update_organization_settings_request request_pb
2610
3849
  transcoder = Gapic::Rest::GrpcTranscoder.new
2611
3850
  .with_bindings(
2612
- uri_method: :get,
2613
- uri_template: "/v1/{parent}/customModules",
2614
- matches: [
2615
- ["parent", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2616
- ]
2617
- )
2618
- .with_bindings(
2619
- uri_method: :get,
2620
- uri_template: "/v1/{parent}/customModules",
2621
- matches: [
2622
- ["parent", %r{^folders/[^/]+/securityHealthAnalyticsSettings/?$}, false]
2623
- ]
2624
- )
2625
- .with_bindings(
2626
- uri_method: :get,
2627
- uri_template: "/v1/{parent}/customModules",
3851
+ uri_method: :patch,
3852
+ uri_template: "/v1/{organization_settings.name}",
3853
+ body: "organization_settings",
2628
3854
  matches: [
2629
- ["parent", %r{^projects/[^/]+/securityHealthAnalyticsSettings/?$}, false]
3855
+ ["organization_settings.name", %r{^organizations/[^/]+/organizationSettings/?$}, false]
2630
3856
  ]
2631
3857
  )
2632
3858
  transcoder.transcode request_pb
@@ -2635,33 +3861,36 @@ module Google
2635
3861
  ##
2636
3862
  # @private
2637
3863
  #
2638
- # GRPC transcoding helper method for the list_sources REST call
3864
+ # GRPC transcoding helper method for the update_security_health_analytics_custom_module REST call
2639
3865
  #
2640
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListSourcesRequest]
3866
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateSecurityHealthAnalyticsCustomModuleRequest]
2641
3867
  # A request object representing the call parameters. Required.
2642
3868
  # @return [Array(String, [String, nil], Hash{String => String})]
2643
3869
  # Uri, Body, Query string parameters
2644
- def self.transcode_list_sources_request request_pb
3870
+ def self.transcode_update_security_health_analytics_custom_module_request request_pb
2645
3871
  transcoder = Gapic::Rest::GrpcTranscoder.new
2646
3872
  .with_bindings(
2647
- uri_method: :get,
2648
- uri_template: "/v1/{parent}/sources",
3873
+ uri_method: :patch,
3874
+ uri_template: "/v1/{security_health_analytics_custom_module.name}",
3875
+ body: "security_health_analytics_custom_module",
2649
3876
  matches: [
2650
- ["parent", %r{^organizations/[^/]+/?$}, false]
3877
+ ["security_health_analytics_custom_module.name", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
2651
3878
  ]
2652
3879
  )
2653
3880
  .with_bindings(
2654
- uri_method: :get,
2655
- uri_template: "/v1/{parent}/sources",
3881
+ uri_method: :patch,
3882
+ uri_template: "/v1/{security_health_analytics_custom_module.name}",
3883
+ body: "security_health_analytics_custom_module",
2656
3884
  matches: [
2657
- ["parent", %r{^folders/[^/]+/?$}, false]
3885
+ ["security_health_analytics_custom_module.name", %r{^folders/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
2658
3886
  ]
2659
3887
  )
2660
3888
  .with_bindings(
2661
- uri_method: :get,
2662
- uri_template: "/v1/{parent}/sources",
3889
+ uri_method: :patch,
3890
+ uri_template: "/v1/{security_health_analytics_custom_module.name}",
3891
+ body: "security_health_analytics_custom_module",
2663
3892
  matches: [
2664
- ["parent", %r{^projects/[^/]+/?$}, false]
3893
+ ["security_health_analytics_custom_module.name", %r{^projects/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
2665
3894
  ]
2666
3895
  )
2667
3896
  transcoder.transcode request_pb
@@ -2670,20 +3899,20 @@ module Google
2670
3899
  ##
2671
3900
  # @private
2672
3901
  #
2673
- # GRPC transcoding helper method for the run_asset_discovery REST call
3902
+ # GRPC transcoding helper method for the update_source REST call
2674
3903
  #
2675
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest]
3904
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateSourceRequest]
2676
3905
  # A request object representing the call parameters. Required.
2677
3906
  # @return [Array(String, [String, nil], Hash{String => String})]
2678
3907
  # Uri, Body, Query string parameters
2679
- def self.transcode_run_asset_discovery_request request_pb
3908
+ def self.transcode_update_source_request request_pb
2680
3909
  transcoder = Gapic::Rest::GrpcTranscoder.new
2681
3910
  .with_bindings(
2682
- uri_method: :post,
2683
- uri_template: "/v1/{parent}/assets:runDiscovery",
2684
- body: "*",
3911
+ uri_method: :patch,
3912
+ uri_template: "/v1/{source.name}",
3913
+ body: "source",
2685
3914
  matches: [
2686
- ["parent", %r{^organizations/[^/]+/?$}, false]
3915
+ ["source.name", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
2687
3916
  ]
2688
3917
  )
2689
3918
  transcoder.transcode request_pb
@@ -2692,36 +3921,60 @@ module Google
2692
3921
  ##
2693
3922
  # @private
2694
3923
  #
2695
- # GRPC transcoding helper method for the set_finding_state REST call
3924
+ # GRPC transcoding helper method for the update_security_marks REST call
2696
3925
  #
2697
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::SetFindingStateRequest]
3926
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest]
2698
3927
  # A request object representing the call parameters. Required.
2699
3928
  # @return [Array(String, [String, nil], Hash{String => String})]
2700
3929
  # Uri, Body, Query string parameters
2701
- def self.transcode_set_finding_state_request request_pb
3930
+ def self.transcode_update_security_marks_request request_pb
2702
3931
  transcoder = Gapic::Rest::GrpcTranscoder.new
2703
3932
  .with_bindings(
2704
- uri_method: :post,
2705
- uri_template: "/v1/{name}:setState",
2706
- body: "*",
3933
+ uri_method: :patch,
3934
+ uri_template: "/v1/{security_marks.name}",
3935
+ body: "security_marks",
2707
3936
  matches: [
2708
- ["name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
3937
+ ["security_marks.name", %r{^organizations/[^/]+/assets/[^/]+/securityMarks/?$}, false]
2709
3938
  ]
2710
3939
  )
2711
3940
  .with_bindings(
2712
- uri_method: :post,
2713
- uri_template: "/v1/{name}:setState",
2714
- body: "*",
3941
+ uri_method: :patch,
3942
+ uri_template: "/v1/{security_marks.name}",
3943
+ body: "security_marks",
2715
3944
  matches: [
2716
- ["name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
3945
+ ["security_marks.name", %r{^folders/[^/]+/assets/[^/]+/securityMarks/?$}, false]
2717
3946
  ]
2718
3947
  )
2719
3948
  .with_bindings(
2720
- uri_method: :post,
2721
- uri_template: "/v1/{name}:setState",
2722
- body: "*",
3949
+ uri_method: :patch,
3950
+ uri_template: "/v1/{security_marks.name}",
3951
+ body: "security_marks",
2723
3952
  matches: [
2724
- ["name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
3953
+ ["security_marks.name", %r{^projects/[^/]+/assets/[^/]+/securityMarks/?$}, false]
3954
+ ]
3955
+ )
3956
+ .with_bindings(
3957
+ uri_method: :patch,
3958
+ uri_template: "/v1/{security_marks.name}",
3959
+ body: "security_marks",
3960
+ matches: [
3961
+ ["security_marks.name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks/?$}, false]
3962
+ ]
3963
+ )
3964
+ .with_bindings(
3965
+ uri_method: :patch,
3966
+ uri_template: "/v1/{security_marks.name}",
3967
+ body: "security_marks",
3968
+ matches: [
3969
+ ["security_marks.name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks/?$}, false]
3970
+ ]
3971
+ )
3972
+ .with_bindings(
3973
+ uri_method: :patch,
3974
+ uri_template: "/v1/{security_marks.name}",
3975
+ body: "security_marks",
3976
+ matches: [
3977
+ ["security_marks.name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks/?$}, false]
2725
3978
  ]
2726
3979
  )
2727
3980
  transcoder.transcode request_pb
@@ -2730,36 +3983,36 @@ module Google
2730
3983
  ##
2731
3984
  # @private
2732
3985
  #
2733
- # GRPC transcoding helper method for the set_mute REST call
3986
+ # GRPC transcoding helper method for the create_big_query_export REST call
2734
3987
  #
2735
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::SetMuteRequest]
3988
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateBigQueryExportRequest]
2736
3989
  # A request object representing the call parameters. Required.
2737
3990
  # @return [Array(String, [String, nil], Hash{String => String})]
2738
3991
  # Uri, Body, Query string parameters
2739
- def self.transcode_set_mute_request request_pb
3992
+ def self.transcode_create_big_query_export_request request_pb
2740
3993
  transcoder = Gapic::Rest::GrpcTranscoder.new
2741
3994
  .with_bindings(
2742
3995
  uri_method: :post,
2743
- uri_template: "/v1/{name}:setMute",
2744
- body: "*",
3996
+ uri_template: "/v1/{parent}/bigQueryExports",
3997
+ body: "big_query_export",
2745
3998
  matches: [
2746
- ["name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
3999
+ ["parent", %r{^organizations/[^/]+/?$}, false]
2747
4000
  ]
2748
4001
  )
2749
4002
  .with_bindings(
2750
4003
  uri_method: :post,
2751
- uri_template: "/v1/{name}:setMute",
2752
- body: "*",
4004
+ uri_template: "/v1/{parent}/bigQueryExports",
4005
+ body: "big_query_export",
2753
4006
  matches: [
2754
- ["name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
4007
+ ["parent", %r{^folders/[^/]+/?$}, false]
2755
4008
  ]
2756
4009
  )
2757
4010
  .with_bindings(
2758
4011
  uri_method: :post,
2759
- uri_template: "/v1/{name}:setMute",
2760
- body: "*",
4012
+ uri_template: "/v1/{parent}/bigQueryExports",
4013
+ body: "big_query_export",
2761
4014
  matches: [
2762
- ["name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
4015
+ ["parent", %r{^projects/[^/]+/?$}, false]
2763
4016
  ]
2764
4017
  )
2765
4018
  transcoder.transcode request_pb
@@ -2768,20 +4021,33 @@ module Google
2768
4021
  ##
2769
4022
  # @private
2770
4023
  #
2771
- # GRPC transcoding helper method for the set_iam_policy REST call
4024
+ # GRPC transcoding helper method for the delete_big_query_export REST call
2772
4025
  #
2773
- # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest]
4026
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::DeleteBigQueryExportRequest]
2774
4027
  # A request object representing the call parameters. Required.
2775
4028
  # @return [Array(String, [String, nil], Hash{String => String})]
2776
4029
  # Uri, Body, Query string parameters
2777
- def self.transcode_set_iam_policy_request request_pb
4030
+ def self.transcode_delete_big_query_export_request request_pb
2778
4031
  transcoder = Gapic::Rest::GrpcTranscoder.new
2779
4032
  .with_bindings(
2780
- uri_method: :post,
2781
- uri_template: "/v1/{resource}:setIamPolicy",
2782
- body: "*",
4033
+ uri_method: :delete,
4034
+ uri_template: "/v1/{name}",
2783
4035
  matches: [
2784
- ["resource", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
4036
+ ["name", %r{^organizations/[^/]+/bigQueryExports/[^/]+/?$}, false]
4037
+ ]
4038
+ )
4039
+ .with_bindings(
4040
+ uri_method: :delete,
4041
+ uri_template: "/v1/{name}",
4042
+ matches: [
4043
+ ["name", %r{^folders/[^/]+/bigQueryExports/[^/]+/?$}, false]
4044
+ ]
4045
+ )
4046
+ .with_bindings(
4047
+ uri_method: :delete,
4048
+ uri_template: "/v1/{name}",
4049
+ matches: [
4050
+ ["name", %r{^projects/[^/]+/bigQueryExports/[^/]+/?$}, false]
2785
4051
  ]
2786
4052
  )
2787
4053
  transcoder.transcode request_pb
@@ -2790,20 +4056,36 @@ module Google
2790
4056
  ##
2791
4057
  # @private
2792
4058
  #
2793
- # GRPC transcoding helper method for the test_iam_permissions REST call
4059
+ # GRPC transcoding helper method for the update_big_query_export REST call
2794
4060
  #
2795
- # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest]
4061
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateBigQueryExportRequest]
2796
4062
  # A request object representing the call parameters. Required.
2797
4063
  # @return [Array(String, [String, nil], Hash{String => String})]
2798
4064
  # Uri, Body, Query string parameters
2799
- def self.transcode_test_iam_permissions_request request_pb
4065
+ def self.transcode_update_big_query_export_request request_pb
2800
4066
  transcoder = Gapic::Rest::GrpcTranscoder.new
2801
4067
  .with_bindings(
2802
- uri_method: :post,
2803
- uri_template: "/v1/{resource}:testIamPermissions",
2804
- body: "*",
4068
+ uri_method: :patch,
4069
+ uri_template: "/v1/{big_query_export.name}",
4070
+ body: "big_query_export",
2805
4071
  matches: [
2806
- ["resource", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
4072
+ ["big_query_export.name", %r{^organizations/[^/]+/bigQueryExports/[^/]+/?$}, false]
4073
+ ]
4074
+ )
4075
+ .with_bindings(
4076
+ uri_method: :patch,
4077
+ uri_template: "/v1/{big_query_export.name}",
4078
+ body: "big_query_export",
4079
+ matches: [
4080
+ ["big_query_export.name", %r{^folders/[^/]+/bigQueryExports/[^/]+/?$}, false]
4081
+ ]
4082
+ )
4083
+ .with_bindings(
4084
+ uri_method: :patch,
4085
+ uri_template: "/v1/{big_query_export.name}",
4086
+ body: "big_query_export",
4087
+ matches: [
4088
+ ["big_query_export.name", %r{^projects/[^/]+/bigQueryExports/[^/]+/?$}, false]
2807
4089
  ]
2808
4090
  )
2809
4091
  transcoder.transcode request_pb
@@ -2812,36 +4094,33 @@ module Google
2812
4094
  ##
2813
4095
  # @private
2814
4096
  #
2815
- # GRPC transcoding helper method for the simulate_security_health_analytics_custom_module REST call
4097
+ # GRPC transcoding helper method for the list_big_query_exports REST call
2816
4098
  #
2817
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest]
4099
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListBigQueryExportsRequest]
2818
4100
  # A request object representing the call parameters. Required.
2819
4101
  # @return [Array(String, [String, nil], Hash{String => String})]
2820
4102
  # Uri, Body, Query string parameters
2821
- def self.transcode_simulate_security_health_analytics_custom_module_request request_pb
4103
+ def self.transcode_list_big_query_exports_request request_pb
2822
4104
  transcoder = Gapic::Rest::GrpcTranscoder.new
2823
4105
  .with_bindings(
2824
- uri_method: :post,
2825
- uri_template: "/v1/{parent}/customModules:simulate",
2826
- body: "*",
4106
+ uri_method: :get,
4107
+ uri_template: "/v1/{parent}/bigQueryExports",
2827
4108
  matches: [
2828
- ["parent", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/?$}, false]
4109
+ ["parent", %r{^organizations/[^/]+/?$}, false]
2829
4110
  ]
2830
4111
  )
2831
4112
  .with_bindings(
2832
- uri_method: :post,
2833
- uri_template: "/v1/{parent}/customModules:simulate",
2834
- body: "*",
4113
+ uri_method: :get,
4114
+ uri_template: "/v1/{parent}/bigQueryExports",
2835
4115
  matches: [
2836
- ["parent", %r{^folders/[^/]+/securityHealthAnalyticsSettings/?$}, false]
4116
+ ["parent", %r{^folders/[^/]+/?$}, false]
2837
4117
  ]
2838
4118
  )
2839
4119
  .with_bindings(
2840
- uri_method: :post,
2841
- uri_template: "/v1/{parent}/customModules:simulate",
2842
- body: "*",
4120
+ uri_method: :get,
4121
+ uri_template: "/v1/{parent}/bigQueryExports",
2843
4122
  matches: [
2844
- ["parent", %r{^projects/[^/]+/securityHealthAnalyticsSettings/?$}, false]
4123
+ ["parent", %r{^projects/[^/]+/?$}, false]
2845
4124
  ]
2846
4125
  )
2847
4126
  transcoder.transcode request_pb
@@ -2850,36 +4129,36 @@ module Google
2850
4129
  ##
2851
4130
  # @private
2852
4131
  #
2853
- # GRPC transcoding helper method for the update_external_system REST call
4132
+ # GRPC transcoding helper method for the create_event_threat_detection_custom_module REST call
2854
4133
  #
2855
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateExternalSystemRequest]
4134
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateEventThreatDetectionCustomModuleRequest]
2856
4135
  # A request object representing the call parameters. Required.
2857
4136
  # @return [Array(String, [String, nil], Hash{String => String})]
2858
4137
  # Uri, Body, Query string parameters
2859
- def self.transcode_update_external_system_request request_pb
4138
+ def self.transcode_create_event_threat_detection_custom_module_request request_pb
2860
4139
  transcoder = Gapic::Rest::GrpcTranscoder.new
2861
4140
  .with_bindings(
2862
- uri_method: :patch,
2863
- uri_template: "/v1/{external_system.name}",
2864
- body: "external_system",
4141
+ uri_method: :post,
4142
+ uri_template: "/v1/{parent}/customModules",
4143
+ body: "event_threat_detection_custom_module",
2865
4144
  matches: [
2866
- ["external_system.name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+/?$}, false]
4145
+ ["parent", %r{^organizations/[^/]+/eventThreatDetectionSettings/?$}, false]
2867
4146
  ]
2868
4147
  )
2869
4148
  .with_bindings(
2870
- uri_method: :patch,
2871
- uri_template: "/v1/{external_system.name}",
2872
- body: "external_system",
4149
+ uri_method: :post,
4150
+ uri_template: "/v1/{parent}/customModules",
4151
+ body: "event_threat_detection_custom_module",
2873
4152
  matches: [
2874
- ["external_system.name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+/?$}, false]
4153
+ ["parent", %r{^folders/[^/]+/eventThreatDetectionSettings/?$}, false]
2875
4154
  ]
2876
4155
  )
2877
4156
  .with_bindings(
2878
- uri_method: :patch,
2879
- uri_template: "/v1/{external_system.name}",
2880
- body: "external_system",
4157
+ uri_method: :post,
4158
+ uri_template: "/v1/{parent}/customModules",
4159
+ body: "event_threat_detection_custom_module",
2881
4160
  matches: [
2882
- ["external_system.name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+/?$}, false]
4161
+ ["parent", %r{^projects/[^/]+/eventThreatDetectionSettings/?$}, false]
2883
4162
  ]
2884
4163
  )
2885
4164
  transcoder.transcode request_pb
@@ -2888,36 +4167,33 @@ module Google
2888
4167
  ##
2889
4168
  # @private
2890
4169
  #
2891
- # GRPC transcoding helper method for the update_finding REST call
4170
+ # GRPC transcoding helper method for the delete_event_threat_detection_custom_module REST call
2892
4171
  #
2893
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateFindingRequest]
4172
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::DeleteEventThreatDetectionCustomModuleRequest]
2894
4173
  # A request object representing the call parameters. Required.
2895
4174
  # @return [Array(String, [String, nil], Hash{String => String})]
2896
4175
  # Uri, Body, Query string parameters
2897
- def self.transcode_update_finding_request request_pb
4176
+ def self.transcode_delete_event_threat_detection_custom_module_request request_pb
2898
4177
  transcoder = Gapic::Rest::GrpcTranscoder.new
2899
4178
  .with_bindings(
2900
- uri_method: :patch,
2901
- uri_template: "/v1/{finding.name}",
2902
- body: "finding",
4179
+ uri_method: :delete,
4180
+ uri_template: "/v1/{name}",
2903
4181
  matches: [
2904
- ["finding.name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
4182
+ ["name", %r{^organizations/[^/]+/eventThreatDetectionSettings/customModules/[^/]+/?$}, false]
2905
4183
  ]
2906
4184
  )
2907
4185
  .with_bindings(
2908
- uri_method: :patch,
2909
- uri_template: "/v1/{finding.name}",
2910
- body: "finding",
4186
+ uri_method: :delete,
4187
+ uri_template: "/v1/{name}",
2911
4188
  matches: [
2912
- ["finding.name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
4189
+ ["name", %r{^folders/[^/]+/eventThreatDetectionSettings/customModules/[^/]+/?$}, false]
2913
4190
  ]
2914
4191
  )
2915
4192
  .with_bindings(
2916
- uri_method: :patch,
2917
- uri_template: "/v1/{finding.name}",
2918
- body: "finding",
4193
+ uri_method: :delete,
4194
+ uri_template: "/v1/{name}",
2919
4195
  matches: [
2920
- ["finding.name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
4196
+ ["name", %r{^projects/[^/]+/eventThreatDetectionSettings/customModules/[^/]+/?$}, false]
2921
4197
  ]
2922
4198
  )
2923
4199
  transcoder.transcode request_pb
@@ -2926,36 +4202,33 @@ module Google
2926
4202
  ##
2927
4203
  # @private
2928
4204
  #
2929
- # GRPC transcoding helper method for the update_mute_config REST call
4205
+ # GRPC transcoding helper method for the get_event_threat_detection_custom_module REST call
2930
4206
  #
2931
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateMuteConfigRequest]
4207
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetEventThreatDetectionCustomModuleRequest]
2932
4208
  # A request object representing the call parameters. Required.
2933
4209
  # @return [Array(String, [String, nil], Hash{String => String})]
2934
4210
  # Uri, Body, Query string parameters
2935
- def self.transcode_update_mute_config_request request_pb
4211
+ def self.transcode_get_event_threat_detection_custom_module_request request_pb
2936
4212
  transcoder = Gapic::Rest::GrpcTranscoder.new
2937
4213
  .with_bindings(
2938
- uri_method: :patch,
2939
- uri_template: "/v1/{mute_config.name}",
2940
- body: "mute_config",
4214
+ uri_method: :get,
4215
+ uri_template: "/v1/{name}",
2941
4216
  matches: [
2942
- ["mute_config.name", %r{^organizations/[^/]+/muteConfigs/[^/]+/?$}, false]
4217
+ ["name", %r{^organizations/[^/]+/eventThreatDetectionSettings/customModules/[^/]+/?$}, false]
2943
4218
  ]
2944
4219
  )
2945
4220
  .with_bindings(
2946
- uri_method: :patch,
2947
- uri_template: "/v1/{mute_config.name}",
2948
- body: "mute_config",
4221
+ uri_method: :get,
4222
+ uri_template: "/v1/{name}",
2949
4223
  matches: [
2950
- ["mute_config.name", %r{^folders/[^/]+/muteConfigs/[^/]+/?$}, false]
4224
+ ["name", %r{^folders/[^/]+/eventThreatDetectionSettings/customModules/[^/]+/?$}, false]
2951
4225
  ]
2952
4226
  )
2953
4227
  .with_bindings(
2954
- uri_method: :patch,
2955
- uri_template: "/v1/{mute_config.name}",
2956
- body: "mute_config",
4228
+ uri_method: :get,
4229
+ uri_template: "/v1/{name}",
2957
4230
  matches: [
2958
- ["mute_config.name", %r{^projects/[^/]+/muteConfigs/[^/]+/?$}, false]
4231
+ ["name", %r{^projects/[^/]+/eventThreatDetectionSettings/customModules/[^/]+/?$}, false]
2959
4232
  ]
2960
4233
  )
2961
4234
  transcoder.transcode request_pb
@@ -2964,36 +4237,33 @@ module Google
2964
4237
  ##
2965
4238
  # @private
2966
4239
  #
2967
- # GRPC transcoding helper method for the update_notification_config REST call
4240
+ # GRPC transcoding helper method for the list_descendant_event_threat_detection_custom_modules REST call
2968
4241
  #
2969
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest]
4242
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListDescendantEventThreatDetectionCustomModulesRequest]
2970
4243
  # A request object representing the call parameters. Required.
2971
4244
  # @return [Array(String, [String, nil], Hash{String => String})]
2972
4245
  # Uri, Body, Query string parameters
2973
- def self.transcode_update_notification_config_request request_pb
4246
+ def self.transcode_list_descendant_event_threat_detection_custom_modules_request request_pb
2974
4247
  transcoder = Gapic::Rest::GrpcTranscoder.new
2975
4248
  .with_bindings(
2976
- uri_method: :patch,
2977
- uri_template: "/v1/{notification_config.name}",
2978
- body: "notification_config",
4249
+ uri_method: :get,
4250
+ uri_template: "/v1/{parent}/customModules:listDescendant",
2979
4251
  matches: [
2980
- ["notification_config.name", %r{^organizations/[^/]+/notificationConfigs/[^/]+/?$}, false]
4252
+ ["parent", %r{^organizations/[^/]+/eventThreatDetectionSettings/?$}, false]
2981
4253
  ]
2982
4254
  )
2983
4255
  .with_bindings(
2984
- uri_method: :patch,
2985
- uri_template: "/v1/{notification_config.name}",
2986
- body: "notification_config",
4256
+ uri_method: :get,
4257
+ uri_template: "/v1/{parent}/customModules:listDescendant",
2987
4258
  matches: [
2988
- ["notification_config.name", %r{^folders/[^/]+/notificationConfigs/[^/]+/?$}, false]
4259
+ ["parent", %r{^folders/[^/]+/eventThreatDetectionSettings/?$}, false]
2989
4260
  ]
2990
4261
  )
2991
4262
  .with_bindings(
2992
- uri_method: :patch,
2993
- uri_template: "/v1/{notification_config.name}",
2994
- body: "notification_config",
4263
+ uri_method: :get,
4264
+ uri_template: "/v1/{parent}/customModules:listDescendant",
2995
4265
  matches: [
2996
- ["notification_config.name", %r{^projects/[^/]+/notificationConfigs/[^/]+/?$}, false]
4266
+ ["parent", %r{^projects/[^/]+/eventThreatDetectionSettings/?$}, false]
2997
4267
  ]
2998
4268
  )
2999
4269
  transcoder.transcode request_pb
@@ -3002,20 +4272,33 @@ module Google
3002
4272
  ##
3003
4273
  # @private
3004
4274
  #
3005
- # GRPC transcoding helper method for the update_organization_settings REST call
4275
+ # GRPC transcoding helper method for the list_event_threat_detection_custom_modules REST call
3006
4276
  #
3007
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest]
4277
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListEventThreatDetectionCustomModulesRequest]
3008
4278
  # A request object representing the call parameters. Required.
3009
4279
  # @return [Array(String, [String, nil], Hash{String => String})]
3010
4280
  # Uri, Body, Query string parameters
3011
- def self.transcode_update_organization_settings_request request_pb
4281
+ def self.transcode_list_event_threat_detection_custom_modules_request request_pb
3012
4282
  transcoder = Gapic::Rest::GrpcTranscoder.new
3013
4283
  .with_bindings(
3014
- uri_method: :patch,
3015
- uri_template: "/v1/{organization_settings.name}",
3016
- body: "organization_settings",
4284
+ uri_method: :get,
4285
+ uri_template: "/v1/{parent}/customModules",
3017
4286
  matches: [
3018
- ["organization_settings.name", %r{^organizations/[^/]+/organizationSettings/?$}, false]
4287
+ ["parent", %r{^organizations/[^/]+/eventThreatDetectionSettings/?$}, false]
4288
+ ]
4289
+ )
4290
+ .with_bindings(
4291
+ uri_method: :get,
4292
+ uri_template: "/v1/{parent}/customModules",
4293
+ matches: [
4294
+ ["parent", %r{^folders/[^/]+/eventThreatDetectionSettings/?$}, false]
4295
+ ]
4296
+ )
4297
+ .with_bindings(
4298
+ uri_method: :get,
4299
+ uri_template: "/v1/{parent}/customModules",
4300
+ matches: [
4301
+ ["parent", %r{^projects/[^/]+/eventThreatDetectionSettings/?$}, false]
3019
4302
  ]
3020
4303
  )
3021
4304
  transcoder.transcode request_pb
@@ -3024,36 +4307,36 @@ module Google
3024
4307
  ##
3025
4308
  # @private
3026
4309
  #
3027
- # GRPC transcoding helper method for the update_security_health_analytics_custom_module REST call
4310
+ # GRPC transcoding helper method for the update_event_threat_detection_custom_module REST call
3028
4311
  #
3029
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateSecurityHealthAnalyticsCustomModuleRequest]
4312
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateEventThreatDetectionCustomModuleRequest]
3030
4313
  # A request object representing the call parameters. Required.
3031
4314
  # @return [Array(String, [String, nil], Hash{String => String})]
3032
4315
  # Uri, Body, Query string parameters
3033
- def self.transcode_update_security_health_analytics_custom_module_request request_pb
4316
+ def self.transcode_update_event_threat_detection_custom_module_request request_pb
3034
4317
  transcoder = Gapic::Rest::GrpcTranscoder.new
3035
4318
  .with_bindings(
3036
4319
  uri_method: :patch,
3037
- uri_template: "/v1/{security_health_analytics_custom_module.name}",
3038
- body: "security_health_analytics_custom_module",
4320
+ uri_template: "/v1/{event_threat_detection_custom_module.name}",
4321
+ body: "event_threat_detection_custom_module",
3039
4322
  matches: [
3040
- ["security_health_analytics_custom_module.name", %r{^organizations/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
4323
+ ["event_threat_detection_custom_module.name", %r{^organizations/[^/]+/eventThreatDetectionSettings/customModules/[^/]+/?$}, false]
3041
4324
  ]
3042
4325
  )
3043
4326
  .with_bindings(
3044
4327
  uri_method: :patch,
3045
- uri_template: "/v1/{security_health_analytics_custom_module.name}",
3046
- body: "security_health_analytics_custom_module",
4328
+ uri_template: "/v1/{event_threat_detection_custom_module.name}",
4329
+ body: "event_threat_detection_custom_module",
3047
4330
  matches: [
3048
- ["security_health_analytics_custom_module.name", %r{^folders/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
4331
+ ["event_threat_detection_custom_module.name", %r{^folders/[^/]+/eventThreatDetectionSettings/customModules/[^/]+/?$}, false]
3049
4332
  ]
3050
4333
  )
3051
4334
  .with_bindings(
3052
4335
  uri_method: :patch,
3053
- uri_template: "/v1/{security_health_analytics_custom_module.name}",
3054
- body: "security_health_analytics_custom_module",
4336
+ uri_template: "/v1/{event_threat_detection_custom_module.name}",
4337
+ body: "event_threat_detection_custom_module",
3055
4338
  matches: [
3056
- ["security_health_analytics_custom_module.name", %r{^projects/[^/]+/securityHealthAnalyticsSettings/customModules/[^/]+/?$}, false]
4339
+ ["event_threat_detection_custom_module.name", %r{^projects/[^/]+/eventThreatDetectionSettings/customModules/[^/]+/?$}, false]
3057
4340
  ]
3058
4341
  )
3059
4342
  transcoder.transcode request_pb
@@ -3062,20 +4345,36 @@ module Google
3062
4345
  ##
3063
4346
  # @private
3064
4347
  #
3065
- # GRPC transcoding helper method for the update_source REST call
4348
+ # GRPC transcoding helper method for the validate_event_threat_detection_custom_module REST call
3066
4349
  #
3067
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateSourceRequest]
4350
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ValidateEventThreatDetectionCustomModuleRequest]
3068
4351
  # A request object representing the call parameters. Required.
3069
4352
  # @return [Array(String, [String, nil], Hash{String => String})]
3070
4353
  # Uri, Body, Query string parameters
3071
- def self.transcode_update_source_request request_pb
4354
+ def self.transcode_validate_event_threat_detection_custom_module_request request_pb
3072
4355
  transcoder = Gapic::Rest::GrpcTranscoder.new
3073
4356
  .with_bindings(
3074
- uri_method: :patch,
3075
- uri_template: "/v1/{source.name}",
3076
- body: "source",
4357
+ uri_method: :post,
4358
+ uri_template: "/v1/{parent}:validateCustomModule",
4359
+ body: "*",
3077
4360
  matches: [
3078
- ["source.name", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
4361
+ ["parent", %r{^organizations/[^/]+/eventThreatDetectionSettings/?$}, false]
4362
+ ]
4363
+ )
4364
+ .with_bindings(
4365
+ uri_method: :post,
4366
+ uri_template: "/v1/{parent}:validateCustomModule",
4367
+ body: "*",
4368
+ matches: [
4369
+ ["parent", %r{^folders/[^/]+/eventThreatDetectionSettings/?$}, false]
4370
+ ]
4371
+ )
4372
+ .with_bindings(
4373
+ uri_method: :post,
4374
+ uri_template: "/v1/{parent}:validateCustomModule",
4375
+ body: "*",
4376
+ matches: [
4377
+ ["parent", %r{^projects/[^/]+/eventThreatDetectionSettings/?$}, false]
3079
4378
  ]
3080
4379
  )
3081
4380
  transcoder.transcode request_pb
@@ -3084,60 +4383,68 @@ module Google
3084
4383
  ##
3085
4384
  # @private
3086
4385
  #
3087
- # GRPC transcoding helper method for the update_security_marks REST call
4386
+ # GRPC transcoding helper method for the get_effective_event_threat_detection_custom_module REST call
3088
4387
  #
3089
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest]
4388
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetEffectiveEventThreatDetectionCustomModuleRequest]
3090
4389
  # A request object representing the call parameters. Required.
3091
4390
  # @return [Array(String, [String, nil], Hash{String => String})]
3092
4391
  # Uri, Body, Query string parameters
3093
- def self.transcode_update_security_marks_request request_pb
4392
+ def self.transcode_get_effective_event_threat_detection_custom_module_request request_pb
3094
4393
  transcoder = Gapic::Rest::GrpcTranscoder.new
3095
4394
  .with_bindings(
3096
- uri_method: :patch,
3097
- uri_template: "/v1/{security_marks.name}",
3098
- body: "security_marks",
4395
+ uri_method: :get,
4396
+ uri_template: "/v1/{name}",
3099
4397
  matches: [
3100
- ["security_marks.name", %r{^organizations/[^/]+/assets/[^/]+/securityMarks/?$}, false]
4398
+ ["name", %r{^organizations/[^/]+/eventThreatDetectionSettings/effectiveCustomModules/[^/]+/?$}, false]
3101
4399
  ]
3102
4400
  )
3103
4401
  .with_bindings(
3104
- uri_method: :patch,
3105
- uri_template: "/v1/{security_marks.name}",
3106
- body: "security_marks",
4402
+ uri_method: :get,
4403
+ uri_template: "/v1/{name}",
3107
4404
  matches: [
3108
- ["security_marks.name", %r{^folders/[^/]+/assets/[^/]+/securityMarks/?$}, false]
4405
+ ["name", %r{^folders/[^/]+/eventThreatDetectionSettings/effectiveCustomModules/[^/]+/?$}, false]
3109
4406
  ]
3110
4407
  )
3111
4408
  .with_bindings(
3112
- uri_method: :patch,
3113
- uri_template: "/v1/{security_marks.name}",
3114
- body: "security_marks",
4409
+ uri_method: :get,
4410
+ uri_template: "/v1/{name}",
3115
4411
  matches: [
3116
- ["security_marks.name", %r{^projects/[^/]+/assets/[^/]+/securityMarks/?$}, false]
4412
+ ["name", %r{^projects/[^/]+/eventThreatDetectionSettings/effectiveCustomModules/[^/]+/?$}, false]
3117
4413
  ]
3118
4414
  )
4415
+ transcoder.transcode request_pb
4416
+ end
4417
+
4418
+ ##
4419
+ # @private
4420
+ #
4421
+ # GRPC transcoding helper method for the list_effective_event_threat_detection_custom_modules REST call
4422
+ #
4423
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListEffectiveEventThreatDetectionCustomModulesRequest]
4424
+ # A request object representing the call parameters. Required.
4425
+ # @return [Array(String, [String, nil], Hash{String => String})]
4426
+ # Uri, Body, Query string parameters
4427
+ def self.transcode_list_effective_event_threat_detection_custom_modules_request request_pb
4428
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3119
4429
  .with_bindings(
3120
- uri_method: :patch,
3121
- uri_template: "/v1/{security_marks.name}",
3122
- body: "security_marks",
4430
+ uri_method: :get,
4431
+ uri_template: "/v1/{parent}/effectiveCustomModules",
3123
4432
  matches: [
3124
- ["security_marks.name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks/?$}, false]
4433
+ ["parent", %r{^organizations/[^/]+/eventThreatDetectionSettings/?$}, false]
3125
4434
  ]
3126
4435
  )
3127
4436
  .with_bindings(
3128
- uri_method: :patch,
3129
- uri_template: "/v1/{security_marks.name}",
3130
- body: "security_marks",
4437
+ uri_method: :get,
4438
+ uri_template: "/v1/{parent}/effectiveCustomModules",
3131
4439
  matches: [
3132
- ["security_marks.name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks/?$}, false]
4440
+ ["parent", %r{^folders/[^/]+/eventThreatDetectionSettings/?$}, false]
3133
4441
  ]
3134
4442
  )
3135
4443
  .with_bindings(
3136
- uri_method: :patch,
3137
- uri_template: "/v1/{security_marks.name}",
3138
- body: "security_marks",
4444
+ uri_method: :get,
4445
+ uri_template: "/v1/{parent}/effectiveCustomModules",
3139
4446
  matches: [
3140
- ["security_marks.name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks/?$}, false]
4447
+ ["parent", %r{^projects/[^/]+/eventThreatDetectionSettings/?$}, false]
3141
4448
  ]
3142
4449
  )
3143
4450
  transcoder.transcode request_pb
@@ -3146,71 +4453,83 @@ module Google
3146
4453
  ##
3147
4454
  # @private
3148
4455
  #
3149
- # GRPC transcoding helper method for the create_big_query_export REST call
4456
+ # GRPC transcoding helper method for the batch_create_resource_value_configs REST call
3150
4457
  #
3151
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::CreateBigQueryExportRequest]
4458
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::BatchCreateResourceValueConfigsRequest]
3152
4459
  # A request object representing the call parameters. Required.
3153
4460
  # @return [Array(String, [String, nil], Hash{String => String})]
3154
4461
  # Uri, Body, Query string parameters
3155
- def self.transcode_create_big_query_export_request request_pb
4462
+ def self.transcode_batch_create_resource_value_configs_request request_pb
3156
4463
  transcoder = Gapic::Rest::GrpcTranscoder.new
3157
4464
  .with_bindings(
3158
4465
  uri_method: :post,
3159
- uri_template: "/v1/{parent}/bigQueryExports",
3160
- body: "big_query_export",
4466
+ uri_template: "/v1/{parent}/resourceValueConfigs:batchCreate",
4467
+ body: "*",
3161
4468
  matches: [
3162
4469
  ["parent", %r{^organizations/[^/]+/?$}, false]
3163
4470
  ]
3164
4471
  )
3165
- .with_bindings(
3166
- uri_method: :post,
3167
- uri_template: "/v1/{parent}/bigQueryExports",
3168
- body: "big_query_export",
3169
- matches: [
3170
- ["parent", %r{^folders/[^/]+/?$}, false]
3171
- ]
3172
- )
3173
- .with_bindings(
3174
- uri_method: :post,
3175
- uri_template: "/v1/{parent}/bigQueryExports",
3176
- body: "big_query_export",
3177
- matches: [
3178
- ["parent", %r{^projects/[^/]+/?$}, false]
3179
- ]
3180
- )
3181
4472
  transcoder.transcode request_pb
3182
4473
  end
3183
4474
 
3184
4475
  ##
3185
4476
  # @private
3186
4477
  #
3187
- # GRPC transcoding helper method for the delete_big_query_export REST call
4478
+ # GRPC transcoding helper method for the delete_resource_value_config REST call
3188
4479
  #
3189
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::DeleteBigQueryExportRequest]
4480
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::DeleteResourceValueConfigRequest]
3190
4481
  # A request object representing the call parameters. Required.
3191
4482
  # @return [Array(String, [String, nil], Hash{String => String})]
3192
4483
  # Uri, Body, Query string parameters
3193
- def self.transcode_delete_big_query_export_request request_pb
4484
+ def self.transcode_delete_resource_value_config_request request_pb
3194
4485
  transcoder = Gapic::Rest::GrpcTranscoder.new
3195
4486
  .with_bindings(
3196
4487
  uri_method: :delete,
3197
4488
  uri_template: "/v1/{name}",
3198
4489
  matches: [
3199
- ["name", %r{^organizations/[^/]+/bigQueryExports/[^/]+/?$}, false]
4490
+ ["name", %r{^organizations/[^/]+/resourceValueConfigs/[^/]+/?$}, false]
3200
4491
  ]
3201
4492
  )
4493
+ transcoder.transcode request_pb
4494
+ end
4495
+
4496
+ ##
4497
+ # @private
4498
+ #
4499
+ # GRPC transcoding helper method for the get_resource_value_config REST call
4500
+ #
4501
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::GetResourceValueConfigRequest]
4502
+ # A request object representing the call parameters. Required.
4503
+ # @return [Array(String, [String, nil], Hash{String => String})]
4504
+ # Uri, Body, Query string parameters
4505
+ def self.transcode_get_resource_value_config_request request_pb
4506
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3202
4507
  .with_bindings(
3203
- uri_method: :delete,
4508
+ uri_method: :get,
3204
4509
  uri_template: "/v1/{name}",
3205
4510
  matches: [
3206
- ["name", %r{^folders/[^/]+/bigQueryExports/[^/]+/?$}, false]
4511
+ ["name", %r{^organizations/[^/]+/resourceValueConfigs/[^/]+/?$}, false]
3207
4512
  ]
3208
4513
  )
4514
+ transcoder.transcode request_pb
4515
+ end
4516
+
4517
+ ##
4518
+ # @private
4519
+ #
4520
+ # GRPC transcoding helper method for the list_resource_value_configs REST call
4521
+ #
4522
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListResourceValueConfigsRequest]
4523
+ # A request object representing the call parameters. Required.
4524
+ # @return [Array(String, [String, nil], Hash{String => String})]
4525
+ # Uri, Body, Query string parameters
4526
+ def self.transcode_list_resource_value_configs_request request_pb
4527
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3209
4528
  .with_bindings(
3210
- uri_method: :delete,
3211
- uri_template: "/v1/{name}",
4529
+ uri_method: :get,
4530
+ uri_template: "/v1/{parent}/resourceValueConfigs",
3212
4531
  matches: [
3213
- ["name", %r{^projects/[^/]+/bigQueryExports/[^/]+/?$}, false]
4532
+ ["parent", %r{^organizations/[^/]+/?$}, false]
3214
4533
  ]
3215
4534
  )
3216
4535
  transcoder.transcode request_pb
@@ -3219,36 +4538,48 @@ module Google
3219
4538
  ##
3220
4539
  # @private
3221
4540
  #
3222
- # GRPC transcoding helper method for the update_big_query_export REST call
4541
+ # GRPC transcoding helper method for the update_resource_value_config REST call
3223
4542
  #
3224
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateBigQueryExportRequest]
4543
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::UpdateResourceValueConfigRequest]
3225
4544
  # A request object representing the call parameters. Required.
3226
4545
  # @return [Array(String, [String, nil], Hash{String => String})]
3227
4546
  # Uri, Body, Query string parameters
3228
- def self.transcode_update_big_query_export_request request_pb
4547
+ def self.transcode_update_resource_value_config_request request_pb
3229
4548
  transcoder = Gapic::Rest::GrpcTranscoder.new
3230
4549
  .with_bindings(
3231
4550
  uri_method: :patch,
3232
- uri_template: "/v1/{big_query_export.name}",
3233
- body: "big_query_export",
4551
+ uri_template: "/v1/{resource_value_config.name}",
4552
+ body: "resource_value_config",
3234
4553
  matches: [
3235
- ["big_query_export.name", %r{^organizations/[^/]+/bigQueryExports/[^/]+/?$}, false]
4554
+ ["resource_value_config.name", %r{^organizations/[^/]+/resourceValueConfigs/[^/]+/?$}, false]
3236
4555
  ]
3237
4556
  )
4557
+ transcoder.transcode request_pb
4558
+ end
4559
+
4560
+ ##
4561
+ # @private
4562
+ #
4563
+ # GRPC transcoding helper method for the list_valued_resources REST call
4564
+ #
4565
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListValuedResourcesRequest]
4566
+ # A request object representing the call parameters. Required.
4567
+ # @return [Array(String, [String, nil], Hash{String => String})]
4568
+ # Uri, Body, Query string parameters
4569
+ def self.transcode_list_valued_resources_request request_pb
4570
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3238
4571
  .with_bindings(
3239
- uri_method: :patch,
3240
- uri_template: "/v1/{big_query_export.name}",
3241
- body: "big_query_export",
4572
+ uri_method: :get,
4573
+ uri_template: "/v1/{parent}/valuedResources",
3242
4574
  matches: [
3243
- ["big_query_export.name", %r{^folders/[^/]+/bigQueryExports/[^/]+/?$}, false]
4575
+ ["parent", %r{^organizations/[^/]+/simulations/[^/]+/?$}, false]
3244
4576
  ]
3245
4577
  )
3246
4578
  .with_bindings(
3247
- uri_method: :patch,
3248
- uri_template: "/v1/{big_query_export.name}",
3249
- body: "big_query_export",
4579
+ uri_method: :get,
4580
+ uri_template: "/v1/{parent}/valuedResources",
3250
4581
  matches: [
3251
- ["big_query_export.name", %r{^projects/[^/]+/bigQueryExports/[^/]+/?$}, false]
4582
+ ["parent", %r{^organizations/[^/]+/simulations/[^/]+/attackExposureResults/[^/]+/?$}, false]
3252
4583
  ]
3253
4584
  )
3254
4585
  transcoder.transcode request_pb
@@ -3257,33 +4588,33 @@ module Google
3257
4588
  ##
3258
4589
  # @private
3259
4590
  #
3260
- # GRPC transcoding helper method for the list_big_query_exports REST call
4591
+ # GRPC transcoding helper method for the list_attack_paths REST call
3261
4592
  #
3262
- # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListBigQueryExportsRequest]
4593
+ # @param request_pb [::Google::Cloud::SecurityCenter::V1::ListAttackPathsRequest]
3263
4594
  # A request object representing the call parameters. Required.
3264
4595
  # @return [Array(String, [String, nil], Hash{String => String})]
3265
4596
  # Uri, Body, Query string parameters
3266
- def self.transcode_list_big_query_exports_request request_pb
4597
+ def self.transcode_list_attack_paths_request request_pb
3267
4598
  transcoder = Gapic::Rest::GrpcTranscoder.new
3268
4599
  .with_bindings(
3269
4600
  uri_method: :get,
3270
- uri_template: "/v1/{parent}/bigQueryExports",
4601
+ uri_template: "/v1/{parent}/attackPaths",
3271
4602
  matches: [
3272
- ["parent", %r{^organizations/[^/]+/?$}, false]
4603
+ ["parent", %r{^organizations/[^/]+/simulations/[^/]+/?$}, false]
3273
4604
  ]
3274
4605
  )
3275
4606
  .with_bindings(
3276
4607
  uri_method: :get,
3277
- uri_template: "/v1/{parent}/bigQueryExports",
4608
+ uri_template: "/v1/{parent}/attackPaths",
3278
4609
  matches: [
3279
- ["parent", %r{^folders/[^/]+/?$}, false]
4610
+ ["parent", %r{^organizations/[^/]+/simulations/[^/]+/valuedResources/[^/]+/?$}, false]
3280
4611
  ]
3281
4612
  )
3282
4613
  .with_bindings(
3283
4614
  uri_method: :get,
3284
- uri_template: "/v1/{parent}/bigQueryExports",
4615
+ uri_template: "/v1/{parent}/attackPaths",
3285
4616
  matches: [
3286
- ["parent", %r{^projects/[^/]+/?$}, false]
4617
+ ["parent", %r{^organizations/[^/]+/simulations/[^/]+/attackExposureResults/[^/]+/?$}, false]
3287
4618
  ]
3288
4619
  )
3289
4620
  transcoder.transcode request_pb