Source code for models_v2.unregister_kerberos_provider

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


[docs]class UnregisterKerberosProvider(object): """Implementation of the 'UnregisterKerberosProvider' model. Response of Unregister Kerberos Provider. Attributes: message (string): A status message returned upon unregistering. """ # Create a mapping from Model property names to API property names _names = { "message":'message' } def __init__(self, message=None): """Constructor for the UnregisterKerberosProvider class""" # Initialize members of the class self.message = message
[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 message = dictionary.get('message') # Return an object of this model return cls(message)