Source code for models_v2.ad_rfc_2307_type_params

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

import cohesity_management_sdk.models_v2.fallback_option

[docs]class AdRfc2307TypeParams(object): """Implementation of the 'AdRfc2307TypeParams' model. Specifies the properties associated to a Rfc2307 type user id mapping. Attributes: fallback_option (FallbackOption): Specifies a fallback user id mapping param in case the primary config does not work. """ # Create a mapping from Model property names to API property names _names = { "fallback_option":'fallbackOption' } def __init__(self, fallback_option=None): """Constructor for the AdRfc2307TypeParams class""" # Initialize members of the class self.fallback_option = fallback_option
[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 fallback_option = cohesity_management_sdk.models_v2.fallback_option.FallbackOption.from_dictionary(dictionary.get('fallbackOption')) if dictionary.get('fallbackOption') else None # Return an object of this model return cls(fallback_option)