//
 // Summary:
 //     Initializes a new instance of the RecoveryPlanScriptActionDetails class.
 public ASRRecoveryPlanScriptActionDetails(RecoveryPlanScriptActionDetails recoveryPlanScriptActionDetails)
 {
     this.Path           = recoveryPlanScriptActionDetails.Path;
     this.Timeout        = recoveryPlanScriptActionDetails.Timeout;
     this.FabricLocation = "Primary" == recoveryPlanScriptActionDetails.FabricLocation ?
                           ASRRecoveryPlanActionLocation.Primary : ASRRecoveryPlanActionLocation.Recovery;
 }
        public static RecoveryPlanScriptActionDetails getRecoveryPlanScriptActionDetails(ASRRecoveryPlanScriptActionDetails recoveryPlanScriptActionDetails)
        {
            var actionDetails = new RecoveryPlanScriptActionDetails();

            actionDetails.Path           = recoveryPlanScriptActionDetails.Path;
            actionDetails.Timeout        = recoveryPlanScriptActionDetails.Timeout;
            actionDetails.FabricLocation = recoveryPlanScriptActionDetails.FabricLocation ==
                                           ASRRecoveryPlanActionLocation.Primary ? "Primary" : "Recovery";

            return(actionDetails);
        }