public static base_response delete( nitro_service client, vpnglobal_vpntrafficpolicy_binding resource) throws Exception { vpnglobal_vpntrafficpolicy_binding deleteresource = new vpnglobal_vpntrafficpolicy_binding(); deleteresource.policyname = resource.policyname; deleteresource.secondary = resource.secondary; deleteresource.groupextraction = resource.groupextraction; return deleteresource.delete_resource(client); }
/** * Use this API to fetch filtered set of vpnglobal_vpntrafficpolicy_binding resources. set the * filter parameter values in filtervalue object. */ public static vpnglobal_vpntrafficpolicy_binding[] get_filtered( nitro_service service, filtervalue[] filter) throws Exception { vpnglobal_vpntrafficpolicy_binding obj = new vpnglobal_vpntrafficpolicy_binding(); options option = new options(); option.set_filter(filter); vpnglobal_vpntrafficpolicy_binding[] response = (vpnglobal_vpntrafficpolicy_binding[]) obj.getfiltered(service, option); return response; }
/** Use this API to count vpnglobal_vpntrafficpolicy_binding resources configued on NetScaler. */ public static long count(nitro_service service) throws Exception { vpnglobal_vpntrafficpolicy_binding obj = new vpnglobal_vpntrafficpolicy_binding(); options option = new options(); option.set_count(true); vpnglobal_vpntrafficpolicy_binding response[] = (vpnglobal_vpntrafficpolicy_binding[]) obj.get_resources(service, option); if (response != null) { return response[0].__count; } return 0; }
/** * Use this API to count the filtered set of vpnglobal_vpntrafficpolicy_binding resources. set the * filter parameter values in filtervalue object. */ public static long count_filtered(nitro_service service, filtervalue[] filter) throws Exception { vpnglobal_vpntrafficpolicy_binding obj = new vpnglobal_vpntrafficpolicy_binding(); options option = new options(); option.set_count(true); option.set_filter(filter); vpnglobal_vpntrafficpolicy_binding[] response = (vpnglobal_vpntrafficpolicy_binding[]) obj.getfiltered(service, option); if (response != null) { return response[0].__count; } return 0; }
public static base_response add(nitro_service client, vpnglobal_vpntrafficpolicy_binding resource) throws Exception { vpnglobal_vpntrafficpolicy_binding updateresource = new vpnglobal_vpntrafficpolicy_binding(); updateresource.policyname = resource.policyname; updateresource.priority = resource.priority; updateresource.secondary = resource.secondary; updateresource.groupextraction = resource.groupextraction; return updateresource.update_resource(client); }
/** Use this API to fetch a vpnglobal_vpntrafficpolicy_binding resources. */ public static vpnglobal_vpntrafficpolicy_binding[] get(nitro_service service) throws Exception { vpnglobal_vpntrafficpolicy_binding obj = new vpnglobal_vpntrafficpolicy_binding(); vpnglobal_vpntrafficpolicy_binding response[] = (vpnglobal_vpntrafficpolicy_binding[]) obj.get_resources(service); return response; }