Source code for models_v2.active_directory_app_parameters

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


[docs]class ActiveDirectoryAppParameters(object): """Implementation of the 'Active Directory App Parameters.' model. Specifies the Active Directory special parameters for the Protection Group. Attributes: app_id (long|int): Specifies the application id of the Active Directory instance. app_name (string): Specifies the application name of the Active Directory instance. """ # Create a mapping from Model property names to API property names _names = { "app_id":'appId', "app_name":'appName' } def __init__(self, app_id=None, app_name=None): """Constructor for the ActiveDirectoryAppParameters class""" # Initialize members of the class self.app_id = app_id self.app_name = app_name
[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 app_id = dictionary.get('appId') app_name = dictionary.get('appName') # Return an object of this model return cls(app_id, app_name)