lib/purecloud/models/resource_permission_policy.rb in purecloud-0.44.1 vs lib/purecloud/models/resource_permission_policy.rb in purecloud-0.45.1
- old
+ new
@@ -28,10 +28,12 @@
attr_accessor :policy_description
attr_accessor :action_set_key
+ attr_accessor :allow_conditions
+
attr_accessor :resource_condition_node
attr_accessor :named_resources
attr_accessor :resource_condition
@@ -52,10 +54,12 @@
:'policy_description' => :'policyDescription',
:'action_set_key' => :'actionSetKey',
+ :'allow_conditions' => :'allowConditions',
+
:'resource_condition_node' => :'resourceConditionNode',
:'named_resources' => :'namedResources',
:'resource_condition' => :'resourceCondition',
@@ -72,10 +76,11 @@
:'domain' => :'String',
:'entity_name' => :'String',
:'policy_name' => :'String',
:'policy_description' => :'String',
:'action_set_key' => :'String',
+ :'allow_conditions' => :'BOOLEAN',
:'resource_condition_node' => :'ResourceConditionNode',
:'named_resources' => :'Array<String>',
:'resource_condition' => :'String',
:'action_set' => :'Array<String>'
@@ -111,10 +116,16 @@
if attributes[:'actionSetKey']
self.action_set_key = attributes[:'actionSetKey']
end
+ if attributes[:'allowConditions']
+ self.allow_conditions = attributes[:'allowConditions']
+ else
+ self.allow_conditions = false
+ end
+
if attributes[:'resourceConditionNode']
self.resource_condition_node = attributes[:'resourceConditionNode']
end
if attributes[:'namedResources']
@@ -143,10 +154,11 @@
domain == o.domain &&
entity_name == o.entity_name &&
policy_name == o.policy_name &&
policy_description == o.policy_description &&
action_set_key == o.action_set_key &&
+ allow_conditions == o.allow_conditions &&
resource_condition_node == o.resource_condition_node &&
named_resources == o.named_resources &&
resource_condition == o.resource_condition &&
action_set == o.action_set
end
@@ -156,10 +168,10 @@
self == o
end
# Calculate hash code according to all attributes.
def hash
- [id, domain, entity_name, policy_name, policy_description, action_set_key, resource_condition_node, named_resources, resource_condition, action_set].hash
+ [id, domain, entity_name, policy_name, policy_description, action_set_key, allow_conditions, resource_condition_node, named_resources, resource_condition, action_set].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)