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