Source code for models_v2.common_object_action_request

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


[docs]class CommonObjectActionRequest(object): """Implementation of the 'Common Object Action Request.' model. Specifies the common request parameters for performing an action on Object. Attributes: environment (Environment4Enum): Specifies the environment type of the Object. """ # Create a mapping from Model property names to API property names _names = { "environment":'environment' } def __init__(self, environment=None): """Constructor for the CommonObjectActionRequest 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)