new Policy()
Properties:
| Name | Type | Description | 
|---|---|---|
_embedded | 
            
            hash | |
_links | 
            
            hash | |
conditions | 
            
            PolicyRuleConditions | |
created | 
            
            dateTime | |
description | 
            
            string | |
id | 
            
            string | |
lastUpdated | 
            
            dateTime | |
name | 
            
            string | |
priority | 
            
            integer | |
status | 
            
            string | |
system | 
            
            boolean | |
type | 
            
            PolicyType | 
Extends
Methods
- 
    
createRule(policyRule)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description policyRulePolicyRule Returns:
- Type
 - Promise.<PolicyRule>
 
 - 
    
getPolicyRule(ruleId)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description ruleIdstring Returns:
- Type
 - Promise.<PolicyRule>
 
 - 
    
listPolicyRules()
 - 
    
    
    
    
    
    
Returns:
A collection that will yield PolicyRule instances.- Type
 - Promise.<Collection>
 
 - 
    
update()
 - 
    
    
    
    
    
    
Returns:
- Type
 - Promise.<Policy>