generated/api/Models/UpdateDcPlan.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>Describes Input to Update Data Classification Plan</summary>
    [System.ComponentModel.TypeConverter(typeof(UpdateDcPlanTypeConverter))]
    public partial class UpdateDcPlan
    {

        /// <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.UpdateDcPlan"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        /// <returns>an instance of <see cref="Commvault.Powershell.Models.IUpdateDcPlan" />.</returns>
        public static Commvault.Powershell.Models.IUpdateDcPlan DeserializeFromDictionary(global::System.Collections.IDictionary content)
        {
            return new UpdateDcPlan(content);
        }

        /// <summary>
        /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into an instance of <see cref="Commvault.Powershell.Models.UpdateDcPlan"
        /// />.
        /// </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.IUpdateDcPlan" />.</returns>
        public static Commvault.Powershell.Models.IUpdateDcPlan DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
        {
            return new UpdateDcPlan(content);
        }

        /// <summary>
        /// Creates a new instance of <see cref="UpdateDcPlan" />, 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="UpdateDcPlan" /> model class.</returns>
        public static Commvault.Powershell.Models.IUpdateDcPlan 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();

        public override string ToString()
        {
            var returnNow = false;
            var result = global::System.String.Empty;
            OverrideToString(ref result, ref returnNow);
            if (returnNow)
            {
                return result;
            }
            return ToJsonString();
        }

        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Commvault.Powershell.Models.UpdateDcPlan"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal UpdateDcPlan(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;
            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            if (content.Contains("EntityDetection"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetection = (Commvault.Powershell.Models.IDcPlanEepolicy) content.GetValueForProperty("EntityDetection",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetection, Commvault.Powershell.Models.DcPlanEepolicyTypeConverter.ConvertFrom);
            }
            if (content.Contains("ContentIndexing"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexing = (Commvault.Powershell.Models.IUpdateDcPlanCi) content.GetValueForProperty("ContentIndexing",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexing, Commvault.Powershell.Models.UpdateDcPlanCiTypeConverter.ConvertFrom);
            }
            if (content.Contains("Schedule"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).Schedule = (Commvault.Powershell.Models.IDcPlanJobSchedule) content.GetValueForProperty("Schedule",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).Schedule, Commvault.Powershell.Models.DcPlanJobScheduleTypeConverter.ConvertFrom);
            }
            if (content.Contains("Name"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).Name = (string) content.GetValueForProperty("Name",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).Name, global::System.Convert.ToString);
            }
            if (content.Contains("ContentAnalyzer"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentAnalyzer = (System.Collections.Generic.List<Commvault.Powershell.Models.IIdName>) content.GetValueForProperty("ContentAnalyzer",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentAnalyzer, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom));
            }
            if (content.Contains("ThreatAnalysis"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ThreatAnalysis = (bool?) content.GetValueForProperty("ThreatAnalysis",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ThreatAnalysis, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("EntityDetectionEntities"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetectionEntities = (System.Collections.Generic.List<Commvault.Powershell.Models.IIdName>) content.GetValueForProperty("EntityDetectionEntities",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetectionEntities, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom));
            }
            if (content.Contains("EntityDetectionClassifiers"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetectionClassifiers = (System.Collections.Generic.List<Commvault.Powershell.Models.IIdName>) content.GetValueForProperty("EntityDetectionClassifiers",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetectionClassifiers, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom));
            }
            if (content.Contains("EntityDetectionCopyPrecendence"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetectionCopyPrecendence = (long?) content.GetValueForProperty("EntityDetectionCopyPrecendence",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetectionCopyPrecendence, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            }
            if (content.Contains("ContentIndexingExactSearch"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingExactSearch = (bool?) content.GetValueForProperty("ContentIndexingExactSearch",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingExactSearch, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("ContentIndexingExtractTextFromImage"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingExtractTextFromImage = (bool?) content.GetValueForProperty("ContentIndexingExtractTextFromImage",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingExtractTextFromImage, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("ContentIndexingContentLanguage"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingContentLanguage = (string) content.GetValueForProperty("ContentIndexingContentLanguage",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingContentLanguage, global::System.Convert.ToString);
            }
            if (content.Contains("ContentIndexingSearchType"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingSearchType = (string) content.GetValueForProperty("ContentIndexingSearchType",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingSearchType, global::System.Convert.ToString);
            }
            if (content.Contains("ContentIndexingPreviewPath"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingPreviewPath = (string) content.GetValueForProperty("ContentIndexingPreviewPath",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingPreviewPath, global::System.Convert.ToString);
            }
            if (content.Contains("ContentIndexingDomainName"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingDomainName = (string) content.GetValueForProperty("ContentIndexingDomainName",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingDomainName, global::System.Convert.ToString);
            }
            if (content.Contains("ContentIndexingUserName"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingUserName = (string) content.GetValueForProperty("ContentIndexingUserName",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingUserName, global::System.Convert.ToString);
            }
            if (content.Contains("ContentIndexingFileFilters"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingFileFilters = (Commvault.Powershell.Models.IDcPlanCifileFilters) content.GetValueForProperty("ContentIndexingFileFilters",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingFileFilters, Commvault.Powershell.Models.DcPlanCifileFiltersTypeConverter.ConvertFrom);
            }
            if (content.Contains("ContentIndexingBackupCopy"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingBackupCopy = (System.Collections.Generic.List<Commvault.Powershell.Models.IDcBackupCopy>) content.GetValueForProperty("ContentIndexingBackupCopy",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingBackupCopy, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IDcBackupCopy>(__y, Commvault.Powershell.Models.DcBackupCopyTypeConverter.ConvertFrom));
            }
            if (content.Contains("SchedulePattern"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).SchedulePattern = (Commvault.Powershell.Models.IContentIndexingFrequencyPattern) content.GetValueForProperty("SchedulePattern",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).SchedulePattern, Commvault.Powershell.Models.ContentIndexingFrequencyPatternTypeConverter.ConvertFrom);
            }
            if (content.Contains("ScheduleName"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ScheduleName = (string) content.GetValueForProperty("ScheduleName",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ScheduleName, global::System.Convert.ToString);
            }
            if (content.Contains("FileFilterIncludeDocTypes"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterIncludeDocTypes = (string) content.GetValueForProperty("FileFilterIncludeDocTypes",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterIncludeDocTypes, global::System.Convert.ToString);
            }
            if (content.Contains("FileFilterExcludePaths"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterExcludePaths = (System.Collections.Generic.List<string>) content.GetValueForProperty("FileFilterExcludePaths",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterExcludePaths, __y => TypeConverterExtensions.SelectToList<string>(__y, global::System.Convert.ToString));
            }
            if (content.Contains("FileFilterMinDocSize"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterMinDocSize = (long?) content.GetValueForProperty("FileFilterMinDocSize",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterMinDocSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            }
            if (content.Contains("FileFilterMaxDocSize"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterMaxDocSize = (long?) content.GetValueForProperty("FileFilterMaxDocSize",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterMaxDocSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            }
            if (content.Contains("PatternScheduleFrequencyType"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternScheduleFrequencyType = (string) content.GetValueForProperty("PatternScheduleFrequencyType",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternScheduleFrequencyType, global::System.Convert.ToString);
            }
            if (content.Contains("PatternFrequency"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternFrequency = (long?) content.GetValueForProperty("PatternFrequency",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternFrequency, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            }
            if (content.Contains("PatternWeeklyDays"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternWeeklyDays = (System.Collections.Generic.List<string>) content.GetValueForProperty("PatternWeeklyDays",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternWeeklyDays, __y => TypeConverterExtensions.SelectToList<string>(__y, global::System.Convert.ToString));
            }
            if (content.Contains("PatternDayOfMonth"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternDayOfMonth = (long?) content.GetValueForProperty("PatternDayOfMonth",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternDayOfMonth, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            }
            if (content.Contains("PatternWeekOfMonth"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternWeekOfMonth = (string) content.GetValueForProperty("PatternWeekOfMonth",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternWeekOfMonth, global::System.Convert.ToString);
            }
            if (content.Contains("PatternDayOfWeek"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternDayOfWeek = (string) content.GetValueForProperty("PatternDayOfWeek",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternDayOfWeek, global::System.Convert.ToString);
            }
            if (content.Contains("PatternMonthOfYear"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternMonthOfYear = (string) content.GetValueForProperty("PatternMonthOfYear",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternMonthOfYear, global::System.Convert.ToString);
            }
            if (content.Contains("PatternStartTime"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternStartTime = (long?) content.GetValueForProperty("PatternStartTime",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternStartTime, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            }
            if (content.Contains("PatternStartDate"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternStartDate = (long?) content.GetValueForProperty("PatternStartDate",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternStartDate, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            }
            if (content.Contains("PatternExceptions"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternExceptions = (System.Collections.Generic.List<Commvault.Powershell.Models.IScheduleRunException>) content.GetValueForProperty("PatternExceptions",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternExceptions, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IScheduleRunException>(__y, Commvault.Powershell.Models.ScheduleRunExceptionTypeConverter.ConvertFrom));
            }
            AfterDeserializeDictionary(content);
        }

        /// <summary>
        /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Commvault.Powershell.Models.UpdateDcPlan"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param>
        internal UpdateDcPlan(global::System.Management.Automation.PSObject content)
        {
            bool returnNow = false;
            BeforeDeserializePSObject(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            if (content.Contains("EntityDetection"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetection = (Commvault.Powershell.Models.IDcPlanEepolicy) content.GetValueForProperty("EntityDetection",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetection, Commvault.Powershell.Models.DcPlanEepolicyTypeConverter.ConvertFrom);
            }
            if (content.Contains("ContentIndexing"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexing = (Commvault.Powershell.Models.IUpdateDcPlanCi) content.GetValueForProperty("ContentIndexing",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexing, Commvault.Powershell.Models.UpdateDcPlanCiTypeConverter.ConvertFrom);
            }
            if (content.Contains("Schedule"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).Schedule = (Commvault.Powershell.Models.IDcPlanJobSchedule) content.GetValueForProperty("Schedule",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).Schedule, Commvault.Powershell.Models.DcPlanJobScheduleTypeConverter.ConvertFrom);
            }
            if (content.Contains("Name"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).Name = (string) content.GetValueForProperty("Name",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).Name, global::System.Convert.ToString);
            }
            if (content.Contains("ContentAnalyzer"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentAnalyzer = (System.Collections.Generic.List<Commvault.Powershell.Models.IIdName>) content.GetValueForProperty("ContentAnalyzer",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentAnalyzer, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom));
            }
            if (content.Contains("ThreatAnalysis"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ThreatAnalysis = (bool?) content.GetValueForProperty("ThreatAnalysis",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ThreatAnalysis, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("EntityDetectionEntities"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetectionEntities = (System.Collections.Generic.List<Commvault.Powershell.Models.IIdName>) content.GetValueForProperty("EntityDetectionEntities",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetectionEntities, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom));
            }
            if (content.Contains("EntityDetectionClassifiers"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetectionClassifiers = (System.Collections.Generic.List<Commvault.Powershell.Models.IIdName>) content.GetValueForProperty("EntityDetectionClassifiers",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetectionClassifiers, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom));
            }
            if (content.Contains("EntityDetectionCopyPrecendence"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetectionCopyPrecendence = (long?) content.GetValueForProperty("EntityDetectionCopyPrecendence",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).EntityDetectionCopyPrecendence, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            }
            if (content.Contains("ContentIndexingExactSearch"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingExactSearch = (bool?) content.GetValueForProperty("ContentIndexingExactSearch",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingExactSearch, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("ContentIndexingExtractTextFromImage"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingExtractTextFromImage = (bool?) content.GetValueForProperty("ContentIndexingExtractTextFromImage",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingExtractTextFromImage, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("ContentIndexingContentLanguage"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingContentLanguage = (string) content.GetValueForProperty("ContentIndexingContentLanguage",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingContentLanguage, global::System.Convert.ToString);
            }
            if (content.Contains("ContentIndexingSearchType"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingSearchType = (string) content.GetValueForProperty("ContentIndexingSearchType",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingSearchType, global::System.Convert.ToString);
            }
            if (content.Contains("ContentIndexingPreviewPath"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingPreviewPath = (string) content.GetValueForProperty("ContentIndexingPreviewPath",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingPreviewPath, global::System.Convert.ToString);
            }
            if (content.Contains("ContentIndexingDomainName"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingDomainName = (string) content.GetValueForProperty("ContentIndexingDomainName",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingDomainName, global::System.Convert.ToString);
            }
            if (content.Contains("ContentIndexingUserName"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingUserName = (string) content.GetValueForProperty("ContentIndexingUserName",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingUserName, global::System.Convert.ToString);
            }
            if (content.Contains("ContentIndexingFileFilters"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingFileFilters = (Commvault.Powershell.Models.IDcPlanCifileFilters) content.GetValueForProperty("ContentIndexingFileFilters",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingFileFilters, Commvault.Powershell.Models.DcPlanCifileFiltersTypeConverter.ConvertFrom);
            }
            if (content.Contains("ContentIndexingBackupCopy"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingBackupCopy = (System.Collections.Generic.List<Commvault.Powershell.Models.IDcBackupCopy>) content.GetValueForProperty("ContentIndexingBackupCopy",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ContentIndexingBackupCopy, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IDcBackupCopy>(__y, Commvault.Powershell.Models.DcBackupCopyTypeConverter.ConvertFrom));
            }
            if (content.Contains("SchedulePattern"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).SchedulePattern = (Commvault.Powershell.Models.IContentIndexingFrequencyPattern) content.GetValueForProperty("SchedulePattern",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).SchedulePattern, Commvault.Powershell.Models.ContentIndexingFrequencyPatternTypeConverter.ConvertFrom);
            }
            if (content.Contains("ScheduleName"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ScheduleName = (string) content.GetValueForProperty("ScheduleName",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).ScheduleName, global::System.Convert.ToString);
            }
            if (content.Contains("FileFilterIncludeDocTypes"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterIncludeDocTypes = (string) content.GetValueForProperty("FileFilterIncludeDocTypes",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterIncludeDocTypes, global::System.Convert.ToString);
            }
            if (content.Contains("FileFilterExcludePaths"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterExcludePaths = (System.Collections.Generic.List<string>) content.GetValueForProperty("FileFilterExcludePaths",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterExcludePaths, __y => TypeConverterExtensions.SelectToList<string>(__y, global::System.Convert.ToString));
            }
            if (content.Contains("FileFilterMinDocSize"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterMinDocSize = (long?) content.GetValueForProperty("FileFilterMinDocSize",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterMinDocSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            }
            if (content.Contains("FileFilterMaxDocSize"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterMaxDocSize = (long?) content.GetValueForProperty("FileFilterMaxDocSize",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).FileFilterMaxDocSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            }
            if (content.Contains("PatternScheduleFrequencyType"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternScheduleFrequencyType = (string) content.GetValueForProperty("PatternScheduleFrequencyType",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternScheduleFrequencyType, global::System.Convert.ToString);
            }
            if (content.Contains("PatternFrequency"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternFrequency = (long?) content.GetValueForProperty("PatternFrequency",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternFrequency, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            }
            if (content.Contains("PatternWeeklyDays"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternWeeklyDays = (System.Collections.Generic.List<string>) content.GetValueForProperty("PatternWeeklyDays",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternWeeklyDays, __y => TypeConverterExtensions.SelectToList<string>(__y, global::System.Convert.ToString));
            }
            if (content.Contains("PatternDayOfMonth"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternDayOfMonth = (long?) content.GetValueForProperty("PatternDayOfMonth",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternDayOfMonth, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            }
            if (content.Contains("PatternWeekOfMonth"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternWeekOfMonth = (string) content.GetValueForProperty("PatternWeekOfMonth",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternWeekOfMonth, global::System.Convert.ToString);
            }
            if (content.Contains("PatternDayOfWeek"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternDayOfWeek = (string) content.GetValueForProperty("PatternDayOfWeek",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternDayOfWeek, global::System.Convert.ToString);
            }
            if (content.Contains("PatternMonthOfYear"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternMonthOfYear = (string) content.GetValueForProperty("PatternMonthOfYear",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternMonthOfYear, global::System.Convert.ToString);
            }
            if (content.Contains("PatternStartTime"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternStartTime = (long?) content.GetValueForProperty("PatternStartTime",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternStartTime, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            }
            if (content.Contains("PatternStartDate"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternStartDate = (long?) content.GetValueForProperty("PatternStartDate",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternStartDate, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            }
            if (content.Contains("PatternExceptions"))
            {
                ((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternExceptions = (System.Collections.Generic.List<Commvault.Powershell.Models.IScheduleRunException>) content.GetValueForProperty("PatternExceptions",((Commvault.Powershell.Models.IUpdateDcPlanInternal)this).PatternExceptions, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IScheduleRunException>(__y, Commvault.Powershell.Models.ScheduleRunExceptionTypeConverter.ConvertFrom));
            }
            AfterDeserializePSObject(content);
        }
    }
    /// Describes Input to Update Data Classification Plan
    [System.ComponentModel.TypeConverter(typeof(UpdateDcPlanTypeConverter))]
    public partial interface IUpdateDcPlan

    {

    }
}