public static base_responses add ( nitro_service client , clusterinstance resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { clusterinstance addresources [ ] = new clusterinstance [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new clusterinstance ( ) ; addresources [ i ] . clid = resources [ i ] . clid ; addresources [ i ] . deadinterval = resources [ i ] . deadinterval ; addresources [ i ] . hellointerval = resources [ i ] . hellointerval ; addresources [ i ] . preemption = resources [ i ] . preemption ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add clusterinstance resources .