#NEWLINE# def api_deserialize_impl( self , r ) : #NEWLINE# #INDENT# self . is_new = ( r is None ) #NEWLINE# if self . is_new : #NEWLINE# #INDENT# r = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# self . is_incomplete = False #NEWLINE# if Util . exists_path ( r , 'ID' ) : #NEWLINE# #INDENT# self . m_id = ( None if ( Util . get_by_path ( r , 'ID' ) is None ) else str ( Util . get_by_path ( r , 'ID' ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_id = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_id = False #NEWLINE# if Util . exists_path ( r , 'Class' ) : #NEWLINE# #INDENT# self . m_clazz = ( None if ( Util . get_by_path ( r , 'Class' ) is None ) else str ( Util . get_by_path ( r , 'Class' ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_clazz = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_clazz = False #NEWLINE# if Util . exists_path ( r , 'Name' ) : #NEWLINE# #INDENT# self . m_name = ( None if ( Util . get_by_path ( r , 'Name' ) is None ) else str ( Util . get_by_path ( r , 'Name' ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_name = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_name = False #NEWLINE# if Util . exists_path ( r , 'Description' ) : #NEWLINE# #INDENT# self . m_description = ( None if ( Util . get_by_path ( r , 'Description' ) is None ) else str ( Util . get_by_path ( r , 'Description' ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_description = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_description = False #NEWLINE# if Util . exists_path ( r , 'Tags' ) : #NEWLINE# #INDENT# if ( Util . get_by_path ( r , 'Tags' ) is None ) : #NEWLINE# #INDENT# self . m_tags = [ ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_tags = [ ] #NEWLINE# for t in Util . get_by_path ( r , 'Tags' ) : #NEWLINE# #INDENT# v1 = None #NEWLINE# v1 = ( None if ( t is None ) else str ( t ) ) #NEWLINE# self . m_tags . append ( v1 ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . m_tags = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_tags = False #NEWLINE# if Util . exists_path ( r , 'Icon' ) : #NEWLINE# #INDENT# self . m_icon = ( None if ( Util . get_by_path ( r , 'Icon' ) is None ) else Icon ( self . _client , Util . get_by_path ( r , 'Icon' ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_icon = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_icon = False #NEWLINE# if Util . exists_path ( r , 'Plan.ID' ) : #NEWLINE# #INDENT# self . m_plan_id = ( None if ( Util . get_by_path ( r , 'Plan.ID' ) is None ) else int ( str ( Util . get_by_path ( r , 'Plan.ID' ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_plan_id = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_plan_id = False #NEWLINE# if Util . exists_path ( r , 'Interfaces' ) : #NEWLINE# #INDENT# if ( Util . get_by_path ( r , 'Interfaces' ) is None ) : #NEWLINE# #INDENT# self . m_ifaces = [ ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_ifaces = [ ] #NEWLINE# for t in Util . get_by_path ( r , 'Interfaces' ) : #NEWLINE# #INDENT# v2 = None #NEWLINE# v2 = ( None if ( t is None ) else Iface ( self . _client , t ) ) #NEWLINE# self . m_ifaces . append ( v2 ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . m_ifaces = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_ifaces = False #NEWLINE# if Util . exists_path ( r , 'Remark' ) : #NEWLINE# #INDENT# self . m_raw_annotation = Util . get_by_path ( r , 'Remark' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_raw_annotation = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_raw_annotation = False #NEWLINE# if Util . exists_path ( r , 'Settings' ) : #NEWLINE# #INDENT# self . m_raw_settings = Util . get_by_path ( r , 'Settings' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_raw_settings = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_raw_settings = False #NEWLINE# if Util . exists_path ( r , 'SettingsHash' ) : #NEWLINE# #INDENT# self . m_raw_settings_hash = ( None if ( Util . get_by_path ( r , 'SettingsHash' ) is None ) else str ( Util . get_by_path ( r , 'SettingsHash' ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_raw_settings_hash = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_raw_settings_hash = False #NEWLINE# if Util . exists_path ( r , 'Instance.Status' ) : #NEWLINE# #INDENT# self . m_status = ( None if ( Util . get_by_path ( r , 'Instance.Status' ) is None ) else str ( Util . get_by_path ( r , 'Instance.Status' ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_status = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_status = False #NEWLINE# if Util . exists_path ( r , 'ServiceClass' ) : #NEWLINE# #INDENT# self . m_service_class = ( None if ( Util . get_by_path ( r , 'ServiceClass' ) is None ) else str ( Util . get_by_path ( r , 'ServiceClass' ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_service_class = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_service_class = False #NEWLINE# if Util . exists_path ( r , 'Availability' ) : #NEWLINE# #INDENT# self . m_availability = ( None if ( Util . get_by_path ( r , 'Availability' ) is None ) else str ( Util . get_by_path ( r , 'Availability' ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_availability = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_availability = False #NEWLINE# if Util . exists_path ( r , 'Switch.ID' ) : #NEWLINE# #INDENT# self . m_swytch_id = ( None if ( Util . get_by_path ( r , 'Switch.ID' ) is None ) else str ( Util . get_by_path ( r , 'Switch.ID' ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_swytch_id = None #NEWLINE# self . is_incomplete = True #NEWLINE# #UNINDENT# self . n_swytch_id = False