@@ -4735,6 +4735,24 @@ def bulk_destroy(self, synchronous=True, timeout=None, **kwargs):
47354735 response = client .put (self .path ('bulk/destroy' ), ** kwargs )
47364736 return _handle_response (response , self ._server_config , synchronous , timeout )
47374737
4738+ def bulk_manage_notifications (self , synchronous = True , timeout = None , ** kwargs ):
4739+ """Enable or disable email notifications for the specified set of hosts.
4740+
4741+ :param synchronous: If True, when the server returns an HTTP
4742+ 202 (accepted) status code, wait for the task to complete. If false,
4743+ immediately return the server's response.
4744+ :param timeout: Maximum number of seconds to wait until timing out.
4745+ Defaults to ``nailgun.entity_mixins.TASK_TIMEOUT``.
4746+ :param kwargs: Arguments to pass to requests.
4747+ :returns: The server's response, with all content decoded.
4748+ :raises: ``requests.exceptions.HTTPError`` If the server responds with
4749+ an HTTP 4XX or 5XX message.
4750+ """
4751+ kwargs = kwargs .copy () # shadow the passed-in kwargs
4752+ kwargs .update (self ._server_config .get_client_kwargs ())
4753+ response = client .put (self .path ('bulk/manage_notifications' ), ** kwargs )
4754+ return _handle_response (response , self ._server_config , synchronous , timeout )
4755+
47384756 def packages (self , synchronous = True , timeout = None , ** kwargs ):
47394757 """List packages installed on the host.
47404758
@@ -5094,6 +5112,7 @@ def path(self, which=None):
50945112 'bulk/available_incremental_updates' ,
50955113 'bulk/applicable_errata' ,
50965114 'bulk/installable_errata' ,
5115+ 'bulk/manage_notifications' ,
50975116 'bulk/traces' ,
50985117 'bulk/resolve_traces' ,
50995118 'bulk/destroy' ,
0 commit comments