# 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::V6_5_0_36
  module Models
    #
    # Information about service package deployed on a Service Fabric node.
    #
    class DeployedServicePackageInfo

      include MsRestAzure

      # @return [String] The name of the service package as specified in the
      # service manifest.
      attr_accessor :name

      # @return [String] The version of the service package specified in
      # service manifest.
      attr_accessor :version

      # @return [DeploymentStatus] Specifies the status of a deployed
      # application or service package on a Service Fabric node. Possible
      # values include: 'Invalid', 'Downloading', 'Activating', 'Active',
      # 'Upgrading', 'Deactivating'
      attr_accessor :status

      # @return [String] The ActivationId of a deployed service package. If
      # ServicePackageActivationMode specified at the time of creating the
      # service
      # is 'SharedProcess' (or if it is not specified, in which case it
      # defaults to 'SharedProcess'), then value of ServicePackageActivationId
      # is always an empty string.
      attr_accessor :service_package_activation_id


      #
      # Mapper for DeployedServicePackageInfo class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DeployedServicePackageInfo',
          type: {
            name: 'Composite',
            class_name: 'DeployedServicePackageInfo',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Name',
                type: {
                  name: 'String'
                }
              },
              version: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Version',
                type: {
                  name: 'String'
                }
              },
              status: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Status',
                type: {
                  name: 'String'
                }
              },
              service_package_activation_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ServicePackageActivationId',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
