public static base_responses update ( nitro_service client , inat resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { inat updateresources [ ] = new inat [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new inat ( ) ; updateresources [ i ] . name = resources [ i ] . name ; updateresources [ i ] . privateip = resources [ i ] . privateip ; updateresources [ i ] . tcpproxy = resources [ i ] . tcpproxy ; updateresources [ i ] . ftp = resources [ i ] . ftp ; updateresources [ i ] . tftp = resources [ i ] . tftp ; updateresources [ i ] . usip = resources [ i ] . usip ; updateresources [ i ] . usnip = resources [ i ] . usnip ; updateresources [ i ] . proxyip = resources [ i ] . proxyip ; updateresources [ i ] . mode = resources [ i ] . mode ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update inat resources .