C# Class Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ProviderModel.IaasVmPsBackupProvider

This class implements implements methods for IaasVm backup provider
Inheritance: IPsBackupProvider
Afficher le fichier Open project: Azure/azure-powershell Class Usage Examples

Private Properties

Свойство Type Description
CopyScheduleTimeToRetentionTimes void
GenerateRandomTime System.DateTime
GetAzureIaasVirtualMachineId string
GetAzureVMProtectableObject Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectableObjectResource
GetDailyRetentionFormat Models.DailyRetentionFormat
GetWeeklyRetentionFormat Models.WeeklyRetentionFormat
IsComputeAzureVM bool
IsDiscoveryNeeded bool
RefreshContainer void
TrackRefreshContainerOperation HttpStatusCode
ValidateAzureVMBackupManagementType void
ValidateAzureVMContainerType void
ValidateAzureVMDisableProtectionRequest void
ValidateAzureVMEnableProtectionRequest void
ValidateAzureVMModifyProtectionRequest void
ValidateAzureVMProtectionPolicy void
ValidateAzureVMRetentionPolicy void
ValidateAzureVMSchedulePolicy void
ValidateAzureVMWorkloadType void
ValidateAzureVMWorkloadType void

Méthodes publiques

Méthode Description
CreatePolicy ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResponse

Creates policy given the provider data

DisableProtection ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse

Triggers the disable protection operation for the given item

EnableProtection ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse

Triggers the enable protection operation for the given item

GetDefaultRetentionPolicyObject ( ) : RetentionPolicyBase

Constructs the retention policy object with default inits

GetDefaultSchedulePolicyObject ( ) : SchedulePolicyBase

Constructs the schedule policy object with default inits

GetProtectedItem ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectedItemResponse
GetRecoveryPointDetails ( ) : RecoveryPointBase

Fetches the detail info for the given recovery point

Initialize ( object>.Dictionary providerData, ServiceClientAdapter serviceClientAdapter ) : void

Initializes the provider with the data recieved from the cmdlet layer

ListBackupManagementServers ( ) : List
ListProtectedItems ( ) : List

Lists protected items protected by the recovery services vault according to the provider data

ListProtectionContainers ( ) : List

Lists protection containers according to the provider data

ListRecoveryPoints ( ) : List

Lists recovery points generated for the given item

ModifyPolicy ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResponse

Modifies policy using the provider data

TriggerBackup ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse

Triggers the backup operation for the given item

TriggerRestore ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse

Triggers the recovery operation for the given recovery point

Private Methods

Méthode Description
CopyScheduleTimeToRetentionTimes ( Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models retPolicy, Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models schPolicy ) : void
GenerateRandomTime ( ) : System.DateTime
GetAzureIaasVirtualMachineId ( string resourceGroup, string vmVersion, string name ) : string
GetAzureVMProtectableObject ( string azureVMName, string azureVMRGName, bool isComputeAzureVM ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectableObjectResource
GetDailyRetentionFormat ( ) : Models.DailyRetentionFormat
GetWeeklyRetentionFormat ( ) : Models.WeeklyRetentionFormat
IsComputeAzureVM ( string virtualMachineId ) : bool
IsDiscoveryNeeded ( string vmName, string rgName, bool isComputeAzureVM, Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectableObjectResource &protectableObjectResource ) : bool
RefreshContainer ( ) : void
TrackRefreshContainerOperation ( string operationResultLink, int checkFrequency = defaultOperationStatusRetryTimeInMilliSec ) : HttpStatusCode
ValidateAzureVMBackupManagementType ( Models backupManagementType ) : void
ValidateAzureVMContainerType ( Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models type ) : void
ValidateAzureVMDisableProtectionRequest ( ItemBase itemBase ) : void
ValidateAzureVMEnableProtectionRequest ( string vmName, string serviceName, string rgName, PolicyBase policy ) : void
ValidateAzureVMModifyProtectionRequest ( ItemBase itemBase, PolicyBase policy ) : void
ValidateAzureVMProtectionPolicy ( PolicyBase policy ) : void
ValidateAzureVMRetentionPolicy ( RetentionPolicyBase policy ) : void
ValidateAzureVMSchedulePolicy ( SchedulePolicyBase policy ) : void
ValidateAzureVMWorkloadType ( Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models type ) : void
ValidateAzureVMWorkloadType ( Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models itemWorkloadType, Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models policyWorkloadType ) : void

Method Details

CreatePolicy() public méthode

Creates policy given the provider data
public CreatePolicy ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResponse
Résultat Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResponse

DisableProtection() public méthode

Triggers the disable protection operation for the given item
public DisableProtection ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse
Résultat Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse

EnableProtection() public méthode

Triggers the enable protection operation for the given item
public EnableProtection ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse
Résultat Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse

GetDefaultRetentionPolicyObject() public méthode

Constructs the retention policy object with default inits
public GetDefaultRetentionPolicyObject ( ) : RetentionPolicyBase
Résultat RetentionPolicyBase

GetDefaultSchedulePolicyObject() public méthode

Constructs the schedule policy object with default inits
public GetDefaultSchedulePolicyObject ( ) : SchedulePolicyBase
Résultat SchedulePolicyBase

GetProtectedItem() public méthode

public GetProtectedItem ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectedItemResponse
Résultat Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectedItemResponse

GetRecoveryPointDetails() public méthode

Fetches the detail info for the given recovery point
public GetRecoveryPointDetails ( ) : RecoveryPointBase
Résultat Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase

Initialize() public méthode

Initializes the provider with the data recieved from the cmdlet layer
public Initialize ( object>.Dictionary providerData, ServiceClientAdapter serviceClientAdapter ) : void
providerData object>.Dictionary Data from the cmdlet layer intended for the provider
serviceClientAdapter Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ServiceClientAdapterNS.ServiceClientAdapter Service client adapter for communicating with the backend service
Résultat void

ListBackupManagementServers() public méthode

public ListBackupManagementServers ( ) : List
Résultat List

ListProtectedItems() public méthode

Lists protected items protected by the recovery services vault according to the provider data
public ListProtectedItems ( ) : List
Résultat List

ListProtectionContainers() public méthode

Lists protection containers according to the provider data
public ListProtectionContainers ( ) : List
Résultat List

ListRecoveryPoints() public méthode

Lists recovery points generated for the given item
public ListRecoveryPoints ( ) : List
Résultat List

ModifyPolicy() public méthode

Modifies policy using the provider data
public ModifyPolicy ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResponse
Résultat Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResponse

TriggerBackup() public méthode

Triggers the backup operation for the given item
public TriggerBackup ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse
Résultat Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse

TriggerRestore() public méthode

Triggers the recovery operation for the given recovery point
public TriggerRestore ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse
Résultat Microsoft.Azure.Management.RecoveryServices.Backup.Models.BaseRecoveryServicesJobResponse