lib/purecloud/models/campaign_diagnostics.rb in purecloud-0.49.1 vs lib/purecloud/models/campaign_diagnostics.rb in purecloud-0.50.1
- old
+ new
@@ -22,10 +22,13 @@
attr_accessor :callable_contacts
# Information regarding the campaign's queue
attr_accessor :queue_utilization_diagnostic
+ # Information regarding the campaign's rule sets
+ attr_accessor :rule_set_diagnostics
+
# Current number of outstanding interactions on the campaign
attr_accessor :outstanding_interactions_count
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -33,20 +36,23 @@
:'callable_contacts' => :'callableContacts',
:'queue_utilization_diagnostic' => :'queueUtilizationDiagnostic',
+ :'rule_set_diagnostics' => :'ruleSetDiagnostics',
+
:'outstanding_interactions_count' => :'outstandingInteractionsCount'
}
end
# Attribute type mapping.
def self.swagger_types
{
:'callable_contacts' => :'CallableContactsDiagnostic',
:'queue_utilization_diagnostic' => :'QueueUtilizationDiagnostic',
+ :'rule_set_diagnostics' => :'Array<RuleSetDiagnostic>',
:'outstanding_interactions_count' => :'Integer'
}
end
@@ -63,10 +69,16 @@
if attributes[:'queueUtilizationDiagnostic']
self.queue_utilization_diagnostic = attributes[:'queueUtilizationDiagnostic']
end
+ if attributes[:'ruleSetDiagnostics']
+ if (value = attributes[:'ruleSetDiagnostics']).is_a?(Array)
+ self.rule_set_diagnostics = value
+ end
+ end
+
if attributes[:'outstandingInteractionsCount']
self.outstanding_interactions_count = attributes[:'outstandingInteractionsCount']
end
end
@@ -75,20 +87,21 @@
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
callable_contacts == o.callable_contacts &&
queue_utilization_diagnostic == o.queue_utilization_diagnostic &&
+ rule_set_diagnostics == o.rule_set_diagnostics &&
outstanding_interactions_count == o.outstanding_interactions_count
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [callable_contacts, queue_utilization_diagnostic, outstanding_interactions_count].hash
+ [callable_contacts, queue_utilization_diagnostic, rule_set_diagnostics, outstanding_interactions_count].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)