public static base_responses add(nitro_service client, pqpolicy resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			pqpolicy addresources[] = new pqpolicy[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new pqpolicy();
				addresources[i].policyname = resources[i].policyname;
				addresources[i].rule = resources[i].rule;
				addresources[i].priority = resources[i].priority;
				addresources[i].weight = resources[i].weight;
				addresources[i].qdepth = resources[i].qdepth;
				addresources[i].polqdepth = resources[i].polqdepth;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
public static base_responses add ( nitro_service client , pqpolicy resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { pqpolicy addresources [ ] = new pqpolicy [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new pqpolicy ( ) ; addresources [ i ] . policyname = resources [ i ] . policyname ; addresources [ i ] . rule = resources [ i ] . rule ; addresources [ i ] . priority = resources [ i ] . priority ; addresources [ i ] . weight = resources [ i ] . weight ; addresources [ i ] . qdepth = resources [ i ] . qdepth ; addresources [ i ] . polqdepth = resources [ i ] . polqdepth ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add pqpolicy resources.