Reference documentation and code samples for the Security Command Center Management V1 API class Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.
Client for the SecurityCenterManagement service.
Service describing handlers for resources
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the SecurityCenterManagement Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all SecurityCenterManagement clients ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the SecurityCenterManagement Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_event_threat_detection_custom_module
def create_event_threat_detection_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule
def create_event_threat_detection_custom_module(parent: nil, event_threat_detection_custom_module: nil, validate_only: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule
Creates a resident Event Threat Detection custom module at the scope of the given organization, folder, or project, and creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.
def create_event_threat_detection_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule
create_event_threat_detection_custom_module
via a request object, either of type
CreateEventThreatDetectionCustomModuleRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::CreateEventThreatDetectionCustomModuleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_event_threat_detection_custom_module(parent: nil, event_threat_detection_custom_module: nil, validate_only: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule
create_event_threat_detection_custom_module
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) —
Required. Name of parent for the module, in one of the following formats:
organizations/{organization}/locations/{location}
folders/{folder}/locations/{location}
projects/{project}/locations/{location}
- event_threat_detection_custom_module (::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule, ::Hash) — Required. The module to create. The EventThreatDetectionCustomModule.name field is ignored; Security Command Center generates the name.
-
validate_only (::Boolean) — Optional. When set to
true
, the request will be validated (including IAM checks), but no module will be created. AnOK
response indicates that the request is valid, while an error response indicates that the request is invalid.If the request is valid, a subsequent request to create the module could still fail for one of the following reasons:
- The state of your cloud resources changed; for example, you lost a required IAM permission
- An error occurred during creation of the module
Defaults to
false
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::CreateEventThreatDetectionCustomModuleRequest.new # Call the create_event_threat_detection_custom_module method. result = client.create_event_threat_detection_custom_module request # The returned object is of type Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule. p result
#create_security_health_analytics_custom_module
def create_security_health_analytics_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule
def create_security_health_analytics_custom_module(parent: nil, security_health_analytics_custom_module: nil, validate_only: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule
Creates a resident
SecurityHealthAnalyticsCustomModule
at the scope of the given organization, folder, or project, and also
creates inherited SecurityHealthAnalyticsCustomModule
resources for all
folders and projects that are descendants of the given parent. These
modules are enabled by default.
def create_security_health_analytics_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule
create_security_health_analytics_custom_module
via a request object, either of type
CreateSecurityHealthAnalyticsCustomModuleRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::CreateSecurityHealthAnalyticsCustomModuleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_security_health_analytics_custom_module(parent: nil, security_health_analytics_custom_module: nil, validate_only: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule
create_security_health_analytics_custom_module
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) —
Required. Name of the parent organization, folder, or project of the module, in one of the following formats:
organizations/{organization}/locations/{location}
folders/{folder}/locations/{location}
projects/{project}/locations/{location}
- security_health_analytics_custom_module (::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule, ::Hash) — Required. The resource being created.
-
validate_only (::Boolean) — Optional. When set to
true
, the request will be validated (including IAM checks), but no module will be created. AnOK
response indicates that the request is valid, while an error response indicates that the request is invalid.If the request is valid, a subsequent request to create the module could still fail for one of the following reasons:
- The state of your cloud resources changed; for example, you lost a required IAM permission
- An error occurred during creation of the module
Defaults to
false
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::CreateSecurityHealthAnalyticsCustomModuleRequest.new # Call the create_security_health_analytics_custom_module method. result = client.create_security_health_analytics_custom_module request # The returned object is of type Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule. p result
#delete_event_threat_detection_custom_module
def delete_event_threat_detection_custom_module(request, options = nil) -> ::Google::Protobuf::Empty
def delete_event_threat_detection_custom_module(name: nil, validate_only: nil) -> ::Google::Protobuf::Empty
Deletes the specified Event Threat Detection custom module and all of its descendants in the resource hierarchy. This method is only supported for resident custom modules.
def delete_event_threat_detection_custom_module(request, options = nil) -> ::Google::Protobuf::Empty
delete_event_threat_detection_custom_module
via a request object, either of type
DeleteEventThreatDetectionCustomModuleRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::DeleteEventThreatDetectionCustomModuleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_event_threat_detection_custom_module(name: nil, validate_only: nil) -> ::Google::Protobuf::Empty
delete_event_threat_detection_custom_module
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) —
Required. The resource name of the Event Threat Detection custom module, in one of the following formats:
organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}
folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}
projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}
-
validate_only (::Boolean) — Optional. When set to
true
, the request will be validated (including IAM checks), but no module will be deleted. AnOK
response indicates that the request is valid, while an error response indicates that the request is invalid.If the request is valid, a subsequent request to delete the module could still fail for one of the following reasons:
- The state of your cloud resources changed; for example, you lost a required IAM permission
- An error occurred during creation of the module
Defaults to
false
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::DeleteEventThreatDetectionCustomModuleRequest.new # Call the delete_event_threat_detection_custom_module method. result = client.delete_event_threat_detection_custom_module request # The returned object is of type Google::Protobuf::Empty. p result
#delete_security_health_analytics_custom_module
def delete_security_health_analytics_custom_module(request, options = nil) -> ::Google::Protobuf::Empty
def delete_security_health_analytics_custom_module(name: nil, validate_only: nil) -> ::Google::Protobuf::Empty
Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the resource hierarchy. This method is only supported for resident custom modules.
def delete_security_health_analytics_custom_module(request, options = nil) -> ::Google::Protobuf::Empty
delete_security_health_analytics_custom_module
via a request object, either of type
DeleteSecurityHealthAnalyticsCustomModuleRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::DeleteSecurityHealthAnalyticsCustomModuleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_security_health_analytics_custom_module(name: nil, validate_only: nil) -> ::Google::Protobuf::Empty
delete_security_health_analytics_custom_module
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) —
Required. The resource name of the SHA custom module, in one of the following formats:
organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}
folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}
projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}
-
validate_only (::Boolean) — Optional. When set to
true
, the request will be validated (including IAM checks), but no module will be deleted. AnOK
response indicates that the request is valid, while an error response indicates that the request is invalid.If the request is valid, a subsequent request to delete the module could still fail for one of the following reasons:
- The state of your cloud resources changed; for example, you lost a required IAM permission
- An error occurred during deletion of the module
Defaults to
false
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::DeleteSecurityHealthAnalyticsCustomModuleRequest.new # Call the delete_security_health_analytics_custom_module method. result = client.delete_security_health_analytics_custom_module request # The returned object is of type Google::Protobuf::Empty. p result
#get_effective_event_threat_detection_custom_module
def get_effective_event_threat_detection_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EffectiveEventThreatDetectionCustomModule
def get_effective_event_threat_detection_custom_module(name: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EffectiveEventThreatDetectionCustomModule
Gets the effective Event Threat Detection custom module at the given level.
The difference between an
EffectiveEventThreatDetectionCustomModule
and an
EventThreatDetectionCustomModule
is that the fields for an EffectiveEventThreatDetectionCustomModule
are
computed from ancestors if needed. For example, the enablement state for an
EventThreatDetectionCustomModule
can be ENABLED
, DISABLED
, or
INHERITED
. In contrast, the enablement state for an
EffectiveEventThreatDetectionCustomModule
is always computed as ENABLED
or DISABLED
.
def get_effective_event_threat_detection_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EffectiveEventThreatDetectionCustomModule
get_effective_event_threat_detection_custom_module
via a request object, either of type
GetEffectiveEventThreatDetectionCustomModuleRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::GetEffectiveEventThreatDetectionCustomModuleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_effective_event_threat_detection_custom_module(name: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EffectiveEventThreatDetectionCustomModule
get_effective_event_threat_detection_custom_module
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) —
Required. The resource name of the Event Threat Detection custom module, in one of the following formats:
organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}
folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}
projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::SecurityCenterManagement::V1::EffectiveEventThreatDetectionCustomModule)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::GetEffectiveEventThreatDetectionCustomModuleRequest.new # Call the get_effective_event_threat_detection_custom_module method. result = client.get_effective_event_threat_detection_custom_module request # The returned object is of type Google::Cloud::SecurityCenterManagement::V1::EffectiveEventThreatDetectionCustomModule. p result
#get_effective_security_health_analytics_custom_module
def get_effective_security_health_analytics_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EffectiveSecurityHealthAnalyticsCustomModule
def get_effective_security_health_analytics_custom_module(name: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EffectiveSecurityHealthAnalyticsCustomModule
Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
def get_effective_security_health_analytics_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EffectiveSecurityHealthAnalyticsCustomModule
get_effective_security_health_analytics_custom_module
via a request object, either of type
GetEffectiveSecurityHealthAnalyticsCustomModuleRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_effective_security_health_analytics_custom_module(name: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EffectiveSecurityHealthAnalyticsCustomModule
get_effective_security_health_analytics_custom_module
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) —
Required. The full resource name of the custom module, specified in one of the following formats:
organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{custom_module}
folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{custom_module}
projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{custom_module}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::SecurityCenterManagement::V1::EffectiveSecurityHealthAnalyticsCustomModule)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.new # Call the get_effective_security_health_analytics_custom_module method. result = client.get_effective_security_health_analytics_custom_module request # The returned object is of type Google::Cloud::SecurityCenterManagement::V1::EffectiveSecurityHealthAnalyticsCustomModule. p result
#get_event_threat_detection_custom_module
def get_event_threat_detection_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule
def get_event_threat_detection_custom_module(name: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule
Gets an Event Threat Detection custom module.
def get_event_threat_detection_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule
get_event_threat_detection_custom_module
via a request object, either of type
GetEventThreatDetectionCustomModuleRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::GetEventThreatDetectionCustomModuleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_event_threat_detection_custom_module(name: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule
get_event_threat_detection_custom_module
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) —
Required. The resource name of the Event Threat Detection custom module, in one of the following formats:
organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}
folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}
projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::GetEventThreatDetectionCustomModuleRequest.new # Call the get_event_threat_detection_custom_module method. result = client.get_event_threat_detection_custom_module request # The returned object is of type Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule. p result
#get_security_center_service
def get_security_center_service(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService
def get_security_center_service(name: nil, show_eligible_modules_only: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService
Gets service settings for the specified Security Command Center service.
def get_security_center_service(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService
get_security_center_service
via a request object, either of type
GetSecurityCenterServiceRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::GetSecurityCenterServiceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_security_center_service(name: nil, show_eligible_modules_only: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService
get_security_center_service
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) —
Required. The Security Command Center service to retrieve, in one of the following formats:
- organizations/{organization}/locations/{location}/securityCenterServices/{service}
- folders/{folder}/locations/{location}/securityCenterServices/{service}
- projects/{project}/locations/{location}/securityCenterServices/{service}
The following values are valid for
{service}
:container-threat-detection
event-threat-detection
security-health-analytics
vm-threat-detection
web-security-scanner
-
show_eligible_modules_only (::Boolean) — Set to
true
to show only modules that are in scope. By default, all modules are shown.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::GetSecurityCenterServiceRequest.new # Call the get_security_center_service method. result = client.get_security_center_service request # The returned object is of type Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService. p result
#get_security_health_analytics_custom_module
def get_security_health_analytics_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule
def get_security_health_analytics_custom_module(name: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule
Retrieves a SecurityHealthAnalyticsCustomModule.
def get_security_health_analytics_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule
get_security_health_analytics_custom_module
via a request object, either of type
GetSecurityHealthAnalyticsCustomModuleRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::GetSecurityHealthAnalyticsCustomModuleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_security_health_analytics_custom_module(name: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule
get_security_health_analytics_custom_module
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Name of the resource, in the format
projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::GetSecurityHealthAnalyticsCustomModuleRequest.new # Call the get_security_health_analytics_custom_module method. result = client.get_security_health_analytics_custom_module request # The returned object is of type Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule. p result
#initialize
def initialize() { |config| ... } -> Client
Create a new SecurityCenterManagement client object.
- (config) — Configure the SecurityCenterManagement client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a client using a custom configuration client = ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new do |config| config.timeout = 10.0 end
#list_descendant_event_threat_detection_custom_modules
def list_descendant_event_threat_detection_custom_modules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule>
def list_descendant_event_threat_detection_custom_modules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule>
Lists all resident Event Threat Detection custom modules for the given organization, folder, or project and its descendants.
def list_descendant_event_threat_detection_custom_modules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule>
list_descendant_event_threat_detection_custom_modules
via a request object, either of type
ListDescendantEventThreatDetectionCustomModulesRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::ListDescendantEventThreatDetectionCustomModulesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_descendant_event_threat_detection_custom_modules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule>
list_descendant_event_threat_detection_custom_modules
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) —
Required. Name of parent to list custom modules, in one of the following formats:
organizations/{organization}/locations/{location}
folders/{folder}/locations/{location}
projects/{project}/locations/{location}
- page_size (::Integer) — Optional. The maximum number of modules to return. The service may return fewer than this value. If unspecified, at most 10 configs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — Optional. A pagination token returned from a previous request. Provide this
token to retrieve the next page of results.
When paginating, the rest of the request must match the request that generated the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::ListDescendantEventThreatDetectionCustomModulesRequest.new # Call the list_descendant_event_threat_detection_custom_modules method. result = client.list_descendant_event_threat_detection_custom_modules request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule. p item end
#list_descendant_security_health_analytics_custom_modules
def list_descendant_security_health_analytics_custom_modules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule>
def list_descendant_security_health_analytics_custom_modules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule>
Returns a list of all resident SecurityHealthAnalyticsCustomModule resources under the given organization, folder, or project and all of its descendants.
def list_descendant_security_health_analytics_custom_modules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule>
list_descendant_security_health_analytics_custom_modules
via a request object, either of type
ListDescendantSecurityHealthAnalyticsCustomModulesRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_descendant_security_health_analytics_custom_modules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule>
list_descendant_security_health_analytics_custom_modules
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) —
Required. Name of the parent organization, folder, or project in which to list custom modules, in one of the following formats:
organizations/{organization}/locations/{location}
folders/{folder}/locations/{location}
projects/{project}/locations/{location}
- page_size (::Integer) — Optional. The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.
-
page_token (::String) — Optional. A pagination token returned from a previous request. Provide this
token to retrieve the next page of results.
When paginating, the rest of the request must match the request that generated the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest.new # Call the list_descendant_security_health_analytics_custom_modules method. result = client.list_descendant_security_health_analytics_custom_modules request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule. p item end
#list_effective_event_threat_detection_custom_modules
def list_effective_event_threat_detection_custom_modules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EffectiveEventThreatDetectionCustomModule>
def list_effective_event_threat_detection_custom_modules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EffectiveEventThreatDetectionCustomModule>
Lists all effective Event Threat Detection custom modules for the given parent. This includes resident modules defined at the scope of the parent along with modules inherited from its ancestors.
def list_effective_event_threat_detection_custom_modules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EffectiveEventThreatDetectionCustomModule>
list_effective_event_threat_detection_custom_modules
via a request object, either of type
ListEffectiveEventThreatDetectionCustomModulesRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::ListEffectiveEventThreatDetectionCustomModulesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_effective_event_threat_detection_custom_modules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EffectiveEventThreatDetectionCustomModule>
list_effective_event_threat_detection_custom_modules
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) —
Required. Name of parent to list effective custom modules, in one of the following formats:
organizations/{organization}/locations/{location}
folders/{folder}/locations/{location}
projects/{project}/locations/{location}
- page_size (::Integer) — Optional. The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.
-
page_token (::String) — Optional. A pagination token returned from a previous request. Provide this
token to retrieve the next page of results.
When paginating, the rest of the request must match the request that generated the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EffectiveEventThreatDetectionCustomModule>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EffectiveEventThreatDetectionCustomModule>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::ListEffectiveEventThreatDetectionCustomModulesRequest.new # Call the list_effective_event_threat_detection_custom_modules method. result = client.list_effective_event_threat_detection_custom_modules request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::SecurityCenterManagement::V1::EffectiveEventThreatDetectionCustomModule. p item end
#list_effective_security_health_analytics_custom_modules
def list_effective_security_health_analytics_custom_modules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EffectiveSecurityHealthAnalyticsCustomModule>
def list_effective_security_health_analytics_custom_modules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EffectiveSecurityHealthAnalyticsCustomModule>
Returns a list of all EffectiveSecurityHealthAnalyticsCustomModule resources for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from ancestor organizations, folders, and projects (no descendants).
def list_effective_security_health_analytics_custom_modules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EffectiveSecurityHealthAnalyticsCustomModule>
list_effective_security_health_analytics_custom_modules
via a request object, either of type
ListEffectiveSecurityHealthAnalyticsCustomModulesRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_effective_security_health_analytics_custom_modules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EffectiveSecurityHealthAnalyticsCustomModule>
list_effective_security_health_analytics_custom_modules
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) —
Required. Name of parent to list effective custom modules, in one of the following formats:
organizations/{organization}/locations/{location}
folders/{folder}/locations/{location}
projects/{project}/locations/{location}
- page_size (::Integer) — Optional. The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.
-
page_token (::String) — Optional. A pagination token returned from a previous request. Provide this
token to retrieve the next page of results.
When paginating, the rest of the request must match the request that generated the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EffectiveSecurityHealthAnalyticsCustomModule>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EffectiveSecurityHealthAnalyticsCustomModule>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.new # Call the list_effective_security_health_analytics_custom_modules method. result = client.list_effective_security_health_analytics_custom_modules request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::SecurityCenterManagement::V1::EffectiveSecurityHealthAnalyticsCustomModule. p item end
#list_event_threat_detection_custom_modules
def list_event_threat_detection_custom_modules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule>
def list_event_threat_detection_custom_modules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule>
Lists all Event Threat Detection custom modules for the given organization, folder, or project. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.
def list_event_threat_detection_custom_modules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule>
list_event_threat_detection_custom_modules
via a request object, either of type
ListEventThreatDetectionCustomModulesRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::ListEventThreatDetectionCustomModulesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_event_threat_detection_custom_modules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule>
list_event_threat_detection_custom_modules
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) —
Required. Name of parent to list custom modules, in one of the following formats:
organizations/{organization}/locations/{location}
folders/{folder}/locations/{location}
projects/{project}/locations/{location}
- page_size (::Integer) — Optional. The maximum number of modules to return. The service may return fewer than this value. If unspecified, at most 10 modules will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — Optional. A pagination token returned from a previous request. Provide this
token to retrieve the next page of results.
When paginating, the rest of the request must match the request that generated the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::ListEventThreatDetectionCustomModulesRequest.new # Call the list_event_threat_detection_custom_modules method. result = client.list_event_threat_detection_custom_modules request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule. p item end
#list_security_center_services
def list_security_center_services(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService>
def list_security_center_services(parent: nil, page_size: nil, page_token: nil, show_eligible_modules_only: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService>
Returns a list of all Security Command Center services for the given parent.
def list_security_center_services(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService>
list_security_center_services
via a request object, either of type
ListSecurityCenterServicesRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::ListSecurityCenterServicesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_security_center_services(parent: nil, page_size: nil, page_token: nil, show_eligible_modules_only: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService>
list_security_center_services
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) —
Required. The name of the parent to list Security Command Center services, in one of the following formats:
organizations/{organization}/locations/{location}
folders/{folder}/locations/{location}
projects/{project}/locations/{location}
- page_size (::Integer) — Optional. The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.
-
page_token (::String) — Optional. A pagination token returned from a previous request. Provide this
token to retrieve the next page of results.
When paginating, the rest of the request must match the request that generated the page token.
- show_eligible_modules_only (::Boolean) — Flag that, when set, is used to filter the module settings that are shown. The default setting is that all modules are shown.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::ListSecurityCenterServicesRequest.new # Call the list_security_center_services method. result = client.list_security_center_services request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService. p item end
#list_security_health_analytics_custom_modules
def list_security_health_analytics_custom_modules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule>
def list_security_health_analytics_custom_modules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule>
Returns a list of all SecurityHealthAnalyticsCustomModule resources for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from ancestor organizations, folders, and projects (no descendants).
def list_security_health_analytics_custom_modules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule>
list_security_health_analytics_custom_modules
via a request object, either of type
ListSecurityHealthAnalyticsCustomModulesRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::ListSecurityHealthAnalyticsCustomModulesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_security_health_analytics_custom_modules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule>
list_security_health_analytics_custom_modules
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) —
Required. Name of the parent organization, folder, or project in which to list custom modules, in one of the following formats:
organizations/{organization}/locations/{location}
folders/{folder}/locations/{location}
projects/{project}/locations/{location}
- page_size (::Integer) — Optional. The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.
-
page_token (::String) — Optional. A pagination token returned from a previous request. Provide this
token to retrieve the next page of results.
When paginating, the rest of the request must match the request that generated the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::ListSecurityHealthAnalyticsCustomModulesRequest.new # Call the list_security_health_analytics_custom_modules method. result = client.list_security_health_analytics_custom_modules request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule. p item end
#location_client
def location_client() -> Google::Cloud::Location::Locations::Client
Get the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Client)
#logger
def logger() -> Logger
The logger used for request/response debug logging.
- (Logger)
#simulate_security_health_analytics_custom_module
def simulate_security_health_analytics_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SimulateSecurityHealthAnalyticsCustomModuleResponse
def simulate_security_health_analytics_custom_module(parent: nil, custom_config: nil, resource: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SimulateSecurityHealthAnalyticsCustomModuleResponse
Simulates the result of using a SecurityHealthAnalyticsCustomModule to check a resource.
def simulate_security_health_analytics_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SimulateSecurityHealthAnalyticsCustomModuleResponse
simulate_security_health_analytics_custom_module
via a request object, either of type
Google::Cloud::SecurityCenterManagement::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def simulate_security_health_analytics_custom_module(parent: nil, custom_config: nil, resource: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SimulateSecurityHealthAnalyticsCustomModuleResponse
simulate_security_health_analytics_custom_module
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The relative resource name of the organization, project, or
folder. For more information about relative resource names, see AIP-122:
Resource names. Example:
organizations/{organization_id}
. - custom_config (::Google::Cloud::SecurityCenterManagement::V1::CustomConfig, ::Hash) — Required. The custom configuration that you need to test.
- resource (::Google::Cloud::SecurityCenterManagement::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest::SimulatedResource, ::Hash) — Required. Resource data to simulate custom module against.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::SecurityCenterManagement::V1::SimulateSecurityHealthAnalyticsCustomModuleResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest.new # Call the simulate_security_health_analytics_custom_module method. result = client.simulate_security_health_analytics_custom_module request # The returned object is of type Google::Cloud::SecurityCenterManagement::V1::SimulateSecurityHealthAnalyticsCustomModuleResponse. p result
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_event_threat_detection_custom_module
def update_event_threat_detection_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule
def update_event_threat_detection_custom_module(update_mask: nil, event_threat_detection_custom_module: nil, validate_only: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule
Updates the Event Threat Detection custom module with the given name based on the given update mask. Updating the enablement state is supported for both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name or configuration of a module is supported for resident modules only. The type of a module cannot be changed.
def update_event_threat_detection_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule
update_event_threat_detection_custom_module
via a request object, either of type
UpdateEventThreatDetectionCustomModuleRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::UpdateEventThreatDetectionCustomModuleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_event_threat_detection_custom_module(update_mask: nil, event_threat_detection_custom_module: nil, validate_only: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule
update_event_threat_detection_custom_module
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The fields to update. If omitted, then all fields are updated.
- event_threat_detection_custom_module (::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule, ::Hash) — Required. The module being updated.
-
validate_only (::Boolean) — Optional. When set to
true
, the request will be validated (including IAM checks), but no module will be updated. AnOK
response indicates that the request is valid, while an error response indicates that the request is invalid.If the request is valid, a subsequent request to update the module could still fail for one of the following reasons:
- The state of your cloud resources changed; for example, you lost a required IAM permission
- An error occurred during creation of the module
Defaults to
false
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::UpdateEventThreatDetectionCustomModuleRequest.new # Call the update_event_threat_detection_custom_module method. result = client.update_event_threat_detection_custom_module request # The returned object is of type Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule. p result
#update_security_center_service
def update_security_center_service(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService
def update_security_center_service(security_center_service: nil, update_mask: nil, validate_only: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService
Updates a Security Command Center service using the given update mask.
def update_security_center_service(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService
update_security_center_service
via a request object, either of type
UpdateSecurityCenterServiceRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::UpdateSecurityCenterServiceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_security_center_service(security_center_service: nil, update_mask: nil, validate_only: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService
update_security_center_service
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- security_center_service (::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService, ::Hash) — Required. The updated service.
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The fields to update. Accepts the following values:
intended_enablement_state
modules
If omitted, then all eligible fields are updated.
-
validate_only (::Boolean) — Optional. When set to
true
, the request will be validated (including IAM checks), but no service will be updated. AnOK
response indicates that the request is valid, while an error response indicates that the request is invalid.If the request is valid, a subsequent request to update the service could still fail for one of the following reasons:
- The state of your cloud resources changed; for example, you lost a required IAM permission
- An error occurred during update of the service
Defaults to
false
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::UpdateSecurityCenterServiceRequest.new # Call the update_security_center_service method. result = client.update_security_center_service request # The returned object is of type Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService. p result
#update_security_health_analytics_custom_module
def update_security_health_analytics_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule
def update_security_health_analytics_custom_module(update_mask: nil, security_health_analytics_custom_module: nil, validate_only: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule
Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name and custom configuration of a module is supported on resident modules only.
def update_security_health_analytics_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule
update_security_health_analytics_custom_module
via a request object, either of type
UpdateSecurityHealthAnalyticsCustomModuleRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::UpdateSecurityHealthAnalyticsCustomModuleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_security_health_analytics_custom_module(update_mask: nil, security_health_analytics_custom_module: nil, validate_only: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule
update_security_health_analytics_custom_module
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The fields to update. The following values are valid:
custom_config
enablement_state
If you omit this field or set it to the wildcard value
*
, then all eligible fields are updated. - security_health_analytics_custom_module (::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule, ::Hash) — Required. The resource being updated.
-
validate_only (::Boolean) — Optional. When set to
true
, the request will be validated (including IAM checks), but no module will be updated. AnOK
response indicates that the request is valid, while an error response indicates that the request is invalid.If the request is valid, a subsequent request to update the module could still fail for one of the following reasons:
- The state of your cloud resources changed; for example, you lost a required IAM permission
- An error occurred during creation of the module
Defaults to
false
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::UpdateSecurityHealthAnalyticsCustomModuleRequest.new # Call the update_security_health_analytics_custom_module method. result = client.update_security_health_analytics_custom_module request # The returned object is of type Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule. p result
#validate_event_threat_detection_custom_module
def validate_event_threat_detection_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::ValidateEventThreatDetectionCustomModuleResponse
def validate_event_threat_detection_custom_module(parent: nil, raw_text: nil, type: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::ValidateEventThreatDetectionCustomModuleResponse
Validates the given Event Threat Detection custom module.
def validate_event_threat_detection_custom_module(request, options = nil) -> ::Google::Cloud::SecurityCenterManagement::V1::ValidateEventThreatDetectionCustomModuleResponse
validate_event_threat_detection_custom_module
via a request object, either of type
ValidateEventThreatDetectionCustomModuleRequest or an equivalent Hash.
- request (::Google::Cloud::SecurityCenterManagement::V1::ValidateEventThreatDetectionCustomModuleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def validate_event_threat_detection_custom_module(parent: nil, raw_text: nil, type: nil) -> ::Google::Cloud::SecurityCenterManagement::V1::ValidateEventThreatDetectionCustomModuleResponse
validate_event_threat_detection_custom_module
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) —
Required. Resource name of the parent to validate the custom modules under, in one of the following formats:
organizations/{organization}/locations/{location}
- raw_text (::String) — Required. The raw text of the module's contents. Used to generate error messages.
-
type (::String) — Required. The type of the module. For example,
CONFIGURABLE_BAD_IP
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::SecurityCenterManagement::V1::ValidateEventThreatDetectionCustomModuleResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/security_center_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::SecurityCenterManagement::V1::ValidateEventThreatDetectionCustomModuleRequest.new # Call the validate_event_threat_detection_custom_module method. result = client.validate_event_threat_detection_custom_module request # The returned object is of type Google::Cloud::SecurityCenterManagement::V1::ValidateEventThreatDetectionCustomModuleResponse. p result