# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Support::Mgmt::V2020_04_01
  module Models
    #
    # Updates severity, ticket status, and contact details in the support
    # ticket.
    #
    class UpdateSupportTicket

      include MsRestAzure

      # @return [SeverityLevel] Severity level. Possible values include:
      # 'minimal', 'moderate', 'critical', 'highestcriticalimpact'
      attr_accessor :severity

      # @return [Status] Status to be updated on the ticket. Possible values
      # include: 'open', 'closed'
      attr_accessor :status

      # @return [UpdateContactProfile] Contact details to be updated on the
      # support ticket.
      attr_accessor :contact_details


      #
      # Mapper for UpdateSupportTicket class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'UpdateSupportTicket',
          type: {
            name: 'Composite',
            class_name: 'UpdateSupportTicket',
            model_properties: {
              severity: {
                client_side_validation: true,
                required: false,
                serialized_name: 'severity',
                type: {
                  name: 'String'
                }
              },
              status: {
                client_side_validation: true,
                required: false,
                serialized_name: 'status',
                type: {
                  name: 'String'
                }
              },
              contact_details: {
                client_side_validation: true,
                required: false,
                serialized_name: 'contactDetails',
                type: {
                  name: 'Composite',
                  class_name: 'UpdateContactProfile'
                }
              }
            }
          }
        }
      end
    end
  end
end
