exchangelib.services.expand_dl API documentation

# Module `exchangelib.services.expand_dl`

## Classes

`class ExpandDL (protocol, chunk_size=None, timeout=None)`
  Expand source code

      class ExpandDL(EWSService):
          """MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/expanddl-operation"""

          SERVICE_NAME = "ExpandDL"
          element_container_name = f"{{{MNS}}}DLExpansion"
          WARNINGS_TO_IGNORE_IN_RESPONSE = ErrorNameResolutionMultipleResults

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

          def _elem_to_obj(self, elem):
              return Mailbox.from_xml(elem, account=None)

          def get_payload(self, distribution_list):
              return set_xml_value(create_element(f"m:{self.SERVICE_NAME}"), distribution_list, version=self.protocol.version)

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

  ### Ancestors

  - EWSService
  - SupportedVersionClassMixIn

  ### Class variables

  `var SERVICE_NAME`
  `var WARNINGS_TO_IGNORE_IN_RESPONSE`

    Global error type within this module.

  `var element_container_name`

  ### Methods

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

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

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

        def get_payload(self, distribution_list):
            return set_xml_value(create_element(f"m:{self.SERVICE_NAME}"), distribution_list, version=self.protocol.version)

  ### Inherited members

  - `EWSService`:
    - `NO_VALID_SERVER_VERSIONS`
    - `WARNINGS_TO_CATCH_IN_RESPONSE`
    - `get`
    - `parse`
    - `supported_api_versions`
    - `wrap`