@@ -28,13 +28,6 @@ public class SetAzureSiteRecoveryVaultSettings : SiteRecoveryCmdletBase
28
28
{
29
29
#region Parameters
30
30
31
- /// <summary>
32
- /// Gets or sets vault Object.
33
- /// </summary>
34
- [ Parameter ( ParameterSetName = ASRParameterSets . Default , Mandatory = true ) ]
35
- [ ValidateNotNullOrEmpty ]
36
- public System . Object Vault { get ; set ; }
37
-
38
31
/// <summary>
39
32
/// Gets or sets ASR vault Object.
40
33
/// </summary>
@@ -61,33 +54,11 @@ public override void ExecuteSiteRecoveryCmdlet()
61
54
switch ( this . ParameterSetName )
62
55
{
63
56
case ASRParameterSets . ASRVault :
64
- this . WriteWarningWithTimestamp (
65
- string . Format ( Properties . Resources . ParameterWillBeDeprecatedSoon ,
66
- "ASRVault" ,
67
- "Vault" ) ) ;
68
57
this . SetASRVaultContext ( this . ASRVault ) ;
69
58
break ;
70
59
case ASRParameterSets . ARSVault :
71
- this . WriteWarningWithTimestamp (
72
- string . Format ( Properties . Resources . ParameterWillBeDeprecatedSoon ,
73
- "ARSVault" ,
74
- "Vault" ) ) ;
75
60
this . SetARSVaultContext ( this . ARSVault ) ;
76
61
break ;
77
- case ASRParameterSets . Default :
78
- if ( ( ( PSObject ) Vault ) . BaseObject is ASRVault )
79
- {
80
- this . SetASRVaultContext ( ( ( PSObject ) Vault ) . BaseObject as ASRVault ) ;
81
- }
82
- else if ( ( ( PSObject ) Vault ) . BaseObject is ARSVault )
83
- {
84
- this . SetARSVaultContext ( ( ( PSObject ) Vault ) . BaseObject as ARSVault ) ;
85
- }
86
- else
87
- {
88
- throw new PSInvalidOperationException ( Properties . Resources . InvalidVaultObject ) ;
89
- }
90
- break ;
91
62
default :
92
63
throw new PSInvalidOperationException ( Properties . Resources . InvalidParameterSet ) ;
93
64
}
0 commit comments