# -*- coding: utf-8 -*-
[docs]class ProtectionType(object):
"""Implementation of the 'Protection type.' model.
Protection type.
Attributes:
environment (Environment24Enum): Specifies Protection type.
"""
# Create a mapping from Model property names to API property names
_names = {
"environment":'environment'
}
def __init__(self,
environment=None):
"""Constructor for the ProtectionType 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)