Google Cloud Security Command Center V1 Client - Class SecurityHealthAnalyticsCustomModule (1.19.1)

Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class 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 child folders and projects.

Generated from protobuf message google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule

Namespace

Google \ Cloud \ SecurityCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Immutable. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" The id {customModule} is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.

↳ display_name string

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.

↳ enablement_state int

The enablement state of the custom module.

↳ update_time Google\Protobuf\Timestamp

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

↳ last_editor string

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

↳ ancestor_module string

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

↳ custom_config Google\Cloud\SecurityCenter\V1\CustomConfig

The user specified custom configuration for the module.

getName

Immutable. The resource name of the custom module.

Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" The id {customModule} is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.

Returns
TypeDescription
string

setName

Immutable. The resource name of the custom module.

Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" The id {customModule} is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

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.

Returns
TypeDescription
string

setDisplayName

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEnablementState

The enablement state of the custom module.

Returns
TypeDescription
int

setEnablementState

The enablement state of the custom module.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getUpdateTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

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

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLastEditor

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

Returns
TypeDescription
string

setLastEditor

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAncestorModule

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

Returns
TypeDescription
string

setAncestorModule

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCustomConfig

The user specified custom configuration for the module.

Returns
TypeDescription
Google\Cloud\SecurityCenter\V1\CustomConfig|null

hasCustomConfig

clearCustomConfig

setCustomConfig

The user specified custom configuration for the module.

Parameter
NameDescription
var Google\Cloud\SecurityCenter\V1\CustomConfig
Returns
TypeDescription
$this