3.14.0-rc 3.13.0 (latest) 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 2.48.0-rc 2.47.1 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 2.39.0 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.27.0 2.26.0 2.25.1 2.24.0 2.23.0 2.22.1 Service describing handlers for resources.

###### Equality

Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal `std::shared_ptr<*Connection>` objects compare equal. Objects that compare equal share the same underlying resources.

###### Performance

Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.

###### Thread Safety

Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.

## Constructors

### SecurityCenterManagementClient(SecurityCenterManagementClient const \&)

Copy and move support

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `SecurityCenterManagementClient const &` |

### SecurityCenterManagementClient(SecurityCenterManagementClient \&\&)

Copy and move support

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `SecurityCenterManagementClient &&` |

### SecurityCenterManagementClient(std::shared_ptr\< SecurityCenterManagementConnection \>, Options)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `connection` | `std::shared_ptr< SecurityCenterManagementConnection >` |
| `opts` | `Options` |

## Operators

### operator=(SecurityCenterManagementClient const \&)

Copy and move support

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `SecurityCenterManagementClient const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SecurityCenterManagementClient &` |   |

### operator=(SecurityCenterManagementClient \&\&)

Copy and move support

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `SecurityCenterManagementClient &&` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SecurityCenterManagementClient &` |   |

## Functions

### ListEffectiveSecurityHealthAnalyticsCustomModules(std::string const \&, Options)

Returns a list of all [EffectiveSecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L575) resources for the given parent.
This includes resident modules defined at the scope of the parent, and inherited modules, inherited from ancestor organizations, folders, and projects (no descendants).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. Name of parent to list effective custom modules, in one of the following formats: - `organizations/{organization}/locations/{location}` - `folders/{folder}/locations/{location}` - `projects/{project}/locations/{location}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::securitycentermanagement::v1::EffectiveSecurityHealthAnalyticsCustomModule >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L575), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ListEffectiveSecurityHealthAnalyticsCustomModules(google::cloud::securitycentermanagement::v1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, Options)

Returns a list of all [EffectiveSecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L575) resources for the given parent.
This includes resident modules defined at the scope of the parent, and inherited modules, inherited from ancestor organizations, folders, and projects (no descendants).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L621). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::securitycentermanagement::v1::EffectiveSecurityHealthAnalyticsCustomModule >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L575), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### GetEffectiveSecurityHealthAnalyticsCustomModule(std::string const \&, Options)

Gets details of a single [EffectiveSecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L575).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The full resource name of the custom module, specified in one of the following formats: - `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{custom_module}` - `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{custom_module}` - `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{custom_module}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::EffectiveSecurityHealthAnalyticsCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L575)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### GetEffectiveSecurityHealthAnalyticsCustomModule(google::cloud::securitycentermanagement::v1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest const \&, Options)

Gets details of a single [EffectiveSecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L575).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L661). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::EffectiveSecurityHealthAnalyticsCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L575)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ListSecurityHealthAnalyticsCustomModules(std::string const \&, Options)

Returns a list of all [SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681) resources for the given parent.
This includes resident modules defined at the scope of the parent, and inherited modules, inherited from ancestor organizations, folders, and projects (no descendants).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. Name of the parent organization, folder, or project in which to list custom modules, in one of the following formats: - `organizations/{organization}/locations/{location}` - `folders/{folder}/locations/{location}` - `projects/{project}/locations/{location}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ListSecurityHealthAnalyticsCustomModules(google::cloud::securitycentermanagement::v1::ListSecurityHealthAnalyticsCustomModulesRequest, Options)

Returns a list of all [SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681) resources for the given parent.
This includes resident modules defined at the scope of the parent, and inherited modules, inherited from ancestor organizations, folders, and projects (no descendants).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::ListSecurityHealthAnalyticsCustomModulesRequest` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L830). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ListDescendantSecurityHealthAnalyticsCustomModules(std::string const \&, Options)

Returns a list of all resident [SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681) resources under the given organization, folder, or project and all of its descendants.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. Name of the parent organization, folder, or project in which to list custom modules, in one of the following formats: - `organizations/{organization}/locations/{location}` - `folders/{folder}/locations/{location}` - `projects/{project}/locations/{location}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ListDescendantSecurityHealthAnalyticsCustomModules(google::cloud::securitycentermanagement::v1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest, Options)

Returns a list of all resident [SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681) resources under the given organization, folder, or project and all of its descendants.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L870). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### GetSecurityHealthAnalyticsCustomModule(std::string const \&, Options)

Retrieves a [SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. Name of the resource, in the format `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}`. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### GetSecurityHealthAnalyticsCustomModule(google::cloud::securitycentermanagement::v1::GetSecurityHealthAnalyticsCustomModuleRequest const \&, Options)

Retrieves a [SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::GetSecurityHealthAnalyticsCustomModuleRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L910). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### CreateSecurityHealthAnalyticsCustomModule(std::string const \&, google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule const \&, Options)

Creates a resident [SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681) at the scope of the given organization, folder, or project, and also creates inherited `SecurityHealthAnalyticsCustomModule` resources for all folders and projects that are descendants of the given parent.
These modules are enabled by default.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. Name of the parent organization, folder, or project of the module, in one of the following formats: - `organizations/{organization}/locations/{location}` - `folders/{folder}/locations/{location}` - `projects/{project}/locations/{location}` |
| `security_health_analytics_custom_module` | `google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule const &` Required. The resource being created. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### CreateSecurityHealthAnalyticsCustomModule(google::cloud::securitycentermanagement::v1::CreateSecurityHealthAnalyticsCustomModuleRequest const \&, Options)

Creates a resident [SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681) at the scope of the given organization, folder, or project, and also creates inherited `SecurityHealthAnalyticsCustomModule` resources for all folders and projects that are descendants of the given parent.
These modules are enabled by default.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::CreateSecurityHealthAnalyticsCustomModuleRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L923). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### UpdateSecurityHealthAnalyticsCustomModule(google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule const \&, google::protobuf::FieldMask const \&, Options)

Updates the [SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681) 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 configuration of a module is supported on resident modules only.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `security_health_analytics_custom_module` | `google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule const &` Required. The resource being updated. |
| `update_mask` | `google::protobuf::FieldMask const &` Required. The fields to update. The following values are valid: - `custom_config` - `enablement_state` If you omit this field or set it to the wildcard value `*`, then all eligible fields are updated. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### UpdateSecurityHealthAnalyticsCustomModule(google::cloud::securitycentermanagement::v1::UpdateSecurityHealthAnalyticsCustomModuleRequest const \&, Options)

Updates the [SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681) 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 configuration of a module is supported on resident modules only.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::UpdateSecurityHealthAnalyticsCustomModuleRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L959). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### DeleteSecurityHealthAnalyticsCustomModule(std::string const \&, Options)

Deletes the specified [SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681) and all of its descendants in the resource hierarchy.
This method is only supported for resident custom modules.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The resource name of the SHA custom module, in one of the following formats: - `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}` - `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}` - `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` | a [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### DeleteSecurityHealthAnalyticsCustomModule(google::cloud::securitycentermanagement::v1::DeleteSecurityHealthAnalyticsCustomModuleRequest const \&, Options)

Deletes the specified [SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681) and all of its descendants in the resource hierarchy.
This method is only supported for resident custom modules.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::DeleteSecurityHealthAnalyticsCustomModuleRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L992). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` | a [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### SimulateSecurityHealthAnalyticsCustomModule(std::string const \&, google::cloud::securitycentermanagement::v1::CustomConfig const \&, google::cloud::securitycentermanagement::v1::SimulateSecurityHealthAnalyticsCustomModuleRequest::SimulatedResource const \&, Options)

Simulates the result of using a [SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681) to check a resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. The relative resource name of the organization, project, or folder. For more information about relative resource names, see [AIP-122: Resource names](https://google.aip.dev/122). Example: `organizations/{organization_id}`. |
| `custom_config` | `google::cloud::securitycentermanagement::v1::CustomConfig const &` Required. The custom configuration that you need to test. |
| `resource` | `google::cloud::securitycentermanagement::v1::SimulateSecurityHealthAnalyticsCustomModuleRequest::SimulatedResource const &` Required. Resource data to simulate custom module against. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::SimulateSecurityHealthAnalyticsCustomModuleResponse >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1229)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### SimulateSecurityHealthAnalyticsCustomModule(google::cloud::securitycentermanagement::v1::SimulateSecurityHealthAnalyticsCustomModuleRequest const \&, Options)

Simulates the result of using a [SecurityHealthAnalyticsCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L681) to check a resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::SimulateSecurityHealthAnalyticsCustomModuleRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1025). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::SimulateSecurityHealthAnalyticsCustomModuleResponse >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1229)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ListEffectiveEventThreatDetectionCustomModules(std::string const \&, Options)

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.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. Name of parent to list effective custom modules, in one of the following formats: - `organizations/{organization}/locations/{location}` - `folders/{folder}/locations/{location}` - `projects/{project}/locations/{location}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::securitycentermanagement::v1::EffectiveEventThreatDetectionCustomModule >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1257), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ListEffectiveEventThreatDetectionCustomModules(google::cloud::securitycentermanagement::v1::ListEffectiveEventThreatDetectionCustomModulesRequest, Options)

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.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::ListEffectiveEventThreatDetectionCustomModulesRequest` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1307). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::securitycentermanagement::v1::EffectiveEventThreatDetectionCustomModule >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1257), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### GetEffectiveEventThreatDetectionCustomModule(std::string const \&, Options)

Gets the effective Event Threat Detection custom module at the given level.
The difference between an [EffectiveEventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1257) and an [EventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1365) is that the fields for an `EffectiveEventThreatDetectionCustomModule` are computed from ancestors if needed. For example, the enablement state for an `EventThreatDetectionCustomModule` can be `ENABLED`, `DISABLED`, or `INHERITED`. In contrast, the enablement state for an `EffectiveEventThreatDetectionCustomModule` is always computed as `ENABLED` or `DISABLED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The resource name of the Event Threat Detection custom module, in one of the following formats: - `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}` - `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}` - `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::EffectiveEventThreatDetectionCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1257)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### GetEffectiveEventThreatDetectionCustomModule(google::cloud::securitycentermanagement::v1::GetEffectiveEventThreatDetectionCustomModuleRequest const \&, Options)

Gets the effective Event Threat Detection custom module at the given level.
The difference between an [EffectiveEventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1257) and an [EventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1365) is that the fields for an `EffectiveEventThreatDetectionCustomModule` are computed from ancestors if needed. For example, the enablement state for an `EventThreatDetectionCustomModule` can be `ENABLED`, `DISABLED`, or `INHERITED`. In contrast, the enablement state for an `EffectiveEventThreatDetectionCustomModule` is always computed as `ENABLED` or `DISABLED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::GetEffectiveEventThreatDetectionCustomModuleRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1347). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::EffectiveEventThreatDetectionCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1257)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ListEventThreatDetectionCustomModules(std::string const \&, Options)

Lists all Event Threat Detection custom modules for the given organization, folder, or project.
This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. Name of parent to list custom modules, in one of the following formats: - `organizations/{organization}/locations/{location}` - `folders/{folder}/locations/{location}` - `projects/{project}/locations/{location}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1365), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ListEventThreatDetectionCustomModules(google::cloud::securitycentermanagement::v1::ListEventThreatDetectionCustomModulesRequest, Options)

Lists all Event Threat Detection custom modules for the given organization, folder, or project.
This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::ListEventThreatDetectionCustomModulesRequest` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1441). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1365), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ListDescendantEventThreatDetectionCustomModules(std::string const \&, Options)

Lists all resident Event Threat Detection custom modules for the given organization, folder, or project and its descendants.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. Name of parent to list custom modules, in one of the following formats: - `organizations/{organization}/locations/{location}` - `folders/{folder}/locations/{location}` - `projects/{project}/locations/{location}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1365), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ListDescendantEventThreatDetectionCustomModules(google::cloud::securitycentermanagement::v1::ListDescendantEventThreatDetectionCustomModulesRequest, Options)

Lists all resident Event Threat Detection custom modules for the given organization, folder, or project and its descendants.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::ListDescendantEventThreatDetectionCustomModulesRequest` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1482). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1365), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### GetEventThreatDetectionCustomModule(std::string const \&, Options)

Gets an Event Threat Detection custom module.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The resource name of the Event Threat Detection custom module, in one of the following formats: - `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}` - `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}` - `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1365)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### GetEventThreatDetectionCustomModule(google::cloud::securitycentermanagement::v1::GetEventThreatDetectionCustomModuleRequest const \&, Options)

Gets an Event Threat Detection custom module.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::GetEventThreatDetectionCustomModuleRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1523). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1365)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### CreateEventThreatDetectionCustomModule(std::string const \&, google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule const \&, Options)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. Name of parent for the module, in one of the following formats: - `organizations/{organization}/locations/{location}` - `folders/{folder}/locations/{location}` - `projects/{project}/locations/{location}` |
| `event_threat_detection_custom_module` | `google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule const &` Required. The module to create. The [EventThreatDetectionCustomModule.name](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1400) field is ignored; Security Command Center generates the name. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1365)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### CreateEventThreatDetectionCustomModule(google::cloud::securitycentermanagement::v1::CreateEventThreatDetectionCustomModuleRequest const \&, Options)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::CreateEventThreatDetectionCustomModuleRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1540). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1365)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### UpdateEventThreatDetectionCustomModule(google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule const \&, google::protobuf::FieldMask const \&, Options)

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.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `event_threat_detection_custom_module` | `google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule const &` Required. The module being updated. |
| `update_mask` | `google::protobuf::FieldMask const &` Required. The fields to update. If omitted, then all fields are updated. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1365)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### UpdateEventThreatDetectionCustomModule(google::cloud::securitycentermanagement::v1::UpdateEventThreatDetectionCustomModuleRequest const \&, Options)

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.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::UpdateEventThreatDetectionCustomModuleRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1576). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1365)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### DeleteEventThreatDetectionCustomModule(std::string const \&, Options)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The resource name of the Event Threat Detection custom module, in one of the following formats: - `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}` - `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}` - `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` | a [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### DeleteEventThreatDetectionCustomModule(google::cloud::securitycentermanagement::v1::DeleteEventThreatDetectionCustomModuleRequest const \&, Options)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::DeleteEventThreatDetectionCustomModuleRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1603). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` | a [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### ValidateEventThreatDetectionCustomModule(google::cloud::securitycentermanagement::v1::ValidateEventThreatDetectionCustomModuleRequest const \&, Options)

Validates the given Event Threat Detection custom module.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::ValidateEventThreatDetectionCustomModuleRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1635). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::ValidateEventThreatDetectionCustomModuleResponse >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1657)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### GetSecurityCenterService(std::string const \&, Options)

Gets service settings for the specified Security Command Center service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The Security Command Center service to retrieve, in one of the following formats: - organizations/{organization}/locations/{location}/securityCenterServices/{service} - folders/{folder}/locations/{location}/securityCenterServices/{service} - projects/{project}/locations/{location}/securityCenterServices/{service} The following values are valid for `{service}`: - `container-threat-detection` - `event-threat-detection` - `security-health-analytics` - `vm-threat-detection` - `web-security-scanner` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::SecurityCenterService >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.SecurityCenterService](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L473)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### GetSecurityCenterService(google::cloud::securitycentermanagement::v1::GetSecurityCenterServiceRequest const \&, Options)

Gets service settings for the specified Security Command Center service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::GetSecurityCenterServiceRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1696). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::SecurityCenterService >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.SecurityCenterService](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L473)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ListSecurityCenterServices(std::string const \&, Options)

Returns a list of all Security Command Center services for the given parent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. The name of the parent to list Security Command Center services, in one of the following formats: - `organizations/{organization}/locations/{location}` - `folders/{folder}/locations/{location}` - `projects/{project}/locations/{location}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::securitycentermanagement::v1::SecurityCenterService >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.securitycentermanagement.v1.SecurityCenterService](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L473), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ListSecurityCenterServices(google::cloud::securitycentermanagement::v1::ListSecurityCenterServicesRequest, Options)

Returns a list of all Security Command Center services for the given parent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::ListSecurityCenterServicesRequest` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1725). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::securitycentermanagement::v1::SecurityCenterService >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.securitycentermanagement.v1.SecurityCenterService](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L473), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### UpdateSecurityCenterService(google::cloud::securitycentermanagement::v1::SecurityCenterService const \&, google::protobuf::FieldMask const \&, Options)

Updates a Security Command Center service using the given update mask.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `security_center_service` | `google::cloud::securitycentermanagement::v1::SecurityCenterService const &` Required. The updated service. |
| `update_mask` | `google::protobuf::FieldMask const &` Required. The fields to update. Accepts the following values: - `intended_enablement_state` - `modules` If omitted, then all eligible fields are updated. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::SecurityCenterService >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.SecurityCenterService](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L473)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### UpdateSecurityCenterService(google::cloud::securitycentermanagement::v1::UpdateSecurityCenterServiceRequest const \&, Options)

Updates a Security Command Center service using the given update mask.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::securitycentermanagement::v1::UpdateSecurityCenterServiceRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L1768). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::securitycentermanagement::v1::SecurityCenterService >` | the result of the RPC. The response message type ([google.cloud.securitycentermanagement.v1.SecurityCenterService](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/securitycentermanagement/v1/security_center_management.proto#L473)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ListLocations(google::cloud::location::ListLocationsRequest, Options)

Lists information about the supported locations for this service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::location::ListLocationsRequest` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.location.ListLocationsRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/location/locations.proto#L58). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::location::Location >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.location.Location](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/location/locations.proto#L88), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### GetLocation(google::cloud::location::GetLocationRequest const \&, Options)

Gets information about a location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::location::GetLocationRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.location.GetLocationRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/location/locations.proto#L82). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::location::Location >` | the result of the RPC. The response message type ([google.cloud.location.Location](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/location/locations.proto#L88)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |