#NEWLINE# def __type_config( self , action , query , extra_qs = None ) : #NEWLINE# #INDENT# self . __set_api_key ( ) #NEWLINE# self . __clear_response ( ) #NEWLINE# query [ 'type' ] = 'config' #NEWLINE# query [ 'action' ] = action #NEWLINE# query [ 'key' ] = self . api_key #NEWLINE# if ( self . serial is not None ) : #NEWLINE# #INDENT# query [ 'target' ] = self . serial #NEWLINE# #UNINDENT# if ( extra_qs is not None ) : #NEWLINE# #INDENT# query = self . __merge_extra_qs ( query , extra_qs ) #NEWLINE# #UNINDENT# response = self . __api_request ( query ) #NEWLINE# if ( not response ) : #NEWLINE# #INDENT# raise PanXapiError ( self . status_detail ) #NEWLINE# #UNINDENT# if ( not self . __set_response ( response ) ) : #NEWLINE# #INDENT# raise PanXapiError ( self . status_detail )