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

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

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

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

DisableProtection() public method

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

EnableProtection() public method

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

GetDefaultRetentionPolicyObject() public method

Constructs the retention policy object with default inits
public GetDefaultRetentionPolicyObject ( ) : RetentionPolicyBase
return RetentionPolicyBase

GetDefaultSchedulePolicyObject() public method

Constructs the schedule policy object with default inits
public GetDefaultSchedulePolicyObject ( ) : SchedulePolicyBase
return SchedulePolicyBase

GetProtectedItem() public method

public GetProtectedItem ( ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectedItemResponse
return Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectedItemResponse

GetRecoveryPointDetails() public method

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

Initialize() public method

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
return void

ListBackupManagementServers() public method

public ListBackupManagementServers ( ) : List
return List

ListProtectedItems() public method

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

ListProtectionContainers() public method

Lists protection containers according to the provider data
public ListProtectionContainers ( ) : List
return List

ListRecoveryPoints() public method

Lists recovery points generated for the given item
public ListRecoveryPoints ( ) : List
return List

ModifyPolicy() public method

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

TriggerBackup() public method

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

TriggerRestore() public method

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