generated/api/Models/DcPlanDetails.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>Describes the Data Classification Plan response object</summary> [System.ComponentModel.TypeConverter(typeof(DcPlanDetailsTypeConverter))] public partial class DcPlanDetails { /// <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 a new instance of <see cref="Commvault.Powershell.Models.DcPlanDetails" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal DcPlanDetails(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).IndexServer = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("IndexServer",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).IndexServer, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetection = (Commvault.Powershell.Models.IDcPlanEepolicy) content.GetValueForProperty("EntityDetection",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetection, Commvault.Powershell.Models.DcPlanEepolicyTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexing = (Commvault.Powershell.Models.IGetDcPlanCipolicy) content.GetValueForProperty("ContentIndexing",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexing, Commvault.Powershell.Models.GetDcPlanCipolicyTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Schedule = (Commvault.Powershell.Models.IDcPlanJobSchedule) content.GetValueForProperty("Schedule",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Schedule, Commvault.Powershell.Models.DcPlanJobScheduleTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Id = (long?) content.GetValueForProperty("Id",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Name, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ThreatAnalysis = (bool?) content.GetValueForProperty("ThreatAnalysis",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ThreatAnalysis, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).TargetApplication = (string) content.GetValueForProperty("TargetApplication",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).TargetApplication, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentAnalyzer = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("ContentAnalyzer",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentAnalyzer, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Permissions = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("Permissions",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Permissions, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).AssociatedEntities = (Commvault.Powershell.Models.IIdNameCount[]) content.GetValueForProperty("AssociatedEntities",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).AssociatedEntities, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdNameCount>(__y, Commvault.Powershell.Models.IdNameCountTypeConverter.ConvertFrom)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).IndexServerId = (long?) content.GetValueForProperty("IndexServerId",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).IndexServerId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).IndexServerName = (string) content.GetValueForProperty("IndexServerName",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).IndexServerName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetectionEntities = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("EntityDetectionEntities",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetectionEntities, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetectionClassifiers = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("EntityDetectionClassifiers",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetectionClassifiers, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetectionCopyPrecendence = (long?) content.GetValueForProperty("EntityDetectionCopyPrecendence",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetectionCopyPrecendence, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingExactSearch = (bool?) content.GetValueForProperty("ContentIndexingExactSearch",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingExactSearch, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingExtractTextFromImage = (bool?) content.GetValueForProperty("ContentIndexingExtractTextFromImage",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingExtractTextFromImage, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingContentLanguage = (string) content.GetValueForProperty("ContentIndexingContentLanguage",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingContentLanguage, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingSearchType = (string) content.GetValueForProperty("ContentIndexingSearchType",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingSearchType, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingPreviewPath = (string) content.GetValueForProperty("ContentIndexingPreviewPath",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingPreviewPath, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingDomainName = (string) content.GetValueForProperty("ContentIndexingDomainName",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingDomainName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingUserName = (string) content.GetValueForProperty("ContentIndexingUserName",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingUserName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingFileFilters = (Commvault.Powershell.Models.IDcPlanCifileFilters) content.GetValueForProperty("ContentIndexingFileFilters",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingFileFilters, Commvault.Powershell.Models.DcPlanCifileFiltersTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingBackupCopy = (Commvault.Powershell.Models.IDcBackupCopyDetail[]) content.GetValueForProperty("ContentIndexingBackupCopy",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingBackupCopy, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IDcBackupCopyDetail>(__y, Commvault.Powershell.Models.DcBackupCopyDetailTypeConverter.ConvertFrom)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).SchedulePattern = (Commvault.Powershell.Models.IContentIndexingFrequencyPattern) content.GetValueForProperty("SchedulePattern",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).SchedulePattern, Commvault.Powershell.Models.ContentIndexingFrequencyPatternTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ScheduleName = (string) content.GetValueForProperty("ScheduleName",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ScheduleName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterIncludeDocTypes = (string) content.GetValueForProperty("FileFilterIncludeDocTypes",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterIncludeDocTypes, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterExcludePaths = (string[]) content.GetValueForProperty("FileFilterExcludePaths",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterExcludePaths, __y => TypeConverterExtensions.SelectToArray<string>(__y, global::System.Convert.ToString)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterMinDocSize = (long?) content.GetValueForProperty("FileFilterMinDocSize",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterMinDocSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterMaxDocSize = (long?) content.GetValueForProperty("FileFilterMaxDocSize",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterMaxDocSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternScheduleFrequencyType = (string) content.GetValueForProperty("PatternScheduleFrequencyType",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternScheduleFrequencyType, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternFrequency = (long?) content.GetValueForProperty("PatternFrequency",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternFrequency, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternWeeklyDays = (string[]) content.GetValueForProperty("PatternWeeklyDays",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternWeeklyDays, __y => TypeConverterExtensions.SelectToArray<string>(__y, global::System.Convert.ToString)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternDayOfMonth = (long?) content.GetValueForProperty("PatternDayOfMonth",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternDayOfMonth, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternWeekOfMonth = (string) content.GetValueForProperty("PatternWeekOfMonth",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternWeekOfMonth, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternDayOfWeek = (string) content.GetValueForProperty("PatternDayOfWeek",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternDayOfWeek, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternMonthOfYear = (string) content.GetValueForProperty("PatternMonthOfYear",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternMonthOfYear, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternStartTime = (long?) content.GetValueForProperty("PatternStartTime",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternStartTime, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternStartDate = (long?) content.GetValueForProperty("PatternStartDate",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternStartDate, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternExceptions = (Commvault.Powershell.Models.IScheduleRunException[]) content.GetValueForProperty("PatternExceptions",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternExceptions, __y => TypeConverterExtensions.SelectToArray<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.DcPlanDetails" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal DcPlanDetails(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).IndexServer = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("IndexServer",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).IndexServer, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetection = (Commvault.Powershell.Models.IDcPlanEepolicy) content.GetValueForProperty("EntityDetection",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetection, Commvault.Powershell.Models.DcPlanEepolicyTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexing = (Commvault.Powershell.Models.IGetDcPlanCipolicy) content.GetValueForProperty("ContentIndexing",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexing, Commvault.Powershell.Models.GetDcPlanCipolicyTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Schedule = (Commvault.Powershell.Models.IDcPlanJobSchedule) content.GetValueForProperty("Schedule",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Schedule, Commvault.Powershell.Models.DcPlanJobScheduleTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Id = (long?) content.GetValueForProperty("Id",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Name, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ThreatAnalysis = (bool?) content.GetValueForProperty("ThreatAnalysis",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ThreatAnalysis, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).TargetApplication = (string) content.GetValueForProperty("TargetApplication",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).TargetApplication, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentAnalyzer = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("ContentAnalyzer",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentAnalyzer, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Permissions = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("Permissions",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).Permissions, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).AssociatedEntities = (Commvault.Powershell.Models.IIdNameCount[]) content.GetValueForProperty("AssociatedEntities",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).AssociatedEntities, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdNameCount>(__y, Commvault.Powershell.Models.IdNameCountTypeConverter.ConvertFrom)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).IndexServerId = (long?) content.GetValueForProperty("IndexServerId",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).IndexServerId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).IndexServerName = (string) content.GetValueForProperty("IndexServerName",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).IndexServerName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetectionEntities = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("EntityDetectionEntities",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetectionEntities, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetectionClassifiers = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("EntityDetectionClassifiers",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetectionClassifiers, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetectionCopyPrecendence = (long?) content.GetValueForProperty("EntityDetectionCopyPrecendence",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).EntityDetectionCopyPrecendence, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingExactSearch = (bool?) content.GetValueForProperty("ContentIndexingExactSearch",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingExactSearch, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingExtractTextFromImage = (bool?) content.GetValueForProperty("ContentIndexingExtractTextFromImage",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingExtractTextFromImage, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingContentLanguage = (string) content.GetValueForProperty("ContentIndexingContentLanguage",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingContentLanguage, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingSearchType = (string) content.GetValueForProperty("ContentIndexingSearchType",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingSearchType, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingPreviewPath = (string) content.GetValueForProperty("ContentIndexingPreviewPath",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingPreviewPath, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingDomainName = (string) content.GetValueForProperty("ContentIndexingDomainName",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingDomainName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingUserName = (string) content.GetValueForProperty("ContentIndexingUserName",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingUserName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingFileFilters = (Commvault.Powershell.Models.IDcPlanCifileFilters) content.GetValueForProperty("ContentIndexingFileFilters",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingFileFilters, Commvault.Powershell.Models.DcPlanCifileFiltersTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingBackupCopy = (Commvault.Powershell.Models.IDcBackupCopyDetail[]) content.GetValueForProperty("ContentIndexingBackupCopy",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ContentIndexingBackupCopy, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IDcBackupCopyDetail>(__y, Commvault.Powershell.Models.DcBackupCopyDetailTypeConverter.ConvertFrom)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).SchedulePattern = (Commvault.Powershell.Models.IContentIndexingFrequencyPattern) content.GetValueForProperty("SchedulePattern",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).SchedulePattern, Commvault.Powershell.Models.ContentIndexingFrequencyPatternTypeConverter.ConvertFrom); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ScheduleName = (string) content.GetValueForProperty("ScheduleName",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).ScheduleName, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterIncludeDocTypes = (string) content.GetValueForProperty("FileFilterIncludeDocTypes",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterIncludeDocTypes, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterExcludePaths = (string[]) content.GetValueForProperty("FileFilterExcludePaths",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterExcludePaths, __y => TypeConverterExtensions.SelectToArray<string>(__y, global::System.Convert.ToString)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterMinDocSize = (long?) content.GetValueForProperty("FileFilterMinDocSize",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterMinDocSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterMaxDocSize = (long?) content.GetValueForProperty("FileFilterMaxDocSize",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).FileFilterMaxDocSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternScheduleFrequencyType = (string) content.GetValueForProperty("PatternScheduleFrequencyType",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternScheduleFrequencyType, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternFrequency = (long?) content.GetValueForProperty("PatternFrequency",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternFrequency, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternWeeklyDays = (string[]) content.GetValueForProperty("PatternWeeklyDays",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternWeeklyDays, __y => TypeConverterExtensions.SelectToArray<string>(__y, global::System.Convert.ToString)); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternDayOfMonth = (long?) content.GetValueForProperty("PatternDayOfMonth",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternDayOfMonth, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternWeekOfMonth = (string) content.GetValueForProperty("PatternWeekOfMonth",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternWeekOfMonth, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternDayOfWeek = (string) content.GetValueForProperty("PatternDayOfWeek",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternDayOfWeek, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternMonthOfYear = (string) content.GetValueForProperty("PatternMonthOfYear",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternMonthOfYear, global::System.Convert.ToString); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternStartTime = (long?) content.GetValueForProperty("PatternStartTime",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternStartTime, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternStartDate = (long?) content.GetValueForProperty("PatternStartDate",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternStartDate, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternExceptions = (Commvault.Powershell.Models.IScheduleRunException[]) content.GetValueForProperty("PatternExceptions",((Commvault.Powershell.Models.IDcPlanDetailsInternal)this).PatternExceptions, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IScheduleRunException>(__y, Commvault.Powershell.Models.ScheduleRunExceptionTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } /// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into an instance of <see cref="Commvault.Powershell.Models.DcPlanDetails" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> /// <returns>an instance of <see cref="Commvault.Powershell.Models.IDcPlanDetails" />.</returns> public static Commvault.Powershell.Models.IDcPlanDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DcPlanDetails(content); } /// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into an instance of <see cref="Commvault.Powershell.Models.DcPlanDetails" /// />. /// </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.IDcPlanDetails" />.</returns> public static Commvault.Powershell.Models.IDcPlanDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DcPlanDetails(content); } /// <summary> /// Creates a new instance of <see cref="DcPlanDetails" />, 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.IDcPlanDetails 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(); } /// Describes the Data Classification Plan response object [System.ComponentModel.TypeConverter(typeof(DcPlanDetailsTypeConverter))] public partial interface IDcPlanDetails { } } |