ExchangeVersion¶
This documentation provides details about the ExchangeVersion class within the pyews
package.
-
class
pyews.core.exchangeversion.
ExchangeVersion
(version)¶ Used to validate compatible Exchange Versions across multiple service endpoints
- Examples:
- To determine if a version number is a valid ExchangeVersion then would pass in the value when instantiating this object:
- Args:
- version (str): An Exchange Version number. Example: 15.20.5 = Exchange2016
-
API_VERSION_MAP
= {8: {0: 'Exchange2007', 1: 'Exchange2007_SP1', 2: 'Exchange2007_SP1', 3: 'Exchange2007_SP1'}, 14: {0: 'Exchange2010', 1: 'Exchange2010_SP1', 2: 'Exchange2010_SP2', 3: 'Exchange2010_SP2'}, 15: {0: 'Exchange2013', 1: 'Exchange2016', 2: 'Exchange2019', 20: 'Exchange2016'}}¶
-
EXCHANGE_VERSIONS
= ['Exchange2019', 'Exchange2016', 'Exchange2015', 'Exchange2013_SP1', 'Exchange2013', 'Exchange2010_SP2', 'Exchange2010_SP1', 'Exchange2010']¶
-
static
valid_version
(version)¶ Determines if a string version name is in list of accepted Exchange Versions
- Args:
- version (str): String used to determine if it is an acceptable Exchange Version
- Returns:
- bool: Returns either True or False if the passed in version is an acceptable Exchange Version