azure-mgmt-eventhub/azure/mgmt/eventhub/operations/namespaces_operations.py
def delete(
            self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config):
        """Deletes an existing namespace. This operation also removes all
        associated resources under the namespace.

        :param resource_group_name: Name of the resource group within the
         azure subscription.
        :type resource_group_name: str
        :param namespace_name: The Namespace name
        :type namespace_name: str
        :param dict custom_headers: headers that will be added to the request
        :param bool raw: returns the direct response alongside the
         deserialized response
        :return: An instance of AzureOperationPoller that returns None or
         ClientRawResponse if raw=true
        :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or
         ~msrest.pipeline.ClientRawResponse
        :raises:
         :class:`ErrorResponseException<azure.mgmt.eventhub.models.ErrorResponseException>`
        """
        raw_result = self._delete_initial(
            resource_group_name=resource_group_name,
            namespace_name=namespace_name,
            custom_headers=custom_headers,
            raw=True,
            **operation_config
        )
        if raw:
            return raw_result

        # Construct and send request
        def long_running_send():
            return raw_result.response

        def get_long_running_status(status_link, headers=None):

            request = self._client.get(status_link)
            if headers:
                request.headers.update(headers)
            header_parameters = {}
            header_parameters['x-ms-client-request-id'] = raw_result.response.request.headers['x-ms-client-request-id']
            return self._client.send(
                request, header_parameters, stream=False, **operation_config)

        def get_long_running_output(response):

            if response.status_code not in [200, 202, 204]:
                raise models.ErrorResponseException(self._deserialize, response)

            if raw:
                client_raw_response = ClientRawResponse(None, response)
                return client_raw_response

        long_running_operation_timeout = operation_config.get(
            'long_running_operation_timeout',
            self.config.long_running_operation_timeout)
        return AzureOperationPoller(
            long_running_send, get_long_running_output,
            get_long_running_status, long_running_operation_timeout)
Deletes an existing namespace. This operation also removes all
        associated resources under the namespace.

        :param resource_group_name: Name of the resource group within the
         azure subscription.
        :type resource_group_name: str
        :param namespace_name: The Namespace name
        :type namespace_name: str
        :param dict custom_headers: headers that will be added to the request
        :param bool raw: returns the direct response alongside the
         deserialized response
        :return: An instance of AzureOperationPoller that returns None or
         ClientRawResponse if raw=true
        :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or
         ~msrest.pipeline.ClientRawResponse
        :raises:
         :class:`ErrorResponseException<azure.mgmt.eventhub.models.ErrorResponseException>`
        
Deletes an existing namespace. This operation also removes all
associated resources under the namespace.
Deletes an existing namespace . This operation also removes all associated resources under the namespace .
def delete(
            self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config):
        raw_result = self._delete_initial(
            resource_group_name=resource_group_name,
            namespace_name=namespace_name,
            custom_headers=custom_headers,
            raw=True,
            **operation_config
        )
        if raw:
            return raw_result
        def long_running_send():
            return raw_result.response
        def get_long_running_status(status_link, headers=None):
            request = self._client.get(status_link)
            if headers:
                request.headers.update(headers)
            header_parameters = {}
            header_parameters['x-ms-client-request-id'] = raw_result.response.request.headers['x-ms-client-request-id']
            return self._client.send(
                request, header_parameters, stream=False, **operation_config)
        def get_long_running_output(response):
            if response.status_code not in [200, 202, 204]:
                raise models.ErrorResponseException(self._deserialize, response)
            if raw:
                client_raw_response = ClientRawResponse(None, response)
                return client_raw_response
        long_running_operation_timeout = operation_config.get(
            'long_running_operation_timeout',
            self.config.long_running_operation_timeout)
        return AzureOperationPoller(
            long_running_send, get_long_running_output,
            get_long_running_status, long_running_operation_timeout)
def delete ( self , resource_group_name , namespace_name , custom_headers = None , raw = False , ** operation_config ) : raw_result = self . _delete_initial ( resource_group_name = resource_group_name , namespace_name = namespace_name , custom_headers = custom_headers , raw = True , ** operation_config ) if raw : return raw_result def long_running_send ( ) : return raw_result . response def get_long_running_status ( status_link , headers = None ) : request = self . _client . get ( status_link ) if headers : request . headers . update ( headers ) header_parameters = { } header_parameters [ 'x-ms-client-request-id' ] = raw_result . response . request . headers [ 'x-ms-client-request-id' ] return self . _client . send ( request , header_parameters , stream = False , ** operation_config ) def get_long_running_output ( response ) : if response . status_code not in [ 200 , 202 , 204 ] : raise models . ErrorResponseException ( self . _deserialize , response ) if raw : client_raw_response = ClientRawResponse ( None , response ) return client_raw_response long_running_operation_timeout = operation_config . get ( 'long_running_operation_timeout' , self . config . long_running_operation_timeout ) return AzureOperationPoller ( long_running_send , get_long_running_output , get_long_running_status , long_running_operation_timeout )
Deletes an existing namespace.
Deletes an existing namespace .
"""Deletes an existing namespace. This operation also removes all
        associated resources under the namespace.

        :param resource_group_name: Name of the resource group within the
         azure subscription.
        :type resource_group_name: str
        :param namespace_name: The Namespace name
        :type namespace_name: str
        :param dict custom_headers: headers that will be added to the request
        :param bool raw: returns the direct response alongside the
         deserialized response
        :return: An instance of AzureOperationPoller that returns None or
         ClientRawResponse if raw=true
        :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or
         ~msrest.pipeline.ClientRawResponse
        :raises:
         :class:`ErrorResponseException<azure.mgmt.eventhub.models.ErrorResponseException>`
        """ # Construct and send request
An instance of AzureOperationPoller that returns None or
ClientRawResponse if raw=true
An instance of AzureOperationPoller that returns None or ClientRawResponse if raw = true
~msrestazure.azure_operation.AzureOperationPoller[None] or
~msrest.pipeline.ClientRawResponse
None
self
resource_group_name
Name of the resource group within the
azure subscription.
Name of the resource group within the azure subscription .
namespace_name
The Namespace name
The Namespace name
custom_headers
headers that will be added to the request
headers that will be added to the request
raw
returns the direct response alongside the
deserialized response
returns the direct response alongside the deserialized response