lib/purecloud/models/diagnostic_email.rb in purecloud-0.36.1 vs lib/purecloud/models/diagnostic_email.rb in purecloud-0.37.1

- old
+ new

@@ -1,38 +1,43 @@ =begin -PureCloud API +PureCloud Platform API -PureCloud API +With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more. -OpenAPI spec version: v1 -Contact: chuck.pulfer@inin.com +OpenAPI spec version: v2 +Contact: DeveloperEvangelists@inin.com Generated by: https://github.com/swagger-api/swagger-codegen.git License: ININ http://www.inin.com -Terms of Service: http://www.inin.com +Terms of Service: https://developer.mypurecloud.com/tos =end require 'date' module PureCloud class DiagnosticEmail # The globally unique identifier for the object. attr_accessor :id + # Subject of Issue Report attr_accessor :subject + # Functional Area of Issue attr_accessor :topic + # Detailed Description of Issue attr_accessor :description attr_accessor :priority + # Type of Issue attr_accessor :type + # Json blob of data to be included with this report. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -104,20 +109,29 @@ end end # Custom attribute writer method checking allowed values (enum). + def topic=(topic) + allowed_values = ["Admin", "Documents", "Chat", "Video Chat", "Login", "Slowness", "Other"] + if topic && !allowed_values.include?(topic) + fail "invalid value for 'topic', must be one of #{allowed_values}" + end + @topic = topic + end + + # Custom attribute writer method checking allowed values (enum). def priority=(priority) - allowed_values = ["LOW", "MEDIUM", "HIGH"] + allowed_values = ["LOW", "MEDIUM", "HIGH", "CRITICAL"] if priority && !allowed_values.include?(priority) fail "invalid value for 'priority', must be one of #{allowed_values}" end @priority = priority end # Custom attribute writer method checking allowed values (enum). def type=(type) - allowed_values = ["PROBLEM", "FEATURE_REQUEST", "QUESTION", "TECHNICAL_ISSUE", "NON_TECHNICAL_ISSUE"] + allowed_values = ["Problem", "Question", "Enhancement Request"] if type && !allowed_values.include?(type) fail "invalid value for 'type', must be one of #{allowed_values}" end @type = type end