public static base_responses update(nitro_service client, channel resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			channel updateresources[] = new channel[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new channel();
				updateresources[i].id = resources[i].id;
				updateresources[i].state = resources[i].state;
				updateresources[i].mode = resources[i].mode;
				updateresources[i].conndistr = resources[i].conndistr;
				updateresources[i].macdistr = resources[i].macdistr;
				updateresources[i].lamac = resources[i].lamac;
				updateresources[i].speed = resources[i].speed;
				updateresources[i].flowctl = resources[i].flowctl;
				updateresources[i].hamonitor = resources[i].hamonitor;
				updateresources[i].tagall = resources[i].tagall;
				updateresources[i].trunk = resources[i].trunk;
				updateresources[i].ifalias = resources[i].ifalias;
				updateresources[i].throughput = resources[i].throughput;
				updateresources[i].lrminthroughput = resources[i].lrminthroughput;
				updateresources[i].bandwidthhigh = resources[i].bandwidthhigh;
				updateresources[i].bandwidthnormal = resources[i].bandwidthnormal;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
public static base_responses update ( nitro_service client , channel resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { channel updateresources [ ] = new channel [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new channel ( ) ; updateresources [ i ] . id = resources [ i ] . id ; updateresources [ i ] . state = resources [ i ] . state ; updateresources [ i ] . mode = resources [ i ] . mode ; updateresources [ i ] . conndistr = resources [ i ] . conndistr ; updateresources [ i ] . macdistr = resources [ i ] . macdistr ; updateresources [ i ] . lamac = resources [ i ] . lamac ; updateresources [ i ] . speed = resources [ i ] . speed ; updateresources [ i ] . flowctl = resources [ i ] . flowctl ; updateresources [ i ] . hamonitor = resources [ i ] . hamonitor ; updateresources [ i ] . tagall = resources [ i ] . tagall ; updateresources [ i ] . trunk = resources [ i ] . trunk ; updateresources [ i ] . ifalias = resources [ i ] . ifalias ; updateresources [ i ] . throughput = resources [ i ] . throughput ; updateresources [ i ] . lrminthroughput = resources [ i ] . lrminthroughput ; updateresources [ i ] . bandwidthhigh = resources [ i ] . bandwidthhigh ; updateresources [ i ] . bandwidthnormal = resources [ i ] . bandwidthnormal ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update channel resources.