lib/purecloud/models/resource_permission_policy.rb in purecloud-0.28.0 vs lib/purecloud/models/resource_permission_policy.rb in purecloud-0.29.1
- old
+ new
@@ -1,11 +1,9 @@
require 'date'
module PureCloud
class ResourcePermissionPolicy
- attr_accessor :org_id
-
attr_accessor :id
attr_accessor :domain
attr_accessor :entity_name
@@ -26,12 +24,10 @@
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'org_id' => :'orgId',
-
:'id' => :'id',
:'domain' => :'domain',
:'entity_name' => :'entityName',
@@ -54,11 +50,10 @@
end
# Attribute type mapping.
def self.swagger_types
{
- :'org_id' => :'String',
:'id' => :'String',
:'domain' => :'String',
:'entity_name' => :'String',
:'policy_name' => :'String',
:'policy_description' => :'String',
@@ -76,14 +71,10 @@
# convert string to symbol for hash key
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
- if attributes[:'orgId']
- self.org_id = attributes[:'orgId']
- end
-
if attributes[:'id']
self.id = attributes[:'id']
end
if attributes[:'domain']
@@ -130,11 +121,10 @@
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- org_id == o.org_id &&
id == o.id &&
domain == o.domain &&
entity_name == o.entity_name &&
policy_name == o.policy_name &&
policy_description == o.policy_description &&
@@ -150,10 +140,10 @@
self == o
end
# Calculate hash code according to all attributes.
def hash
- [org_id, 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, 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)