generated/api/Models/VMAppValidation.PowerShell.cs
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.8.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>vmAppValidation</summary> [System.ComponentModel.TypeConverter(typeof(VMAppValidationTypeConverter))] public partial class VMAppValidation { /// <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.VMAppValidation" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> /// <returns>an instance of <see cref="Commvault.Powershell.Models.IVMAppValidation" />.</returns> public static Commvault.Powershell.Models.IVMAppValidation DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMAppValidation(content); } /// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into an instance of <see cref="Commvault.Powershell.Models.VMAppValidation" /// />. /// </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.IVMAppValidation" />.</returns> public static Commvault.Powershell.Models.IVMAppValidation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMAppValidation(content); } /// <summary> /// Creates a new instance of <see cref="VMAppValidation" />, 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.IVMAppValidation 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(); /// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Commvault.Powershell.Models.VMAppValidation" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal VMAppValidation(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Commvault.Powershell.Models.IVMAppValidationInternal)this).Schedule = (Commvault.Powershell.Models.IValidationScheduleObject) content.GetValueForProperty("Schedule",((Commvault.Powershell.Models.IVMAppValidationInternal)this).Schedule, Commvault.Powershell.Models.ValidationScheduleObjectTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).CustomValidationScript = (Commvault.Powershell.Models.IAppValidationScript) content.GetValueForProperty("CustomValidationScript",((Commvault.Powershell.Models.IVMAppValidationInternal)this).CustomValidationScript, Commvault.Powershell.Models.AppValidationScriptTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).GuestCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("GuestCredentials",((Commvault.Powershell.Models.IVMAppValidationInternal)this).GuestCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).Copy = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("Copy",((Commvault.Powershell.Models.IVMAppValidationInternal)this).Copy, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).ValidateVMBackups = (bool?) content.GetValueForProperty("ValidateVMBackups",((Commvault.Powershell.Models.IVMAppValidationInternal)this).ValidateVMBackups, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).RecoveryTarget = (string) content.GetValueForProperty("RecoveryTarget",((Commvault.Powershell.Models.IVMAppValidationInternal)this).RecoveryTarget, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UseSourceVMEsxToMount = (bool?) content.GetValueForProperty("UseSourceVMEsxToMount",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UseSourceVMEsxToMount, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).KeepValidatedVMSRunning = (bool?) content.GetValueForProperty("KeepValidatedVMSRunning",((Commvault.Powershell.Models.IVMAppValidationInternal)this).KeepValidatedVMSRunning, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).MaximumNoOfThreads = (long?) content.GetValueForProperty("MaximumNoOfThreads",((Commvault.Powershell.Models.IVMAppValidationInternal)this).MaximumNoOfThreads, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleId = (long?) content.GetValueForProperty("ScheduleId",((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleTaskId = (long?) content.GetValueForProperty("ScheduleTaskId",((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleTaskId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleDescription = (string) content.GetValueForProperty("ScheduleDescription",((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleDescription, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleIsScheduleEnabled = (bool?) content.GetValueForProperty("ScheduleIsScheduleEnabled",((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleIsScheduleEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).CustomValidationScriptWindows = (Commvault.Powershell.Models.IValidationScript) content.GetValueForProperty("CustomValidationScriptWindows",((Commvault.Powershell.Models.IVMAppValidationInternal)this).CustomValidationScriptWindows, Commvault.Powershell.Models.ValidationScriptTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).CustomValidationScriptUnix = (Commvault.Powershell.Models.IValidationScript) content.GetValueForProperty("CustomValidationScriptUnix",((Commvault.Powershell.Models.IVMAppValidationInternal)this).CustomValidationScriptUnix, Commvault.Powershell.Models.ValidationScriptTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).GuestCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("GuestCredentialsSavedCredentials",((Commvault.Powershell.Models.IVMAppValidationInternal)this).GuestCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).GuestCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("GuestCredentialsCredentials",((Commvault.Powershell.Models.IVMAppValidationInternal)this).GuestCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).CopyId = (long?) content.GetValueForProperty("CopyId",((Commvault.Powershell.Models.IVMAppValidationInternal)this).CopyId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).CopyName = (string) content.GetValueForProperty("CopyName",((Commvault.Powershell.Models.IVMAppValidationInternal)this).CopyName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowUncCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("WindowUncCredentials",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowUncCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowUncSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("WindowUncSavedCredentials",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowUncSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowPath = (string) content.GetValueForProperty("WindowPath",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowPath, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowArguments = (string) content.GetValueForProperty("WindowArguments",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowArguments, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowIsDisabled = (bool?) content.GetValueForProperty("WindowIsDisabled",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowIsDisabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowIsUnc = (bool?) content.GetValueForProperty("WindowIsUnc",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowIsUnc, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("UnixUncCredentials",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("UnixUncSavedCredentials",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixPath = (string) content.GetValueForProperty("UnixPath",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixPath, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixArguments = (string) content.GetValueForProperty("UnixArguments",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixArguments, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixIsDisabled = (bool?) content.GetValueForProperty("UnixIsDisabled",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixIsDisabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixIsUnc = (bool?) content.GetValueForProperty("UnixIsUnc",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixIsUnc, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).SavedCredentialsId = (long?) content.GetValueForProperty("SavedCredentialsId",((Commvault.Powershell.Models.IVMAppValidationInternal)this).SavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).SavedCredentialsName = (string) content.GetValueForProperty("SavedCredentialsName",((Commvault.Powershell.Models.IVMAppValidationInternal)this).SavedCredentialsName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).CredentialsName = (string) content.GetValueForProperty("CredentialsName",((Commvault.Powershell.Models.IVMAppValidationInternal)this).CredentialsName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).CredentialsPassword = (string) content.GetValueForProperty("CredentialsPassword",((Commvault.Powershell.Models.IVMAppValidationInternal)this).CredentialsPassword, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncCredentialsName = (string) content.GetValueForProperty("WindowsUncCredentialsName",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncCredentialsName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncCredentialsPassword = (string) content.GetValueForProperty("WindowsUncCredentialsPassword",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncCredentialsPassword, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncSavedCredentialsId = (long?) content.GetValueForProperty("WindowsUncSavedCredentialsId",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncSavedCredentialsName = (string) content.GetValueForProperty("WindowsUncSavedCredentialsName",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncSavedCredentialsName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncCredentialsName = (string) content.GetValueForProperty("UnixUncCredentialsName",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncCredentialsName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncCredentialsPassword = (string) content.GetValueForProperty("UnixUncCredentialsPassword",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncCredentialsPassword, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncSavedCredentialsId = (long?) content.GetValueForProperty("UnixUncSavedCredentialsId",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncSavedCredentialsName = (string) content.GetValueForProperty("UnixUncSavedCredentialsName",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncSavedCredentialsName, 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.VMAppValidation" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal VMAppValidation(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Commvault.Powershell.Models.IVMAppValidationInternal)this).Schedule = (Commvault.Powershell.Models.IValidationScheduleObject) content.GetValueForProperty("Schedule",((Commvault.Powershell.Models.IVMAppValidationInternal)this).Schedule, Commvault.Powershell.Models.ValidationScheduleObjectTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).CustomValidationScript = (Commvault.Powershell.Models.IAppValidationScript) content.GetValueForProperty("CustomValidationScript",((Commvault.Powershell.Models.IVMAppValidationInternal)this).CustomValidationScript, Commvault.Powershell.Models.AppValidationScriptTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).GuestCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("GuestCredentials",((Commvault.Powershell.Models.IVMAppValidationInternal)this).GuestCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).Copy = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("Copy",((Commvault.Powershell.Models.IVMAppValidationInternal)this).Copy, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).ValidateVMBackups = (bool?) content.GetValueForProperty("ValidateVMBackups",((Commvault.Powershell.Models.IVMAppValidationInternal)this).ValidateVMBackups, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).RecoveryTarget = (string) content.GetValueForProperty("RecoveryTarget",((Commvault.Powershell.Models.IVMAppValidationInternal)this).RecoveryTarget, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UseSourceVMEsxToMount = (bool?) content.GetValueForProperty("UseSourceVMEsxToMount",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UseSourceVMEsxToMount, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).KeepValidatedVMSRunning = (bool?) content.GetValueForProperty("KeepValidatedVMSRunning",((Commvault.Powershell.Models.IVMAppValidationInternal)this).KeepValidatedVMSRunning, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).MaximumNoOfThreads = (long?) content.GetValueForProperty("MaximumNoOfThreads",((Commvault.Powershell.Models.IVMAppValidationInternal)this).MaximumNoOfThreads, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleId = (long?) content.GetValueForProperty("ScheduleId",((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleTaskId = (long?) content.GetValueForProperty("ScheduleTaskId",((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleTaskId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleDescription = (string) content.GetValueForProperty("ScheduleDescription",((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleDescription, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleIsScheduleEnabled = (bool?) content.GetValueForProperty("ScheduleIsScheduleEnabled",((Commvault.Powershell.Models.IVMAppValidationInternal)this).ScheduleIsScheduleEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).CustomValidationScriptWindows = (Commvault.Powershell.Models.IValidationScript) content.GetValueForProperty("CustomValidationScriptWindows",((Commvault.Powershell.Models.IVMAppValidationInternal)this).CustomValidationScriptWindows, Commvault.Powershell.Models.ValidationScriptTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).CustomValidationScriptUnix = (Commvault.Powershell.Models.IValidationScript) content.GetValueForProperty("CustomValidationScriptUnix",((Commvault.Powershell.Models.IVMAppValidationInternal)this).CustomValidationScriptUnix, Commvault.Powershell.Models.ValidationScriptTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).GuestCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("GuestCredentialsSavedCredentials",((Commvault.Powershell.Models.IVMAppValidationInternal)this).GuestCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).GuestCredentialsCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("GuestCredentialsCredentials",((Commvault.Powershell.Models.IVMAppValidationInternal)this).GuestCredentialsCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).CopyId = (long?) content.GetValueForProperty("CopyId",((Commvault.Powershell.Models.IVMAppValidationInternal)this).CopyId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).CopyName = (string) content.GetValueForProperty("CopyName",((Commvault.Powershell.Models.IVMAppValidationInternal)this).CopyName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowUncCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("WindowUncCredentials",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowUncCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowUncSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("WindowUncSavedCredentials",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowUncSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowPath = (string) content.GetValueForProperty("WindowPath",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowPath, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowArguments = (string) content.GetValueForProperty("WindowArguments",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowArguments, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowIsDisabled = (bool?) content.GetValueForProperty("WindowIsDisabled",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowIsDisabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowIsUnc = (bool?) content.GetValueForProperty("WindowIsUnc",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowIsUnc, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("UnixUncCredentials",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("UnixUncSavedCredentials",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixPath = (string) content.GetValueForProperty("UnixPath",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixPath, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixArguments = (string) content.GetValueForProperty("UnixArguments",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixArguments, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixIsDisabled = (bool?) content.GetValueForProperty("UnixIsDisabled",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixIsDisabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixIsUnc = (bool?) content.GetValueForProperty("UnixIsUnc",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixIsUnc, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).SavedCredentialsId = (long?) content.GetValueForProperty("SavedCredentialsId",((Commvault.Powershell.Models.IVMAppValidationInternal)this).SavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).SavedCredentialsName = (string) content.GetValueForProperty("SavedCredentialsName",((Commvault.Powershell.Models.IVMAppValidationInternal)this).SavedCredentialsName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).CredentialsName = (string) content.GetValueForProperty("CredentialsName",((Commvault.Powershell.Models.IVMAppValidationInternal)this).CredentialsName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).CredentialsPassword = (string) content.GetValueForProperty("CredentialsPassword",((Commvault.Powershell.Models.IVMAppValidationInternal)this).CredentialsPassword, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncCredentialsName = (string) content.GetValueForProperty("WindowsUncCredentialsName",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncCredentialsName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncCredentialsPassword = (string) content.GetValueForProperty("WindowsUncCredentialsPassword",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncCredentialsPassword, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncSavedCredentialsId = (long?) content.GetValueForProperty("WindowsUncSavedCredentialsId",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncSavedCredentialsName = (string) content.GetValueForProperty("WindowsUncSavedCredentialsName",((Commvault.Powershell.Models.IVMAppValidationInternal)this).WindowsUncSavedCredentialsName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncCredentialsName = (string) content.GetValueForProperty("UnixUncCredentialsName",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncCredentialsName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncCredentialsPassword = (string) content.GetValueForProperty("UnixUncCredentialsPassword",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncCredentialsPassword, global::System.Convert.ToString); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncSavedCredentialsId = (long?) content.GetValueForProperty("UnixUncSavedCredentialsId",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncSavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncSavedCredentialsName = (string) content.GetValueForProperty("UnixUncSavedCredentialsName",((Commvault.Powershell.Models.IVMAppValidationInternal)this).UnixUncSavedCredentialsName, global::System.Convert.ToString); AfterDeserializePSObject(content); } } /// vmAppValidation [System.ComponentModel.TypeConverter(typeof(VMAppValidationTypeConverter))] public partial interface IVMAppValidation { } } |