Use this API to fetch filtered set of backup_policy resources.
filter string should be in JSON format.eg: "vm_state:DOWN,name:[a-z]+"
178802
public static backup_policy[] get_filtered(nitro_service service, String filter) throws Exception
	{
		backup_policy obj = new backup_policy();
		options option = new options();
		option.set_filter(filter);
		backup_policy[] response = (backup_policy[]) obj.getfiltered(service, option);
		return response;
	}
732545
public static configstatus[] get_filtered(nitro_service service, String filter) throws Exception{
		configstatus obj = new configstatus();
		options option = new options();
		option.set_filter(filter);
		configstatus[] response = (configstatus[]) obj.getfiltered(service, option);
		return response;
	}
811667
public static systemgroup[] get_filtered(nitro_service service, String filter) throws Exception{
		systemgroup obj = new systemgroup();
		options option = new options();
		option.set_filter(filter);
		systemgroup[] response = (systemgroup[]) obj.getfiltered(service, option);
		return response;
	}
504428
public static system_settings[] get_filtered(nitro_service service, String filter) throws Exception
	{
		system_settings obj = new system_settings();
		options option = new options();
		option.set_filter(filter);
		system_settings[] response = (system_settings[]) obj.getfiltered(service, option);
		return response;
	}
1349337
public static spilloverpolicy[] get_filtered(nitro_service service, String filter) throws Exception{
		spilloverpolicy obj = new spilloverpolicy();
		options option = new options();
		option.set_filter(filter);
		spilloverpolicy[] response = (spilloverpolicy[]) obj.getfiltered(service, option);
		return response;
	}
1031040
protected base_resource[] getfiltered(nitro_service service,options option) throws Exception
	{
		if (!service.isLogin())
			service.login();
		base_resource[] response = get_request(service, option);
		return response;
	}
1216418
def policy_definition_get(name, **kwargs):
    '''
    

    '''
    polconn = __utils__['azurearm.get_client']('policy', **kwargs)
    try:
        policy_def = polconn.policy_definitions.get(
            policy_definition_name=name
        )
        result = policy_def.as_dict()
    except CloudError as exc:
        __utils__['azurearm.log_cloud_error']('resource', str(exc), **kwargs)
        result = {'error': str(exc)}

    return result
180111
def __managed_policy_map(self):
        
        try:
            iam_client = boto3.client('iam')
            return ManagedPolicyLoader(iam_client).load()
        except Exception as ex:

            if self._offline_fallback:
                # If offline flag is set, then fall back to the list of default managed policies
                # This should be sufficient for most cases
                with open(self._DEFAULT_MANAGED_POLICIES_FILE, 'r') as fp:
                    return json.load(fp)

            # Offline is not enabled. So just raise the exception
            raise ex
741803
public static filterpolicy_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
		filterpolicy_lbvserver_binding obj = new filterpolicy_lbvserver_binding();
		obj.set_name(name);
		filterpolicy_lbvserver_binding response[] = (filterpolicy_lbvserver_binding[]) obj.get_resources(service);
		return response;
	}
248516
public static ns_aaasession[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ns_aaasession obj = new ns_aaasession();
		options option = new options();
		option.set_filter(filter);
		ns_aaasession[] response = (ns_aaasession[]) obj.getfiltered(service, option);
		return response;
	}
554266
public static vpnurl[] get_filtered(nitro_service service, String filter) throws Exception{
		vpnurl obj = new vpnurl();
		options option = new options();
		option.set_filter(filter);
		vpnurl[] response = (vpnurl[]) obj.getfiltered(service, option);
		return response;
	}
756790
public static ipsecprofile[] get_filtered(nitro_service service, String filter) throws Exception{
		ipsecprofile obj = new ipsecprofile();
		options option = new options();
		option.set_filter(filter);
		ipsecprofile[] response = (ipsecprofile[]) obj.getfiltered(service, option);
		return response;
	}
1165973
public static ns_conf_download_policy[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ns_conf_download_policy obj = new ns_conf_download_policy();
		options option = new options();
		option.set_filter(filter);
		ns_conf_download_policy[] response = (ns_conf_download_policy[]) obj.getfiltered(service, option);
		return response;
	}
1260096
public static policymap[] get_filtered(nitro_service service, String filter) throws Exception{
		policymap obj = new policymap();
		options option = new options();
		option.set_filter(filter);
		policymap[] response = (policymap[]) obj.getfiltered(service, option);
		return response;
	}
1027536
public static systemcmdpolicy[] get_filtered(nitro_service service, String filter) throws Exception{
		systemcmdpolicy obj = new systemcmdpolicy();
		options option = new options();
		option.set_filter(filter);
		systemcmdpolicy[] response = (systemcmdpolicy[]) obj.getfiltered(service, option);
		return response;
	}
1072016
public static syslog_params[] get_filtered(nitro_service service, String filter) throws Exception
	{
		syslog_params obj = new syslog_params();
		options option = new options();
		option.set_filter(filter);
		syslog_params[] response = (syslog_params[]) obj.getfiltered(service, option);
		return response;
	}
37974
def _contains_policies(self, resource_properties):
        
        return resource_properties is not None \
            and isinstance(resource_properties, dict) \
            and self.POLICIES_PROPERTY_NAME in resource_properties