# 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::Labservices::Mgmt::V2018_10_15
  module Models
    #
    # Details of the status of an operation.
    #
    class LatestOperationResult

      include MsRestAzure

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

      # @return [String] Error code on failure.
      attr_accessor :error_code

      # @return [String] The error message.
      attr_accessor :error_message

      # @return [String] Request URI of the operation.
      attr_accessor :request_uri

      # @return [String] The HttpMethod - PUT/POST/DELETE for the operation.
      attr_accessor :http_method

      # @return [String] The URL to use to check long-running operation status
      attr_accessor :operation_url


      #
      # Mapper for LatestOperationResult class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'LatestOperationResult',
          type: {
            name: 'Composite',
            class_name: 'LatestOperationResult',
            model_properties: {
              status: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'status',
                type: {
                  name: 'String'
                }
              },
              error_code: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'errorCode',
                type: {
                  name: 'String'
                }
              },
              error_message: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'errorMessage',
                type: {
                  name: 'String'
                }
              },
              request_uri: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'requestUri',
                type: {
                  name: 'String'
                }
              },
              http_method: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'httpMethod',
                type: {
                  name: 'String'
                }
              },
              operation_url: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'operationUrl',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
