Source code for models_v2.office_365_o_365_outlook_protection_group_parameters

# -*- coding: utf-8 -*-


[docs]class Office365O365OutlookProtectionGroupParameters(object): """Implementation of the 'Office 365(O365) Outlook Protection Group Parameters.' model. Specifies the parameters which are specific to Office 365 Outlook related Protection Groups. Attributes: exclude_folders (list of string): Array of Excluded Outlook folders. Specifies filters to match Outlook folders which should be excluded when backing up Office 365 source. Two kinds of filters are supported. a) prefix which always starts with '/'. b) posix which always starts with empty quotes(''). Regular expressions are not supported. If not specified, all the mailboxes will be protected. """ # Create a mapping from Model property names to API property names _names = { "exclude_folders":'excludeFolders' } def __init__(self, exclude_folders=None): """Constructor for the Office365O365OutlookProtectionGroupParameters class""" # Initialize members of the class self.exclude_folders = exclude_folders
[docs] @classmethod def from_dictionary(cls, dictionary): """Creates an instance of this model from a dictionary Args: dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server's response. The keys MUST match property names in the API description. Returns: object: An instance of this structure class. """ if dictionary is None: return None # Extract variables from the dictionary exclude_folders = dictionary.get('excludeFolders') # Return an object of this model return cls(exclude_folders)