generated/api/Models/FailoverGroupReplicationPair.PowerShell.cs

// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.4, generator: @autorest/powershell@3.0.415)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Commvault.Powershell.Models
{
    using Commvault.Powershell.Runtime.PowerShell;

    /// <summary>A replication pair for failover group</summary>
    [System.ComponentModel.TypeConverter(typeof(FailoverGroupReplicationPairTypeConverter))]
    public partial class FailoverGroupReplicationPair
    {

        /// <summary>
        /// <c>AfterDeserializeDictionary</c> will be called after the deserialization has finished, allowing customization of the
        /// object before it is returned. Implement this method in a partial class to enable this behavior
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>

        partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);

        /// <summary>
        /// <c>AfterDeserializePSObject</c> will be called after the deserialization has finished, allowing customization of the object
        /// before it is returned. Implement this method in a partial class to enable this behavior
        /// </summary>
        /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param>

        partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);

        /// <summary>
        /// <c>BeforeDeserializeDictionary</c> will be called before the deserialization has commenced, allowing complete customization
        /// of the object before it is deserialized.
        /// If you wish to disable the default deserialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
        /// Implement this method in a partial class to enable this behavior.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        /// <param name="returnNow">Determines if the rest of the serialization should be processed, or if the method should return
        /// instantly.</param>

        partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);

        /// <summary>
        /// <c>BeforeDeserializePSObject</c> will be called before the deserialization has commenced, allowing complete customization
        /// of the object before it is deserialized.
        /// If you wish to disable the default deserialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
        /// Implement this method in a partial class to enable this behavior.
        /// </summary>
        /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param>
        /// <param name="returnNow">Determines if the rest of the serialization should be processed, or if the method should return
        /// instantly.</param>

        partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);

        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into an instance of <see cref="Commvault.Powershell.Models.FailoverGroupReplicationPair"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        /// <returns>
        /// an instance of <see cref="Commvault.Powershell.Models.IFailoverGroupReplicationPair" />.
        /// </returns>
        public static Commvault.Powershell.Models.IFailoverGroupReplicationPair DeserializeFromDictionary(global::System.Collections.IDictionary content)
        {
            return new FailoverGroupReplicationPair(content);
        }

        /// <summary>
        /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into an instance of <see cref="Commvault.Powershell.Models.FailoverGroupReplicationPair"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param>
        /// <returns>
        /// an instance of <see cref="Commvault.Powershell.Models.IFailoverGroupReplicationPair" />.
        /// </returns>
        public static Commvault.Powershell.Models.IFailoverGroupReplicationPair DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
        {
            return new FailoverGroupReplicationPair(content);
        }

        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Commvault.Powershell.Models.FailoverGroupReplicationPair"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal FailoverGroupReplicationPair(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;
            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScript = (Commvault.Powershell.Models.IDrOperationScript) content.GetValueForProperty("PreFailoverScript",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScript, Commvault.Powershell.Models.DrOperationScriptTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScript = (Commvault.Powershell.Models.IDrOperationScript) content.GetValueForProperty("PostFailoverScript",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScript, Commvault.Powershell.Models.DrOperationScriptTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScript = (Commvault.Powershell.Models.IDrOperationScript) content.GetValueForProperty("PreFailbackScript",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScript, Commvault.Powershell.Models.DrOperationScriptTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScript = (Commvault.Powershell.Models.IDrOperationScript) content.GetValueForProperty("PostFailbackScript",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScript, Commvault.Powershell.Models.DrOperationScriptTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).Id = (long?) content.GetValueForProperty("Id",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).SourceId = (long?) content.GetValueForProperty("SourceId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).SourceId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).SourceName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).DestinationId = (long?) content.GetValueForProperty("DestinationId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).DestinationId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).DestinationName = (string) content.GetValueForProperty("DestinationName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).DestinationName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).Guid = (string) content.GetValueForProperty("Guid",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).Guid, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).Priority = (long?) content.GetValueForProperty("Priority",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).Priority, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).CopyPrecedence = (long?) content.GetValueForProperty("CopyPrecedence",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).CopyPrecedence, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptOSType = (string) content.GetValueForProperty("PreFailoverScriptOSType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptOSType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptOSType = (string) content.GetValueForProperty("PostFailoverScriptOSType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptOSType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptOSType = (string) content.GetValueForProperty("PreFailbackScriptOSType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptOSType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptOSType = (string) content.GetValueForProperty("PostFailbackScriptOSType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptOSType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PreFailoverScriptCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PreFailoverScriptGuestCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptPath = (string) content.GetValueForProperty("PreFailoverScriptPath",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptPath, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptType = (string) content.GetValueForProperty("PreFailoverScriptType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuid = (string) content.GetValueForProperty("PreFailoverScriptGuid",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuid, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptReset = (bool?) content.GetValueForProperty("PreFailoverScriptReset",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptReset, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PostFailoverScriptCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PostFailoverScriptGuestCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptPath = (string) content.GetValueForProperty("PostFailoverScriptPath",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptPath, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptType = (string) content.GetValueForProperty("PostFailoverScriptType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuid = (string) content.GetValueForProperty("PostFailoverScriptGuid",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuid, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptReset = (bool?) content.GetValueForProperty("PostFailoverScriptReset",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptReset, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PreFailbackScriptCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PreFailbackScriptGuestCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptPath = (string) content.GetValueForProperty("PreFailbackScriptPath",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptPath, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptType = (string) content.GetValueForProperty("PreFailbackScriptType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuid = (string) content.GetValueForProperty("PreFailbackScriptGuid",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuid, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptReset = (bool?) content.GetValueForProperty("PreFailbackScriptReset",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptReset, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PostFailbackScriptCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PostFailbackScriptGuestCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptPath = (string) content.GetValueForProperty("PostFailbackScriptPath",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptPath, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptType = (string) content.GetValueForProperty("PostFailbackScriptType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuid = (string) content.GetValueForProperty("PostFailbackScriptGuid",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuid, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptReset = (bool?) content.GetValueForProperty("PostFailbackScriptReset",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptReset, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PreFailoverScriptScriptCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PreFailoverScriptScriptCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PreFailoverScriptGuestCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PreFailoverScriptGuestCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PostFailoverScriptScriptCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PostFailoverScriptScriptCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PostFailoverScriptGuestCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PostFailoverScriptGuestCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PreFailbackScriptScriptCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PreFailbackScriptScriptCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PreFailbackScriptGuestCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PreFailbackScriptGuestCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PostFailbackScriptScriptCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PostFailbackScriptScriptCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PostFailbackScriptGuestCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PostFailbackScriptGuestCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PreFailoverScriptScriptCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PreFailoverScriptScriptCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsCredentialsName = (string) content.GetValueForProperty("PreFailoverScriptScriptCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsCredentialsPassword = (string) content.GetValueForProperty("PreFailoverScriptScriptCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsCredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PreFailoverScriptGuestCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PreFailoverScriptGuestCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsCredentialsName = (string) content.GetValueForProperty("PreFailoverScriptGuestCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsCredentialsPassword = (string) content.GetValueForProperty("PreFailoverScriptGuestCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsCredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PostFailoverScriptScriptCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PostFailoverScriptScriptCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsCredentialsName = (string) content.GetValueForProperty("PostFailoverScriptScriptCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsCredentialsPassword = (string) content.GetValueForProperty("PostFailoverScriptScriptCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsCredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PostFailoverScriptGuestCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PostFailoverScriptGuestCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsCredentialsName = (string) content.GetValueForProperty("PostFailoverScriptGuestCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsCredentialsPassword = (string) content.GetValueForProperty("PostFailoverScriptGuestCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsCredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PreFailbackScriptScriptCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PreFailbackScriptScriptCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsCredentialsName = (string) content.GetValueForProperty("PreFailbackScriptScriptCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsCredentialsPassword = (string) content.GetValueForProperty("PreFailbackScriptScriptCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsCredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PreFailbackScriptGuestCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PreFailbackScriptGuestCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsCredentialsName = (string) content.GetValueForProperty("PreFailbackScriptGuestCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsCredentialsPassword = (string) content.GetValueForProperty("PreFailbackScriptGuestCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsCredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PostFailbackScriptScriptCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PostFailbackScriptScriptCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsCredentialsName = (string) content.GetValueForProperty("PostFailbackScriptScriptCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsCredentialsPassword = (string) content.GetValueForProperty("PostFailbackScriptScriptCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsCredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PostFailbackScriptGuestCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PostFailbackScriptGuestCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsCredentialsName = (string) content.GetValueForProperty("PostFailbackScriptGuestCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsCredentialsPassword = (string) content.GetValueForProperty("PostFailbackScriptGuestCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsCredentialsPassword, global::System.Convert.ToString);
            AfterDeserializeDictionary(content);
        }

        /// <summary>
        /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Commvault.Powershell.Models.FailoverGroupReplicationPair"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param>
        internal FailoverGroupReplicationPair(global::System.Management.Automation.PSObject content)
        {
            bool returnNow = false;
            BeforeDeserializePSObject(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScript = (Commvault.Powershell.Models.IDrOperationScript) content.GetValueForProperty("PreFailoverScript",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScript, Commvault.Powershell.Models.DrOperationScriptTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScript = (Commvault.Powershell.Models.IDrOperationScript) content.GetValueForProperty("PostFailoverScript",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScript, Commvault.Powershell.Models.DrOperationScriptTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScript = (Commvault.Powershell.Models.IDrOperationScript) content.GetValueForProperty("PreFailbackScript",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScript, Commvault.Powershell.Models.DrOperationScriptTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScript = (Commvault.Powershell.Models.IDrOperationScript) content.GetValueForProperty("PostFailbackScript",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScript, Commvault.Powershell.Models.DrOperationScriptTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).Id = (long?) content.GetValueForProperty("Id",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).SourceId = (long?) content.GetValueForProperty("SourceId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).SourceId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).SourceName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).DestinationId = (long?) content.GetValueForProperty("DestinationId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).DestinationId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).DestinationName = (string) content.GetValueForProperty("DestinationName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).DestinationName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).Guid = (string) content.GetValueForProperty("Guid",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).Guid, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).Priority = (long?) content.GetValueForProperty("Priority",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).Priority, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).CopyPrecedence = (long?) content.GetValueForProperty("CopyPrecedence",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).CopyPrecedence, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptOSType = (string) content.GetValueForProperty("PreFailoverScriptOSType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptOSType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptOSType = (string) content.GetValueForProperty("PostFailoverScriptOSType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptOSType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptOSType = (string) content.GetValueForProperty("PreFailbackScriptOSType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptOSType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptOSType = (string) content.GetValueForProperty("PostFailbackScriptOSType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptOSType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PreFailoverScriptCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PreFailoverScriptGuestCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptPath = (string) content.GetValueForProperty("PreFailoverScriptPath",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptPath, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptType = (string) content.GetValueForProperty("PreFailoverScriptType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuid = (string) content.GetValueForProperty("PreFailoverScriptGuid",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuid, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptReset = (bool?) content.GetValueForProperty("PreFailoverScriptReset",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptReset, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PostFailoverScriptCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PostFailoverScriptGuestCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptPath = (string) content.GetValueForProperty("PostFailoverScriptPath",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptPath, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptType = (string) content.GetValueForProperty("PostFailoverScriptType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuid = (string) content.GetValueForProperty("PostFailoverScriptGuid",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuid, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptReset = (bool?) content.GetValueForProperty("PostFailoverScriptReset",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptReset, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PreFailbackScriptCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PreFailbackScriptGuestCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptPath = (string) content.GetValueForProperty("PreFailbackScriptPath",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptPath, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptType = (string) content.GetValueForProperty("PreFailbackScriptType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuid = (string) content.GetValueForProperty("PreFailbackScriptGuid",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuid, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptReset = (bool?) content.GetValueForProperty("PreFailbackScriptReset",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptReset, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PostFailbackScriptCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("PostFailbackScriptGuestCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptPath = (string) content.GetValueForProperty("PostFailbackScriptPath",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptPath, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptType = (string) content.GetValueForProperty("PostFailbackScriptType",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuid = (string) content.GetValueForProperty("PostFailbackScriptGuid",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuid, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptReset = (bool?) content.GetValueForProperty("PostFailbackScriptReset",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptReset, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PreFailoverScriptScriptCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PreFailoverScriptScriptCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PreFailoverScriptGuestCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PreFailoverScriptGuestCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PostFailoverScriptScriptCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PostFailoverScriptScriptCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PostFailoverScriptGuestCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PostFailoverScriptGuestCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PreFailbackScriptScriptCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PreFailbackScriptScriptCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PreFailbackScriptGuestCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PreFailbackScriptGuestCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PostFailbackScriptScriptCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PostFailbackScriptScriptCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("PostFailbackScriptGuestCredentialsSavedCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("PostFailbackScriptGuestCredentialsCredentials",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PreFailoverScriptScriptCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PreFailoverScriptScriptCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsCredentialsName = (string) content.GetValueForProperty("PreFailoverScriptScriptCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsCredentialsPassword = (string) content.GetValueForProperty("PreFailoverScriptScriptCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptScriptCredentialsCredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PreFailoverScriptGuestCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PreFailoverScriptGuestCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsCredentialsName = (string) content.GetValueForProperty("PreFailoverScriptGuestCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsCredentialsPassword = (string) content.GetValueForProperty("PreFailoverScriptGuestCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailoverScriptGuestCredentialsCredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PostFailoverScriptScriptCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PostFailoverScriptScriptCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsCredentialsName = (string) content.GetValueForProperty("PostFailoverScriptScriptCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsCredentialsPassword = (string) content.GetValueForProperty("PostFailoverScriptScriptCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptScriptCredentialsCredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PostFailoverScriptGuestCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PostFailoverScriptGuestCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsCredentialsName = (string) content.GetValueForProperty("PostFailoverScriptGuestCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsCredentialsPassword = (string) content.GetValueForProperty("PostFailoverScriptGuestCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailoverScriptGuestCredentialsCredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PreFailbackScriptScriptCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PreFailbackScriptScriptCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsCredentialsName = (string) content.GetValueForProperty("PreFailbackScriptScriptCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsCredentialsPassword = (string) content.GetValueForProperty("PreFailbackScriptScriptCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptScriptCredentialsCredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PreFailbackScriptGuestCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PreFailbackScriptGuestCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsCredentialsName = (string) content.GetValueForProperty("PreFailbackScriptGuestCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsCredentialsPassword = (string) content.GetValueForProperty("PreFailbackScriptGuestCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PreFailbackScriptGuestCredentialsCredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PostFailbackScriptScriptCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PostFailbackScriptScriptCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsCredentialsName = (string) content.GetValueForProperty("PostFailbackScriptScriptCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsCredentialsPassword = (string) content.GetValueForProperty("PostFailbackScriptScriptCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptScriptCredentialsCredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsSavedCredentialsId = (long?) content.GetValueForProperty("PostFailbackScriptGuestCredentialsSavedCredentialsId",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsSavedCredentialsName = (string) content.GetValueForProperty("PostFailbackScriptGuestCredentialsSavedCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsSavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsCredentialsName = (string) content.GetValueForProperty("PostFailbackScriptGuestCredentialsCredentialsName",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsCredentialsPassword = (string) content.GetValueForProperty("PostFailbackScriptGuestCredentialsCredentialsPassword",((Commvault.Powershell.Models.IFailoverGroupReplicationPairInternal)this).PostFailbackScriptGuestCredentialsCredentialsPassword, global::System.Convert.ToString);
            AfterDeserializePSObject(content);
        }

        /// <summary>
        /// Creates a new instance of <see cref="FailoverGroupReplicationPair" />, deserializing the content from a json string.
        /// </summary>
        /// <param name="jsonText">a string containing a JSON serialized instance of this model.</param>
        /// <returns>an instance of the <see cref="className" /> model class.</returns>
        public static Commvault.Powershell.Models.IFailoverGroupReplicationPair FromJsonString(string jsonText) => FromJson(Commvault.Powershell.Runtime.Json.JsonNode.Parse(jsonText));

        /// <summary>Serializes this instance to a json string.</summary>

        /// <returns>a <see cref="System.String" /> containing this model serialized to JSON text.</returns>
        public string ToJsonString() => ToJson(null, Commvault.Powershell.Runtime.SerializationMode.IncludeAll)?.ToString();
    }
    /// A replication pair for failover group
    [System.ComponentModel.TypeConverter(typeof(FailoverGroupReplicationPairTypeConverter))]
    public partial interface IFailoverGroupReplicationPair

    {

    }
}