# 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::ARM::RecoveryServicesSiteRecovery 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() { required: false, serialized_name: 'Job', type: { name: 'Composite', class_name: 'Job', model_properties: { id: { required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { required: false, serialized_name: 'location', type: { name: 'String' } }, properties: { required: false, serialized_name: 'properties', type: { name: 'Composite', class_name: 'JobProperties' } }, status: { required: false, serialized_name: 'status', type: { name: 'String' } }, error: { required: false, serialized_name: 'error', type: { name: 'Composite', class_name: 'ARMException' } }, start_time: { required: false, serialized_name: 'startTime', type: { name: 'String' } }, end_time: { required: false, serialized_name: 'endTime', type: { name: 'String' } } } } } end end end end