exchangelib.services.delete_user_configuration API documentation

# Module `exchangelib.services.delete_user_configuration`

Expand source code

    from .common import EWSAccountService
    from ..util import create_element, set_xml_value

    class DeleteUserConfiguration(EWSAccountService):
        """MSDN:
        https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/deleteuserconfiguration-operation
        """

        SERVICE_NAME = 'DeleteUserConfiguration'
        returns_elements = False

        def call(self, user_configuration_name):
            return self._get_elements(payload=self.get_payload(user_configuration_name=user_configuration_name))

        def get_payload(self, user_configuration_name):
            deleteuserconfiguration = create_element('m:%s' % self.SERVICE_NAME)
            set_xml_value(deleteuserconfiguration, user_configuration_name, version=self.account.version)
            return deleteuserconfiguration

## Classes

`class DeleteUserConfiguration (*args, **kwargs)`

  MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/deleteuserconfiguration-operation

  Expand source code

      class DeleteUserConfiguration(EWSAccountService):
          """MSDN:
          https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/deleteuserconfiguration-operation
          """

          SERVICE_NAME = 'DeleteUserConfiguration'
          returns_elements = False

          def call(self, user_configuration_name):
              return self._get_elements(payload=self.get_payload(user_configuration_name=user_configuration_name))

          def get_payload(self, user_configuration_name):
              deleteuserconfiguration = create_element('m:%s' % self.SERVICE_NAME)
              set_xml_value(deleteuserconfiguration, user_configuration_name, version=self.account.version)
              return deleteuserconfiguration

  ### Ancestors

  - EWSAccountService
  - EWSService

  ### Class variables

  `var SERVICE_NAME`
  `var returns_elements`

  ### Methods

  `def call(self, user_configuration_name)`
    Expand source code

        def call(self, user_configuration_name):
            return self._get_elements(payload=self.get_payload(user_configuration_name=user_configuration_name))

  `def get_payload(self, user_configuration_name)`
    Expand source code

        def get_payload(self, user_configuration_name):
            deleteuserconfiguration = create_element('m:%s' % self.SERVICE_NAME)
            set_xml_value(deleteuserconfiguration, user_configuration_name, version=self.account.version)
            return deleteuserconfiguration

  ### Inherited members

  - `EWSAccountService`:
    - `NO_VALID_SERVER_VERSIONS`
    - `WARNINGS_TO_CATCH_IN_RESPONSE`
    - `get`
    - `parse`