C# Класс Microsoft.Azure.Commands.RecoveryServices.Backup.Helpers.JobConversions

Job conversions helper.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

AddServiceClientJobsToPSList() публичный статический Метод

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
Результат void

GetJobTypeForService() публичный статический Метод

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
Результат string

GetLastIdFromFullId() публичный статический Метод

Helper function to get last index value from full id.
public static GetLastIdFromFullId ( string fullId ) : string
fullId string
Результат string

GetPSBackupManagementType() публичный статический Метод

Helper function to get ps backup management type from job type.
public static GetPSBackupManagementType ( string jobType ) : string
jobType string
Результат string

GetPSJob() публичный статический Метод

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
Результат Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase

GetPSJob() публичный статический Метод

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
Результат Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase