generated/api/Models/RecoveryConfiguration.PowerShell.cs
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/powershell@4.0.708) // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Commvault.Powershell.Models { using Commvault.Powershell.Runtime.PowerShell; /// <summary>RecoveryConfiguration</summary> [System.ComponentModel.TypeConverter(typeof(RecoveryConfigurationTypeConverter))] public partial class RecoveryConfiguration { /// <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 <paramref name="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 <paramref name="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> /// <c>OverrideToString</c> will be called if it is implemented. Implement this method in a partial class to enable this behavior /// </summary> /// <param name="stringResult">/// instance serialized to a string, normally it is a Json</param> /// <param name="returnNow">/// set returnNow to true if you provide a customized OverrideToString function</param> partial void OverrideToString(ref string stringResult, ref bool returnNow); /// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into an instance of <see cref="Commvault.Powershell.Models.RecoveryConfiguration" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> /// <returns> /// an instance of <see cref="Commvault.Powershell.Models.IRecoveryConfiguration" />. /// </returns> public static Commvault.Powershell.Models.IRecoveryConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryConfiguration(content); } /// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into an instance of <see cref="Commvault.Powershell.Models.RecoveryConfiguration" /// />. /// </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.IRecoveryConfiguration" />. /// </returns> public static Commvault.Powershell.Models.IRecoveryConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryConfiguration(content); } /// <summary> /// Creates a new instance of <see cref="RecoveryConfiguration" />, 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="RecoveryConfiguration" /> model class.</returns> public static Commvault.Powershell.Models.IRecoveryConfiguration FromJsonString(string jsonText) => FromJson(Commvault.Powershell.Runtime.Json.JsonNode.Parse(jsonText)); /// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Commvault.Powershell.Models.RecoveryConfiguration" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal RecoveryConfiguration(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("AdvancedOptions")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptions = (Commvault.Powershell.Models.IAdvancedRecoveryConfiguration) content.GetValueForProperty("AdvancedOptions",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptions, Commvault.Powershell.Models.AdvancedRecoveryConfigurationTypeConverter.ConvertFrom); } if (content.Contains("Configuration")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Configuration = (Commvault.Powershell.Models.IVMRecoveryConfiguration) content.GetValueForProperty("Configuration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Configuration, Commvault.Powershell.Models.VMRecoveryConfigurationTypeConverter.ConvertFrom); } if (content.Contains("DbConfig")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfig = (Commvault.Powershell.Models.IDbRecoveryConfiguration) content.GetValueForProperty("DbConfig",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfig, Commvault.Powershell.Models.DbRecoveryConfigurationTypeConverter.ConvertFrom); } if (content.Contains("ImageDetails")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetails = (Commvault.Powershell.Models.IVMImageDetails) content.GetValueForProperty("ImageDetails",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetails, Commvault.Powershell.Models.VMImageDetailsTypeConverter.ConvertFrom); } if (content.Contains("MediaAgent")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgent = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("MediaAgent",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgent, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("HardwareConfiguration")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfiguration = (Commvault.Powershell.Models.IHardwareConfiguration) content.GetValueForProperty("HardwareConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfiguration, Commvault.Powershell.Models.HardwareConfigurationTypeConverter.ConvertFrom); } if (content.Contains("Credentials")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Credentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("Credentials",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Credentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom); } if (content.Contains("CopyPrecedence")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CopyPrecedence = (long?) content.GetValueForProperty("CopyPrecedence",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CopyPrecedence, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("HardwareConfigurationVolumeConfiguration")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationVolumeConfiguration = (System.Collections.Generic.List<Commvault.Powershell.Models.IVolumeConfiguration>) content.GetValueForProperty("HardwareConfigurationVolumeConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationVolumeConfiguration, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IVolumeConfiguration>(__y, Commvault.Powershell.Models.VolumeConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("UserNamePasswordCredentials")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).UserNamePasswordCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("UserNamePasswordCredentials",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).UserNamePasswordCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom); } if (content.Contains("AdvancedOptionAzure")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptionAzure = (Commvault.Powershell.Models.IReplicationGroupAdvOptionsAzure) content.GetValueForProperty("AdvancedOptionAzure",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptionAzure, Commvault.Powershell.Models.ReplicationGroupAdvOptionsAzureTypeConverter.ConvertFrom); } if (content.Contains("ConfigurationAzure")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ConfigurationAzure = (Commvault.Powershell.Models.IReplicationConfigurationAzure) content.GetValueForProperty("ConfigurationAzure",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ConfigurationAzure, Commvault.Powershell.Models.ReplicationConfigurationAzureTypeConverter.ConvertFrom); } if (content.Contains("DbConfigServer")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfigServer = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("DbConfigServer",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfigServer, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("DbConfigInstance")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfigInstance = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("DbConfigInstance",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfigInstance, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("DbConfigDatabases")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfigDatabases = (System.Collections.Generic.List<Commvault.Powershell.Models.IDbRecoveryConfigurationDatabase>) content.GetValueForProperty("DbConfigDatabases",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfigDatabases, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IDbRecoveryConfigurationDatabase>(__y, Commvault.Powershell.Models.DbRecoveryConfigurationDatabaseTypeConverter.ConvertFrom)); } if (content.Contains("ImageDetailVMCreds")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailVMCreds = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("ImageDetailVMCreds",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailVMCreds, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom); } if (content.Contains("ImageDetailVMTemplate")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailVMTemplate = (Commvault.Powershell.Models.INameGuid) content.GetValueForProperty("ImageDetailVMTemplate",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailVMTemplate, Commvault.Powershell.Models.NameGuidTypeConverter.ConvertFrom); } if (content.Contains("ImageDetailSkipOSDisk")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailSkipOSDisk = (bool?) content.GetValueForProperty("ImageDetailSkipOSDisk",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailSkipOSDisk, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("MediaAgentId")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgentId = (long?) content.GetValueForProperty("MediaAgentId",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgentId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("MediaAgentName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgentName = (string) content.GetValueForProperty("MediaAgentName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgentName, global::System.Convert.ToString); } if (content.Contains("HardwareConfigurationSystemDiskConfiguration")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationSystemDiskConfiguration = (Commvault.Powershell.Models.IDiskConfiguration) content.GetValueForProperty("HardwareConfigurationSystemDiskConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationSystemDiskConfiguration, Commvault.Powershell.Models.DiskConfigurationTypeConverter.ConvertFrom); } if (content.Contains("HardwareConfigurationDataDiskConfiguration")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationDataDiskConfiguration = (System.Collections.Generic.List<Commvault.Powershell.Models.IDiskConfiguration>) content.GetValueForProperty("HardwareConfigurationDataDiskConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationDataDiskConfiguration, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IDiskConfiguration>(__y, Commvault.Powershell.Models.DiskConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("CredentialsSavedCredentials")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("CredentialsSavedCredentials",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("Name")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Password")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Password = (string) content.GetValueForProperty("Password",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Password, global::System.Convert.ToString); } if (content.Contains("AzureUnconditionalOverwrite")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureUnconditionalOverwrite = (bool?) content.GetValueForProperty("AzureUnconditionalOverwrite",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureUnconditionalOverwrite, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AzureDeployVMOnlyDuringfailover")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDeployVMOnlyDuringfailover = (bool?) content.GetValueForProperty("AzureDeployVMOnlyDuringfailover",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDeployVMOnlyDuringfailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AzureSourceVM")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVM = (string) content.GetValueForProperty("AzureSourceVM",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVM, global::System.Convert.ToString); } if (content.Contains("AzureDestinationVM")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDestinationVM = (string) content.GetValueForProperty("AzureDestinationVM",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDestinationVM, global::System.Convert.ToString); } if (content.Contains("AzureResourceGroup")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureResourceGroup = (string) content.GetValueForProperty("AzureResourceGroup",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureResourceGroup, global::System.Convert.ToString); } if (content.Contains("AzureStorageAccount")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureStorageAccount = (string) content.GetValueForProperty("AzureStorageAccount",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureStorageAccount, global::System.Convert.ToString); } if (content.Contains("AzureVMSize")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureVMSize = (string) content.GetValueForProperty("AzureVMSize",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureVMSize, global::System.Convert.ToString); } if (content.Contains("AzureCreatePublicIP")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureCreatePublicIP = (bool?) content.GetValueForProperty("AzureCreatePublicIP",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureCreatePublicIP, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AzureRestoreAsManagedVM")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureRestoreAsManagedVM = (bool?) content.GetValueForProperty("AzureRestoreAsManagedVM",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureRestoreAsManagedVM, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AzureDiskType")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDiskType = (string) content.GetValueForProperty("AzureDiskType",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDiskType, global::System.Convert.ToString); } if (content.Contains("AzureSourceVMGuid")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVMGuid = (string) content.GetValueForProperty("AzureSourceVMGuid",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVMGuid, global::System.Convert.ToString); } if (content.Contains("AzureRegion")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureRegion = (string) content.GetValueForProperty("AzureRegion",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureRegion, global::System.Convert.ToString); } if (content.Contains("AzureTestFailoverVMSize")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureTestFailoverVMSize = (string) content.GetValueForProperty("AzureTestFailoverVMSize",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureTestFailoverVMSize, global::System.Convert.ToString); } if (content.Contains("AzureOverrideReplicationOptions")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureOverrideReplicationOptions = (Commvault.Powershell.Models.IOverrideReplicationOptionsAzure) content.GetValueForProperty("AzureOverrideReplicationOptions",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureOverrideReplicationOptions, Commvault.Powershell.Models.OverrideReplicationOptionsAzureTypeConverter.ConvertFrom); } if (content.Contains("ServerId")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ServerId = (long?) content.GetValueForProperty("ServerId",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ServerId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ServerName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ServerName = (string) content.GetValueForProperty("ServerName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ServerName, global::System.Convert.ToString); } if (content.Contains("InstanceId")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).InstanceId = (long?) content.GetValueForProperty("InstanceId",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).InstanceId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InstanceName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).InstanceName = (string) content.GetValueForProperty("InstanceName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).InstanceName, global::System.Convert.ToString); } if (content.Contains("VMCredSavedCredentials")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMCredSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("VMCredSavedCredentials",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMCredSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("VMCredCredentials")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMCredCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("VMCredCredentials",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMCredCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom); } if (content.Contains("VMTemplateGuid")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMTemplateGuid = (string) content.GetValueForProperty("VMTemplateGuid",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMTemplateGuid, global::System.Convert.ToString); } if (content.Contains("VMTemplateName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMTemplateName = (string) content.GetValueForProperty("VMTemplateName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMTemplateName, global::System.Convert.ToString); } if (content.Contains("SystemDiskConfigurationName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationName = (string) content.GetValueForProperty("SystemDiskConfigurationName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationName, global::System.Convert.ToString); } if (content.Contains("SystemDiskConfigurationProvisioningType")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationProvisioningType = (string) content.GetValueForProperty("SystemDiskConfigurationProvisioningType",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationProvisioningType, global::System.Convert.ToString); } if (content.Contains("SystemDiskConfigurationDiskSize")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationDiskSize = (long?) content.GetValueForProperty("SystemDiskConfigurationDiskSize",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationDiskSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SystemDiskConfigurationDiskType")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationDiskType = (string) content.GetValueForProperty("SystemDiskConfigurationDiskType",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationDiskType, global::System.Convert.ToString); } if (content.Contains("CredentialsSavedCredentialsId")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CredentialsSavedCredentialsId = (long?) content.GetValueForProperty("CredentialsSavedCredentialsId",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("CredentialsSavedCredentialsName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CredentialsSavedCredentialsName = (string) content.GetValueForProperty("CredentialsSavedCredentialsName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CredentialsSavedCredentialsName, global::System.Convert.ToString); } if (content.Contains("ImageDetailsVmCredsSavedCredentialsId")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsSavedCredentialsId = (long?) content.GetValueForProperty("ImageDetailsVmCredsSavedCredentialsId",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ImageDetailsVmCredsSavedCredentialsName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsSavedCredentialsName = (string) content.GetValueForProperty("ImageDetailsVmCredsSavedCredentialsName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsSavedCredentialsName, global::System.Convert.ToString); } if (content.Contains("ImageDetailsVmCredsCredentialsName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsCredentialsName = (string) content.GetValueForProperty("ImageDetailsVmCredsCredentialsName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsCredentialsName, global::System.Convert.ToString); } if (content.Contains("ImageDetailsVmCredsCredentialsPassword")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsCredentialsPassword = (string) content.GetValueForProperty("ImageDetailsVmCredsCredentialsPassword",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsCredentialsPassword, 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.RecoveryConfiguration" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal RecoveryConfiguration(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("AdvancedOptions")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptions = (Commvault.Powershell.Models.IAdvancedRecoveryConfiguration) content.GetValueForProperty("AdvancedOptions",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptions, Commvault.Powershell.Models.AdvancedRecoveryConfigurationTypeConverter.ConvertFrom); } if (content.Contains("Configuration")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Configuration = (Commvault.Powershell.Models.IVMRecoveryConfiguration) content.GetValueForProperty("Configuration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Configuration, Commvault.Powershell.Models.VMRecoveryConfigurationTypeConverter.ConvertFrom); } if (content.Contains("DbConfig")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfig = (Commvault.Powershell.Models.IDbRecoveryConfiguration) content.GetValueForProperty("DbConfig",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfig, Commvault.Powershell.Models.DbRecoveryConfigurationTypeConverter.ConvertFrom); } if (content.Contains("ImageDetails")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetails = (Commvault.Powershell.Models.IVMImageDetails) content.GetValueForProperty("ImageDetails",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetails, Commvault.Powershell.Models.VMImageDetailsTypeConverter.ConvertFrom); } if (content.Contains("MediaAgent")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgent = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("MediaAgent",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgent, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("HardwareConfiguration")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfiguration = (Commvault.Powershell.Models.IHardwareConfiguration) content.GetValueForProperty("HardwareConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfiguration, Commvault.Powershell.Models.HardwareConfigurationTypeConverter.ConvertFrom); } if (content.Contains("Credentials")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Credentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("Credentials",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Credentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom); } if (content.Contains("CopyPrecedence")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CopyPrecedence = (long?) content.GetValueForProperty("CopyPrecedence",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CopyPrecedence, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("HardwareConfigurationVolumeConfiguration")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationVolumeConfiguration = (System.Collections.Generic.List<Commvault.Powershell.Models.IVolumeConfiguration>) content.GetValueForProperty("HardwareConfigurationVolumeConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationVolumeConfiguration, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IVolumeConfiguration>(__y, Commvault.Powershell.Models.VolumeConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("UserNamePasswordCredentials")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).UserNamePasswordCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("UserNamePasswordCredentials",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).UserNamePasswordCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom); } if (content.Contains("AdvancedOptionAzure")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptionAzure = (Commvault.Powershell.Models.IReplicationGroupAdvOptionsAzure) content.GetValueForProperty("AdvancedOptionAzure",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptionAzure, Commvault.Powershell.Models.ReplicationGroupAdvOptionsAzureTypeConverter.ConvertFrom); } if (content.Contains("ConfigurationAzure")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ConfigurationAzure = (Commvault.Powershell.Models.IReplicationConfigurationAzure) content.GetValueForProperty("ConfigurationAzure",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ConfigurationAzure, Commvault.Powershell.Models.ReplicationConfigurationAzureTypeConverter.ConvertFrom); } if (content.Contains("DbConfigServer")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfigServer = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("DbConfigServer",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfigServer, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("DbConfigInstance")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfigInstance = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("DbConfigInstance",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfigInstance, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("DbConfigDatabases")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfigDatabases = (System.Collections.Generic.List<Commvault.Powershell.Models.IDbRecoveryConfigurationDatabase>) content.GetValueForProperty("DbConfigDatabases",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).DbConfigDatabases, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IDbRecoveryConfigurationDatabase>(__y, Commvault.Powershell.Models.DbRecoveryConfigurationDatabaseTypeConverter.ConvertFrom)); } if (content.Contains("ImageDetailVMCreds")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailVMCreds = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("ImageDetailVMCreds",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailVMCreds, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom); } if (content.Contains("ImageDetailVMTemplate")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailVMTemplate = (Commvault.Powershell.Models.INameGuid) content.GetValueForProperty("ImageDetailVMTemplate",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailVMTemplate, Commvault.Powershell.Models.NameGuidTypeConverter.ConvertFrom); } if (content.Contains("ImageDetailSkipOSDisk")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailSkipOSDisk = (bool?) content.GetValueForProperty("ImageDetailSkipOSDisk",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailSkipOSDisk, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("MediaAgentId")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgentId = (long?) content.GetValueForProperty("MediaAgentId",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgentId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("MediaAgentName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgentName = (string) content.GetValueForProperty("MediaAgentName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgentName, global::System.Convert.ToString); } if (content.Contains("HardwareConfigurationSystemDiskConfiguration")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationSystemDiskConfiguration = (Commvault.Powershell.Models.IDiskConfiguration) content.GetValueForProperty("HardwareConfigurationSystemDiskConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationSystemDiskConfiguration, Commvault.Powershell.Models.DiskConfigurationTypeConverter.ConvertFrom); } if (content.Contains("HardwareConfigurationDataDiskConfiguration")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationDataDiskConfiguration = (System.Collections.Generic.List<Commvault.Powershell.Models.IDiskConfiguration>) content.GetValueForProperty("HardwareConfigurationDataDiskConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationDataDiskConfiguration, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IDiskConfiguration>(__y, Commvault.Powershell.Models.DiskConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("CredentialsSavedCredentials")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("CredentialsSavedCredentials",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("Name")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Password")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Password = (string) content.GetValueForProperty("Password",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Password, global::System.Convert.ToString); } if (content.Contains("AzureUnconditionalOverwrite")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureUnconditionalOverwrite = (bool?) content.GetValueForProperty("AzureUnconditionalOverwrite",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureUnconditionalOverwrite, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AzureDeployVMOnlyDuringfailover")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDeployVMOnlyDuringfailover = (bool?) content.GetValueForProperty("AzureDeployVMOnlyDuringfailover",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDeployVMOnlyDuringfailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AzureSourceVM")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVM = (string) content.GetValueForProperty("AzureSourceVM",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVM, global::System.Convert.ToString); } if (content.Contains("AzureDestinationVM")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDestinationVM = (string) content.GetValueForProperty("AzureDestinationVM",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDestinationVM, global::System.Convert.ToString); } if (content.Contains("AzureResourceGroup")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureResourceGroup = (string) content.GetValueForProperty("AzureResourceGroup",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureResourceGroup, global::System.Convert.ToString); } if (content.Contains("AzureStorageAccount")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureStorageAccount = (string) content.GetValueForProperty("AzureStorageAccount",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureStorageAccount, global::System.Convert.ToString); } if (content.Contains("AzureVMSize")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureVMSize = (string) content.GetValueForProperty("AzureVMSize",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureVMSize, global::System.Convert.ToString); } if (content.Contains("AzureCreatePublicIP")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureCreatePublicIP = (bool?) content.GetValueForProperty("AzureCreatePublicIP",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureCreatePublicIP, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AzureRestoreAsManagedVM")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureRestoreAsManagedVM = (bool?) content.GetValueForProperty("AzureRestoreAsManagedVM",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureRestoreAsManagedVM, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AzureDiskType")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDiskType = (string) content.GetValueForProperty("AzureDiskType",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDiskType, global::System.Convert.ToString); } if (content.Contains("AzureSourceVMGuid")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVMGuid = (string) content.GetValueForProperty("AzureSourceVMGuid",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVMGuid, global::System.Convert.ToString); } if (content.Contains("AzureRegion")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureRegion = (string) content.GetValueForProperty("AzureRegion",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureRegion, global::System.Convert.ToString); } if (content.Contains("AzureTestFailoverVMSize")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureTestFailoverVMSize = (string) content.GetValueForProperty("AzureTestFailoverVMSize",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureTestFailoverVMSize, global::System.Convert.ToString); } if (content.Contains("AzureOverrideReplicationOptions")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureOverrideReplicationOptions = (Commvault.Powershell.Models.IOverrideReplicationOptionsAzure) content.GetValueForProperty("AzureOverrideReplicationOptions",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureOverrideReplicationOptions, Commvault.Powershell.Models.OverrideReplicationOptionsAzureTypeConverter.ConvertFrom); } if (content.Contains("ServerId")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ServerId = (long?) content.GetValueForProperty("ServerId",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ServerId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ServerName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ServerName = (string) content.GetValueForProperty("ServerName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ServerName, global::System.Convert.ToString); } if (content.Contains("InstanceId")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).InstanceId = (long?) content.GetValueForProperty("InstanceId",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).InstanceId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InstanceName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).InstanceName = (string) content.GetValueForProperty("InstanceName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).InstanceName, global::System.Convert.ToString); } if (content.Contains("VMCredSavedCredentials")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMCredSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("VMCredSavedCredentials",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMCredSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("VMCredCredentials")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMCredCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("VMCredCredentials",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMCredCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom); } if (content.Contains("VMTemplateGuid")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMTemplateGuid = (string) content.GetValueForProperty("VMTemplateGuid",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMTemplateGuid, global::System.Convert.ToString); } if (content.Contains("VMTemplateName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMTemplateName = (string) content.GetValueForProperty("VMTemplateName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).VMTemplateName, global::System.Convert.ToString); } if (content.Contains("SystemDiskConfigurationName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationName = (string) content.GetValueForProperty("SystemDiskConfigurationName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationName, global::System.Convert.ToString); } if (content.Contains("SystemDiskConfigurationProvisioningType")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationProvisioningType = (string) content.GetValueForProperty("SystemDiskConfigurationProvisioningType",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationProvisioningType, global::System.Convert.ToString); } if (content.Contains("SystemDiskConfigurationDiskSize")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationDiskSize = (long?) content.GetValueForProperty("SystemDiskConfigurationDiskSize",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationDiskSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SystemDiskConfigurationDiskType")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationDiskType = (string) content.GetValueForProperty("SystemDiskConfigurationDiskType",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationDiskType, global::System.Convert.ToString); } if (content.Contains("CredentialsSavedCredentialsId")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CredentialsSavedCredentialsId = (long?) content.GetValueForProperty("CredentialsSavedCredentialsId",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CredentialsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("CredentialsSavedCredentialsName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CredentialsSavedCredentialsName = (string) content.GetValueForProperty("CredentialsSavedCredentialsName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).CredentialsSavedCredentialsName, global::System.Convert.ToString); } if (content.Contains("ImageDetailsVmCredsSavedCredentialsId")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsSavedCredentialsId = (long?) content.GetValueForProperty("ImageDetailsVmCredsSavedCredentialsId",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ImageDetailsVmCredsSavedCredentialsName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsSavedCredentialsName = (string) content.GetValueForProperty("ImageDetailsVmCredsSavedCredentialsName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsSavedCredentialsName, global::System.Convert.ToString); } if (content.Contains("ImageDetailsVmCredsCredentialsName")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsCredentialsName = (string) content.GetValueForProperty("ImageDetailsVmCredsCredentialsName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsCredentialsName, global::System.Convert.ToString); } if (content.Contains("ImageDetailsVmCredsCredentialsPassword")) { ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsCredentialsPassword = (string) content.GetValueForProperty("ImageDetailsVmCredsCredentialsPassword",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ImageDetailsVmCredsCredentialsPassword, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// <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(); public override string ToString() { var returnNow = false; var result = global::System.String.Empty; OverrideToString(ref result, ref returnNow); if (returnNow) { return result; } return ToJsonString(); } } /// RecoveryConfiguration [System.ComponentModel.TypeConverter(typeof(RecoveryConfigurationTypeConverter))] public partial interface IRecoveryConfiguration { } } |