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

Class hosting helper methods for policy related cmdlets.
Exibir arquivo Open project: Azure/azure-powershell Class Usage Examples

Public Properties

Property Type Description
policyNameRgx System.Text.RegularExpressions.Regex

Public Methods

Method Description
GetProtectionPolicyByName ( string policyName, ServiceClientAdapter serviceClientAdapter ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResponse

Fetches policies by name

ValidateProtectionPolicyName ( string policyName ) : void

Validates name of the policy

Method Details

GetProtectionPolicyByName() public static method

Fetches policies by name
public static GetProtectionPolicyByName ( string policyName, ServiceClientAdapter serviceClientAdapter ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResponse
policyName string Name of the policy to be fetched
serviceClientAdapter Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ServiceClientAdapterNS.ServiceClientAdapter Service client adapter with which to make calls
return Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResponse

ValidateProtectionPolicyName() public static method

Validates name of the policy
public static ValidateProtectionPolicyName ( string policyName ) : void
policyName string Name of the policy
return void

Property Details

policyNameRgx public_oe static_oe property

public static Regex,System.Text.RegularExpressions policyNameRgx
return System.Text.RegularExpressions.Regex