lib/purecloudplatformclientv2/models/policy_conditions.rb in purecloudplatformclientv2-8.0.0 vs lib/purecloudplatformclientv2/models/policy_conditions.rb in purecloudplatformclientv2-9.0.0
- old
+ new
@@ -35,32 +35,50 @@
attr_accessor :time_allowed
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
+
:'for_users' => :'forUsers',
+
:'directions' => :'directions',
+
:'date_ranges' => :'dateRanges',
+
:'media_types' => :'mediaTypes',
+
:'for_queues' => :'forQueues',
+
:'duration' => :'duration',
+
:'wrapup_codes' => :'wrapupCodes',
+
:'time_allowed' => :'timeAllowed'
+
}
end
# Attribute type mapping.
def self.swagger_types
{
+
:'for_users' => :'Array<User>',
+
:'directions' => :'Array<String>',
+
:'date_ranges' => :'Array<String>',
+
:'media_types' => :'Array<String>',
+
:'for_queues' => :'Array<Queue>',
+
:'duration' => :'DurationCondition',
+
:'wrapup_codes' => :'Array<WrapupCode>',
+
:'time_allowed' => :'TimeAllowed'
+
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -68,67 +86,184 @@
return unless attributes.is_a?(Hash)
# convert string to symbol for hash key
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
+
if attributes.has_key?(:'forUsers')
+
if (value = attributes[:'forUsers']).is_a?(Array)
self.for_users = value
end
+
+
+
end
+
if attributes.has_key?(:'directions')
+
if (value = attributes[:'directions']).is_a?(Array)
self.directions = value
end
+
+
+
end
+
if attributes.has_key?(:'dateRanges')
+
if (value = attributes[:'dateRanges']).is_a?(Array)
self.date_ranges = value
end
+
+
+
end
+
if attributes.has_key?(:'mediaTypes')
+
if (value = attributes[:'mediaTypes']).is_a?(Array)
self.media_types = value
end
+
+
+
end
+
if attributes.has_key?(:'forQueues')
+
if (value = attributes[:'forQueues']).is_a?(Array)
self.for_queues = value
end
+
+
+
end
+
if attributes.has_key?(:'duration')
+
+
self.duration = attributes[:'duration']
+
+
end
+
if attributes.has_key?(:'wrapupCodes')
+
if (value = attributes[:'wrapupCodes']).is_a?(Array)
self.wrapup_codes = value
end
+
+
+
end
+
if attributes.has_key?(:'timeAllowed')
+
+
self.time_allowed = attributes[:'timeAllowed']
+
+
end
+
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properies with the reasons
def list_invalid_properties
invalid_properties = Array.new
+
+
return invalid_properties
end
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
end
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&