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

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

Message for creating a EventThreatDetectionCustomModule

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

Namespace

Google \ Cloud \ SecurityCenterManagement \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Name of parent for the module. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

↳ event_threat_detection_custom_module Google\Cloud\SecurityCenterManagement\V1\EventThreatDetectionCustomModule

Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated.

↳ validate_only bool

Optional. When set to true, only validations (including IAM checks) will done for the request (no module will be created). An OK response indicates the request is valid while an error response indicates the request is invalid. Note that a subsequent request to actually create the module could still fail because 1. the state could have changed (e.g. IAM permission lost) or 2. A failure occurred during creation of the module.

getParent

Required. Name of parent for the module. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
string

setParent

Required. Name of parent for the module. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEventThreatDetectionCustomModule

Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated.

Returns
TypeDescription
Google\Cloud\SecurityCenterManagement\V1\EventThreatDetectionCustomModule|null

hasEventThreatDetectionCustomModule

clearEventThreatDetectionCustomModule

setEventThreatDetectionCustomModule

Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated.

Parameter
NameDescription
var Google\Cloud\SecurityCenterManagement\V1\EventThreatDetectionCustomModule
Returns
TypeDescription
$this

getValidateOnly

Optional. When set to true, only validations (including IAM checks) will done for the request (no module will be created). An OK response indicates the request is valid while an error response indicates the request is invalid. Note that a subsequent request to actually create the module could still fail because 1. the state could have changed (e.g. IAM permission lost) or

  1. A failure occurred during creation of the module.
Returns
TypeDescription
bool

setValidateOnly

Optional. When set to true, only validations (including IAM checks) will done for the request (no module will be created). An OK response indicates the request is valid while an error response indicates the request is invalid. Note that a subsequent request to actually create the module could still fail because 1. the state could have changed (e.g. IAM permission lost) or

  1. A failure occurred during creation of the module.
Parameter
NameDescription
var bool
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. Name of parent for the module. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" Please see Google\Cloud\SecurityCenterManagement\V1\SecurityCenterManagementClient::organizationLocationName() for help formatting this field.

eventThreatDetectionCustomModule Google\Cloud\SecurityCenterManagement\V1\EventThreatDetectionCustomModule

Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated.

Returns
TypeDescription
Google\Cloud\SecurityCenterManagement\V1\CreateEventThreatDetectionCustomModuleRequest