Service Client: Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::SecurityCenterManagementClient

Client stub representing the remote SecurityCenterManagement gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to securitycentermanagement.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement - Compiled Protocol Buffers messages for google/cloud/securitycentermanagement/v1/security_center_management.proto

SYNOPSIS

use Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement;

my $msg = Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::SecurityCenterService->new({
    name => $name,
    intended_enablement_state => $intended_enablement_state,
    effective_enablement_state => $effective_enablement_state,
    modules => $modules,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::SecurityCenterService->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/securitycentermanagement/v1/security_center_management.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::SecurityCenterService

Represents a particular Security Command Center service. This includes settings information such as top-level enablement in addition to individual module settings. Service settings can be configured at the organization, folder, or project level. Service settings at the organization or folder level are inherited by those in descendant folders and projects.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The name of the service, 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`

  • $msg->intended_enablement_state() / $msg->intended_enablement_state($value)

    Type: Enum (Google::Cloud::Securitycentermanagement::V1::SecurityCenterService::EnablementState)

    Optional. The intended enablement state for the service at its level of the resource hierarchy. A `DISABLED` state will override all module enablement states to `DISABLED`.

  • $msg->effective_enablement_state() / $msg->effective_enablement_state($value)

    Type: Enum (Google::Cloud::Securitycentermanagement::V1::SecurityCenterService::EnablementState)

    Output only. The effective enablement state for the service at its level of the resource hierarchy. If the intended state is set to `INHERITED`, the effective state will be inherited from the enablement state of an ancestor. This state may differ from the intended enablement state due to billing eligibility or onboarding status.

  • $msg->modules() / $msg->modules($value)

    Type: Message (Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::SecurityCenterService::ModulesEntry)

    Optional. The module configurations, including the enablement state for the service's modules. The absence of a module in the map implies that its configuration is inherited from its parents.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the service was last updated. This could be due to an explicit user update or due to a side effect of another system change, such as billing subscription expiry.

  • $msg->service_config() / $msg->service_config($value)

    Type: Message (Google::Protobuf::Struct::Struct)

    Optional. Additional service-specific configuration. Not all services will utilize this field.

Enum: SecurityCenterService::EnablementState

  • ENABLEMENT_STATE_UNSPECIFIED => 0

  • INHERITED => 1

  • ENABLED => 2

  • DISABLED => 3

  • INGEST_ONLY => 4

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::EffectiveSecurityHealthAnalyticsCustomModule

The representation of a Security Health Analytics custom module at a specified level of the resource hierarchy: organization, folder, or project. If a custom module is inherited from an ancestor organization or folder, then the enablement state is set to the value that is effective in the parent, not to `INHERITED`. For example, if the module is enabled in an organization or folder, then the effective enablement state for the module is `ENABLED` in all descendant folders or projects.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The full resource name of the custom module, in one of the following formats:

    * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{custom_module}` * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{custom_module}` * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{custom_module}`

  • $msg->custom_config() / $msg->custom_config($value)

    Type: Message (Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::CustomConfig)

    Output only. The user-specified configuration for the module.

  • $msg->enablement_state() / $msg->enablement_state($value)

    Type: Enum (Google::Cloud::Securitycentermanagement::V1::EffectiveSecurityHealthAnalyticsCustomModule::EnablementState)

    Output only. The effective enablement state for the module at the given level of the hierarchy.

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Output only. The display name for the custom module. The name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.

Enum: EffectiveSecurityHealthAnalyticsCustomModule::EnablementState

  • ENABLEMENT_STATE_UNSPECIFIED => 0

  • ENABLED => 1

  • DISABLED => 2

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest

Request message for [SecurityCenterManagement.ListEffectiveSecurityHealthAnalyticsCustomModules][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListEffectiveSecurityHealthAnalyticsCustomModules].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: 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}`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: 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.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse

Response message for [SecurityCenterManagement.ListEffectiveSecurityHealthAnalyticsCustomModules][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListEffectiveSecurityHealthAnalyticsCustomModules].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest

Request message for [SecurityCenterManagement.GetEffectiveSecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetEffectiveSecurityHealthAnalyticsCustomModule].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: 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}`

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::SecurityHealthAnalyticsCustomModule

Represents an instance of a Security Health Analytics custom module, including its full module name, display name, enablement state, and last updated time. You can create a custom module at the organization, folder, or project level. Custom modules that you create at the organization or folder level are inherited by the descendant folders and projects.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The full resource name of the 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}`

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Optional. The display name of the Security Health Analytics custom module. This display name becomes the finding category for all findings that are returned by this custom module. The display name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.

  • $msg->enablement_state() / $msg->enablement_state($value)

    Type: Enum (Google::Cloud::Securitycentermanagement::V1::SecurityHealthAnalyticsCustomModule::EnablementState)

    Optional. The enablement state of the custom module.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which the custom module was last updated.

  • $msg->last_editor() / $msg->last_editor($value)

    Type: String

    Output only. The editor that last updated the custom module.

  • $msg->ancestor_module() / $msg->ancestor_module($value)

    Type: String

    Output only. Specifies the organization or folder from which the custom module is inherited. If empty, indicates that the custom module was created in the organization, folder, or project in which you are viewing the custom module.

  • $msg->custom_config() / $msg->custom_config($value)

    Type: Message (Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::CustomConfig)

    Optional. The user-specified custom configuration for the module.

Enum: SecurityHealthAnalyticsCustomModule::EnablementState

  • ENABLEMENT_STATE_UNSPECIFIED => 0

  • ENABLED => 1

  • DISABLED => 2

  • INHERITED => 3

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::CustomConfig

Defines the properties in a custom module configuration for Security Health Analytics. Use the custom module configuration to create custom detectors that generate custom findings for resources that you specify.

Inherits from Protobuf::Message.

Accessors

  • $msg->predicate() / $msg->predicate($value)

    Type: Message (Google::Type::Expr::Expr)

    Optional. The Common Expression Language (CEL) expression to evaluate to produce findings. When the expression evaluates to `true` against a resource, a finding is generated.

  • $msg->custom_output() / $msg->custom_output($value)

    Type: Message (Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::CustomConfig::CustomOutputSpec)

    Optional. Custom output properties.

  • $msg->resource_selector() / $msg->resource_selector($value)

    Type: Message (Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::CustomConfig::ResourceSelector)

    Optional. The Cloud Asset Inventory resource types that the custom module operates on. For information about resource types, see [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types). Each custom module can specify up to 5 resource types.

  • $msg->severity() / $msg->severity($value)

    Type: Enum (Google::Cloud::Securitycentermanagement::V1::CustomConfig::Severity)

    Optional. The severity to assign to findings generated by the module.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. Text that describes the vulnerability or misconfiguration that the custom module detects. This explanation is returned with each finding instance to help investigators understand the detected issue. The text must be enclosed in quotation marks.

  • $msg->recommendation() / $msg->recommendation($value)

    Type: String

    Optional. An explanation of the recommended steps that security teams can take to resolve the detected issue. This explanation is returned with each finding generated by this module.

Enum: CustomConfig::Severity

  • SEVERITY_UNSPECIFIED => 0

  • CRITICAL => 1

  • HIGH => 2

  • MEDIUM => 3

  • LOW => 4

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ListSecurityHealthAnalyticsCustomModulesRequest

Request message for [SecurityCenterManagement.ListSecurityHealthAnalyticsCustomModules][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListSecurityHealthAnalyticsCustomModules].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: 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}`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: 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.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ListSecurityHealthAnalyticsCustomModulesResponse

Response message for [SecurityCenterManagement.ListSecurityHealthAnalyticsCustomModules][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListSecurityHealthAnalyticsCustomModules].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ListDescendantSecurityHealthAnalyticsCustomModulesRequest

Request message for [SecurityCenterManagement.ListDescendantSecurityHealthAnalyticsCustomModules][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListDescendantSecurityHealthAnalyticsCustomModules].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: 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}`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: 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.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ListDescendantSecurityHealthAnalyticsCustomModulesResponse

Response message for [SecurityCenterManagement.ListDescendantSecurityHealthAnalyticsCustomModules][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListDescendantSecurityHealthAnalyticsCustomModules].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::GetSecurityHealthAnalyticsCustomModuleRequest

Request message for [SecurityCenterManagement.GetSecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetSecurityHealthAnalyticsCustomModule].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the resource, in the format `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}`.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::CreateSecurityHealthAnalyticsCustomModuleRequest

Request message for [SecurityCenterManagement.CreateSecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.CreateSecurityHealthAnalyticsCustomModule].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: 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}`

  • $msg->security_health_analytics_custom_module() / $msg->security_health_analytics_custom_module($value)

    Type: Message (Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::SecurityHealthAnalyticsCustomModule)

    Required. The resource being created.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    Optional. When set to `true`, the request will be validated (including IAM checks), but no module will be created. An `OK` 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`.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::UpdateSecurityHealthAnalyticsCustomModuleRequest

Request message for [SecurityCenterManagement.UpdateSecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.UpdateSecurityHealthAnalyticsCustomModule].

Inherits from Protobuf::Message.

Accessors

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    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.

  • $msg->security_health_analytics_custom_module() / $msg->security_health_analytics_custom_module($value)

    Type: Message (Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::SecurityHealthAnalyticsCustomModule)

    Required. The resource being updated.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    Optional. When set to `true`, the request will be validated (including IAM checks), but no module will be updated. An `OK` 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`.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::DeleteSecurityHealthAnalyticsCustomModuleRequest

Request message for [SecurityCenterManagement.DeleteSecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.DeleteSecurityHealthAnalyticsCustomModule].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: 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}`
  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    Optional. When set to `true`, the request will be validated (including IAM checks), but no module will be deleted. An `OK` 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`.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::SimulateSecurityHealthAnalyticsCustomModuleRequest

Request message for [SecurityCenterManagement.SimulateSecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.SimulateSecurityHealthAnalyticsCustomModule]. The maximum size of the request is 4 MiB.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::SimulatedFinding

The minimum set of fields needed to represent a simulated finding from a Security Health Analytics custom module.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The [relative resource name](https://google.aip.dev/122) of the finding, in one of the following formats:

    * `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}` * `folders/{folder_id}/sources/{source_id}/findings/{finding_id}` * `projects/{project_id}/sources/{source_id}/findings/{finding_id}`

  • $msg->parent() / $msg->parent($value)

    Type: String

    The [relative resource name](https://google.aip.dev/122) of the source the finding belongs to. For example, `organizations/{organization_id}/sources/{source_id}`. This field is immutable after creation time.

  • $msg->resource_name() / $msg->resource_name($value)

    Type: String

    For findings on Google Cloud resources, the [full resource name](https://google.aip.dev/122#full-resource-names) of the Google Cloud resource this finding is for. When the finding is for a non-Google Cloud resource, the value can be a customer or partner defined string. This field is immutable after creation time.

  • $msg->category() / $msg->category($value)

    Type: String

    The additional taxonomy group within findings from a given source. For example, `XSS_FLASH_INJECTION`. This field is immutable after creation time.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Securitycentermanagement::V1::SimulatedFinding::State)

    Output only. The state of the finding.

  • $msg->source_properties() / $msg->source_properties($value)

    Type: Message (Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::SimulatedFinding::SourcePropertiesEntry)

    Source-specific properties. These properties are managed by the source that writes the finding. The key names must be between 1 and 255 characters; they must start with a letter and contain alphanumeric characters or underscores only.

  • $msg->event_time() / $msg->event_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. If the finding is later resolved, then this time reflects when the finding was resolved.

    For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector.

    The event time must not be set to a value greater than the current timestamp.

  • $msg->severity() / $msg->severity($value)

    Type: Enum (Google::Cloud::Securitycentermanagement::V1::SimulatedFinding::Severity)

    The severity of the finding. This field is managed by the source that writes the finding.

  • $msg->finding_class() / $msg->finding_class($value)

    Type: Enum (Google::Cloud::Securitycentermanagement::V1::SimulatedFinding::FindingClass)

    The class of the finding.

Enum: SimulatedFinding::State

  • STATE_UNSPECIFIED => 0

  • ACTIVE => 1

  • INACTIVE => 2

Enum: SimulatedFinding::Severity

  • SEVERITY_UNSPECIFIED => 0

  • CRITICAL => 1

  • HIGH => 2

  • MEDIUM => 3

  • LOW => 4

Enum: SimulatedFinding::FindingClass

  • FINDING_CLASS_UNSPECIFIED => 0

  • THREAT => 1

  • VULNERABILITY => 2

  • MISCONFIGURATION => 3

  • OBSERVATION => 4

  • SCC_ERROR => 5

  • POSTURE_VIOLATION => 6

  • TOXIC_COMBINATION => 7

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::SimulateSecurityHealthAnalyticsCustomModuleResponse

Response message for [SecurityCenterManagement.SimulateSecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.SimulateSecurityHealthAnalyticsCustomModule].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::EffectiveEventThreatDetectionCustomModule

The representation of an [EventThreatDetectionCustomModule][google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule] at a given level, taking hierarchy into account and resolving various fields accordingly. For example, if the module is enabled at the ancestor level, then effective modules at all descendant levels will have their enablement state set to `ENABLED`. Similarly, if `module.inherited` is set, then the effective module's configuration will reflect the ancestor's configuration.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. 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}`

  • $msg->config() / $msg->config($value)

    Type: Message (Google::Protobuf::Struct::Struct)

    Output only. Configuration for the effective module.

  • $msg->enablement_state() / $msg->enablement_state($value)

    Type: Enum (Google::Cloud::Securitycentermanagement::V1::EffectiveEventThreatDetectionCustomModule::EnablementState)

    Output only. The effective state of enablement for the module at the given level of the hierarchy.

  • $msg->type() / $msg->type($value)

    Type: String

    Output only. Type for the module (for example, `CONFIGURABLE_BAD_IP`).

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Output only. The human-readable name of the module.

  • $msg->description() / $msg->description($value)

    Type: String

    Output only. A description of the module.

Enum: EffectiveEventThreatDetectionCustomModule::EnablementState

  • ENABLEMENT_STATE_UNSPECIFIED => 0

  • ENABLED => 1

  • DISABLED => 2

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ListEffectiveEventThreatDetectionCustomModulesRequest

Request message for [SecurityCenterManagement.ListEffectiveEventThreatDetectionCustomModules][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListEffectiveEventThreatDetectionCustomModules].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: 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}`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: 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.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ListEffectiveEventThreatDetectionCustomModulesResponse

Response message for [SecurityCenterManagement.ListEffectiveEventThreatDetectionCustomModules][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListEffectiveEventThreatDetectionCustomModules].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::GetEffectiveEventThreatDetectionCustomModuleRequest

Request message for [SecurityCenterManagement.GetEffectiveEventThreatDetectionCustomModule][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetEffectiveEventThreatDetectionCustomModule].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: 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}`

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::EventThreatDetectionCustomModule

A Security Command Center resource that contains the configuration and enablement state of a custom module, which enables Event Threat Detection to write certain findings to Security Command Center.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. 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}`

  • $msg->config() / $msg->config($value)

    Type: Message (Google::Protobuf::Struct::Struct)

    Optional. Configuration for the module. For the resident module, its configuration value is defined at this level. For the inherited module, its configuration value is inherited from the ancestor module.

  • $msg->ancestor_module() / $msg->ancestor_module($value)

    Type: String

    Output only. The closest ancestor module that this module inherits the enablement state from. If empty, indicates that the custom module was created in the requesting parent organization, folder, or project. The format is the same as the custom module's resource name.

  • $msg->enablement_state() / $msg->enablement_state($value)

    Type: Enum (Google::Cloud::Securitycentermanagement::V1::EventThreatDetectionCustomModule::EnablementState)

    Optional. The state of enablement for the module at the given level of the hierarchy.

  • $msg->type() / $msg->type($value)

    Type: String

    Optional. Type for the module. For example, `CONFIGURABLE_BAD_IP`.

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Optional. The human-readable name of the module.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. A description of the module.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the module was last updated.

  • $msg->last_editor() / $msg->last_editor($value)

    Type: String

    Output only. The editor the module was last updated by.

Enum: EventThreatDetectionCustomModule::EnablementState

  • ENABLEMENT_STATE_UNSPECIFIED => 0

  • ENABLED => 1

  • DISABLED => 2

  • INHERITED => 3

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ListEventThreatDetectionCustomModulesRequest

Request message for [SecurityCenterManagement.ListEventThreatDetectionCustomModules][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListEventThreatDetectionCustomModules].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: 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}`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    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.

  • $msg->page_token() / $msg->page_token($value)

    Type: 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.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ListEventThreatDetectionCustomModulesResponse

Response message for [SecurityCenterManagement.ListEventThreatDetectionCustomModules][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListEventThreatDetectionCustomModules].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ListDescendantEventThreatDetectionCustomModulesRequest

Request message for [SecurityCenterManagement.ListDescendantEventThreatDetectionCustomModules][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListDescendantEventThreatDetectionCustomModules].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: 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}`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    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.

  • $msg->page_token() / $msg->page_token($value)

    Type: 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.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ListDescendantEventThreatDetectionCustomModulesResponse

Response message for [SecurityCenterManagement.ListDescendantEventThreatDetectionCustomModules][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListDescendantEventThreatDetectionCustomModules].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::GetEventThreatDetectionCustomModuleRequest

Request message for [SecurityCenterManagement.GetEventThreatDetectionCustomModule][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetEventThreatDetectionCustomModule].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: 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}`

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::CreateEventThreatDetectionCustomModuleRequest

Request message for [SecurityCenterManagement.CreateEventThreatDetectionCustomModule][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.CreateEventThreatDetectionCustomModule].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: 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}`

  • $msg->event_threat_detection_custom_module() / $msg->event_threat_detection_custom_module($value)

    Type: Message (Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::EventThreatDetectionCustomModule)

    Required. The module to create. The [EventThreatDetectionCustomModule.name][google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule.name] field is ignored; Security Command Center generates the name.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    Optional. When set to `true`, the request will be validated (including IAM checks), but no module will be created. An `OK` 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`.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::UpdateEventThreatDetectionCustomModuleRequest

Message for updating a EventThreatDetectionCustomModule

Inherits from Protobuf::Message.

Accessors

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. The fields to update. If omitted, then all fields are updated.

  • $msg->event_threat_detection_custom_module() / $msg->event_threat_detection_custom_module($value)

    Type: Message (Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::EventThreatDetectionCustomModule)

    Required. The module being updated.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    Optional. When set to `true`, the request will be validated (including IAM checks), but no module will be updated. An `OK` 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`.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::DeleteEventThreatDetectionCustomModuleRequest

Request message for [SecurityCenterManagement.DeleteEventThreatDetectionCustomModule][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.DeleteEventThreatDetectionCustomModule].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: 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}`

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    Optional. When set to `true`, the request will be validated (including IAM checks), but no module will be deleted. An `OK` 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`.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ValidateEventThreatDetectionCustomModuleRequest

Request message for [SecurityCenterManagement.ValidateEventThreatDetectionCustomModule][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ValidateEventThreatDetectionCustomModule].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Resource name of the parent to validate the custom modules under, in one of the following formats:

    * `organizations/{organization}/locations/{location}`

  • $msg->raw_text() / $msg->raw_text($value)

    Type: String

    Required. The raw text of the module's contents. Used to generate error messages.

  • $msg->type() / $msg->type($value)

    Type: String

    Required. The type of the module. For example, `CONFIGURABLE_BAD_IP`.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ValidateEventThreatDetectionCustomModuleResponse

Response message for [SecurityCenterManagement.ValidateEventThreatDetectionCustomModule][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ValidateEventThreatDetectionCustomModule].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::GetSecurityCenterServiceRequest

Request message for [SecurityCenterManagement.GetSecurityCenterService][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetSecurityCenterService].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: 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`

  • $msg->show_eligible_modules_only() / $msg->show_eligible_modules_only($value)

    Type: Bool

    Set to `true` to show only modules that are in scope. By default, all modules are shown.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ListSecurityCenterServicesRequest

Request message for [SecurityCenterManagement.ListSecurityCenterServices][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListSecurityCenterServices].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: 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}`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: 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.

  • $msg->show_eligible_modules_only() / $msg->show_eligible_modules_only($value)

    Type: Bool

    Flag that, when set, is used to filter the module settings that are shown. The default setting is that all modules are shown.

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::ListSecurityCenterServicesResponse

Response message for [SecurityCenterManagement.ListSecurityCenterServices][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListSecurityCenterServices].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::UpdateSecurityCenterServiceRequest

Request message for [SecurityCenterManagement.UpdateSecurityCenterService][google.cloud.securitycentermanagement.v1.SecurityCenterManagement.UpdateSecurityCenterService].

Inherits from Protobuf::Message.

Accessors

  • $msg->security_center_service() / $msg->security_center_service($value)

    Type: Message (Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::SecurityCenterService)

    Required. The updated service.

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. The fields to update. Accepts the following values:

    * `intended_enablement_state` * `modules`

    If omitted, then all eligible fields are updated.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    Optional. When set to `true`, the request will be validated (including IAM checks), but no service will be updated. An `OK` 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`.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Securitycentermanagement::V1::SecurityCenterManagement::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.