lib/purecloud/models/property_index_request.rb in purecloud-0.30.1 vs lib/purecloud/models/property_index_request.rb in purecloud-0.31.1
- old
+ new
@@ -1,12 +1,9 @@
require 'date'
module PureCloud
class PropertyIndexRequest
- # Attach properties to the indicated segment.
- attr_accessor :segment_id
-
# Attach properties to a segment in the indicated session. Also requires a timestamp.
attr_accessor :session_id
# Attach properties to a segment covering a specific point in time. Also requries a sessionId.
attr_accessor :timestamp
@@ -16,12 +13,10 @@
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'segment_id' => :'segmentId',
-
:'session_id' => :'sessionId',
:'timestamp' => :'timestamp',
:'properties' => :'properties'
@@ -30,11 +25,10 @@
end
# Attribute type mapping.
def self.swagger_types
{
- :'segment_id' => :'String',
:'session_id' => :'String',
:'timestamp' => :'Integer',
:'properties' => :'Array<AnalyticsProperty>'
}
@@ -45,14 +39,10 @@
# convert string to symbol for hash key
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
- if attributes[:'segmentId']
- self.segment_id = attributes[:'segmentId']
- end
-
if attributes[:'sessionId']
self.session_id = attributes[:'sessionId']
end
if attributes[:'timestamp']
@@ -69,11 +59,10 @@
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- segment_id == o.segment_id &&
session_id == o.session_id &&
timestamp == o.timestamp &&
properties == o.properties
end
@@ -82,10 +71,10 @@
self == o
end
# Calculate hash code according to all attributes.
def hash
- [segment_id, session_id, timestamp, properties].hash
+ [session_id, timestamp, properties].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)