generated/api/Models/RecoveryConfiguration.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>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 <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.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="className" /> 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 ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptions = (Commvault.Powershell.Models.IAdvancedRecoveryConfiguration) content.GetValueForProperty("AdvancedOptions",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptions, Commvault.Powershell.Models.AdvancedRecoveryConfigurationTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Configuration = (Commvault.Powershell.Models.IVMRecoveryConfiguration) content.GetValueForProperty("Configuration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Configuration, Commvault.Powershell.Models.VMRecoveryConfigurationTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgent = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("MediaAgent",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgent, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfiguration = (Commvault.Powershell.Models.IHardwareConfiguration) content.GetValueForProperty("HardwareConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfiguration, Commvault.Powershell.Models.HardwareConfigurationTypeConverter.ConvertFrom); ((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))); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationVolumeConfiguration = (Commvault.Powershell.Models.IVolumeConfiguration[]) content.GetValueForProperty("HardwareConfigurationVolumeConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationVolumeConfiguration, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IVolumeConfiguration>(__y, Commvault.Powershell.Models.VolumeConfigurationTypeConverter.ConvertFrom)); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptionAzure = (Commvault.Powershell.Models.IReplicationGroupAdvOptionsAzure) content.GetValueForProperty("AdvancedOptionAzure",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptionAzure, Commvault.Powershell.Models.ReplicationGroupAdvOptionsAzureTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ConfigurationAzure = (Commvault.Powershell.Models.IReplicationConfigurationAzure) content.GetValueForProperty("ConfigurationAzure",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ConfigurationAzure, Commvault.Powershell.Models.ReplicationConfigurationAzureTypeConverter.ConvertFrom); ((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))); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgentName = (string) content.GetValueForProperty("MediaAgentName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgentName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationSystemDiskConfiguration = (Commvault.Powershell.Models.IDiskConfiguration) content.GetValueForProperty("HardwareConfigurationSystemDiskConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationSystemDiskConfiguration, Commvault.Powershell.Models.DiskConfigurationTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationDataDiskConfiguration = (Commvault.Powershell.Models.IDiskConfiguration[]) content.GetValueForProperty("HardwareConfigurationDataDiskConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationDataDiskConfiguration, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IDiskConfiguration>(__y, Commvault.Powershell.Models.DiskConfigurationTypeConverter.ConvertFrom)); ((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))); ((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))); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVM = (string) content.GetValueForProperty("AzureSourceVM",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVM, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDestinationVM = (string) content.GetValueForProperty("AzureDestinationVM",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDestinationVM, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureResourceGroup = (string) content.GetValueForProperty("AzureResourceGroup",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureResourceGroup, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureStorageAccount = (string) content.GetValueForProperty("AzureStorageAccount",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureStorageAccount, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureVMSize = (string) content.GetValueForProperty("AzureVMSize",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureVMSize, global::System.Convert.ToString); ((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))); ((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))); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDiskType = (string) content.GetValueForProperty("AzureDiskType",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDiskType, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVMGuid = (string) content.GetValueForProperty("AzureSourceVMGuid",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVMGuid, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureRegion = (string) content.GetValueForProperty("AzureRegion",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureRegion, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureTestFailoverVMSize = (string) content.GetValueForProperty("AzureTestFailoverVMSize",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureTestFailoverVMSize, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureOverrideReplicationOptions = (Commvault.Powershell.Models.IOverrideReplicationOptionsAzure) content.GetValueForProperty("AzureOverrideReplicationOptions",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureOverrideReplicationOptions, Commvault.Powershell.Models.OverrideReplicationOptionsAzureTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationName = (string) content.GetValueForProperty("SystemDiskConfigurationName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationProvisioningType = (string) content.GetValueForProperty("SystemDiskConfigurationProvisioningType",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationProvisioningType, global::System.Convert.ToString); ((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))); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationDiskType = (string) content.GetValueForProperty("SystemDiskConfigurationDiskType",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationDiskType, 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 ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptions = (Commvault.Powershell.Models.IAdvancedRecoveryConfiguration) content.GetValueForProperty("AdvancedOptions",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptions, Commvault.Powershell.Models.AdvancedRecoveryConfigurationTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Configuration = (Commvault.Powershell.Models.IVMRecoveryConfiguration) content.GetValueForProperty("Configuration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).Configuration, Commvault.Powershell.Models.VMRecoveryConfigurationTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgent = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("MediaAgent",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgent, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfiguration = (Commvault.Powershell.Models.IHardwareConfiguration) content.GetValueForProperty("HardwareConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfiguration, Commvault.Powershell.Models.HardwareConfigurationTypeConverter.ConvertFrom); ((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))); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationVolumeConfiguration = (Commvault.Powershell.Models.IVolumeConfiguration[]) content.GetValueForProperty("HardwareConfigurationVolumeConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationVolumeConfiguration, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IVolumeConfiguration>(__y, Commvault.Powershell.Models.VolumeConfigurationTypeConverter.ConvertFrom)); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptionAzure = (Commvault.Powershell.Models.IReplicationGroupAdvOptionsAzure) content.GetValueForProperty("AdvancedOptionAzure",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AdvancedOptionAzure, Commvault.Powershell.Models.ReplicationGroupAdvOptionsAzureTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ConfigurationAzure = (Commvault.Powershell.Models.IReplicationConfigurationAzure) content.GetValueForProperty("ConfigurationAzure",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).ConfigurationAzure, Commvault.Powershell.Models.ReplicationConfigurationAzureTypeConverter.ConvertFrom); ((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))); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgentName = (string) content.GetValueForProperty("MediaAgentName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).MediaAgentName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationSystemDiskConfiguration = (Commvault.Powershell.Models.IDiskConfiguration) content.GetValueForProperty("HardwareConfigurationSystemDiskConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationSystemDiskConfiguration, Commvault.Powershell.Models.DiskConfigurationTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationDataDiskConfiguration = (Commvault.Powershell.Models.IDiskConfiguration[]) content.GetValueForProperty("HardwareConfigurationDataDiskConfiguration",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).HardwareConfigurationDataDiskConfiguration, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IDiskConfiguration>(__y, Commvault.Powershell.Models.DiskConfigurationTypeConverter.ConvertFrom)); ((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))); ((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))); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVM = (string) content.GetValueForProperty("AzureSourceVM",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVM, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDestinationVM = (string) content.GetValueForProperty("AzureDestinationVM",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDestinationVM, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureResourceGroup = (string) content.GetValueForProperty("AzureResourceGroup",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureResourceGroup, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureStorageAccount = (string) content.GetValueForProperty("AzureStorageAccount",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureStorageAccount, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureVMSize = (string) content.GetValueForProperty("AzureVMSize",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureVMSize, global::System.Convert.ToString); ((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))); ((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))); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDiskType = (string) content.GetValueForProperty("AzureDiskType",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureDiskType, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVMGuid = (string) content.GetValueForProperty("AzureSourceVMGuid",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureSourceVMGuid, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureRegion = (string) content.GetValueForProperty("AzureRegion",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureRegion, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureTestFailoverVMSize = (string) content.GetValueForProperty("AzureTestFailoverVMSize",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureTestFailoverVMSize, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureOverrideReplicationOptions = (Commvault.Powershell.Models.IOverrideReplicationOptionsAzure) content.GetValueForProperty("AzureOverrideReplicationOptions",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).AzureOverrideReplicationOptions, Commvault.Powershell.Models.OverrideReplicationOptionsAzureTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationName = (string) content.GetValueForProperty("SystemDiskConfigurationName",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationProvisioningType = (string) content.GetValueForProperty("SystemDiskConfigurationProvisioningType",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationProvisioningType, global::System.Convert.ToString); ((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))); ((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationDiskType = (string) content.GetValueForProperty("SystemDiskConfigurationDiskType",((Commvault.Powershell.Models.IRecoveryConfigurationInternal)this).SystemDiskConfigurationDiskType, 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(); } /// RecoveryConfiguration [System.ComponentModel.TypeConverter(typeof(RecoveryConfigurationTypeConverter))] public partial interface IRecoveryConfiguration { } } |