lib/purecloudplatformclientv2/models/conversation_query.rb in purecloudplatformclientv2-52.0.0 vs lib/purecloudplatformclientv2/models/conversation_query.rb in purecloudplatformclientv2-53.0.0
- old
+ new
@@ -5,14 +5,14 @@
OpenAPI spec version: v2
Contact: DeveloperEvangelists@genesys.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
-License: ININ
-http://www.inin.com
+License: UNLICENSED
+https://help.mypurecloud.com/articles/terms-and-conditions/
-Terms of Service: https://developer.mypurecloud.com/tos
+Terms of Service: https://help.mypurecloud.com/articles/terms-and-conditions/
=end
require 'date'
@@ -34,22 +34,22 @@
attr_accessor :media_endpoint_stat_filters
# Filters that target individual segments within a conversation
attr_accessor :segment_filters
- # Include faceted search and aggregate roll-ups describing your search results. This does not function as a filter, but rather, summary data about the data matching your filters
- attr_accessor :aggregations
-
- # Page size and number to control iterating through large result sets. Default page size is 25
- attr_accessor :paging
-
# Sort the result set in ascending/descending order. Default is ascending
attr_accessor :order
# Specify which data element within the result set to use for sorting. The options to use as a basis for sorting the results: conversationStart, segmentStart, and segmentEnd. If not specified, the default is conversationStart
attr_accessor :order_by
+ # Include faceted search and aggregate roll-ups describing your search results. This does not function as a filter, but rather, summary data about the data matching your filters
+ attr_accessor :aggregations
+
+ # Page size and number to control iterating through large result sets. Default page size is 25
+ attr_accessor :paging
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'interval' => :'interval',
@@ -62,17 +62,17 @@
:'media_endpoint_stat_filters' => :'mediaEndpointStatFilters',
:'segment_filters' => :'segmentFilters',
- :'aggregations' => :'aggregations',
+ :'order' => :'order',
- :'paging' => :'paging',
+ :'order_by' => :'orderBy',
- :'order' => :'order',
+ :'aggregations' => :'aggregations',
- :'order_by' => :'orderBy'
+ :'paging' => :'paging'
}
end
# Attribute type mapping.
@@ -89,17 +89,17 @@
:'media_endpoint_stat_filters' => :'Array<AnalyticsQueryFilter>',
:'segment_filters' => :'Array<AnalyticsQueryFilter>',
- :'aggregations' => :'Array<AnalyticsQueryAggregation>',
+ :'order' => :'String',
- :'paging' => :'PagingSpec',
+ :'order_by' => :'String',
- :'order' => :'String',
+ :'aggregations' => :'Array<AnalyticsQueryAggregation>',
- :'order_by' => :'String'
+ :'paging' => :'PagingSpec'
}
end
# Initializes the object
@@ -173,43 +173,43 @@
end
- if attributes.has_key?(:'aggregations')
+ if attributes.has_key?(:'order')
- if (value = attributes[:'aggregations']).is_a?(Array)
- self.aggregations = value
- end
+ self.order = attributes[:'order']
end
- if attributes.has_key?(:'paging')
+ if attributes.has_key?(:'orderBy')
- self.paging = attributes[:'paging']
+ self.order_by = attributes[:'orderBy']
end
- if attributes.has_key?(:'order')
+ if attributes.has_key?(:'aggregations')
+ if (value = attributes[:'aggregations']).is_a?(Array)
+ self.aggregations = value
+ end
- self.order = attributes[:'order']
end
- if attributes.has_key?(:'orderBy')
+ if attributes.has_key?(:'paging')
- self.order_by = attributes[:'orderBy']
+ self.paging = attributes[:'paging']
end
@@ -252,18 +252,10 @@
-
-
-
-
-
-
-
-
allowed_values = ["asc", "desc"]
if @order && !allowed_values.include?(@order)
return false
end
@@ -276,10 +268,18 @@
return false
end
+
+
+
+
+
+
+
+
end
@@ -310,20 +310,10 @@
-
-
-
-
-
-
-
-
-
-
# Custom attribute writer method checking allowed values (enum).
# @param [Object] order Object to be assigned
def order=(order)
allowed_values = ["asc", "desc"]
if order && !allowed_values.include?(order)
@@ -347,10 +337,20 @@
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 &&
@@ -358,14 +358,14 @@
conversation_filters == o.conversation_filters &&
evaluation_filters == o.evaluation_filters &&
survey_filters == o.survey_filters &&
media_endpoint_stat_filters == o.media_endpoint_stat_filters &&
segment_filters == o.segment_filters &&
- aggregations == o.aggregations &&
- paging == o.paging &&
order == o.order &&
- order_by == o.order_by
+ order_by == o.order_by &&
+ aggregations == o.aggregations &&
+ paging == o.paging
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -373,10 +373,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [interval, conversation_filters, evaluation_filters, survey_filters, media_endpoint_stat_filters, segment_filters, aggregations, paging, order, order_by].hash
+ [interval, conversation_filters, evaluation_filters, survey_filters, media_endpoint_stat_filters, segment_filters, order, order_by, aggregations, paging].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)