Google Cloud Security Center Management V1 Client - Class EventThreatDetectionCustomModule (0.1.0)

Reference documentation and code samples for the Google Cloud Security Center Management V1 Client class EventThreatDetectionCustomModule.

An event threat detection custom module is a Cloud SCC resource that contains the configuration and enablement state of a custom module, which enables ETD to write certain findings to Cloud SCC.

Generated from protobuf message google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule

Namespace

Google \ Cloud \ SecurityCenterManagement \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Immutable. The resource name of the ETD custom module. Its format is: * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".

↳ config Google\Protobuf\Struct

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

↳ ancestor_module 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 EventThreatDetectionCustomModule resource name.

↳ enablement_state int

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

↳ type string

Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.

↳ display_name string

Optional. The human readable name to be displayed for the module.

↳ description string

Optional. The description for the module.

↳ update_time Google\Protobuf\Timestamp

Output only. The time the module was last updated.

↳ last_editor string

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

getName

Immutable. The resource name of the ETD custom module.

Its format is:

  • "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
  • "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
  • "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
Returns
TypeDescription
string

setName

Immutable. The resource name of the ETD custom module.

Its format is:

  • "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
  • "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
  • "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getConfig

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

Returns
TypeDescription
Google\Protobuf\Struct|null

hasConfig

clearConfig

setConfig

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

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

getAncestorModule

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 EventThreatDetectionCustomModule resource name.

Returns
TypeDescription
string

setAncestorModule

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 EventThreatDetectionCustomModule resource name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEnablementState

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

Returns
TypeDescription
int

setEnablementState

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getType

Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.

Returns
TypeDescription
string

setType

Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Optional. The human readable name to be displayed for the module.

Returns
TypeDescription
string

setDisplayName

Optional. The human readable name to be displayed for the module.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Optional. The description for the module.

Returns
TypeDescription
string

setDescription

Optional. The description for the module.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUpdateTime

Output only. The time the module was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time the module was last updated.

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

getLastEditor

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

Returns
TypeDescription
string

setLastEditor

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this