diff --git a/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement/gapic_version.py b/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement/gapic_version.py index 123d60293175..360a0d13ebdd 100644 --- a/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement/gapic_version.py +++ b/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.1.1" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/gapic_version.py b/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/gapic_version.py index 123d60293175..360a0d13ebdd 100644 --- a/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/gapic_version.py +++ b/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.1.1" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/async_client.py b/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/async_client.py index e98a7165c9a0..1b8751f438b4 100644 --- a/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/async_client.py +++ b/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/async_client.py @@ -1502,16 +1502,10 @@ async def list_effective_event_threat_detection_custom_modules( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.ListEffectiveEventThreatDetectionCustomModulesAsyncPager: - r"""Returns a list of all EffectiveEventThreatDetectionCustomModules - for the given parent. This includes resident modules defined at - the scope of the parent, and inherited modules, inherited from - CRM ancestors (no descendants). The difference between an - EffectiveCustomModule and a CustomModule is that the fields for - an EffectiveCustomModule are computed from ancestors if needed. - For example, the enablement_state for a CustomModule can be - either ENABLED, DISABLED, or INHERITED. Where as the - enablement_state for an EffectiveCustomModule is always computed - to ENABLED or DISABLED (the effective enablement_state). + r"""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. .. code-block:: python @@ -1789,11 +1783,10 @@ async def list_event_threat_detection_custom_modules( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.ListEventThreatDetectionCustomModulesAsyncPager: - r"""Returns a list of all - EventThreatDetectionCustomModules for the given parent. - This includes resident modules defined at the scope of - the parent, and inherited modules, inherited from CRM - ancestors (no descendants). + r"""Lists all Event Threat Detection custom modules for + the given Resource Manager parent. This includes + resident modules defined at the scope of the parent + along with modules inherited from ancestors. .. code-block:: python @@ -1931,9 +1924,9 @@ async def list_descendant_event_threat_detection_custom_modules( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.ListDescendantEventThreatDetectionCustomModulesAsyncPager: - r"""Returns a list of all resident - EventThreatDetectionCustomModules under the given CRM - parent and all of the parent’s CRM descendants. + r"""Lists all resident Event Threat Detection custom + modules under the given Resource Manager parent and its + descendants. .. code-block:: python @@ -2072,14 +2065,7 @@ async def get_event_threat_detection_custom_module( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> security_center_management.EventThreatDetectionCustomModule: - r"""Gets an ETD custom module. Retrieves the module at the given - level. The difference between an EffectiveCustomModule and a - CustomModule is that the fields for an EffectiveCustomModule are - computed from ancestors if needed. For example, the - enablement_state for a CustomModule can be either ENABLED, - DISABLED, or INHERITED. Where as the enablement_state for an - EffectiveCustomModule is always computed to ENABLED or DISABLED - (the effective enablement_state). + r"""Gets an Event Threat Detection custom module. .. code-block:: python @@ -2210,9 +2196,11 @@ async def create_event_threat_detection_custom_module( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> security_center_management.EventThreatDetectionCustomModule: - r"""Creates an ETD custom module at the given level. - Creating a module has a side-effect of creating modules - at all descendants. + r"""Creates a resident Event Threat Detection custom + module at the scope of the given Resource Manager + parent, and also creates inherited custom modules for + all descendants of the given parent. These modules are + enabled by default. .. code-block:: python @@ -2346,12 +2334,14 @@ async def update_event_threat_detection_custom_module( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> security_center_management.EventThreatDetectionCustomModule: - r"""Updates an ETD custom module at the given level. All - config fields can be updated when updating the module at - resident level. Only enablement state can be updated - when updating the module at inherited levels. Updating - the module has a side-effect that it updates all - descendants that are inherited from this module. + r"""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. .. code-block:: python @@ -2486,9 +2476,10 @@ async def delete_event_threat_detection_custom_module( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> None: - r"""Deletes an ETD custom module. Deletion at resident - level also deletes modules at all descendants. Deletion - at any other level is not supported. + r"""Deletes the specified Event Threat Detection custom + module and all of its descendants in the Resource + Manager hierarchy. This method is only supported for + resident custom modules. .. code-block:: python diff --git a/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/client.py b/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/client.py index c5d7c9a8ae28..a2bdb1391fa4 100644 --- a/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/client.py +++ b/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/client.py @@ -1771,16 +1771,10 @@ def list_effective_event_threat_detection_custom_modules( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.ListEffectiveEventThreatDetectionCustomModulesPager: - r"""Returns a list of all EffectiveEventThreatDetectionCustomModules - for the given parent. This includes resident modules defined at - the scope of the parent, and inherited modules, inherited from - CRM ancestors (no descendants). The difference between an - EffectiveCustomModule and a CustomModule is that the fields for - an EffectiveCustomModule are computed from ancestors if needed. - For example, the enablement_state for a CustomModule can be - either ENABLED, DISABLED, or INHERITED. Where as the - enablement_state for an EffectiveCustomModule is always computed - to ENABLED or DISABLED (the effective enablement_state). + r"""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. .. code-block:: python @@ -2048,11 +2042,10 @@ def list_event_threat_detection_custom_modules( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.ListEventThreatDetectionCustomModulesPager: - r"""Returns a list of all - EventThreatDetectionCustomModules for the given parent. - This includes resident modules defined at the scope of - the parent, and inherited modules, inherited from CRM - ancestors (no descendants). + r"""Lists all Event Threat Detection custom modules for + the given Resource Manager parent. This includes + resident modules defined at the scope of the parent + along with modules inherited from ancestors. .. code-block:: python @@ -2185,9 +2178,9 @@ def list_descendant_event_threat_detection_custom_modules( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.ListDescendantEventThreatDetectionCustomModulesPager: - r"""Returns a list of all resident - EventThreatDetectionCustomModules under the given CRM - parent and all of the parent’s CRM descendants. + r"""Lists all resident Event Threat Detection custom + modules under the given Resource Manager parent and its + descendants. .. code-block:: python @@ -2321,14 +2314,7 @@ def get_event_threat_detection_custom_module( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> security_center_management.EventThreatDetectionCustomModule: - r"""Gets an ETD custom module. Retrieves the module at the given - level. The difference between an EffectiveCustomModule and a - CustomModule is that the fields for an EffectiveCustomModule are - computed from ancestors if needed. For example, the - enablement_state for a CustomModule can be either ENABLED, - DISABLED, or INHERITED. Where as the enablement_state for an - EffectiveCustomModule is always computed to ENABLED or DISABLED - (the effective enablement_state). + r"""Gets an Event Threat Detection custom module. .. code-block:: python @@ -2456,9 +2442,11 @@ def create_event_threat_detection_custom_module( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> security_center_management.EventThreatDetectionCustomModule: - r"""Creates an ETD custom module at the given level. - Creating a module has a side-effect of creating modules - at all descendants. + r"""Creates a resident Event Threat Detection custom + module at the scope of the given Resource Manager + parent, and also creates inherited custom modules for + all descendants of the given parent. These modules are + enabled by default. .. code-block:: python @@ -2595,12 +2583,14 @@ def update_event_threat_detection_custom_module( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> security_center_management.EventThreatDetectionCustomModule: - r"""Updates an ETD custom module at the given level. All - config fields can be updated when updating the module at - resident level. Only enablement state can be updated - when updating the module at inherited levels. Updating - the module has a side-effect that it updates all - descendants that are inherited from this module. + r"""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. .. code-block:: python @@ -2738,9 +2728,10 @@ def delete_event_threat_detection_custom_module( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> None: - r"""Deletes an ETD custom module. Deletion at resident - level also deletes modules at all descendants. Deletion - at any other level is not supported. + r"""Deletes the specified Event Threat Detection custom + module and all of its descendants in the Resource + Manager hierarchy. This method is only supported for + resident custom modules. .. code-block:: python diff --git a/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/transports/grpc.py b/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/transports/grpc.py index 2e1a63be9cb8..a7bdb5c28299 100644 --- a/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/transports/grpc.py +++ b/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/transports/grpc.py @@ -565,16 +565,10 @@ def list_effective_event_threat_detection_custom_modules( r"""Return a callable for the list effective event threat detection custom modules method over gRPC. - Returns a list of all EffectiveEventThreatDetectionCustomModules - for the given parent. This includes resident modules defined at - the scope of the parent, and inherited modules, inherited from - CRM ancestors (no descendants). The difference between an - EffectiveCustomModule and a CustomModule is that the fields for - an EffectiveCustomModule are computed from ancestors if needed. - For example, the enablement_state for a CustomModule can be - either ENABLED, DISABLED, or INHERITED. Where as the - enablement_state for an EffectiveCustomModule is always computed - to ENABLED or DISABLED (the effective enablement_state). + 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. Returns: Callable[[~.ListEffectiveEventThreatDetectionCustomModulesRequest], @@ -647,11 +641,10 @@ def list_event_threat_detection_custom_modules( r"""Return a callable for the list event threat detection custom modules method over gRPC. - Returns a list of all - EventThreatDetectionCustomModules for the given parent. - This includes resident modules defined at the scope of - the parent, and inherited modules, inherited from CRM - ancestors (no descendants). + Lists all Event Threat Detection custom modules for + the given Resource Manager parent. This includes + resident modules defined at the scope of the parent + along with modules inherited from ancestors. Returns: Callable[[~.ListEventThreatDetectionCustomModulesRequest], @@ -685,9 +678,9 @@ def list_descendant_event_threat_detection_custom_modules( r"""Return a callable for the list descendant event threat detection custom modules method over gRPC. - Returns a list of all resident - EventThreatDetectionCustomModules under the given CRM - parent and all of the parent’s CRM descendants. + Lists all resident Event Threat Detection custom + modules under the given Resource Manager parent and its + descendants. Returns: Callable[[~.ListDescendantEventThreatDetectionCustomModulesRequest], @@ -719,14 +712,7 @@ def get_event_threat_detection_custom_module( r"""Return a callable for the get event threat detection custom module method over gRPC. - Gets an ETD custom module. Retrieves the module at the given - level. The difference between an EffectiveCustomModule and a - CustomModule is that the fields for an EffectiveCustomModule are - computed from ancestors if needed. For example, the - enablement_state for a CustomModule can be either ENABLED, - DISABLED, or INHERITED. Where as the enablement_state for an - EffectiveCustomModule is always computed to ENABLED or DISABLED - (the effective enablement_state). + Gets an Event Threat Detection custom module. Returns: Callable[[~.GetEventThreatDetectionCustomModuleRequest], @@ -758,9 +744,11 @@ def create_event_threat_detection_custom_module( r"""Return a callable for the create event threat detection custom module method over gRPC. - Creates an ETD custom module at the given level. - Creating a module has a side-effect of creating modules - at all descendants. + Creates a resident Event Threat Detection custom + module at the scope of the given Resource Manager + parent, and also creates inherited custom modules for + all descendants of the given parent. These modules are + enabled by default. Returns: Callable[[~.CreateEventThreatDetectionCustomModuleRequest], @@ -792,12 +780,14 @@ def update_event_threat_detection_custom_module( r"""Return a callable for the update event threat detection custom module method over gRPC. - Updates an ETD custom module at the given level. All - config fields can be updated when updating the module at - resident level. Only enablement state can be updated - when updating the module at inherited levels. Updating - the module has a side-effect that it updates all - descendants that are inherited from this module. + 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. Returns: Callable[[~.UpdateEventThreatDetectionCustomModuleRequest], @@ -829,9 +819,10 @@ def delete_event_threat_detection_custom_module( r"""Return a callable for the delete event threat detection custom module method over gRPC. - Deletes an ETD custom module. Deletion at resident - level also deletes modules at all descendants. Deletion - at any other level is not supported. + Deletes the specified Event Threat Detection custom + module and all of its descendants in the Resource + Manager hierarchy. This method is only supported for + resident custom modules. Returns: Callable[[~.DeleteEventThreatDetectionCustomModuleRequest], diff --git a/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/transports/grpc_asyncio.py b/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/transports/grpc_asyncio.py index bfee6adb5aa2..c2c1e991d521 100644 --- a/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/transports/grpc_asyncio.py +++ b/packages/google-cloud-securitycentermanagement/google/cloud/securitycentermanagement_v1/services/security_center_management/transports/grpc_asyncio.py @@ -580,16 +580,10 @@ def list_effective_event_threat_detection_custom_modules( r"""Return a callable for the list effective event threat detection custom modules method over gRPC. - Returns a list of all EffectiveEventThreatDetectionCustomModules - for the given parent. This includes resident modules defined at - the scope of the parent, and inherited modules, inherited from - CRM ancestors (no descendants). The difference between an - EffectiveCustomModule and a CustomModule is that the fields for - an EffectiveCustomModule are computed from ancestors if needed. - For example, the enablement_state for a CustomModule can be - either ENABLED, DISABLED, or INHERITED. Where as the - enablement_state for an EffectiveCustomModule is always computed - to ENABLED or DISABLED (the effective enablement_state). + 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. Returns: Callable[[~.ListEffectiveEventThreatDetectionCustomModulesRequest], @@ -664,11 +658,10 @@ def list_event_threat_detection_custom_modules( r"""Return a callable for the list event threat detection custom modules method over gRPC. - Returns a list of all - EventThreatDetectionCustomModules for the given parent. - This includes resident modules defined at the scope of - the parent, and inherited modules, inherited from CRM - ancestors (no descendants). + Lists all Event Threat Detection custom modules for + the given Resource Manager parent. This includes + resident modules defined at the scope of the parent + along with modules inherited from ancestors. Returns: Callable[[~.ListEventThreatDetectionCustomModulesRequest], @@ -704,9 +697,9 @@ def list_descendant_event_threat_detection_custom_modules( r"""Return a callable for the list descendant event threat detection custom modules method over gRPC. - Returns a list of all resident - EventThreatDetectionCustomModules under the given CRM - parent and all of the parent’s CRM descendants. + Lists all resident Event Threat Detection custom + modules under the given Resource Manager parent and its + descendants. Returns: Callable[[~.ListDescendantEventThreatDetectionCustomModulesRequest], @@ -738,14 +731,7 @@ def get_event_threat_detection_custom_module( r"""Return a callable for the get event threat detection custom module method over gRPC. - Gets an ETD custom module. Retrieves the module at the given - level. The difference between an EffectiveCustomModule and a - CustomModule is that the fields for an EffectiveCustomModule are - computed from ancestors if needed. For example, the - enablement_state for a CustomModule can be either ENABLED, - DISABLED, or INHERITED. Where as the enablement_state for an - EffectiveCustomModule is always computed to ENABLED or DISABLED - (the effective enablement_state). + Gets an Event Threat Detection custom module. Returns: Callable[[~.GetEventThreatDetectionCustomModuleRequest], @@ -777,9 +763,11 @@ def create_event_threat_detection_custom_module( r"""Return a callable for the create event threat detection custom module method over gRPC. - Creates an ETD custom module at the given level. - Creating a module has a side-effect of creating modules - at all descendants. + Creates a resident Event Threat Detection custom + module at the scope of the given Resource Manager + parent, and also creates inherited custom modules for + all descendants of the given parent. These modules are + enabled by default. Returns: Callable[[~.CreateEventThreatDetectionCustomModuleRequest], @@ -811,12 +799,14 @@ def update_event_threat_detection_custom_module( r"""Return a callable for the update event threat detection custom module method over gRPC. - Updates an ETD custom module at the given level. All - config fields can be updated when updating the module at - resident level. Only enablement state can be updated - when updating the module at inherited levels. Updating - the module has a side-effect that it updates all - descendants that are inherited from this module. + 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. Returns: Callable[[~.UpdateEventThreatDetectionCustomModuleRequest], @@ -848,9 +838,10 @@ def delete_event_threat_detection_custom_module( r"""Return a callable for the delete event threat detection custom module method over gRPC. - Deletes an ETD custom module. Deletion at resident - level also deletes modules at all descendants. Deletion - at any other level is not supported. + Deletes the specified Event Threat Detection custom + module and all of its descendants in the Resource + Manager hierarchy. This method is only supported for + resident custom modules. Returns: Callable[[~.DeleteEventThreatDetectionCustomModuleRequest], diff --git a/packages/google-cloud-securitycentermanagement/samples/generated_samples/snippet_metadata_google.cloud.securitycentermanagement.v1.json b/packages/google-cloud-securitycentermanagement/samples/generated_samples/snippet_metadata_google.cloud.securitycentermanagement.v1.json index 970ffb255ded..8e50d8fef945 100644 --- a/packages/google-cloud-securitycentermanagement/samples/generated_samples/snippet_metadata_google.cloud.securitycentermanagement.v1.json +++ b/packages/google-cloud-securitycentermanagement/samples/generated_samples/snippet_metadata_google.cloud.securitycentermanagement.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-securitycentermanagement", - "version": "0.1.1" + "version": "0.1.0" }, "snippets": [ {