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