C# Class Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.RecoveryServicesBackupCmdletBase

Base class for Recovery Services Backup cmdlets
Inheritance: Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
Afficher le fichier Open project: Azure/azure-powershell

Méthodes publiques

Méthode Description
GetJobObject ( string jobId ) : JobBase

Get the job PS model after fetching the job object from the service given the job ID.

GetJobObject ( IList jobIds ) : List

Gets list of job PS models after fetching the job objects from the service given the list of job IDs.

Méthodes protégées

Méthode Description
BeginProcessing ( ) : void
ExecutionBlock ( System.Action action ) : void

Wrapper method which executes the cmdlet processing blocks. Catches and logs any exception occuring during the execution.

HandleCreatedJob ( Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse itemResponse, string operationName ) : void

Based on the response from the service, handles the job created in the service appropriately.

InitializeAzureBackupCmdlet ( ) : void

Initializes the service clients and the logging utility

Private Methods

Méthode Description
HandleException ( Exception exception ) : void

Handles set of exceptions thrown by client

Method Details

BeginProcessing() protected méthode

protected BeginProcessing ( ) : void
Résultat void

ExecutionBlock() protected méthode

Wrapper method which executes the cmdlet processing blocks. Catches and logs any exception occuring during the execution.
protected ExecutionBlock ( System.Action action ) : void
action System.Action Delegate representing the cmdlet processing block
Résultat void

GetJobObject() public méthode

Get the job PS model after fetching the job object from the service given the job ID.
public GetJobObject ( string jobId ) : JobBase
jobId string ID of the job to be fetched
Résultat Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase

GetJobObject() public méthode

Gets list of job PS models after fetching the job objects from the service given the list of job IDs.
public GetJobObject ( IList jobIds ) : List
jobIds IList List of IDs of jobs to be fetched
Résultat List

HandleCreatedJob() protected méthode

Based on the response from the service, handles the job created in the service appropriately.
protected HandleCreatedJob ( Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse itemResponse, string operationName ) : void
itemResponse Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse Response from service
operationName string Name of the operation
Résultat void

InitializeAzureBackupCmdlet() protected méthode

Initializes the service clients and the logging utility
protected InitializeAzureBackupCmdlet ( ) : void
Résultat void