C# Class Microsoft.Azure.Commands.RecoveryServices.Backup.Helpers.JobConversions

Job conversions helper.
Mostrar archivo Open project: Azure/azure-powershell

Public Methods

Method Description
AddServiceClientJobsToPSList ( Microsoft.Azure.Management.RecoveryServices.Backup.Models.JobListResponse serviceClientJobs, List psJobs, int &jobsCount ) : void

Helper function to convert ps backup job list model from service response.

GetJobTypeForService ( Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models mgmtType ) : string

Helper function to get job type from ps backup management type.

GetLastIdFromFullId ( string fullId ) : string

Helper function to get last index value from full id.

GetPSBackupManagementType ( string jobType ) : string

Helper function to get ps backup management type from job type.

GetPSJob ( Microsoft.Azure.Management.RecoveryServices.Backup.Models.JobResource serviceClientJob ) : JobBase

Helper function to convert ps backup job model from service response.

GetPSJob ( Microsoft.Azure.Management.RecoveryServices.Backup.Models.JobResponse serviceClientJob ) : JobBase

This function returns either job object or job details object based on what ServiceClient object contains. To elaborate, if ServiceClient job's ExtendedInfo is filled then this function will return a job details object. Otherwise it will return a job object.

Private Methods

Method Description
GetPSAzureVmErrorInfo ( Microsoft.Azure.Management.RecoveryServices.Backup.Models.AzureIaaSVMErrorInfo serviceClientError ) : AzureVmJobErrorInfo

Helper function to convert ps azure vm backup job error info from service response.

GetPSAzureVmJob ( Microsoft.Azure.Management.RecoveryServices.Backup.Models.JobResource serviceClientJob ) : AzureVmJob

Helper function to convert ps azure vm backup policy job from service response.

Method Details

AddServiceClientJobsToPSList() public static method

Helper function to convert ps backup job list model from service response.
public static AddServiceClientJobsToPSList ( Microsoft.Azure.Management.RecoveryServices.Backup.Models.JobListResponse serviceClientJobs, List psJobs, int &jobsCount ) : void
serviceClientJobs Microsoft.Azure.Management.RecoveryServices.Backup.Models.JobListResponse
psJobs List
jobsCount int
return void

GetJobTypeForService() public static method

Helper function to get job type from ps backup management type.
public static GetJobTypeForService ( Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models mgmtType ) : string
mgmtType Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models
return string

GetLastIdFromFullId() public static method

Helper function to get last index value from full id.
public static GetLastIdFromFullId ( string fullId ) : string
fullId string
return string

GetPSBackupManagementType() public static method

Helper function to get ps backup management type from job type.
public static GetPSBackupManagementType ( string jobType ) : string
jobType string
return string

GetPSJob() public static method

Helper function to convert ps backup job model from service response.
public static GetPSJob ( Microsoft.Azure.Management.RecoveryServices.Backup.Models.JobResource serviceClientJob ) : JobBase
serviceClientJob Microsoft.Azure.Management.RecoveryServices.Backup.Models.JobResource
return Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase

GetPSJob() public static method

This function returns either job object or job details object based on what ServiceClient object contains. To elaborate, if ServiceClient job's ExtendedInfo is filled then this function will return a job details object. Otherwise it will return a job object.
public static GetPSJob ( Microsoft.Azure.Management.RecoveryServices.Backup.Models.JobResponse serviceClientJob ) : JobBase
serviceClientJob Microsoft.Azure.Management.RecoveryServices.Backup.Models.JobResponse
return Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase