Source code for models_v2.o_365_protection_group_type

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


[docs]class O365ProtectionGroupType(object): """Implementation of the 'O365 Protection Group type.' model. O365 Protection Group type. Attributes: environment (Environment16Enum): Specifies O365 Protection Group type. """ # Create a mapping from Model property names to API property names _names = { "environment":'environment' } def __init__(self, environment=None): """Constructor for the O365ProtectionGroupType class""" # Initialize members of the class self.environment = environment
[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 environment = dictionary.get('environment') # Return an object of this model return cls(environment)