Class SecurityCenterManagementClient (0.1.0)

GitHub RepositoryProduct Reference

Service Description: Service describing handlers for resources

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   EffectiveSecurityHealthAnalyticsCustomModuleName name =
       EffectiveSecurityHealthAnalyticsCustomModuleName
           .ofProjectLocationEffectiveSecurityHealthAnalyticsCustomModuleName(
               "[PROJECT]", "[LOCATION]", "[EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE]");
   EffectiveSecurityHealthAnalyticsCustomModule response =
       securityCenterManagementClient.getEffectiveSecurityHealthAnalyticsCustomModule(name);
 }
 

Note: close() needs to be called on the SecurityCenterManagementClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

MethodDescriptionMethod Variants
ListEffectiveSecurityHealthAnalyticsCustomModules

Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listEffectiveSecurityHealthAnalyticsCustomModules(ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listEffectiveSecurityHealthAnalyticsCustomModules(FolderLocationName parent)
  • listEffectiveSecurityHealthAnalyticsCustomModules(LocationName parent)
  • listEffectiveSecurityHealthAnalyticsCustomModules(OrganizationLocationName parent)
  • listEffectiveSecurityHealthAnalyticsCustomModules(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable()
  • listEffectiveSecurityHealthAnalyticsCustomModulesCallable()
GetEffectiveSecurityHealthAnalyticsCustomModule

Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getEffectiveSecurityHealthAnalyticsCustomModule(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getEffectiveSecurityHealthAnalyticsCustomModule(EffectiveSecurityHealthAnalyticsCustomModuleName name)
  • getEffectiveSecurityHealthAnalyticsCustomModule(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getEffectiveSecurityHealthAnalyticsCustomModuleCallable()
ListSecurityHealthAnalyticsCustomModules

Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listSecurityHealthAnalyticsCustomModules(ListSecurityHealthAnalyticsCustomModulesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listSecurityHealthAnalyticsCustomModules(FolderLocationName parent)
  • listSecurityHealthAnalyticsCustomModules(LocationName parent)
  • listSecurityHealthAnalyticsCustomModules(OrganizationLocationName parent)
  • listSecurityHealthAnalyticsCustomModules(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listSecurityHealthAnalyticsCustomModulesPagedCallable()
  • listSecurityHealthAnalyticsCustomModulesCallable()
ListDescendantSecurityHealthAnalyticsCustomModules

Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listDescendantSecurityHealthAnalyticsCustomModules(ListDescendantSecurityHealthAnalyticsCustomModulesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listDescendantSecurityHealthAnalyticsCustomModules(FolderLocationName parent)
  • listDescendantSecurityHealthAnalyticsCustomModules(LocationName parent)
  • listDescendantSecurityHealthAnalyticsCustomModules(OrganizationLocationName parent)
  • listDescendantSecurityHealthAnalyticsCustomModules(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable()
  • listDescendantSecurityHealthAnalyticsCustomModulesCallable()
GetSecurityHealthAnalyticsCustomModule

Retrieves a SecurityHealthAnalyticsCustomModule.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getSecurityHealthAnalyticsCustomModule(GetSecurityHealthAnalyticsCustomModuleRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModuleName name)
  • getSecurityHealthAnalyticsCustomModule(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getSecurityHealthAnalyticsCustomModuleCallable()
CreateSecurityHealthAnalyticsCustomModule

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createSecurityHealthAnalyticsCustomModule(CreateSecurityHealthAnalyticsCustomModuleRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • createSecurityHealthAnalyticsCustomModule(FolderLocationName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule)
  • createSecurityHealthAnalyticsCustomModule(LocationName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule)
  • createSecurityHealthAnalyticsCustomModule(OrganizationLocationName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule)
  • createSecurityHealthAnalyticsCustomModule(String parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createSecurityHealthAnalyticsCustomModuleCallable()
UpdateSecurityHealthAnalyticsCustomModule

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 config of a module is supported on resident modules only.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateSecurityHealthAnalyticsCustomModule(UpdateSecurityHealthAnalyticsCustomModuleRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • updateSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateSecurityHealthAnalyticsCustomModuleCallable()
DeleteSecurityHealthAnalyticsCustomModule

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteSecurityHealthAnalyticsCustomModule(DeleteSecurityHealthAnalyticsCustomModuleRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • deleteSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModuleName name)
  • deleteSecurityHealthAnalyticsCustomModule(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteSecurityHealthAnalyticsCustomModuleCallable()
SimulateSecurityHealthAnalyticsCustomModule

Simulates a given SecurityHealthAnalyticsCustomModule and Resource.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • simulateSecurityHealthAnalyticsCustomModule(SimulateSecurityHealthAnalyticsCustomModuleRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • simulateSecurityHealthAnalyticsCustomModule(String parent, CustomConfig customConfig, SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • simulateSecurityHealthAnalyticsCustomModuleCallable()
ListEffectiveEventThreatDetectionCustomModules

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.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listEffectiveEventThreatDetectionCustomModules(ListEffectiveEventThreatDetectionCustomModulesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listEffectiveEventThreatDetectionCustomModules(FolderLocationName parent)
  • listEffectiveEventThreatDetectionCustomModules(LocationName parent)
  • listEffectiveEventThreatDetectionCustomModules(OrganizationLocationName parent)
  • listEffectiveEventThreatDetectionCustomModules(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listEffectiveEventThreatDetectionCustomModulesPagedCallable()
  • listEffectiveEventThreatDetectionCustomModulesCallable()
GetEffectiveEventThreatDetectionCustomModule

Gets an effective ETD custom module. Retrieves the effective module at the given level. The difference between an EffectiveCustomModule and a CustomModule is that the fields for an EffectiveCustomModule are computed from ancestors if needed. For example, the enablement_state for a CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the enablement_state for an EffectiveCustomModule is always computed to ENABLED or DISABLED (the effective enablement_state).

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getEffectiveEventThreatDetectionCustomModule(GetEffectiveEventThreatDetectionCustomModuleRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getEffectiveEventThreatDetectionCustomModule(EffectiveEventThreatDetectionCustomModuleName name)
  • getEffectiveEventThreatDetectionCustomModule(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getEffectiveEventThreatDetectionCustomModuleCallable()
ListEventThreatDetectionCustomModules

Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listEventThreatDetectionCustomModules(ListEventThreatDetectionCustomModulesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listEventThreatDetectionCustomModules(FolderLocationName parent)
  • listEventThreatDetectionCustomModules(LocationName parent)
  • listEventThreatDetectionCustomModules(OrganizationLocationName parent)
  • listEventThreatDetectionCustomModules(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listEventThreatDetectionCustomModulesPagedCallable()
  • listEventThreatDetectionCustomModulesCallable()
ListDescendantEventThreatDetectionCustomModules

Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listDescendantEventThreatDetectionCustomModules(ListDescendantEventThreatDetectionCustomModulesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listDescendantEventThreatDetectionCustomModules(FolderLocationName parent)
  • listDescendantEventThreatDetectionCustomModules(LocationName parent)
  • listDescendantEventThreatDetectionCustomModules(OrganizationLocationName parent)
  • listDescendantEventThreatDetectionCustomModules(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listDescendantEventThreatDetectionCustomModulesPagedCallable()
  • listDescendantEventThreatDetectionCustomModulesCallable()
GetEventThreatDetectionCustomModule

Gets an Event Threat Detection custom module.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getEventThreatDetectionCustomModule(GetEventThreatDetectionCustomModuleRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getEventThreatDetectionCustomModule(EventThreatDetectionCustomModuleName name)
  • getEventThreatDetectionCustomModule(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getEventThreatDetectionCustomModuleCallable()
CreateEventThreatDetectionCustomModule

Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createEventThreatDetectionCustomModule(CreateEventThreatDetectionCustomModuleRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • createEventThreatDetectionCustomModule(FolderLocationName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule)
  • createEventThreatDetectionCustomModule(LocationName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule)
  • createEventThreatDetectionCustomModule(OrganizationLocationName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule)
  • createEventThreatDetectionCustomModule(String parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createEventThreatDetectionCustomModuleCallable()
UpdateEventThreatDetectionCustomModule

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.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateEventThreatDetectionCustomModule(UpdateEventThreatDetectionCustomModuleRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • updateEventThreatDetectionCustomModule(EventThreatDetectionCustomModule eventThreatDetectionCustomModule, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateEventThreatDetectionCustomModuleCallable()
DeleteEventThreatDetectionCustomModule

Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteEventThreatDetectionCustomModule(DeleteEventThreatDetectionCustomModuleRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • deleteEventThreatDetectionCustomModule(EventThreatDetectionCustomModuleName name)
  • deleteEventThreatDetectionCustomModule(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteEventThreatDetectionCustomModuleCallable()
ValidateEventThreatDetectionCustomModule

Validates the given Event Threat Detection custom module.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • validateEventThreatDetectionCustomModule(ValidateEventThreatDetectionCustomModuleRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • validateEventThreatDetectionCustomModuleCallable()
ListLocations

Lists information about the supported locations for this service.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listLocations(ListLocationsRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listLocationsPagedCallable()
  • listLocationsCallable()
GetLocation

Gets information about a location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getLocation(GetLocationRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getLocationCallable()

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of SecurityCenterManagementSettings to create(). For example:

To customize credentials:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 SecurityCenterManagementSettings securityCenterManagementSettings =
     SecurityCenterManagementSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create(securityCenterManagementSettings);
 

To customize the endpoint:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 SecurityCenterManagementSettings securityCenterManagementSettings =
     SecurityCenterManagementSettings.newBuilder().setEndpoint(myEndpoint).build();
 SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create(securityCenterManagementSettings);
 

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 SecurityCenterManagementSettings securityCenterManagementSettings =
     SecurityCenterManagementSettings.newHttpJsonBuilder().build();
 SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create(securityCenterManagementSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

Inheritance

java.lang.Object > SecurityCenterManagementClient

Static Methods

create()

public static final SecurityCenterManagementClient create()

Constructs an instance of SecurityCenterManagementClient with default settings.

Returns
TypeDescription
SecurityCenterManagementClient
Exceptions
TypeDescription
IOException

create(SecurityCenterManagementSettings settings)

public static final SecurityCenterManagementClient create(SecurityCenterManagementSettings settings)

Constructs an instance of SecurityCenterManagementClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.

Parameter
NameDescription
settingsSecurityCenterManagementSettings
Returns
TypeDescription
SecurityCenterManagementClient
Exceptions
TypeDescription
IOException

create(SecurityCenterManagementStub stub)

public static final SecurityCenterManagementClient create(SecurityCenterManagementStub stub)

Constructs an instance of SecurityCenterManagementClient, using the given stub for making calls. This is for advanced usage - prefer using create(SecurityCenterManagementSettings).

Parameter
NameDescription
stubSecurityCenterManagementStub
Returns
TypeDescription
SecurityCenterManagementClient

Constructors

SecurityCenterManagementClient(SecurityCenterManagementSettings settings)

protected SecurityCenterManagementClient(SecurityCenterManagementSettings settings)

Constructs an instance of SecurityCenterManagementClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameter
NameDescription
settingsSecurityCenterManagementSettings

SecurityCenterManagementClient(SecurityCenterManagementStub stub)

protected SecurityCenterManagementClient(SecurityCenterManagementStub stub)
Parameter
NameDescription
stubSecurityCenterManagementStub

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()

createEventThreatDetectionCustomModule(CreateEventThreatDetectionCustomModuleRequest request)

public final EventThreatDetectionCustomModule createEventThreatDetectionCustomModule(CreateEventThreatDetectionCustomModuleRequest request)

Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   CreateEventThreatDetectionCustomModuleRequest request =
       CreateEventThreatDetectionCustomModuleRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setEventThreatDetectionCustomModule(
               EventThreatDetectionCustomModule.newBuilder().build())
           .setValidateOnly(true)
           .build();
   EventThreatDetectionCustomModule response =
       securityCenterManagementClient.createEventThreatDetectionCustomModule(request);
 }
 
Parameter
NameDescription
requestCreateEventThreatDetectionCustomModuleRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
EventThreatDetectionCustomModule

createEventThreatDetectionCustomModule(FolderLocationName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule)

public final EventThreatDetectionCustomModule createEventThreatDetectionCustomModule(FolderLocationName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule)

Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
   EventThreatDetectionCustomModule eventThreatDetectionCustomModule =
       EventThreatDetectionCustomModule.newBuilder().build();
   EventThreatDetectionCustomModule response =
       securityCenterManagementClient.createEventThreatDetectionCustomModule(
           parent, eventThreatDetectionCustomModule);
 }
 
Parameters
NameDescription
parentFolderLocationName

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

eventThreatDetectionCustomModuleEventThreatDetectionCustomModule

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

Returns
TypeDescription
EventThreatDetectionCustomModule

createEventThreatDetectionCustomModule(LocationName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule)

public final EventThreatDetectionCustomModule createEventThreatDetectionCustomModule(LocationName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule)

Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   EventThreatDetectionCustomModule eventThreatDetectionCustomModule =
       EventThreatDetectionCustomModule.newBuilder().build();
   EventThreatDetectionCustomModule response =
       securityCenterManagementClient.createEventThreatDetectionCustomModule(
           parent, eventThreatDetectionCustomModule);
 }
 
Parameters
NameDescription
parentLocationName

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

eventThreatDetectionCustomModuleEventThreatDetectionCustomModule

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

Returns
TypeDescription
EventThreatDetectionCustomModule

createEventThreatDetectionCustomModule(OrganizationLocationName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule)

public final EventThreatDetectionCustomModule createEventThreatDetectionCustomModule(OrganizationLocationName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule)

Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
   EventThreatDetectionCustomModule eventThreatDetectionCustomModule =
       EventThreatDetectionCustomModule.newBuilder().build();
   EventThreatDetectionCustomModule response =
       securityCenterManagementClient.createEventThreatDetectionCustomModule(
           parent, eventThreatDetectionCustomModule);
 }
 
Parameters
NameDescription
parentOrganizationLocationName

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

eventThreatDetectionCustomModuleEventThreatDetectionCustomModule

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

Returns
TypeDescription
EventThreatDetectionCustomModule

createEventThreatDetectionCustomModule(String parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule)

public final EventThreatDetectionCustomModule createEventThreatDetectionCustomModule(String parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule)

Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
   EventThreatDetectionCustomModule eventThreatDetectionCustomModule =
       EventThreatDetectionCustomModule.newBuilder().build();
   EventThreatDetectionCustomModule response =
       securityCenterManagementClient.createEventThreatDetectionCustomModule(
           parent, eventThreatDetectionCustomModule);
 }
 
Parameters
NameDescription
parentString

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

eventThreatDetectionCustomModuleEventThreatDetectionCustomModule

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

Returns
TypeDescription
EventThreatDetectionCustomModule

createEventThreatDetectionCustomModuleCallable()

public final UnaryCallable<CreateEventThreatDetectionCustomModuleRequest,EventThreatDetectionCustomModule> createEventThreatDetectionCustomModuleCallable()

Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   CreateEventThreatDetectionCustomModuleRequest request =
       CreateEventThreatDetectionCustomModuleRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setEventThreatDetectionCustomModule(
               EventThreatDetectionCustomModule.newBuilder().build())
           .setValidateOnly(true)
           .build();
   ApiFuture<EventThreatDetectionCustomModule> future =
       securityCenterManagementClient
           .createEventThreatDetectionCustomModuleCallable()
           .futureCall(request);
   // Do something.
   EventThreatDetectionCustomModule response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateEventThreatDetectionCustomModuleRequest,EventThreatDetectionCustomModule>

createSecurityHealthAnalyticsCustomModule(CreateSecurityHealthAnalyticsCustomModuleRequest request)

public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule(CreateSecurityHealthAnalyticsCustomModuleRequest request)

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   CreateSecurityHealthAnalyticsCustomModuleRequest request =
       CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setSecurityHealthAnalyticsCustomModule(
               SecurityHealthAnalyticsCustomModule.newBuilder().build())
           .setValidateOnly(true)
           .build();
   SecurityHealthAnalyticsCustomModule response =
       securityCenterManagementClient.createSecurityHealthAnalyticsCustomModule(request);
 }
 
Parameter
NameDescription
requestCreateSecurityHealthAnalyticsCustomModuleRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

createSecurityHealthAnalyticsCustomModule(FolderLocationName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule)

public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule(FolderLocationName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule)

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
   SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
       SecurityHealthAnalyticsCustomModule.newBuilder().build();
   SecurityHealthAnalyticsCustomModule response =
       securityCenterManagementClient.createSecurityHealthAnalyticsCustomModule(
           parent, securityHealthAnalyticsCustomModule);
 }
 
Parameters
NameDescription
parentFolderLocationName

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

securityHealthAnalyticsCustomModuleSecurityHealthAnalyticsCustomModule

Required. The resource being created

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

createSecurityHealthAnalyticsCustomModule(LocationName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule)

public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule(LocationName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule)

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
       SecurityHealthAnalyticsCustomModule.newBuilder().build();
   SecurityHealthAnalyticsCustomModule response =
       securityCenterManagementClient.createSecurityHealthAnalyticsCustomModule(
           parent, securityHealthAnalyticsCustomModule);
 }
 
Parameters
NameDescription
parentLocationName

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

securityHealthAnalyticsCustomModuleSecurityHealthAnalyticsCustomModule

Required. The resource being created

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

createSecurityHealthAnalyticsCustomModule(OrganizationLocationName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule)

public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule(OrganizationLocationName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule)

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
   SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
       SecurityHealthAnalyticsCustomModule.newBuilder().build();
   SecurityHealthAnalyticsCustomModule response =
       securityCenterManagementClient.createSecurityHealthAnalyticsCustomModule(
           parent, securityHealthAnalyticsCustomModule);
 }
 
Parameters
NameDescription
parentOrganizationLocationName

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

securityHealthAnalyticsCustomModuleSecurityHealthAnalyticsCustomModule

Required. The resource being created

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

createSecurityHealthAnalyticsCustomModule(String parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule)

public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule(String parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule)

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
   SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
       SecurityHealthAnalyticsCustomModule.newBuilder().build();
   SecurityHealthAnalyticsCustomModule response =
       securityCenterManagementClient.createSecurityHealthAnalyticsCustomModule(
           parent, securityHealthAnalyticsCustomModule);
 }
 
Parameters
NameDescription
parentString

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

securityHealthAnalyticsCustomModuleSecurityHealthAnalyticsCustomModule

Required. The resource being created

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

createSecurityHealthAnalyticsCustomModuleCallable()

public final UnaryCallable<CreateSecurityHealthAnalyticsCustomModuleRequest,SecurityHealthAnalyticsCustomModule> createSecurityHealthAnalyticsCustomModuleCallable()

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   CreateSecurityHealthAnalyticsCustomModuleRequest request =
       CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setSecurityHealthAnalyticsCustomModule(
               SecurityHealthAnalyticsCustomModule.newBuilder().build())
           .setValidateOnly(true)
           .build();
   ApiFuture<SecurityHealthAnalyticsCustomModule> future =
       securityCenterManagementClient
           .createSecurityHealthAnalyticsCustomModuleCallable()
           .futureCall(request);
   // Do something.
   SecurityHealthAnalyticsCustomModule response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateSecurityHealthAnalyticsCustomModuleRequest,SecurityHealthAnalyticsCustomModule>

deleteEventThreatDetectionCustomModule(DeleteEventThreatDetectionCustomModuleRequest request)

public final void deleteEventThreatDetectionCustomModule(DeleteEventThreatDetectionCustomModuleRequest request)

Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   DeleteEventThreatDetectionCustomModuleRequest request =
       DeleteEventThreatDetectionCustomModuleRequest.newBuilder()
           .setName(
               EventThreatDetectionCustomModuleName
                   .ofProjectLocationEventThreatDetectionCustomModuleName(
                       "[PROJECT]", "[LOCATION]", "[EVENT_THREAT_DETECTION_CUSTOM_MODULE]")
                   .toString())
           .setValidateOnly(true)
           .build();
   securityCenterManagementClient.deleteEventThreatDetectionCustomModule(request);
 }
 
Parameter
NameDescription
requestDeleteEventThreatDetectionCustomModuleRequest

The request object containing all of the parameters for the API call.

deleteEventThreatDetectionCustomModule(EventThreatDetectionCustomModuleName name)

public final void deleteEventThreatDetectionCustomModule(EventThreatDetectionCustomModuleName name)

Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   EventThreatDetectionCustomModuleName name =
       EventThreatDetectionCustomModuleName
           .ofProjectLocationEventThreatDetectionCustomModuleName(
               "[PROJECT]", "[LOCATION]", "[EVENT_THREAT_DETECTION_CUSTOM_MODULE]");
   securityCenterManagementClient.deleteEventThreatDetectionCustomModule(name);
 }
 
Parameter
NameDescription
nameEventThreatDetectionCustomModuleName

Required. 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}".

deleteEventThreatDetectionCustomModule(String name)

public final void deleteEventThreatDetectionCustomModule(String name)

Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String name =
       EventThreatDetectionCustomModuleName
           .ofOrganizationLocationEventThreatDetectionCustomModuleName(
               "[ORGANIZATION]", "[LOCATION]", "[EVENT_THREAT_DETECTION_CUSTOM_MODULE]")
           .toString();
   securityCenterManagementClient.deleteEventThreatDetectionCustomModule(name);
 }
 
Parameter
NameDescription
nameString

Required. 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}".

deleteEventThreatDetectionCustomModuleCallable()

public final UnaryCallable<DeleteEventThreatDetectionCustomModuleRequest,Empty> deleteEventThreatDetectionCustomModuleCallable()

Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   DeleteEventThreatDetectionCustomModuleRequest request =
       DeleteEventThreatDetectionCustomModuleRequest.newBuilder()
           .setName(
               EventThreatDetectionCustomModuleName
                   .ofProjectLocationEventThreatDetectionCustomModuleName(
                       "[PROJECT]", "[LOCATION]", "[EVENT_THREAT_DETECTION_CUSTOM_MODULE]")
                   .toString())
           .setValidateOnly(true)
           .build();
   ApiFuture<Empty> future =
       securityCenterManagementClient
           .deleteEventThreatDetectionCustomModuleCallable()
           .futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteEventThreatDetectionCustomModuleRequest,Empty>

deleteSecurityHealthAnalyticsCustomModule(DeleteSecurityHealthAnalyticsCustomModuleRequest request)

public final void deleteSecurityHealthAnalyticsCustomModule(DeleteSecurityHealthAnalyticsCustomModuleRequest request)

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   DeleteSecurityHealthAnalyticsCustomModuleRequest request =
       DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
           .setName(
               SecurityHealthAnalyticsCustomModuleName
                   .ofProjectLocationSecurityHealthAnalyticsCustomModuleName(
                       "[PROJECT]", "[LOCATION]", "[SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE]")
                   .toString())
           .setValidateOnly(true)
           .build();
   securityCenterManagementClient.deleteSecurityHealthAnalyticsCustomModule(request);
 }
 
Parameter
NameDescription
requestDeleteSecurityHealthAnalyticsCustomModuleRequest

The request object containing all of the parameters for the API call.

deleteSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModuleName name)

public final void deleteSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModuleName name)

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   SecurityHealthAnalyticsCustomModuleName name =
       SecurityHealthAnalyticsCustomModuleName
           .ofProjectLocationSecurityHealthAnalyticsCustomModuleName(
               "[PROJECT]", "[LOCATION]", "[SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE]");
   securityCenterManagementClient.deleteSecurityHealthAnalyticsCustomModule(name);
 }
 
Parameter
NameDescription
nameSecurityHealthAnalyticsCustomModuleName

Required. The resource name of the SHA custom module.

Its format is:

* "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".

deleteSecurityHealthAnalyticsCustomModule(String name)

public final void deleteSecurityHealthAnalyticsCustomModule(String name)

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String name =
       SecurityHealthAnalyticsCustomModuleName
           .ofOrganizationLocationSecurityHealthAnalyticsCustomModuleName(
               "[ORGANIZATION]", "[LOCATION]", "[SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE]")
           .toString();
   securityCenterManagementClient.deleteSecurityHealthAnalyticsCustomModule(name);
 }
 
Parameter
NameDescription
nameString

Required. The resource name of the SHA custom module.

Its format is:

* "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".

deleteSecurityHealthAnalyticsCustomModuleCallable()

public final UnaryCallable<DeleteSecurityHealthAnalyticsCustomModuleRequest,Empty> deleteSecurityHealthAnalyticsCustomModuleCallable()

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   DeleteSecurityHealthAnalyticsCustomModuleRequest request =
       DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
           .setName(
               SecurityHealthAnalyticsCustomModuleName
                   .ofProjectLocationSecurityHealthAnalyticsCustomModuleName(
                       "[PROJECT]", "[LOCATION]", "[SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE]")
                   .toString())
           .setValidateOnly(true)
           .build();
   ApiFuture<Empty> future =
       securityCenterManagementClient
           .deleteSecurityHealthAnalyticsCustomModuleCallable()
           .futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteSecurityHealthAnalyticsCustomModuleRequest,Empty>

getEffectiveEventThreatDetectionCustomModule(EffectiveEventThreatDetectionCustomModuleName name)

public final EffectiveEventThreatDetectionCustomModule getEffectiveEventThreatDetectionCustomModule(EffectiveEventThreatDetectionCustomModuleName name)

Gets an effective ETD custom module. Retrieves the effective module at the given level. The difference between an EffectiveCustomModule and a CustomModule is that the fields for an EffectiveCustomModule are computed from ancestors if needed. For example, the enablement_state for a CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the enablement_state for an EffectiveCustomModule is always computed to ENABLED or DISABLED (the effective enablement_state).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   EffectiveEventThreatDetectionCustomModuleName name =
       EffectiveEventThreatDetectionCustomModuleName
           .ofProjectLocationEffectiveEventThreatDetectionCustomModuleName(
               "[PROJECT]", "[LOCATION]", "[EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE]");
   EffectiveEventThreatDetectionCustomModule response =
       securityCenterManagementClient.getEffectiveEventThreatDetectionCustomModule(name);
 }
 
Parameter
NameDescription
nameEffectiveEventThreatDetectionCustomModuleName

Required. The resource name of the ETD custom module.

Its format is:

* "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".

Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule

getEffectiveEventThreatDetectionCustomModule(GetEffectiveEventThreatDetectionCustomModuleRequest request)

public final EffectiveEventThreatDetectionCustomModule getEffectiveEventThreatDetectionCustomModule(GetEffectiveEventThreatDetectionCustomModuleRequest request)

Gets an effective ETD custom module. Retrieves the effective module at the given level. The difference between an EffectiveCustomModule and a CustomModule is that the fields for an EffectiveCustomModule are computed from ancestors if needed. For example, the enablement_state for a CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the enablement_state for an EffectiveCustomModule is always computed to ENABLED or DISABLED (the effective enablement_state).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   GetEffectiveEventThreatDetectionCustomModuleRequest request =
       GetEffectiveEventThreatDetectionCustomModuleRequest.newBuilder()
           .setName(
               EffectiveEventThreatDetectionCustomModuleName
                   .ofProjectLocationEffectiveEventThreatDetectionCustomModuleName(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE]")
                   .toString())
           .build();
   EffectiveEventThreatDetectionCustomModule response =
       securityCenterManagementClient.getEffectiveEventThreatDetectionCustomModule(request);
 }
 
Parameter
NameDescription
requestGetEffectiveEventThreatDetectionCustomModuleRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule

getEffectiveEventThreatDetectionCustomModule(String name)

public final EffectiveEventThreatDetectionCustomModule getEffectiveEventThreatDetectionCustomModule(String name)

Gets an effective ETD custom module. Retrieves the effective module at the given level. The difference between an EffectiveCustomModule and a CustomModule is that the fields for an EffectiveCustomModule are computed from ancestors if needed. For example, the enablement_state for a CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the enablement_state for an EffectiveCustomModule is always computed to ENABLED or DISABLED (the effective enablement_state).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String name =
       EffectiveEventThreatDetectionCustomModuleName
           .ofOrganizationLocationEffectiveEventThreatDetectionCustomModuleName(
               "[ORGANIZATION]",
               "[LOCATION]",
               "[EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE]")
           .toString();
   EffectiveEventThreatDetectionCustomModule response =
       securityCenterManagementClient.getEffectiveEventThreatDetectionCustomModule(name);
 }
 
Parameter
NameDescription
nameString

Required. The resource name of the ETD custom module.

Its format is:

* "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".

Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule

getEffectiveEventThreatDetectionCustomModuleCallable()

public final UnaryCallable<GetEffectiveEventThreatDetectionCustomModuleRequest,EffectiveEventThreatDetectionCustomModule> getEffectiveEventThreatDetectionCustomModuleCallable()

Gets an effective ETD custom module. Retrieves the effective module at the given level. The difference between an EffectiveCustomModule and a CustomModule is that the fields for an EffectiveCustomModule are computed from ancestors if needed. For example, the enablement_state for a CustomModule can be either ENABLED, DISABLED, or INHERITED. Where as the enablement_state for an EffectiveCustomModule is always computed to ENABLED or DISABLED (the effective enablement_state).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   GetEffectiveEventThreatDetectionCustomModuleRequest request =
       GetEffectiveEventThreatDetectionCustomModuleRequest.newBuilder()
           .setName(
               EffectiveEventThreatDetectionCustomModuleName
                   .ofProjectLocationEffectiveEventThreatDetectionCustomModuleName(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[EFFECTIVE_EVENT_THREAT_DETECTION_CUSTOM_MODULE]")
                   .toString())
           .build();
   ApiFuture<EffectiveEventThreatDetectionCustomModule> future =
       securityCenterManagementClient
           .getEffectiveEventThreatDetectionCustomModuleCallable()
           .futureCall(request);
   // Do something.
   EffectiveEventThreatDetectionCustomModule response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetEffectiveEventThreatDetectionCustomModuleRequest,EffectiveEventThreatDetectionCustomModule>

getEffectiveSecurityHealthAnalyticsCustomModule(EffectiveSecurityHealthAnalyticsCustomModuleName name)

public final EffectiveSecurityHealthAnalyticsCustomModule getEffectiveSecurityHealthAnalyticsCustomModule(EffectiveSecurityHealthAnalyticsCustomModuleName name)

Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   EffectiveSecurityHealthAnalyticsCustomModuleName name =
       EffectiveSecurityHealthAnalyticsCustomModuleName
           .ofProjectLocationEffectiveSecurityHealthAnalyticsCustomModuleName(
               "[PROJECT]", "[LOCATION]", "[EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE]");
   EffectiveSecurityHealthAnalyticsCustomModule response =
       securityCenterManagementClient.getEffectiveSecurityHealthAnalyticsCustomModule(name);
 }
 
Parameter
NameDescription
nameEffectiveSecurityHealthAnalyticsCustomModuleName

Required. The resource name of the SHA custom module.

Its format is:

* "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".

Returns
TypeDescription
EffectiveSecurityHealthAnalyticsCustomModule

getEffectiveSecurityHealthAnalyticsCustomModule(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request)

public final EffectiveSecurityHealthAnalyticsCustomModule getEffectiveSecurityHealthAnalyticsCustomModule(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request)

Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request =
       GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
           .setName(
               EffectiveSecurityHealthAnalyticsCustomModuleName
                   .ofProjectLocationEffectiveSecurityHealthAnalyticsCustomModuleName(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE]")
                   .toString())
           .build();
   EffectiveSecurityHealthAnalyticsCustomModule response =
       securityCenterManagementClient.getEffectiveSecurityHealthAnalyticsCustomModule(request);
 }
 
Parameter
NameDescription
requestGetEffectiveSecurityHealthAnalyticsCustomModuleRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
EffectiveSecurityHealthAnalyticsCustomModule

getEffectiveSecurityHealthAnalyticsCustomModule(String name)

public final EffectiveSecurityHealthAnalyticsCustomModule getEffectiveSecurityHealthAnalyticsCustomModule(String name)

Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String name =
       EffectiveSecurityHealthAnalyticsCustomModuleName
           .ofOrganizationLocationEffectiveSecurityHealthAnalyticsCustomModuleName(
               "[ORGANIZATION]",
               "[LOCATION]",
               "[EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE]")
           .toString();
   EffectiveSecurityHealthAnalyticsCustomModule response =
       securityCenterManagementClient.getEffectiveSecurityHealthAnalyticsCustomModule(name);
 }
 
Parameter
NameDescription
nameString

Required. The resource name of the SHA custom module.

Its format is:

* "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".

Returns
TypeDescription
EffectiveSecurityHealthAnalyticsCustomModule

getEffectiveSecurityHealthAnalyticsCustomModuleCallable()

public final UnaryCallable<GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,EffectiveSecurityHealthAnalyticsCustomModule> getEffectiveSecurityHealthAnalyticsCustomModuleCallable()

Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request =
       GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
           .setName(
               EffectiveSecurityHealthAnalyticsCustomModuleName
                   .ofProjectLocationEffectiveSecurityHealthAnalyticsCustomModuleName(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE]")
                   .toString())
           .build();
   ApiFuture<EffectiveSecurityHealthAnalyticsCustomModule> future =
       securityCenterManagementClient
           .getEffectiveSecurityHealthAnalyticsCustomModuleCallable()
           .futureCall(request);
   // Do something.
   EffectiveSecurityHealthAnalyticsCustomModule response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,EffectiveSecurityHealthAnalyticsCustomModule>

getEventThreatDetectionCustomModule(EventThreatDetectionCustomModuleName name)

public final EventThreatDetectionCustomModule getEventThreatDetectionCustomModule(EventThreatDetectionCustomModuleName name)

Gets an Event Threat Detection custom module.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   EventThreatDetectionCustomModuleName name =
       EventThreatDetectionCustomModuleName
           .ofProjectLocationEventThreatDetectionCustomModuleName(
               "[PROJECT]", "[LOCATION]", "[EVENT_THREAT_DETECTION_CUSTOM_MODULE]");
   EventThreatDetectionCustomModule response =
       securityCenterManagementClient.getEventThreatDetectionCustomModule(name);
 }
 
Parameter
NameDescription
nameEventThreatDetectionCustomModuleName

Required. 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
EventThreatDetectionCustomModule

getEventThreatDetectionCustomModule(GetEventThreatDetectionCustomModuleRequest request)

public final EventThreatDetectionCustomModule getEventThreatDetectionCustomModule(GetEventThreatDetectionCustomModuleRequest request)

Gets an Event Threat Detection custom module.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   GetEventThreatDetectionCustomModuleRequest request =
       GetEventThreatDetectionCustomModuleRequest.newBuilder()
           .setName(
               EventThreatDetectionCustomModuleName
                   .ofProjectLocationEventThreatDetectionCustomModuleName(
                       "[PROJECT]", "[LOCATION]", "[EVENT_THREAT_DETECTION_CUSTOM_MODULE]")
                   .toString())
           .build();
   EventThreatDetectionCustomModule response =
       securityCenterManagementClient.getEventThreatDetectionCustomModule(request);
 }
 
Parameter
NameDescription
requestGetEventThreatDetectionCustomModuleRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
EventThreatDetectionCustomModule

getEventThreatDetectionCustomModule(String name)

public final EventThreatDetectionCustomModule getEventThreatDetectionCustomModule(String name)

Gets an Event Threat Detection custom module.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String name =
       EventThreatDetectionCustomModuleName
           .ofOrganizationLocationEventThreatDetectionCustomModuleName(
               "[ORGANIZATION]", "[LOCATION]", "[EVENT_THREAT_DETECTION_CUSTOM_MODULE]")
           .toString();
   EventThreatDetectionCustomModule response =
       securityCenterManagementClient.getEventThreatDetectionCustomModule(name);
 }
 
Parameter
NameDescription
nameString

Required. 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
EventThreatDetectionCustomModule

getEventThreatDetectionCustomModuleCallable()

public final UnaryCallable<GetEventThreatDetectionCustomModuleRequest,EventThreatDetectionCustomModule> getEventThreatDetectionCustomModuleCallable()

Gets an Event Threat Detection custom module.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   GetEventThreatDetectionCustomModuleRequest request =
       GetEventThreatDetectionCustomModuleRequest.newBuilder()
           .setName(
               EventThreatDetectionCustomModuleName
                   .ofProjectLocationEventThreatDetectionCustomModuleName(
                       "[PROJECT]", "[LOCATION]", "[EVENT_THREAT_DETECTION_CUSTOM_MODULE]")
                   .toString())
           .build();
   ApiFuture<EventThreatDetectionCustomModule> future =
       securityCenterManagementClient
           .getEventThreatDetectionCustomModuleCallable()
           .futureCall(request);
   // Do something.
   EventThreatDetectionCustomModule response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetEventThreatDetectionCustomModuleRequest,EventThreatDetectionCustomModule>

getLocation(GetLocationRequest request)

public final Location getLocation(GetLocationRequest request)

Gets information about a location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
   Location response = securityCenterManagementClient.getLocation(request);
 }
 
Parameter
NameDescription
requestcom.google.cloud.location.GetLocationRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
com.google.cloud.location.Location

getLocationCallable()

public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()

Gets information about a location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
   ApiFuture<Location> future =
       securityCenterManagementClient.getLocationCallable().futureCall(request);
   // Do something.
   Location response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getSecurityHealthAnalyticsCustomModule(GetSecurityHealthAnalyticsCustomModuleRequest request)

public final SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule(GetSecurityHealthAnalyticsCustomModuleRequest request)

Retrieves a SecurityHealthAnalyticsCustomModule.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   GetSecurityHealthAnalyticsCustomModuleRequest request =
       GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
           .setName(
               SecurityHealthAnalyticsCustomModuleName
                   .ofProjectLocationSecurityHealthAnalyticsCustomModuleName(
                       "[PROJECT]", "[LOCATION]", "[SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE]")
                   .toString())
           .build();
   SecurityHealthAnalyticsCustomModule response =
       securityCenterManagementClient.getSecurityHealthAnalyticsCustomModule(request);
 }
 
Parameter
NameDescription
requestGetSecurityHealthAnalyticsCustomModuleRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

getSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModuleName name)

public final SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModuleName name)

Retrieves a SecurityHealthAnalyticsCustomModule.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   SecurityHealthAnalyticsCustomModuleName name =
       SecurityHealthAnalyticsCustomModuleName
           .ofProjectLocationSecurityHealthAnalyticsCustomModuleName(
               "[PROJECT]", "[LOCATION]", "[SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE]");
   SecurityHealthAnalyticsCustomModule response =
       securityCenterManagementClient.getSecurityHealthAnalyticsCustomModule(name);
 }
 
Parameter
NameDescription
nameSecurityHealthAnalyticsCustomModuleName

Required. Name of the resource

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

getSecurityHealthAnalyticsCustomModule(String name)

public final SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule(String name)

Retrieves a SecurityHealthAnalyticsCustomModule.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String name =
       SecurityHealthAnalyticsCustomModuleName
           .ofOrganizationLocationSecurityHealthAnalyticsCustomModuleName(
               "[ORGANIZATION]", "[LOCATION]", "[SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE]")
           .toString();
   SecurityHealthAnalyticsCustomModule response =
       securityCenterManagementClient.getSecurityHealthAnalyticsCustomModule(name);
 }
 
Parameter
NameDescription
nameString

Required. Name of the resource

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

getSecurityHealthAnalyticsCustomModuleCallable()

public final UnaryCallable<GetSecurityHealthAnalyticsCustomModuleRequest,SecurityHealthAnalyticsCustomModule> getSecurityHealthAnalyticsCustomModuleCallable()

Retrieves a SecurityHealthAnalyticsCustomModule.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   GetSecurityHealthAnalyticsCustomModuleRequest request =
       GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
           .setName(
               SecurityHealthAnalyticsCustomModuleName
                   .ofProjectLocationSecurityHealthAnalyticsCustomModuleName(
                       "[PROJECT]", "[LOCATION]", "[SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE]")
                   .toString())
           .build();
   ApiFuture<SecurityHealthAnalyticsCustomModule> future =
       securityCenterManagementClient
           .getSecurityHealthAnalyticsCustomModuleCallable()
           .futureCall(request);
   // Do something.
   SecurityHealthAnalyticsCustomModule response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetSecurityHealthAnalyticsCustomModuleRequest,SecurityHealthAnalyticsCustomModule>

getSettings()

public final SecurityCenterManagementSettings getSettings()
Returns
TypeDescription
SecurityCenterManagementSettings

getStub()

public SecurityCenterManagementStub getStub()
Returns
TypeDescription
SecurityCenterManagementStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listDescendantEventThreatDetectionCustomModules(FolderLocationName parent)

public final SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesPagedResponse listDescendantEventThreatDetectionCustomModules(FolderLocationName parent)

Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
   for (EventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listDescendantEventThreatDetectionCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentFolderLocationName

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesPagedResponse

listDescendantEventThreatDetectionCustomModules(ListDescendantEventThreatDetectionCustomModulesRequest request)

public final SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesPagedResponse listDescendantEventThreatDetectionCustomModules(ListDescendantEventThreatDetectionCustomModulesRequest request)

Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListDescendantEventThreatDetectionCustomModulesRequest request =
       ListDescendantEventThreatDetectionCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (EventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listDescendantEventThreatDetectionCustomModules(request)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListDescendantEventThreatDetectionCustomModulesRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesPagedResponse

listDescendantEventThreatDetectionCustomModules(LocationName parent)

public final SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesPagedResponse listDescendantEventThreatDetectionCustomModules(LocationName parent)

Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (EventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listDescendantEventThreatDetectionCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentLocationName

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesPagedResponse

listDescendantEventThreatDetectionCustomModules(OrganizationLocationName parent)

public final SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesPagedResponse listDescendantEventThreatDetectionCustomModules(OrganizationLocationName parent)

Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
   for (EventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listDescendantEventThreatDetectionCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentOrganizationLocationName

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesPagedResponse

listDescendantEventThreatDetectionCustomModules(String parent)

public final SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesPagedResponse listDescendantEventThreatDetectionCustomModules(String parent)

Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
   for (EventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listDescendantEventThreatDetectionCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesPagedResponse

listDescendantEventThreatDetectionCustomModulesCallable()

public final UnaryCallable<ListDescendantEventThreatDetectionCustomModulesRequest,ListDescendantEventThreatDetectionCustomModulesResponse> listDescendantEventThreatDetectionCustomModulesCallable()

Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListDescendantEventThreatDetectionCustomModulesRequest request =
       ListDescendantEventThreatDetectionCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListDescendantEventThreatDetectionCustomModulesResponse response =
         securityCenterManagementClient
             .listDescendantEventThreatDetectionCustomModulesCallable()
             .call(request);
     for (EventThreatDetectionCustomModule element :
         response.getEventThreatDetectionCustomModulesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDescendantEventThreatDetectionCustomModulesRequest,ListDescendantEventThreatDetectionCustomModulesResponse>

listDescendantEventThreatDetectionCustomModulesPagedCallable()

public final UnaryCallable<ListDescendantEventThreatDetectionCustomModulesRequest,SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesPagedResponse> listDescendantEventThreatDetectionCustomModulesPagedCallable()

Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListDescendantEventThreatDetectionCustomModulesRequest request =
       ListDescendantEventThreatDetectionCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<EventThreatDetectionCustomModule> future =
       securityCenterManagementClient
           .listDescendantEventThreatDetectionCustomModulesPagedCallable()
           .futureCall(request);
   // Do something.
   for (EventThreatDetectionCustomModule element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDescendantEventThreatDetectionCustomModulesRequest,ListDescendantEventThreatDetectionCustomModulesPagedResponse>

listDescendantSecurityHealthAnalyticsCustomModules(FolderLocationName parent)

public final SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse listDescendantSecurityHealthAnalyticsCustomModules(FolderLocationName parent)

Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
   for (SecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listDescendantSecurityHealthAnalyticsCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentFolderLocationName

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse

listDescendantSecurityHealthAnalyticsCustomModules(ListDescendantSecurityHealthAnalyticsCustomModulesRequest request)

public final SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse listDescendantSecurityHealthAnalyticsCustomModules(ListDescendantSecurityHealthAnalyticsCustomModulesRequest request)

Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListDescendantSecurityHealthAnalyticsCustomModulesRequest request =
       ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (SecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listDescendantSecurityHealthAnalyticsCustomModules(request)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListDescendantSecurityHealthAnalyticsCustomModulesRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse

listDescendantSecurityHealthAnalyticsCustomModules(LocationName parent)

public final SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse listDescendantSecurityHealthAnalyticsCustomModules(LocationName parent)

Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (SecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listDescendantSecurityHealthAnalyticsCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentLocationName

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse

listDescendantSecurityHealthAnalyticsCustomModules(OrganizationLocationName parent)

public final SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse listDescendantSecurityHealthAnalyticsCustomModules(OrganizationLocationName parent)

Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
   for (SecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listDescendantSecurityHealthAnalyticsCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentOrganizationLocationName

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse

listDescendantSecurityHealthAnalyticsCustomModules(String parent)

public final SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse listDescendantSecurityHealthAnalyticsCustomModules(String parent)

Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
   for (SecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listDescendantSecurityHealthAnalyticsCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse

listDescendantSecurityHealthAnalyticsCustomModulesCallable()

public final UnaryCallable<ListDescendantSecurityHealthAnalyticsCustomModulesRequest,ListDescendantSecurityHealthAnalyticsCustomModulesResponse> listDescendantSecurityHealthAnalyticsCustomModulesCallable()

Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListDescendantSecurityHealthAnalyticsCustomModulesRequest request =
       ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListDescendantSecurityHealthAnalyticsCustomModulesResponse response =
         securityCenterManagementClient
             .listDescendantSecurityHealthAnalyticsCustomModulesCallable()
             .call(request);
     for (SecurityHealthAnalyticsCustomModule element :
         response.getSecurityHealthAnalyticsCustomModulesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDescendantSecurityHealthAnalyticsCustomModulesRequest,ListDescendantSecurityHealthAnalyticsCustomModulesResponse>

listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable()

public final UnaryCallable<ListDescendantSecurityHealthAnalyticsCustomModulesRequest,SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse> listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable()

Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListDescendantSecurityHealthAnalyticsCustomModulesRequest request =
       ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<SecurityHealthAnalyticsCustomModule> future =
       securityCenterManagementClient
           .listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable()
           .futureCall(request);
   // Do something.
   for (SecurityHealthAnalyticsCustomModule element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDescendantSecurityHealthAnalyticsCustomModulesRequest,ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse>

listEffectiveEventThreatDetectionCustomModules(FolderLocationName parent)

public final SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesPagedResponse listEffectiveEventThreatDetectionCustomModules(FolderLocationName parent)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
   for (EffectiveEventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listEffectiveEventThreatDetectionCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentFolderLocationName

Required. Name of parent to list effective custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesPagedResponse

listEffectiveEventThreatDetectionCustomModules(ListEffectiveEventThreatDetectionCustomModulesRequest request)

public final SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesPagedResponse listEffectiveEventThreatDetectionCustomModules(ListEffectiveEventThreatDetectionCustomModulesRequest request)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListEffectiveEventThreatDetectionCustomModulesRequest request =
       ListEffectiveEventThreatDetectionCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (EffectiveEventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listEffectiveEventThreatDetectionCustomModules(request)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListEffectiveEventThreatDetectionCustomModulesRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesPagedResponse

listEffectiveEventThreatDetectionCustomModules(LocationName parent)

public final SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesPagedResponse listEffectiveEventThreatDetectionCustomModules(LocationName parent)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (EffectiveEventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listEffectiveEventThreatDetectionCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentLocationName

Required. Name of parent to list effective custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesPagedResponse

listEffectiveEventThreatDetectionCustomModules(OrganizationLocationName parent)

public final SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesPagedResponse listEffectiveEventThreatDetectionCustomModules(OrganizationLocationName parent)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
   for (EffectiveEventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listEffectiveEventThreatDetectionCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentOrganizationLocationName

Required. Name of parent to list effective custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesPagedResponse

listEffectiveEventThreatDetectionCustomModules(String parent)

public final SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesPagedResponse listEffectiveEventThreatDetectionCustomModules(String parent)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
   for (EffectiveEventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listEffectiveEventThreatDetectionCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Name of parent to list effective custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesPagedResponse

listEffectiveEventThreatDetectionCustomModulesCallable()

public final UnaryCallable<ListEffectiveEventThreatDetectionCustomModulesRequest,ListEffectiveEventThreatDetectionCustomModulesResponse> listEffectiveEventThreatDetectionCustomModulesCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListEffectiveEventThreatDetectionCustomModulesRequest request =
       ListEffectiveEventThreatDetectionCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListEffectiveEventThreatDetectionCustomModulesResponse response =
         securityCenterManagementClient
             .listEffectiveEventThreatDetectionCustomModulesCallable()
             .call(request);
     for (EffectiveEventThreatDetectionCustomModule element :
         response.getEffectiveEventThreatDetectionCustomModulesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListEffectiveEventThreatDetectionCustomModulesRequest,ListEffectiveEventThreatDetectionCustomModulesResponse>

listEffectiveEventThreatDetectionCustomModulesPagedCallable()

public final UnaryCallable<ListEffectiveEventThreatDetectionCustomModulesRequest,SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesPagedResponse> listEffectiveEventThreatDetectionCustomModulesPagedCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListEffectiveEventThreatDetectionCustomModulesRequest request =
       ListEffectiveEventThreatDetectionCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<EffectiveEventThreatDetectionCustomModule> future =
       securityCenterManagementClient
           .listEffectiveEventThreatDetectionCustomModulesPagedCallable()
           .futureCall(request);
   // Do something.
   for (EffectiveEventThreatDetectionCustomModule element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListEffectiveEventThreatDetectionCustomModulesRequest,ListEffectiveEventThreatDetectionCustomModulesPagedResponse>

listEffectiveSecurityHealthAnalyticsCustomModules(FolderLocationName parent)

public final SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse listEffectiveSecurityHealthAnalyticsCustomModules(FolderLocationName parent)

Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
   for (EffectiveSecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listEffectiveSecurityHealthAnalyticsCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentFolderLocationName

Required. Name of parent to list effective custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse

listEffectiveSecurityHealthAnalyticsCustomModules(ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request)

public final SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse listEffectiveSecurityHealthAnalyticsCustomModules(ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request)

Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request =
       ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (EffectiveSecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listEffectiveSecurityHealthAnalyticsCustomModules(request)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListEffectiveSecurityHealthAnalyticsCustomModulesRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse

listEffectiveSecurityHealthAnalyticsCustomModules(LocationName parent)

public final SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse listEffectiveSecurityHealthAnalyticsCustomModules(LocationName parent)

Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (EffectiveSecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listEffectiveSecurityHealthAnalyticsCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentLocationName

Required. Name of parent to list effective custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse

listEffectiveSecurityHealthAnalyticsCustomModules(OrganizationLocationName parent)

public final SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse listEffectiveSecurityHealthAnalyticsCustomModules(OrganizationLocationName parent)

Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
   for (EffectiveSecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listEffectiveSecurityHealthAnalyticsCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentOrganizationLocationName

Required. Name of parent to list effective custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse

listEffectiveSecurityHealthAnalyticsCustomModules(String parent)

public final SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse listEffectiveSecurityHealthAnalyticsCustomModules(String parent)

Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
   for (EffectiveSecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listEffectiveSecurityHealthAnalyticsCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Name of parent to list effective custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse

listEffectiveSecurityHealthAnalyticsCustomModulesCallable()

public final UnaryCallable<ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> listEffectiveSecurityHealthAnalyticsCustomModulesCallable()

Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request =
       ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListEffectiveSecurityHealthAnalyticsCustomModulesResponse response =
         securityCenterManagementClient
             .listEffectiveSecurityHealthAnalyticsCustomModulesCallable()
             .call(request);
     for (EffectiveSecurityHealthAnalyticsCustomModule element :
         response.getEffectiveSecurityHealthAnalyticsCustomModulesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>

listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable()

public final UnaryCallable<ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse> listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable()

Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request =
       ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<EffectiveSecurityHealthAnalyticsCustomModule> future =
       securityCenterManagementClient
           .listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable()
           .futureCall(request);
   // Do something.
   for (EffectiveSecurityHealthAnalyticsCustomModule element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse>

listEventThreatDetectionCustomModules(FolderLocationName parent)

public final SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse listEventThreatDetectionCustomModules(FolderLocationName parent)

Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
   for (EventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listEventThreatDetectionCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentFolderLocationName

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse

listEventThreatDetectionCustomModules(ListEventThreatDetectionCustomModulesRequest request)

public final SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse listEventThreatDetectionCustomModules(ListEventThreatDetectionCustomModulesRequest request)

Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListEventThreatDetectionCustomModulesRequest request =
       ListEventThreatDetectionCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (EventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listEventThreatDetectionCustomModules(request)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListEventThreatDetectionCustomModulesRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse

listEventThreatDetectionCustomModules(LocationName parent)

public final SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse listEventThreatDetectionCustomModules(LocationName parent)

Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (EventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listEventThreatDetectionCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentLocationName

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse

listEventThreatDetectionCustomModules(OrganizationLocationName parent)

public final SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse listEventThreatDetectionCustomModules(OrganizationLocationName parent)

Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
   for (EventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listEventThreatDetectionCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentOrganizationLocationName

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse

listEventThreatDetectionCustomModules(String parent)

public final SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse listEventThreatDetectionCustomModules(String parent)

Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
   for (EventThreatDetectionCustomModule element :
       securityCenterManagementClient
           .listEventThreatDetectionCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse

listEventThreatDetectionCustomModulesCallable()

public final UnaryCallable<ListEventThreatDetectionCustomModulesRequest,ListEventThreatDetectionCustomModulesResponse> listEventThreatDetectionCustomModulesCallable()

Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListEventThreatDetectionCustomModulesRequest request =
       ListEventThreatDetectionCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListEventThreatDetectionCustomModulesResponse response =
         securityCenterManagementClient
             .listEventThreatDetectionCustomModulesCallable()
             .call(request);
     for (EventThreatDetectionCustomModule element :
         response.getEventThreatDetectionCustomModulesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListEventThreatDetectionCustomModulesRequest,ListEventThreatDetectionCustomModulesResponse>

listEventThreatDetectionCustomModulesPagedCallable()

public final UnaryCallable<ListEventThreatDetectionCustomModulesRequest,SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse> listEventThreatDetectionCustomModulesPagedCallable()

Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListEventThreatDetectionCustomModulesRequest request =
       ListEventThreatDetectionCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<EventThreatDetectionCustomModule> future =
       securityCenterManagementClient
           .listEventThreatDetectionCustomModulesPagedCallable()
           .futureCall(request);
   // Do something.
   for (EventThreatDetectionCustomModule element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListEventThreatDetectionCustomModulesRequest,ListEventThreatDetectionCustomModulesPagedResponse>

listLocations(ListLocationsRequest request)

public final SecurityCenterManagementClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)

Lists information about the supported locations for this service.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (Location element : securityCenterManagementClient.listLocations(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestcom.google.cloud.location.ListLocationsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SecurityCenterManagementClient.ListLocationsPagedResponse

listLocationsCallable()

public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()

Lists information about the supported locations for this service.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListLocationsResponse response =
         securityCenterManagementClient.listLocationsCallable().call(request);
     for (Location element : response.getLocationsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>

listLocationsPagedCallable()

public final UnaryCallable<ListLocationsRequest,SecurityCenterManagementClient.ListLocationsPagedResponse> listLocationsPagedCallable()

Lists information about the supported locations for this service.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<Location> future =
       securityCenterManagementClient.listLocationsPagedCallable().futureCall(request);
   // Do something.
   for (Location element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>

listSecurityHealthAnalyticsCustomModules(FolderLocationName parent)

public final SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse listSecurityHealthAnalyticsCustomModules(FolderLocationName parent)

Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
   for (SecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listSecurityHealthAnalyticsCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentFolderLocationName

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse

listSecurityHealthAnalyticsCustomModules(ListSecurityHealthAnalyticsCustomModulesRequest request)

public final SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse listSecurityHealthAnalyticsCustomModules(ListSecurityHealthAnalyticsCustomModulesRequest request)

Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListSecurityHealthAnalyticsCustomModulesRequest request =
       ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (SecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listSecurityHealthAnalyticsCustomModules(request)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListSecurityHealthAnalyticsCustomModulesRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse

listSecurityHealthAnalyticsCustomModules(LocationName parent)

public final SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse listSecurityHealthAnalyticsCustomModules(LocationName parent)

Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (SecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listSecurityHealthAnalyticsCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentLocationName

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse

listSecurityHealthAnalyticsCustomModules(OrganizationLocationName parent)

public final SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse listSecurityHealthAnalyticsCustomModules(OrganizationLocationName parent)

Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
   for (SecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listSecurityHealthAnalyticsCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentOrganizationLocationName

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse

listSecurityHealthAnalyticsCustomModules(String parent)

public final SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse listSecurityHealthAnalyticsCustomModules(String parent)

Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
   for (SecurityHealthAnalyticsCustomModule element :
       securityCenterManagementClient
           .listSecurityHealthAnalyticsCustomModules(parent)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Name of parent to list custom modules. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

Returns
TypeDescription
SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse

listSecurityHealthAnalyticsCustomModulesCallable()

public final UnaryCallable<ListSecurityHealthAnalyticsCustomModulesRequest,ListSecurityHealthAnalyticsCustomModulesResponse> listSecurityHealthAnalyticsCustomModulesCallable()

Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListSecurityHealthAnalyticsCustomModulesRequest request =
       ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListSecurityHealthAnalyticsCustomModulesResponse response =
         securityCenterManagementClient
             .listSecurityHealthAnalyticsCustomModulesCallable()
             .call(request);
     for (SecurityHealthAnalyticsCustomModule element :
         response.getSecurityHealthAnalyticsCustomModulesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListSecurityHealthAnalyticsCustomModulesRequest,ListSecurityHealthAnalyticsCustomModulesResponse>

listSecurityHealthAnalyticsCustomModulesPagedCallable()

public final UnaryCallable<ListSecurityHealthAnalyticsCustomModulesRequest,SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse> listSecurityHealthAnalyticsCustomModulesPagedCallable()

Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors (no descendants).

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ListSecurityHealthAnalyticsCustomModulesRequest request =
       ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<SecurityHealthAnalyticsCustomModule> future =
       securityCenterManagementClient
           .listSecurityHealthAnalyticsCustomModulesPagedCallable()
           .futureCall(request);
   // Do something.
   for (SecurityHealthAnalyticsCustomModule element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListSecurityHealthAnalyticsCustomModulesRequest,ListSecurityHealthAnalyticsCustomModulesPagedResponse>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

simulateSecurityHealthAnalyticsCustomModule(SimulateSecurityHealthAnalyticsCustomModuleRequest request)

public final SimulateSecurityHealthAnalyticsCustomModuleResponse simulateSecurityHealthAnalyticsCustomModule(SimulateSecurityHealthAnalyticsCustomModuleRequest request)

Simulates a given SecurityHealthAnalyticsCustomModule and Resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   SimulateSecurityHealthAnalyticsCustomModuleRequest request =
       SimulateSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
           .setParent("parent-995424086")
           .setCustomConfig(CustomConfig.newBuilder().build())
           .setResource(
               SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.newBuilder()
                   .build())
           .build();
   SimulateSecurityHealthAnalyticsCustomModuleResponse response =
       securityCenterManagementClient.simulateSecurityHealthAnalyticsCustomModule(request);
 }
 
Parameter
NameDescription
requestSimulateSecurityHealthAnalyticsCustomModuleRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleResponse

simulateSecurityHealthAnalyticsCustomModule(String parent, CustomConfig customConfig, SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource)

public final SimulateSecurityHealthAnalyticsCustomModuleResponse simulateSecurityHealthAnalyticsCustomModule(String parent, CustomConfig customConfig, SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource)

Simulates a given SecurityHealthAnalyticsCustomModule and Resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   String parent = "parent-995424086";
   CustomConfig customConfig = CustomConfig.newBuilder().build();
   SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource =
       SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.newBuilder().build();
   SimulateSecurityHealthAnalyticsCustomModuleResponse response =
       securityCenterManagementClient.simulateSecurityHealthAnalyticsCustomModule(
           parent, customConfig, resource);
 }
 
Parameters
NameDescription
parentString

Required. The relative resource name of the organization, project, or folder. For more information about relative resource names, see Relative Resource Name Example: organizations/{organization_id}.

customConfigCustomConfig

Required. The custom configuration that you need to test.

resourceSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource

Required. Resource data to simulate custom module against.

Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleResponse

simulateSecurityHealthAnalyticsCustomModuleCallable()

public final UnaryCallable<SimulateSecurityHealthAnalyticsCustomModuleRequest,SimulateSecurityHealthAnalyticsCustomModuleResponse> simulateSecurityHealthAnalyticsCustomModuleCallable()

Simulates a given SecurityHealthAnalyticsCustomModule and Resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   SimulateSecurityHealthAnalyticsCustomModuleRequest request =
       SimulateSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
           .setParent("parent-995424086")
           .setCustomConfig(CustomConfig.newBuilder().build())
           .setResource(
               SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.newBuilder()
                   .build())
           .build();
   ApiFuture<SimulateSecurityHealthAnalyticsCustomModuleResponse> future =
       securityCenterManagementClient
           .simulateSecurityHealthAnalyticsCustomModuleCallable()
           .futureCall(request);
   // Do something.
   SimulateSecurityHealthAnalyticsCustomModuleResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<SimulateSecurityHealthAnalyticsCustomModuleRequest,SimulateSecurityHealthAnalyticsCustomModuleResponse>

updateEventThreatDetectionCustomModule(EventThreatDetectionCustomModule eventThreatDetectionCustomModule, FieldMask updateMask)

public final EventThreatDetectionCustomModule updateEventThreatDetectionCustomModule(EventThreatDetectionCustomModule eventThreatDetectionCustomModule, FieldMask updateMask)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   EventThreatDetectionCustomModule eventThreatDetectionCustomModule =
       EventThreatDetectionCustomModule.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   EventThreatDetectionCustomModule response =
       securityCenterManagementClient.updateEventThreatDetectionCustomModule(
           eventThreatDetectionCustomModule, updateMask);
 }
 
Parameters
NameDescription
eventThreatDetectionCustomModuleEventThreatDetectionCustomModule

Required. The module being updated

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the EventThreatDetectionCustomModule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Returns
TypeDescription
EventThreatDetectionCustomModule

updateEventThreatDetectionCustomModule(UpdateEventThreatDetectionCustomModuleRequest request)

public final EventThreatDetectionCustomModule updateEventThreatDetectionCustomModule(UpdateEventThreatDetectionCustomModuleRequest request)

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   UpdateEventThreatDetectionCustomModuleRequest request =
       UpdateEventThreatDetectionCustomModuleRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setEventThreatDetectionCustomModule(
               EventThreatDetectionCustomModule.newBuilder().build())
           .setValidateOnly(true)
           .build();
   EventThreatDetectionCustomModule response =
       securityCenterManagementClient.updateEventThreatDetectionCustomModule(request);
 }
 
Parameter
NameDescription
requestUpdateEventThreatDetectionCustomModuleRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
EventThreatDetectionCustomModule

updateEventThreatDetectionCustomModuleCallable()

public final UnaryCallable<UpdateEventThreatDetectionCustomModuleRequest,EventThreatDetectionCustomModule> updateEventThreatDetectionCustomModuleCallable()

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.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   UpdateEventThreatDetectionCustomModuleRequest request =
       UpdateEventThreatDetectionCustomModuleRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setEventThreatDetectionCustomModule(
               EventThreatDetectionCustomModule.newBuilder().build())
           .setValidateOnly(true)
           .build();
   ApiFuture<EventThreatDetectionCustomModule> future =
       securityCenterManagementClient
           .updateEventThreatDetectionCustomModuleCallable()
           .futureCall(request);
   // Do something.
   EventThreatDetectionCustomModule response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateEventThreatDetectionCustomModuleRequest,EventThreatDetectionCustomModule>

updateSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, FieldMask updateMask)

public final SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, FieldMask updateMask)

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 config of a module is supported on resident modules only.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
       SecurityHealthAnalyticsCustomModule.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   SecurityHealthAnalyticsCustomModule response =
       securityCenterManagementClient.updateSecurityHealthAnalyticsCustomModule(
           securityHealthAnalyticsCustomModule, updateMask);
 }
 
Parameters
NameDescription
securityHealthAnalyticsCustomModuleSecurityHealthAnalyticsCustomModule

Required. The resource being updated

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the SecurityHealthAnalyticsCustomModule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

updateSecurityHealthAnalyticsCustomModule(UpdateSecurityHealthAnalyticsCustomModuleRequest request)

public final SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCustomModule(UpdateSecurityHealthAnalyticsCustomModuleRequest request)

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 config of a module is supported on resident modules only.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   UpdateSecurityHealthAnalyticsCustomModuleRequest request =
       UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setSecurityHealthAnalyticsCustomModule(
               SecurityHealthAnalyticsCustomModule.newBuilder().build())
           .setValidateOnly(true)
           .build();
   SecurityHealthAnalyticsCustomModule response =
       securityCenterManagementClient.updateSecurityHealthAnalyticsCustomModule(request);
 }
 
Parameter
NameDescription
requestUpdateSecurityHealthAnalyticsCustomModuleRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

updateSecurityHealthAnalyticsCustomModuleCallable()

public final UnaryCallable<UpdateSecurityHealthAnalyticsCustomModuleRequest,SecurityHealthAnalyticsCustomModule> updateSecurityHealthAnalyticsCustomModuleCallable()

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 config of a module is supported on resident modules only.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   UpdateSecurityHealthAnalyticsCustomModuleRequest request =
       UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setSecurityHealthAnalyticsCustomModule(
               SecurityHealthAnalyticsCustomModule.newBuilder().build())
           .setValidateOnly(true)
           .build();
   ApiFuture<SecurityHealthAnalyticsCustomModule> future =
       securityCenterManagementClient
           .updateSecurityHealthAnalyticsCustomModuleCallable()
           .futureCall(request);
   // Do something.
   SecurityHealthAnalyticsCustomModule response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateSecurityHealthAnalyticsCustomModuleRequest,SecurityHealthAnalyticsCustomModule>

validateEventThreatDetectionCustomModule(ValidateEventThreatDetectionCustomModuleRequest request)

public final ValidateEventThreatDetectionCustomModuleResponse validateEventThreatDetectionCustomModule(ValidateEventThreatDetectionCustomModuleRequest request)

Validates the given Event Threat Detection custom module.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ValidateEventThreatDetectionCustomModuleRequest request =
       ValidateEventThreatDetectionCustomModuleRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setRawText("rawText985734517")
           .setType("type3575610")
           .build();
   ValidateEventThreatDetectionCustomModuleResponse response =
       securityCenterManagementClient.validateEventThreatDetectionCustomModule(request);
 }
 
Parameter
NameDescription
requestValidateEventThreatDetectionCustomModuleRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
ValidateEventThreatDetectionCustomModuleResponse

validateEventThreatDetectionCustomModuleCallable()

public final UnaryCallable<ValidateEventThreatDetectionCustomModuleRequest,ValidateEventThreatDetectionCustomModuleResponse> validateEventThreatDetectionCustomModuleCallable()

Validates the given Event Threat Detection custom module.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityCenterManagementClient securityCenterManagementClient =
     SecurityCenterManagementClient.create()) {
   ValidateEventThreatDetectionCustomModuleRequest request =
       ValidateEventThreatDetectionCustomModuleRequest.newBuilder()
           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
           .setRawText("rawText985734517")
           .setType("type3575610")
           .build();
   ApiFuture<ValidateEventThreatDetectionCustomModuleResponse> future =
       securityCenterManagementClient
           .validateEventThreatDetectionCustomModuleCallable()
           .futureCall(request);
   // Do something.
   ValidateEventThreatDetectionCustomModuleResponse response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<ValidateEventThreatDetectionCustomModuleRequest,ValidateEventThreatDetectionCustomModuleResponse>