generated/api/Models/SubclientAssociation.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> /// Parent entities must be specified for applications and lower entities. Hierarchy begins at the server or server group /// level(parentEntity1) and extends till backupset level when defining parent relationships for the associated entity. /// Example of parent hierarchy structure for subclient entity: /// 1. Server group - Server - Application - Instance - Backupset /// 2. Server - Application - Instance - Backupset /// </summary> [System.ComponentModel.TypeConverter(typeof(SubclientAssociationTypeConverter))] public partial class SubclientAssociation { /// <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.SubclientAssociation" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> /// <returns> /// an instance of <see cref="Commvault.Powershell.Models.ISubclientAssociation" />. /// </returns> public static Commvault.Powershell.Models.ISubclientAssociation DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SubclientAssociation(content); } /// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into an instance of <see cref="Commvault.Powershell.Models.SubclientAssociation" /// />. /// </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.ISubclientAssociation" />. /// </returns> public static Commvault.Powershell.Models.ISubclientAssociation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SubclientAssociation(content); } /// <summary> /// Creates a new instance of <see cref="SubclientAssociation" />, 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="SubclientAssociation" /> model class.</returns> public static Commvault.Powershell.Models.ISubclientAssociation 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.SubclientAssociation" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal SubclientAssociation(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Flags")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Flags = (Commvault.Powershell.Models.ISubclientAssociationFlags) content.GetValueForProperty("Flags",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Flags, Commvault.Powershell.Models.SubclientAssociationFlagsTypeConverter.ConvertFrom); } if (content.Contains("ParentEntity1")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1 = (Commvault.Powershell.Models.ISubclientAssocParentEntity) content.GetValueForProperty("ParentEntity1",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1, Commvault.Powershell.Models.SubclientAssocParentEntityTypeConverter.ConvertFrom); } if (content.Contains("ParentEntity2")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2 = (Commvault.Powershell.Models.ISubclientAssocParentEntity) content.GetValueForProperty("ParentEntity2",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2, Commvault.Powershell.Models.SubclientAssocParentEntityTypeConverter.ConvertFrom); } if (content.Contains("ParentEntity3")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3 = (Commvault.Powershell.Models.ISubclientAssocParentEntity) content.GetValueForProperty("ParentEntity3",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3, Commvault.Powershell.Models.SubclientAssocParentEntityTypeConverter.ConvertFrom); } if (content.Contains("ParentEntity4")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4 = (Commvault.Powershell.Models.ISubclientAssocParentEntity) content.GetValueForProperty("ParentEntity4",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4, Commvault.Powershell.Models.SubclientAssocParentEntityTypeConverter.ConvertFrom); } if (content.Contains("ParentEntity5")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5 = (Commvault.Powershell.Models.ISubclientAssocParentEntity) content.GetValueForProperty("ParentEntity5",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5, Commvault.Powershell.Models.SubclientAssocParentEntityTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Id = (long?) content.GetValueForProperty("Id",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("Name")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Name = (string) content.GetValueForProperty("Name",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Type = (string) content.GetValueForProperty("Type",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("FlagDisabled")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).FlagDisabled = (bool?) content.GetValueForProperty("FlagDisabled",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).FlagDisabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("FlagInclude")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).FlagInclude = (bool?) content.GetValueForProperty("FlagInclude",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).FlagInclude, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("FlagExclude")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).FlagExclude = (bool?) content.GetValueForProperty("FlagExclude",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).FlagExclude, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ParentEntity1Id")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1Id = (long?) content.GetValueForProperty("ParentEntity1Id",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ParentEntity1Name")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1Name = (string) content.GetValueForProperty("ParentEntity1Name",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1Name, global::System.Convert.ToString); } if (content.Contains("ParentEntity1Type")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1Type = (string) content.GetValueForProperty("ParentEntity1Type",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1Type, global::System.Convert.ToString); } if (content.Contains("ParentEntity2Id")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2Id = (long?) content.GetValueForProperty("ParentEntity2Id",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ParentEntity2Name")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2Name = (string) content.GetValueForProperty("ParentEntity2Name",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2Name, global::System.Convert.ToString); } if (content.Contains("ParentEntity2Type")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2Type = (string) content.GetValueForProperty("ParentEntity2Type",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2Type, global::System.Convert.ToString); } if (content.Contains("ParentEntity3Id")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3Id = (long?) content.GetValueForProperty("ParentEntity3Id",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ParentEntity3Name")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3Name = (string) content.GetValueForProperty("ParentEntity3Name",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3Name, global::System.Convert.ToString); } if (content.Contains("ParentEntity3Type")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3Type = (string) content.GetValueForProperty("ParentEntity3Type",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3Type, global::System.Convert.ToString); } if (content.Contains("ParentEntity4Id")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4Id = (long?) content.GetValueForProperty("ParentEntity4Id",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ParentEntity4Name")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4Name = (string) content.GetValueForProperty("ParentEntity4Name",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4Name, global::System.Convert.ToString); } if (content.Contains("ParentEntity4Type")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4Type = (string) content.GetValueForProperty("ParentEntity4Type",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4Type, global::System.Convert.ToString); } if (content.Contains("ParentEntity5Id")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5Id = (long?) content.GetValueForProperty("ParentEntity5Id",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ParentEntity5Name")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5Name = (string) content.GetValueForProperty("ParentEntity5Name",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5Name, global::System.Convert.ToString); } if (content.Contains("ParentEntity5Type")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5Type = (string) content.GetValueForProperty("ParentEntity5Type",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5Type, 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.SubclientAssociation" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal SubclientAssociation(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Flags")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Flags = (Commvault.Powershell.Models.ISubclientAssociationFlags) content.GetValueForProperty("Flags",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Flags, Commvault.Powershell.Models.SubclientAssociationFlagsTypeConverter.ConvertFrom); } if (content.Contains("ParentEntity1")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1 = (Commvault.Powershell.Models.ISubclientAssocParentEntity) content.GetValueForProperty("ParentEntity1",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1, Commvault.Powershell.Models.SubclientAssocParentEntityTypeConverter.ConvertFrom); } if (content.Contains("ParentEntity2")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2 = (Commvault.Powershell.Models.ISubclientAssocParentEntity) content.GetValueForProperty("ParentEntity2",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2, Commvault.Powershell.Models.SubclientAssocParentEntityTypeConverter.ConvertFrom); } if (content.Contains("ParentEntity3")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3 = (Commvault.Powershell.Models.ISubclientAssocParentEntity) content.GetValueForProperty("ParentEntity3",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3, Commvault.Powershell.Models.SubclientAssocParentEntityTypeConverter.ConvertFrom); } if (content.Contains("ParentEntity4")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4 = (Commvault.Powershell.Models.ISubclientAssocParentEntity) content.GetValueForProperty("ParentEntity4",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4, Commvault.Powershell.Models.SubclientAssocParentEntityTypeConverter.ConvertFrom); } if (content.Contains("ParentEntity5")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5 = (Commvault.Powershell.Models.ISubclientAssocParentEntity) content.GetValueForProperty("ParentEntity5",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5, Commvault.Powershell.Models.SubclientAssocParentEntityTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Id = (long?) content.GetValueForProperty("Id",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("Name")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Name = (string) content.GetValueForProperty("Name",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Type = (string) content.GetValueForProperty("Type",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("FlagDisabled")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).FlagDisabled = (bool?) content.GetValueForProperty("FlagDisabled",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).FlagDisabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("FlagInclude")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).FlagInclude = (bool?) content.GetValueForProperty("FlagInclude",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).FlagInclude, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("FlagExclude")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).FlagExclude = (bool?) content.GetValueForProperty("FlagExclude",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).FlagExclude, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ParentEntity1Id")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1Id = (long?) content.GetValueForProperty("ParentEntity1Id",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ParentEntity1Name")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1Name = (string) content.GetValueForProperty("ParentEntity1Name",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1Name, global::System.Convert.ToString); } if (content.Contains("ParentEntity1Type")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1Type = (string) content.GetValueForProperty("ParentEntity1Type",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity1Type, global::System.Convert.ToString); } if (content.Contains("ParentEntity2Id")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2Id = (long?) content.GetValueForProperty("ParentEntity2Id",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ParentEntity2Name")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2Name = (string) content.GetValueForProperty("ParentEntity2Name",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2Name, global::System.Convert.ToString); } if (content.Contains("ParentEntity2Type")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2Type = (string) content.GetValueForProperty("ParentEntity2Type",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity2Type, global::System.Convert.ToString); } if (content.Contains("ParentEntity3Id")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3Id = (long?) content.GetValueForProperty("ParentEntity3Id",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ParentEntity3Name")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3Name = (string) content.GetValueForProperty("ParentEntity3Name",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3Name, global::System.Convert.ToString); } if (content.Contains("ParentEntity3Type")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3Type = (string) content.GetValueForProperty("ParentEntity3Type",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity3Type, global::System.Convert.ToString); } if (content.Contains("ParentEntity4Id")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4Id = (long?) content.GetValueForProperty("ParentEntity4Id",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ParentEntity4Name")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4Name = (string) content.GetValueForProperty("ParentEntity4Name",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4Name, global::System.Convert.ToString); } if (content.Contains("ParentEntity4Type")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4Type = (string) content.GetValueForProperty("ParentEntity4Type",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity4Type, global::System.Convert.ToString); } if (content.Contains("ParentEntity5Id")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5Id = (long?) content.GetValueForProperty("ParentEntity5Id",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ParentEntity5Name")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5Name = (string) content.GetValueForProperty("ParentEntity5Name",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5Name, global::System.Convert.ToString); } if (content.Contains("ParentEntity5Type")) { ((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5Type = (string) content.GetValueForProperty("ParentEntity5Type",((Commvault.Powershell.Models.ISubclientAssociationInternal)this).ParentEntity5Type, 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(); } } /// Parent entities must be specified for applications and lower entities. Hierarchy begins at the server or server group /// level(parentEntity1) and extends till backupset level when defining parent relationships for the associated entity. /// Example of parent hierarchy structure for subclient entity: /// 1. Server group - Server - Application - Instance - Backupset /// 2. Server - Application - Instance - Backupset [System.ComponentModel.TypeConverter(typeof(SubclientAssociationTypeConverter))] public partial interface ISubclientAssociation { } } |