generated/api/Models/LaptopPlanAllowedFeatures.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>Create/modify allowed features of laptop plan</summary> [System.ComponentModel.TypeConverter(typeof(LaptopPlanAllowedFeaturesTypeConverter))] public partial class LaptopPlanAllowedFeatures { /// <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.LaptopPlanAllowedFeatures" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> /// <returns> /// an instance of <see cref="Commvault.Powershell.Models.ILaptopPlanAllowedFeatures" />. /// </returns> public static Commvault.Powershell.Models.ILaptopPlanAllowedFeatures DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new LaptopPlanAllowedFeatures(content); } /// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into an instance of <see cref="Commvault.Powershell.Models.LaptopPlanAllowedFeatures" /// />. /// </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.ILaptopPlanAllowedFeatures" />. /// </returns> public static Commvault.Powershell.Models.ILaptopPlanAllowedFeatures DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new LaptopPlanAllowedFeatures(content); } /// <summary> /// Creates a new instance of <see cref="LaptopPlanAllowedFeatures" />, 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="LaptopPlanAllowedFeatures" /> model class.</returns> public static Commvault.Powershell.Models.ILaptopPlanAllowedFeatures FromJsonString(string jsonText) => FromJson(Commvault.Powershell.Runtime.Json.JsonNode.Parse(jsonText)); /// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Commvault.Powershell.Models.LaptopPlanAllowedFeatures" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal LaptopPlanAllowedFeatures(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("EdgeDriveSettings")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettings = (Commvault.Powershell.Models.IEdgeDriveSettingsPlan) content.GetValueForProperty("EdgeDriveSettings",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettings, Commvault.Powershell.Models.EdgeDriveSettingsPlanTypeConverter.ConvertFrom); } if (content.Contains("ArchivingRules")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRules = (Commvault.Powershell.Models.IArchivingRules) content.GetValueForProperty("ArchivingRules",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRules, Commvault.Powershell.Models.ArchivingRulesTypeConverter.ConvertFrom); } if (content.Contains("EdgeDrive")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDrive = (bool?) content.GetValueForProperty("EdgeDrive",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDrive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Dlp")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).Dlp = (bool?) content.GetValueForProperty("Dlp",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).Dlp, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Archiving")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).Archiving = (bool?) content.GetValueForProperty("Archiving",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).Archiving, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("EdgeDriveSettingIndexServer")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingIndexServer = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("EdgeDriveSettingIndexServer",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingIndexServer, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("EdgeDriveSettingClient")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingClient = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("EdgeDriveSettingClient",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingClient, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("EdgeDriveSettingCreateNewIndexServer")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingCreateNewIndexServer = (bool) content.GetValueForProperty("EdgeDriveSettingCreateNewIndexServer",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingCreateNewIndexServer, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("EdgeDriveSettingIndexCachePath")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingIndexCachePath = (string) content.GetValueForProperty("EdgeDriveSettingIndexCachePath",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingIndexCachePath, global::System.Convert.ToString); } if (content.Contains("EdgeDriveSettingAuditDriveOperations")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingAuditDriveOperations = (bool?) content.GetValueForProperty("EdgeDriveSettingAuditDriveOperations",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingAuditDriveOperations, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("EdgeDriveSettingNotificationsForShares")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingNotificationsForShares = (bool?) content.GetValueForProperty("EdgeDriveSettingNotificationsForShares",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingNotificationsForShares, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("EdgeDriveSettingEdgeDriveQuota")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingEdgeDriveQuota = (long?) content.GetValueForProperty("EdgeDriveSettingEdgeDriveQuota",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingEdgeDriveQuota, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleStartCleaningIfLessThan")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleStartCleaningIfLessThan = (long?) content.GetValueForProperty("ArchivingRuleStartCleaningIfLessThan",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleStartCleaningIfLessThan, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleStopCleaningIfupto")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleStopCleaningIfupto = (long?) content.GetValueForProperty("ArchivingRuleStopCleaningIfupto",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleStopCleaningIfupto, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleFileAccessTimeOlderThan")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileAccessTimeOlderThan = (long?) content.GetValueForProperty("ArchivingRuleFileAccessTimeOlderThan",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileAccessTimeOlderThan, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleFileModifiedTimeOlderThan")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileModifiedTimeOlderThan = (long?) content.GetValueForProperty("ArchivingRuleFileModifiedTimeOlderThan",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileModifiedTimeOlderThan, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleFileCreatedTimeOlderThan")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileCreatedTimeOlderThan = (long?) content.GetValueForProperty("ArchivingRuleFileCreatedTimeOlderThan",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileCreatedTimeOlderThan, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleFileSizeGreaterThan")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileSizeGreaterThan = (long?) content.GetValueForProperty("ArchivingRuleFileSizeGreaterThan",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileSizeGreaterThan, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleMaximumFileSize")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleMaximumFileSize = (long?) content.GetValueForProperty("ArchivingRuleMaximumFileSize",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleMaximumFileSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleArchiveReadOnlyFiles")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleArchiveReadOnlyFiles = (bool?) content.GetValueForProperty("ArchivingRuleArchiveReadOnlyFiles",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleArchiveReadOnlyFiles, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ArchivingRuleAfterArchiving")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleAfterArchiving = (string) content.GetValueForProperty("ArchivingRuleAfterArchiving",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleAfterArchiving, global::System.Convert.ToString); } if (content.Contains("IndexServerId")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).IndexServerId = (long?) content.GetValueForProperty("IndexServerId",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).IndexServerId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("IndexServerName")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).IndexServerName = (string) content.GetValueForProperty("IndexServerName",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).IndexServerName, global::System.Convert.ToString); } if (content.Contains("ClientId")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ClientId = (long?) content.GetValueForProperty("ClientId",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ClientId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ClientName")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ClientName = (string) content.GetValueForProperty("ClientName",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ClientName, 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.LaptopPlanAllowedFeatures" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal LaptopPlanAllowedFeatures(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("EdgeDriveSettings")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettings = (Commvault.Powershell.Models.IEdgeDriveSettingsPlan) content.GetValueForProperty("EdgeDriveSettings",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettings, Commvault.Powershell.Models.EdgeDriveSettingsPlanTypeConverter.ConvertFrom); } if (content.Contains("ArchivingRules")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRules = (Commvault.Powershell.Models.IArchivingRules) content.GetValueForProperty("ArchivingRules",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRules, Commvault.Powershell.Models.ArchivingRulesTypeConverter.ConvertFrom); } if (content.Contains("EdgeDrive")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDrive = (bool?) content.GetValueForProperty("EdgeDrive",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDrive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Dlp")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).Dlp = (bool?) content.GetValueForProperty("Dlp",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).Dlp, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Archiving")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).Archiving = (bool?) content.GetValueForProperty("Archiving",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).Archiving, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("EdgeDriveSettingIndexServer")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingIndexServer = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("EdgeDriveSettingIndexServer",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingIndexServer, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("EdgeDriveSettingClient")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingClient = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("EdgeDriveSettingClient",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingClient, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("EdgeDriveSettingCreateNewIndexServer")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingCreateNewIndexServer = (bool) content.GetValueForProperty("EdgeDriveSettingCreateNewIndexServer",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingCreateNewIndexServer, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("EdgeDriveSettingIndexCachePath")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingIndexCachePath = (string) content.GetValueForProperty("EdgeDriveSettingIndexCachePath",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingIndexCachePath, global::System.Convert.ToString); } if (content.Contains("EdgeDriveSettingAuditDriveOperations")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingAuditDriveOperations = (bool?) content.GetValueForProperty("EdgeDriveSettingAuditDriveOperations",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingAuditDriveOperations, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("EdgeDriveSettingNotificationsForShares")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingNotificationsForShares = (bool?) content.GetValueForProperty("EdgeDriveSettingNotificationsForShares",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingNotificationsForShares, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("EdgeDriveSettingEdgeDriveQuota")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingEdgeDriveQuota = (long?) content.GetValueForProperty("EdgeDriveSettingEdgeDriveQuota",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).EdgeDriveSettingEdgeDriveQuota, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleStartCleaningIfLessThan")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleStartCleaningIfLessThan = (long?) content.GetValueForProperty("ArchivingRuleStartCleaningIfLessThan",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleStartCleaningIfLessThan, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleStopCleaningIfupto")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleStopCleaningIfupto = (long?) content.GetValueForProperty("ArchivingRuleStopCleaningIfupto",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleStopCleaningIfupto, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleFileAccessTimeOlderThan")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileAccessTimeOlderThan = (long?) content.GetValueForProperty("ArchivingRuleFileAccessTimeOlderThan",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileAccessTimeOlderThan, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleFileModifiedTimeOlderThan")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileModifiedTimeOlderThan = (long?) content.GetValueForProperty("ArchivingRuleFileModifiedTimeOlderThan",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileModifiedTimeOlderThan, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleFileCreatedTimeOlderThan")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileCreatedTimeOlderThan = (long?) content.GetValueForProperty("ArchivingRuleFileCreatedTimeOlderThan",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileCreatedTimeOlderThan, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleFileSizeGreaterThan")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileSizeGreaterThan = (long?) content.GetValueForProperty("ArchivingRuleFileSizeGreaterThan",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleFileSizeGreaterThan, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleMaximumFileSize")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleMaximumFileSize = (long?) content.GetValueForProperty("ArchivingRuleMaximumFileSize",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleMaximumFileSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArchivingRuleArchiveReadOnlyFiles")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleArchiveReadOnlyFiles = (bool?) content.GetValueForProperty("ArchivingRuleArchiveReadOnlyFiles",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleArchiveReadOnlyFiles, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ArchivingRuleAfterArchiving")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleAfterArchiving = (string) content.GetValueForProperty("ArchivingRuleAfterArchiving",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ArchivingRuleAfterArchiving, global::System.Convert.ToString); } if (content.Contains("IndexServerId")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).IndexServerId = (long?) content.GetValueForProperty("IndexServerId",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).IndexServerId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("IndexServerName")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).IndexServerName = (string) content.GetValueForProperty("IndexServerName",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).IndexServerName, global::System.Convert.ToString); } if (content.Contains("ClientId")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ClientId = (long?) content.GetValueForProperty("ClientId",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ClientId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ClientName")) { ((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ClientName = (string) content.GetValueForProperty("ClientName",((Commvault.Powershell.Models.ILaptopPlanAllowedFeaturesInternal)this).ClientName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// <summary>Serializes this instance to a json string.</summary> /// <returns>a <see cref="System.String" /> containing this model serialized to JSON text.</returns> public string ToJsonString() => ToJson(null, Commvault.Powershell.Runtime.SerializationMode.IncludeAll)?.ToString(); public override string ToString() { var returnNow = false; var result = global::System.String.Empty; OverrideToString(ref result, ref returnNow); if (returnNow) { return result; } return ToJsonString(); } } /// Create/modify allowed features of laptop plan [System.ComponentModel.TypeConverter(typeof(LaptopPlanAllowedFeaturesTypeConverter))] public partial interface ILaptopPlanAllowedFeatures { } } |