# 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::ServiceFabric::V7_0_0_42
  module Models
    #
    # Application Upgrade Rollback Started event.
    #
    class ApplicationUpgradeRollbackStartedEvent < ApplicationEvent

      include MsRestAzure


      def initialize
        @Kind = "ApplicationUpgradeRollbackStarted"
      end

      attr_accessor :Kind

      # @return [String] Application type name.
      attr_accessor :application_type_name

      # @return [String] Current Application type version.
      attr_accessor :current_application_type_version

      # @return [String] Target Application type version.
      attr_accessor :application_type_version

      # @return [String] Describes reason of failure.
      attr_accessor :failure_reason

      # @return [Float] Overall upgrade time in milli-seconds.
      attr_accessor :overall_upgrade_elapsed_time_in_ms


      #
      # Mapper for ApplicationUpgradeRollbackStartedEvent class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ApplicationUpgradeRollbackStarted',
          type: {
            name: 'Composite',
            class_name: 'ApplicationUpgradeRollbackStartedEvent',
            model_properties: {
              event_instance_id: {
                client_side_validation: true,
                required: true,
                serialized_name: 'EventInstanceId',
                type: {
                  name: 'String'
                }
              },
              category: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Category',
                type: {
                  name: 'String'
                }
              },
              time_stamp: {
                client_side_validation: true,
                required: true,
                serialized_name: 'TimeStamp',
                type: {
                  name: 'DateTime'
                }
              },
              has_correlated_events: {
                client_side_validation: true,
                required: false,
                serialized_name: 'HasCorrelatedEvents',
                type: {
                  name: 'Boolean'
                }
              },
              Kind: {
                client_side_validation: true,
                required: true,
                serialized_name: 'Kind',
                type: {
                  name: 'String'
                }
              },
              application_id: {
                client_side_validation: true,
                required: true,
                serialized_name: 'ApplicationId',
                type: {
                  name: 'String'
                }
              },
              application_type_name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'ApplicationTypeName',
                type: {
                  name: 'String'
                }
              },
              current_application_type_version: {
                client_side_validation: true,
                required: true,
                serialized_name: 'CurrentApplicationTypeVersion',
                type: {
                  name: 'String'
                }
              },
              application_type_version: {
                client_side_validation: true,
                required: true,
                serialized_name: 'ApplicationTypeVersion',
                type: {
                  name: 'String'
                }
              },
              failure_reason: {
                client_side_validation: true,
                required: true,
                serialized_name: 'FailureReason',
                type: {
                  name: 'String'
                }
              },
              overall_upgrade_elapsed_time_in_ms: {
                client_side_validation: true,
                required: true,
                serialized_name: 'OverallUpgradeElapsedTimeInMs',
                type: {
                  name: 'Double'
                }
              }
            }
          }
        }
      end
    end
  end
end
