lib/purecloud/models/property_index_request.rb in purecloud-0.54.1 vs lib/purecloud/models/property_index_request.rb in purecloud-0.55.1
- old
+ new
@@ -16,37 +16,37 @@
require 'date'
module PureCloud
class PropertyIndexRequest
- # Attach properties to a segment in the indicated session. Also requires a timestamp.
+ # Attach properties to a segment in the indicated session
attr_accessor :session_id
- # Attach properties to a segment covering a specific point in time. Also requries a sessionId.
- attr_accessor :timestamp
+ # Attach properties to a segment covering a specific point in time. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ attr_accessor :target_date
# The list of properties to index
attr_accessor :properties
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'session_id' => :'sessionId',
- :'timestamp' => :'timestamp',
+ :'target_date' => :'targetDate',
:'properties' => :'properties'
}
end
# Attribute type mapping.
def self.swagger_types
{
:'session_id' => :'String',
- :'timestamp' => :'Integer',
+ :'target_date' => :'DateTime',
:'properties' => :'Array<AnalyticsProperty>'
}
end
@@ -59,12 +59,12 @@
if attributes[:'sessionId']
self.session_id = attributes[:'sessionId']
end
- if attributes[:'timestamp']
- self.timestamp = attributes[:'timestamp']
+ if attributes[:'targetDate']
+ self.target_date = attributes[:'targetDate']
end
if attributes[:'properties']
if (value = attributes[:'properties']).is_a?(Array)
self.properties = value
@@ -76,21 +76,21 @@
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
session_id == o.session_id &&
- timestamp == o.timestamp &&
+ target_date == o.target_date &&
properties == o.properties
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [session_id, timestamp, properties].hash
+ [session_id, target_date, properties].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)