# 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::DevTestLabs::Mgmt::V2018_09_15
  module Models
    #
    # Properties of an artifact.
    #
    class ArtifactInstallPropertiesFragment

      include MsRestAzure

      # @return [String] The artifact's identifier.
      attr_accessor :artifact_id

      # @return [String] The artifact's title.
      attr_accessor :artifact_title

      # @return [Array<ArtifactParameterPropertiesFragment>] The parameters of
      # the artifact.
      attr_accessor :parameters

      # @return [String] The status of the artifact.
      attr_accessor :status

      # @return [String] The status message from the deployment.
      attr_accessor :deployment_status_message

      # @return [String] The status message from the virtual machine extension.
      attr_accessor :vm_extension_status_message

      # @return [DateTime] The time that the artifact starts to install on the
      # virtual machine.
      attr_accessor :install_time


      #
      # Mapper for ArtifactInstallPropertiesFragment class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ArtifactInstallPropertiesFragment',
          type: {
            name: 'Composite',
            class_name: 'ArtifactInstallPropertiesFragment',
            model_properties: {
              artifact_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'artifactId',
                type: {
                  name: 'String'
                }
              },
              artifact_title: {
                client_side_validation: true,
                required: false,
                serialized_name: 'artifactTitle',
                type: {
                  name: 'String'
                }
              },
              parameters: {
                client_side_validation: true,
                required: false,
                serialized_name: 'parameters',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ArtifactParameterPropertiesFragmentElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'ArtifactParameterPropertiesFragment'
                      }
                  }
                }
              },
              status: {
                client_side_validation: true,
                required: false,
                serialized_name: 'status',
                type: {
                  name: 'String'
                }
              },
              deployment_status_message: {
                client_side_validation: true,
                required: false,
                serialized_name: 'deploymentStatusMessage',
                type: {
                  name: 'String'
                }
              },
              vm_extension_status_message: {
                client_side_validation: true,
                required: false,
                serialized_name: 'vmExtensionStatusMessage',
                type: {
                  name: 'String'
                }
              },
              install_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'installTime',
                type: {
                  name: 'DateTime'
                }
              }
            }
          }
        }
      end
    end
  end
end
