public static base_responses add(nitro_service client, cachepolicy resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			cachepolicy addresources[] = new cachepolicy[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new cachepolicy();
				addresources[i].policyname = resources[i].policyname;
				addresources[i].rule = resources[i].rule;
				addresources[i].action = resources[i].action;
				addresources[i].storeingroup = resources[i].storeingroup;
				addresources[i].invalgroups = resources[i].invalgroups;
				addresources[i].invalobjects = resources[i].invalobjects;
				addresources[i].undefaction = resources[i].undefaction;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
public static base_responses add ( nitro_service client , cachepolicy resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { cachepolicy addresources [ ] = new cachepolicy [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new cachepolicy ( ) ; addresources [ i ] . policyname = resources [ i ] . policyname ; addresources [ i ] . rule = resources [ i ] . rule ; addresources [ i ] . action = resources [ i ] . action ; addresources [ i ] . storeingroup = resources [ i ] . storeingroup ; addresources [ i ] . invalgroups = resources [ i ] . invalgroups ; addresources [ i ] . invalobjects = resources [ i ] . invalobjects ; addresources [ i ] . undefaction = resources [ i ] . undefaction ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add cachepolicy resources.