generated/api/Models/Saml.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>Get SAML response</summary> [System.ComponentModel.TypeConverter(typeof(SamlTypeConverter))] public partial class Saml { /// <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.Saml" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> /// <returns>an instance of <see cref="Commvault.Powershell.Models.ISaml" />.</returns> public static Commvault.Powershell.Models.ISaml DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Saml(content); } /// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into an instance of <see cref="Commvault.Powershell.Models.Saml" /// />. /// </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.ISaml" />.</returns> public static Commvault.Powershell.Models.ISaml DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Saml(content); } /// <summary> /// Creates a new instance of <see cref="Saml" />, 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="Saml" /> model class.</returns> public static Commvault.Powershell.Models.ISaml 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.Saml" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal Saml(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("UserGroup")) { ((Commvault.Powershell.Models.ISamlInternal)this).UserGroup = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("UserGroup",((Commvault.Powershell.Models.ISamlInternal)this).UserGroup, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("CreatedForCompany")) { ((Commvault.Powershell.Models.ISamlInternal)this).CreatedForCompany = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("CreatedForCompany",((Commvault.Powershell.Models.ISamlInternal)this).CreatedForCompany, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("IdentityProviderMetaData")) { ((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaData = (Commvault.Powershell.Models.ISamlidpMetaDataResp) content.GetValueForProperty("IdentityProviderMetaData",((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaData, Commvault.Powershell.Models.SamlidpMetaDataRespTypeConverter.ConvertFrom); } if (content.Contains("ServiceProviderMetaData")) { ((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaData = (Commvault.Powershell.Models.ISamlspMetaDataResp) content.GetValueForProperty("ServiceProviderMetaData",((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaData, Commvault.Powershell.Models.SamlspMetaDataRespTypeConverter.ConvertFrom); } if (content.Contains("Associations")) { ((Commvault.Powershell.Models.ISamlInternal)this).Associations = (Commvault.Powershell.Models.ISamlAssociations) content.GetValueForProperty("Associations",((Commvault.Powershell.Models.ISamlInternal)this).Associations, Commvault.Powershell.Models.SamlAssociationsTypeConverter.ConvertFrom); } if (content.Contains("Name")) { ((Commvault.Powershell.Models.ISamlInternal)this).Name = (string) content.GetValueForProperty("Name",((Commvault.Powershell.Models.ISamlInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("AppKey")) { ((Commvault.Powershell.Models.ISamlInternal)this).AppKey = (string) content.GetValueForProperty("AppKey",((Commvault.Powershell.Models.ISamlInternal)this).AppKey, global::System.Convert.ToString); } if (content.Contains("Description")) { ((Commvault.Powershell.Models.ISamlInternal)this).Description = (string) content.GetValueForProperty("Description",((Commvault.Powershell.Models.ISamlInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("Enabled")) { ((Commvault.Powershell.Models.ISamlInternal)this).Enabled = (bool?) content.GetValueForProperty("Enabled",((Commvault.Powershell.Models.ISamlInternal)this).Enabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AutoCreateUser")) { ((Commvault.Powershell.Models.ISamlInternal)this).AutoCreateUser = (bool?) content.GetValueForProperty("AutoCreateUser",((Commvault.Powershell.Models.ISamlInternal)this).AutoCreateUser, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("UserGroups")) { ((Commvault.Powershell.Models.ISamlInternal)this).UserGroups = (System.Collections.Generic.List<Commvault.Powershell.Models.ICompanyWithUserGroupAssocDetails>) content.GetValueForProperty("UserGroups",((Commvault.Powershell.Models.ISamlInternal)this).UserGroups, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.ICompanyWithUserGroupAssocDetails>(__y, Commvault.Powershell.Models.CompanyWithUserGroupAssocDetailsTypeConverter.ConvertFrom)); } if (content.Contains("NameIdAttribute")) { ((Commvault.Powershell.Models.ISamlInternal)this).NameIdAttribute = (string) content.GetValueForProperty("NameIdAttribute",((Commvault.Powershell.Models.ISamlInternal)this).NameIdAttribute, global::System.Convert.ToString); } if (content.Contains("AttributeMappings")) { ((Commvault.Powershell.Models.ISamlInternal)this).AttributeMappings = (System.Collections.Generic.List<Commvault.Powershell.Models.ISamlAttributes>) content.GetValueForProperty("AttributeMappings",((Commvault.Powershell.Models.ISamlInternal)this).AttributeMappings, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.ISamlAttributes>(__y, Commvault.Powershell.Models.SamlAttributesTypeConverter.ConvertFrom)); } if (content.Contains("UserGroupId")) { ((Commvault.Powershell.Models.ISamlInternal)this).UserGroupId = (long?) content.GetValueForProperty("UserGroupId",((Commvault.Powershell.Models.ISamlInternal)this).UserGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("UserGroupName")) { ((Commvault.Powershell.Models.ISamlInternal)this).UserGroupName = (string) content.GetValueForProperty("UserGroupName",((Commvault.Powershell.Models.ISamlInternal)this).UserGroupName, global::System.Convert.ToString); } if (content.Contains("CreatedForCompanyId")) { ((Commvault.Powershell.Models.ISamlInternal)this).CreatedForCompanyId = (long?) content.GetValueForProperty("CreatedForCompanyId",((Commvault.Powershell.Models.ISamlInternal)this).CreatedForCompanyId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("CreatedForCompanyName")) { ((Commvault.Powershell.Models.ISamlInternal)this).CreatedForCompanyName = (string) content.GetValueForProperty("CreatedForCompanyName",((Commvault.Powershell.Models.ISamlInternal)this).CreatedForCompanyName, global::System.Convert.ToString); } if (content.Contains("IdentityProviderMetaDataEntityId")) { ((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaDataEntityId = (string) content.GetValueForProperty("IdentityProviderMetaDataEntityId",((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaDataEntityId, global::System.Convert.ToString); } if (content.Contains("IdentityProviderMetaDataRedirectUrl")) { ((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaDataRedirectUrl = (string) content.GetValueForProperty("IdentityProviderMetaDataRedirectUrl",((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaDataRedirectUrl, global::System.Convert.ToString); } if (content.Contains("IdentityProviderMetaDataLogoutUrl")) { ((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaDataLogoutUrl = (string) content.GetValueForProperty("IdentityProviderMetaDataLogoutUrl",((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaDataLogoutUrl, global::System.Convert.ToString); } if (content.Contains("ServiceProviderMetaDataEntityId")) { ((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaDataEntityId = (string) content.GetValueForProperty("ServiceProviderMetaDataEntityId",((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaDataEntityId, global::System.Convert.ToString); } if (content.Contains("ServiceProviderMetaDataSingleSignOnUrl")) { ((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaDataSingleSignOnUrl = (string) content.GetValueForProperty("ServiceProviderMetaDataSingleSignOnUrl",((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaDataSingleSignOnUrl, global::System.Convert.ToString); } if (content.Contains("ServiceProviderMetaDataSingleLogoutUrl")) { ((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaDataSingleLogoutUrl = (string) content.GetValueForProperty("ServiceProviderMetaDataSingleLogoutUrl",((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaDataSingleLogoutUrl, global::System.Convert.ToString); } if (content.Contains("AssociationEmailSuffixes")) { ((Commvault.Powershell.Models.ISamlInternal)this).AssociationEmailSuffixes = (System.Collections.Generic.List<string>) content.GetValueForProperty("AssociationEmailSuffixes",((Commvault.Powershell.Models.ISamlInternal)this).AssociationEmailSuffixes, __y => TypeConverterExtensions.SelectToList<string>(__y, global::System.Convert.ToString)); } if (content.Contains("AssociationCompanies")) { ((Commvault.Powershell.Models.ISamlInternal)this).AssociationCompanies = (System.Collections.Generic.List<Commvault.Powershell.Models.IIdName>) content.GetValueForProperty("AssociationCompanies",((Commvault.Powershell.Models.ISamlInternal)this).AssociationCompanies, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom)); } if (content.Contains("AssociationDomains")) { ((Commvault.Powershell.Models.ISamlInternal)this).AssociationDomains = (System.Collections.Generic.List<Commvault.Powershell.Models.IIdName>) content.GetValueForProperty("AssociationDomains",((Commvault.Powershell.Models.ISamlInternal)this).AssociationDomains, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom)); } if (content.Contains("AssociationUserGroups")) { ((Commvault.Powershell.Models.ISamlInternal)this).AssociationUserGroups = (System.Collections.Generic.List<Commvault.Powershell.Models.IIdName>) content.GetValueForProperty("AssociationUserGroups",((Commvault.Powershell.Models.ISamlInternal)this).AssociationUserGroups, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Commvault.Powershell.Models.Saml" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal Saml(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("UserGroup")) { ((Commvault.Powershell.Models.ISamlInternal)this).UserGroup = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("UserGroup",((Commvault.Powershell.Models.ISamlInternal)this).UserGroup, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("CreatedForCompany")) { ((Commvault.Powershell.Models.ISamlInternal)this).CreatedForCompany = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("CreatedForCompany",((Commvault.Powershell.Models.ISamlInternal)this).CreatedForCompany, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom); } if (content.Contains("IdentityProviderMetaData")) { ((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaData = (Commvault.Powershell.Models.ISamlidpMetaDataResp) content.GetValueForProperty("IdentityProviderMetaData",((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaData, Commvault.Powershell.Models.SamlidpMetaDataRespTypeConverter.ConvertFrom); } if (content.Contains("ServiceProviderMetaData")) { ((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaData = (Commvault.Powershell.Models.ISamlspMetaDataResp) content.GetValueForProperty("ServiceProviderMetaData",((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaData, Commvault.Powershell.Models.SamlspMetaDataRespTypeConverter.ConvertFrom); } if (content.Contains("Associations")) { ((Commvault.Powershell.Models.ISamlInternal)this).Associations = (Commvault.Powershell.Models.ISamlAssociations) content.GetValueForProperty("Associations",((Commvault.Powershell.Models.ISamlInternal)this).Associations, Commvault.Powershell.Models.SamlAssociationsTypeConverter.ConvertFrom); } if (content.Contains("Name")) { ((Commvault.Powershell.Models.ISamlInternal)this).Name = (string) content.GetValueForProperty("Name",((Commvault.Powershell.Models.ISamlInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("AppKey")) { ((Commvault.Powershell.Models.ISamlInternal)this).AppKey = (string) content.GetValueForProperty("AppKey",((Commvault.Powershell.Models.ISamlInternal)this).AppKey, global::System.Convert.ToString); } if (content.Contains("Description")) { ((Commvault.Powershell.Models.ISamlInternal)this).Description = (string) content.GetValueForProperty("Description",((Commvault.Powershell.Models.ISamlInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("Enabled")) { ((Commvault.Powershell.Models.ISamlInternal)this).Enabled = (bool?) content.GetValueForProperty("Enabled",((Commvault.Powershell.Models.ISamlInternal)this).Enabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AutoCreateUser")) { ((Commvault.Powershell.Models.ISamlInternal)this).AutoCreateUser = (bool?) content.GetValueForProperty("AutoCreateUser",((Commvault.Powershell.Models.ISamlInternal)this).AutoCreateUser, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("UserGroups")) { ((Commvault.Powershell.Models.ISamlInternal)this).UserGroups = (System.Collections.Generic.List<Commvault.Powershell.Models.ICompanyWithUserGroupAssocDetails>) content.GetValueForProperty("UserGroups",((Commvault.Powershell.Models.ISamlInternal)this).UserGroups, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.ICompanyWithUserGroupAssocDetails>(__y, Commvault.Powershell.Models.CompanyWithUserGroupAssocDetailsTypeConverter.ConvertFrom)); } if (content.Contains("NameIdAttribute")) { ((Commvault.Powershell.Models.ISamlInternal)this).NameIdAttribute = (string) content.GetValueForProperty("NameIdAttribute",((Commvault.Powershell.Models.ISamlInternal)this).NameIdAttribute, global::System.Convert.ToString); } if (content.Contains("AttributeMappings")) { ((Commvault.Powershell.Models.ISamlInternal)this).AttributeMappings = (System.Collections.Generic.List<Commvault.Powershell.Models.ISamlAttributes>) content.GetValueForProperty("AttributeMappings",((Commvault.Powershell.Models.ISamlInternal)this).AttributeMappings, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.ISamlAttributes>(__y, Commvault.Powershell.Models.SamlAttributesTypeConverter.ConvertFrom)); } if (content.Contains("UserGroupId")) { ((Commvault.Powershell.Models.ISamlInternal)this).UserGroupId = (long?) content.GetValueForProperty("UserGroupId",((Commvault.Powershell.Models.ISamlInternal)this).UserGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("UserGroupName")) { ((Commvault.Powershell.Models.ISamlInternal)this).UserGroupName = (string) content.GetValueForProperty("UserGroupName",((Commvault.Powershell.Models.ISamlInternal)this).UserGroupName, global::System.Convert.ToString); } if (content.Contains("CreatedForCompanyId")) { ((Commvault.Powershell.Models.ISamlInternal)this).CreatedForCompanyId = (long?) content.GetValueForProperty("CreatedForCompanyId",((Commvault.Powershell.Models.ISamlInternal)this).CreatedForCompanyId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("CreatedForCompanyName")) { ((Commvault.Powershell.Models.ISamlInternal)this).CreatedForCompanyName = (string) content.GetValueForProperty("CreatedForCompanyName",((Commvault.Powershell.Models.ISamlInternal)this).CreatedForCompanyName, global::System.Convert.ToString); } if (content.Contains("IdentityProviderMetaDataEntityId")) { ((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaDataEntityId = (string) content.GetValueForProperty("IdentityProviderMetaDataEntityId",((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaDataEntityId, global::System.Convert.ToString); } if (content.Contains("IdentityProviderMetaDataRedirectUrl")) { ((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaDataRedirectUrl = (string) content.GetValueForProperty("IdentityProviderMetaDataRedirectUrl",((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaDataRedirectUrl, global::System.Convert.ToString); } if (content.Contains("IdentityProviderMetaDataLogoutUrl")) { ((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaDataLogoutUrl = (string) content.GetValueForProperty("IdentityProviderMetaDataLogoutUrl",((Commvault.Powershell.Models.ISamlInternal)this).IdentityProviderMetaDataLogoutUrl, global::System.Convert.ToString); } if (content.Contains("ServiceProviderMetaDataEntityId")) { ((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaDataEntityId = (string) content.GetValueForProperty("ServiceProviderMetaDataEntityId",((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaDataEntityId, global::System.Convert.ToString); } if (content.Contains("ServiceProviderMetaDataSingleSignOnUrl")) { ((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaDataSingleSignOnUrl = (string) content.GetValueForProperty("ServiceProviderMetaDataSingleSignOnUrl",((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaDataSingleSignOnUrl, global::System.Convert.ToString); } if (content.Contains("ServiceProviderMetaDataSingleLogoutUrl")) { ((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaDataSingleLogoutUrl = (string) content.GetValueForProperty("ServiceProviderMetaDataSingleLogoutUrl",((Commvault.Powershell.Models.ISamlInternal)this).ServiceProviderMetaDataSingleLogoutUrl, global::System.Convert.ToString); } if (content.Contains("AssociationEmailSuffixes")) { ((Commvault.Powershell.Models.ISamlInternal)this).AssociationEmailSuffixes = (System.Collections.Generic.List<string>) content.GetValueForProperty("AssociationEmailSuffixes",((Commvault.Powershell.Models.ISamlInternal)this).AssociationEmailSuffixes, __y => TypeConverterExtensions.SelectToList<string>(__y, global::System.Convert.ToString)); } if (content.Contains("AssociationCompanies")) { ((Commvault.Powershell.Models.ISamlInternal)this).AssociationCompanies = (System.Collections.Generic.List<Commvault.Powershell.Models.IIdName>) content.GetValueForProperty("AssociationCompanies",((Commvault.Powershell.Models.ISamlInternal)this).AssociationCompanies, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom)); } if (content.Contains("AssociationDomains")) { ((Commvault.Powershell.Models.ISamlInternal)this).AssociationDomains = (System.Collections.Generic.List<Commvault.Powershell.Models.IIdName>) content.GetValueForProperty("AssociationDomains",((Commvault.Powershell.Models.ISamlInternal)this).AssociationDomains, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom)); } if (content.Contains("AssociationUserGroups")) { ((Commvault.Powershell.Models.ISamlInternal)this).AssociationUserGroups = (System.Collections.Generic.List<Commvault.Powershell.Models.IIdName>) content.GetValueForProperty("AssociationUserGroups",((Commvault.Powershell.Models.ISamlInternal)this).AssociationUserGroups, __y => TypeConverterExtensions.SelectToList<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom)); } 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(); } } /// Get SAML response [System.ComponentModel.TypeConverter(typeof(SamlTypeConverter))] public partial interface ISaml { } } |