# 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::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 module Models # # Job details. # class Job < Resource include MsRestAzure # @return [JobProperties] The custom data. attr_accessor :properties # @return [String] The status of the Job. ARM expects the terminal status # to be one of (1) Succeeded, (2) Failed or (3) Canceled. All other # values imply that the operation is still running / being applied. attr_accessor :status # @return [ARMException] The error. attr_accessor :error # @return [String] The start time. attr_accessor :start_time # @return [String] The start time. attr_accessor :end_time # # Mapper for Job class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Job', type: { name: 'Composite', class_name: 'Job', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { client_side_validation: true, required: false, serialized_name: 'location', type: { name: 'String' } }, properties: { client_side_validation: true, required: false, serialized_name: 'properties', type: { name: 'Composite', class_name: 'JobProperties' } }, status: { client_side_validation: true, required: false, serialized_name: 'status', type: { name: 'String' } }, error: { client_side_validation: true, required: false, serialized_name: 'error', type: { name: 'Composite', class_name: 'ARMException' } }, start_time: { client_side_validation: true, required: false, serialized_name: 'startTime', type: { name: 'String' } }, end_time: { client_side_validation: true, required: false, serialized_name: 'endTime', type: { name: 'String' } } } } } end end end end