google-cloud-security_center-v1 0.31.1 → 0.33.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/security_center/v1/security_center/client.rb +110 -1
- data/lib/google/cloud/security_center/v1/security_center/operations.rb +10 -1
- data/lib/google/cloud/security_center/v1/security_center/rest/client.rb +855 -0
- data/lib/google/cloud/security_center/v1/security_center/rest/operations.rb +75 -0
- data/lib/google/cloud/security_center/v1/security_center/rest/service_stub.rb +76 -0
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +11 -1
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb +2 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +64 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d47daa8705e1a38fc97a8baf6a4a7c709a02dc0cc805cedb4df2791e29f06c32
|
4
|
+
data.tar.gz: 8542cc30a72555ac9ee961d143f5643dba0342b5ca09f144a3b1c31f7480e77e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3439ccf2010ffd13e942af170c259112e4387e61b5252845fa041dbe7f987a145aa4ccb7325b457f1dca340016eeff2e39caf2b4db607a7608a2e81938567f0
|
7
|
+
data.tar.gz: f75c54c8eaeff55e7ac365a60b9589fa190d68ff0eefb00b6e3eff5e7d4a546bffb55023505ec07ca3a126f6a48751170595f6f1076d81d4feda61067e98a4ea
|
@@ -254,7 +254,8 @@ module Google
|
|
254
254
|
credentials: credentials,
|
255
255
|
endpoint: @config.endpoint,
|
256
256
|
channel_args: @config.channel_args,
|
257
|
-
interceptors: @config.interceptors
|
257
|
+
interceptors: @config.interceptors,
|
258
|
+
channel_pool_config: @config.channel_pool
|
258
259
|
)
|
259
260
|
end
|
260
261
|
|
@@ -3789,6 +3790,99 @@ module Google
|
|
3789
3790
|
raise ::Google::Cloud::Error.from_error(e)
|
3790
3791
|
end
|
3791
3792
|
|
3793
|
+
##
|
3794
|
+
# Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
|
3795
|
+
#
|
3796
|
+
# @overload simulate_security_health_analytics_custom_module(request, options = nil)
|
3797
|
+
# Pass arguments to `simulate_security_health_analytics_custom_module` via a request object, either of type
|
3798
|
+
# {::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest} or an equivalent Hash.
|
3799
|
+
#
|
3800
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest, ::Hash]
|
3801
|
+
# A request object representing the call parameters. Required. To specify no
|
3802
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3803
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3804
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3805
|
+
#
|
3806
|
+
# @overload simulate_security_health_analytics_custom_module(parent: nil, custom_config: nil, resource: nil)
|
3807
|
+
# Pass arguments to `simulate_security_health_analytics_custom_module` via keyword arguments. Note that at
|
3808
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3809
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3810
|
+
#
|
3811
|
+
# @param parent [::String]
|
3812
|
+
# Required. The relative resource name of the organization, project, or
|
3813
|
+
# folder. See:
|
3814
|
+
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
3815
|
+
# An example is:
|
3816
|
+
# "organizations/\\{organization_id}".
|
3817
|
+
# @param custom_config [::Google::Cloud::SecurityCenter::V1::CustomConfig, ::Hash]
|
3818
|
+
# Required. The user specified custom configuration to test.
|
3819
|
+
# @param resource [::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest::SimulatedResource, ::Hash]
|
3820
|
+
# Required. Resource data to simulate custom module against.
|
3821
|
+
#
|
3822
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3823
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleResponse]
|
3824
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3825
|
+
#
|
3826
|
+
# @return [::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleResponse]
|
3827
|
+
#
|
3828
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3829
|
+
#
|
3830
|
+
# @example Basic example
|
3831
|
+
# require "google/cloud/security_center/v1"
|
3832
|
+
#
|
3833
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3834
|
+
# client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
|
3835
|
+
#
|
3836
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3837
|
+
# request = Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest.new
|
3838
|
+
#
|
3839
|
+
# # Call the simulate_security_health_analytics_custom_module method.
|
3840
|
+
# result = client.simulate_security_health_analytics_custom_module request
|
3841
|
+
#
|
3842
|
+
# # The returned object is of type Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleResponse.
|
3843
|
+
# p result
|
3844
|
+
#
|
3845
|
+
def simulate_security_health_analytics_custom_module request, options = nil
|
3846
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3847
|
+
|
3848
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest
|
3849
|
+
|
3850
|
+
# Converts hash and nil to an options object
|
3851
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3852
|
+
|
3853
|
+
# Customize the options with defaults
|
3854
|
+
metadata = @config.rpcs.simulate_security_health_analytics_custom_module.metadata.to_h
|
3855
|
+
|
3856
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3857
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3858
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3859
|
+
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
3860
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3861
|
+
|
3862
|
+
header_params = {}
|
3863
|
+
if request.parent
|
3864
|
+
header_params["parent"] = request.parent
|
3865
|
+
end
|
3866
|
+
|
3867
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3868
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3869
|
+
|
3870
|
+
options.apply_defaults timeout: @config.rpcs.simulate_security_health_analytics_custom_module.timeout,
|
3871
|
+
metadata: metadata,
|
3872
|
+
retry_policy: @config.rpcs.simulate_security_health_analytics_custom_module.retry_policy
|
3873
|
+
|
3874
|
+
options.apply_defaults timeout: @config.timeout,
|
3875
|
+
metadata: @config.metadata,
|
3876
|
+
retry_policy: @config.retry_policy
|
3877
|
+
|
3878
|
+
@security_center_stub.call_rpc :simulate_security_health_analytics_custom_module, request, options: options do |response, operation|
|
3879
|
+
yield response, operation if block_given?
|
3880
|
+
return response
|
3881
|
+
end
|
3882
|
+
rescue ::GRPC::BadStatus => e
|
3883
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3884
|
+
end
|
3885
|
+
|
3792
3886
|
##
|
3793
3887
|
# Updates external system. This is for a given finding.
|
3794
3888
|
#
|
@@ -5015,6 +5109,14 @@ module Google
|
|
5015
5109
|
end
|
5016
5110
|
end
|
5017
5111
|
|
5112
|
+
##
|
5113
|
+
# Configuration for the channel pool
|
5114
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
5115
|
+
#
|
5116
|
+
def channel_pool
|
5117
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
5118
|
+
end
|
5119
|
+
|
5018
5120
|
##
|
5019
5121
|
# Configuration RPC class for the SecurityCenter API.
|
5020
5122
|
#
|
@@ -5194,6 +5296,11 @@ module Google
|
|
5194
5296
|
#
|
5195
5297
|
attr_reader :test_iam_permissions
|
5196
5298
|
##
|
5299
|
+
# RPC-specific configuration for `simulate_security_health_analytics_custom_module`
|
5300
|
+
# @return [::Gapic::Config::Method]
|
5301
|
+
#
|
5302
|
+
attr_reader :simulate_security_health_analytics_custom_module
|
5303
|
+
##
|
5197
5304
|
# RPC-specific configuration for `update_external_system`
|
5198
5305
|
# @return [::Gapic::Config::Method]
|
5199
5306
|
#
|
@@ -5320,6 +5427,8 @@ module Google
|
|
5320
5427
|
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
5321
5428
|
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
5322
5429
|
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
5430
|
+
simulate_security_health_analytics_custom_module_config = parent_rpcs.simulate_security_health_analytics_custom_module if parent_rpcs.respond_to? :simulate_security_health_analytics_custom_module
|
5431
|
+
@simulate_security_health_analytics_custom_module = ::Gapic::Config::Method.new simulate_security_health_analytics_custom_module_config
|
5323
5432
|
update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
|
5324
5433
|
@update_external_system = ::Gapic::Config::Method.new update_external_system_config
|
5325
5434
|
update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|