lib/purecloudplatformclientv2/models/conversation_query.rb in purecloudplatformclientv2-96.0.0 vs lib/purecloudplatformclientv2/models/conversation_query.rb in purecloudplatformclientv2-98.0.0

- old
+ new

@@ -16,13 +16,10 @@ require 'date' module PureCloud class ConversationQuery - # Specifies the date and time range of data being queried. Results will include conversations that both started on a day touched by the interval AND either started, ended, or any activity during the interval. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - attr_accessor :interval - # Filters that target conversation-level data attr_accessor :conversation_filters # Filters that target individual segments within a conversation attr_accessor :segment_filters @@ -40,22 +37,23 @@ 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 + # Specifies the date and time range of data being queried. Results will only include conversations that started on a day touched by the interval. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss + attr_accessor :interval + # 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', - :'conversation_filters' => :'conversationFilters', :'segment_filters' => :'segmentFilters', :'evaluation_filters' => :'evaluationFilters', @@ -66,10 +64,12 @@ :'order' => :'order', :'order_by' => :'orderBy', + :'interval' => :'interval', + :'aggregations' => :'aggregations', :'paging' => :'paging' } @@ -77,12 +77,10 @@ # Attribute type mapping. def self.swagger_types { - :'interval' => :'String', - :'conversation_filters' => :'Array<ConversationDetailQueryFilter>', :'segment_filters' => :'Array<SegmentDetailQueryFilter>', :'evaluation_filters' => :'Array<EvaluationDetailQueryFilter>', @@ -93,10 +91,12 @@ :'order' => :'String', :'order_by' => :'String', + :'interval' => :'String', + :'aggregations' => :'Array<AnalyticsQueryAggregation>', :'paging' => :'PagingSpec' } @@ -109,19 +109,10 @@ # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} - if attributes.has_key?(:'interval') - - - self.interval = attributes[:'interval'] - - - end - - if attributes.has_key?(:'conversationFilters') if (value = attributes[:'conversationFilters']).is_a?(Array) self.conversation_filters = value end @@ -191,10 +182,19 @@ end + if attributes.has_key?(:'interval') + + + self.interval = attributes[:'interval'] + + + end + + if attributes.has_key?(:'aggregations') if (value = attributes[:'aggregations']).is_a?(Array) self.aggregations = value end @@ -227,14 +227,10 @@ # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - if @interval.nil? - return false - end - @@ -252,15 +248,10 @@ - - - - - allowed_values = ["asc", "desc"] if @order && !allowed_values.include?(@order) return false end @@ -274,17 +265,26 @@ end + if @interval.nil? + return false + end + + + + + + end @@ -310,15 +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) @@ -352,23 +347,28 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && - interval == o.interval && conversation_filters == o.conversation_filters && segment_filters == o.segment_filters && evaluation_filters == o.evaluation_filters && media_endpoint_stat_filters == o.media_endpoint_stat_filters && survey_filters == o.survey_filters && order == o.order && order_by == o.order_by && + interval == o.interval && aggregations == o.aggregations && paging == o.paging end # @see the `==` method @@ -378,10 +378,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [interval, conversation_filters, segment_filters, evaluation_filters, media_endpoint_stat_filters, survey_filters, order, order_by, aggregations, paging].hash + [conversation_filters, segment_filters, evaluation_filters, media_endpoint_stat_filters, survey_filters, order, order_by, interval, aggregations, paging].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)