generated/api/Models/CommvaultPowerShellIdentity.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; [System.ComponentModel.TypeConverter(typeof(CommvaultPowerShellIdentityTypeConverter))] public partial class CommvaultPowerShellIdentity { /// <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 a new instance of <see cref="Commvault.Powershell.Models.CommvaultPowerShellIdentity" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal CommvaultPowerShellIdentity(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("PlanId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).PlanId = (long?) content.GetValueForProperty("PlanId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).PlanId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BackupDestinationId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BackupDestinationId = (long?) content.GetValueForProperty("BackupDestinationId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BackupDestinationId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RegionList")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RegionList = (string) content.GetValueForProperty("RegionList",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RegionList, global::System.Convert.ToString); } if (content.Contains("RegionId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RegionId = (long?) content.GetValueForProperty("RegionId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RegionId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RecoveryEntityId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RecoveryEntityId = (long?) content.GetValueForProperty("RecoveryEntityId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RecoveryEntityId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RecoveryGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RecoveryGroupId = (long?) content.GetValueForProperty("RecoveryGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RecoveryGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("EntityId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).EntityId = (long?) content.GetValueForProperty("EntityId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).EntityId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("UserId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).UserId = (long?) content.GetValueForProperty("UserId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).UserId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("CompanyId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CompanyId = (long?) content.GetValueForProperty("CompanyId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CompanyId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("UserGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).UserGroupId = (long?) content.GetValueForProperty("UserGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).UserGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("StoragePoolId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).StoragePoolId = (long?) content.GetValueForProperty("StoragePoolId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).StoragePoolId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BackupLocationId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BackupLocationId = (long?) content.GetValueForProperty("BackupLocationId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BackupLocationId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("AccessPathId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AccessPathId = (long?) content.GetValueForProperty("AccessPathId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AccessPathId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ServerGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ServerGroupId = (long?) content.GetValueForProperty("ServerGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ServerGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ServerId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ServerId = (long?) content.GetValueForProperty("ServerId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ServerId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("AgentId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AgentId = (long?) content.GetValueForProperty("AgentId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AgentId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SubclientId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SubclientId = (long?) content.GetValueForProperty("SubclientId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SubclientId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("CloudStorageId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CloudStorageId = (long?) content.GetValueForProperty("CloudStorageId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CloudStorageId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("MetadataCacheId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).MetadataCacheId = (long?) content.GetValueForProperty("MetadataCacheId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).MetadataCacheId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BucketId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BucketId = (long?) content.GetValueForProperty("BucketId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BucketId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("HyperScaleStorageId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).HyperScaleStorageId = (long?) content.GetValueForProperty("HyperScaleStorageId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).HyperScaleStorageId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("NodeId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).NodeId = (long?) content.GetValueForProperty("NodeId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).NodeId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RoleId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RoleId = (long?) content.GetValueForProperty("RoleId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RoleId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("LibraryId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).LibraryId = (long?) content.GetValueForProperty("LibraryId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).LibraryId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SpareGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SpareGroupId = (long?) content.GetValueForProperty("SpareGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SpareGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DriveId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).DriveId = (long?) content.GetValueForProperty("DriveId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).DriveId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InstanceId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).InstanceId = (long?) content.GetValueForProperty("InstanceId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).InstanceId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ReplicationGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ReplicationGroupId = (string) content.GetValueForProperty("ReplicationGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ReplicationGroupId, global::System.Convert.ToString); } if (content.Contains("FailoverGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).FailoverGroupId = (long?) content.GetValueForProperty("FailoverGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).FailoverGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ScheduleId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ScheduleId = (long?) content.GetValueForProperty("ScheduleId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ScheduleId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DrOperation")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).DrOperation = (string) content.GetValueForProperty("DrOperation",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).DrOperation, global::System.Convert.ToString); } if (content.Contains("VMGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VMGroupId = (long?) content.GetValueForProperty("VMGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VMGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("VMGuid")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VMGuid = (string) content.GetValueForProperty("VMGuid",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VMGuid, global::System.Convert.ToString); } if (content.Contains("VMUuid")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VMUuid = (string) content.GetValueForProperty("VMUuid",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VMUuid, global::System.Convert.ToString); } if (content.Contains("MediaAgentId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).MediaAgentId = (long?) content.GetValueForProperty("MediaAgentId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).MediaAgentId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("HypervisorId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).HypervisorId = (long?) content.GetValueForProperty("HypervisorId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).HypervisorId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TopologyId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).TopologyId = (string) content.GetValueForProperty("TopologyId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).TopologyId, global::System.Convert.ToString); } if (content.Contains("RuleId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RuleId = (long?) content.GetValueForProperty("RuleId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RuleId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("EntityType")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).EntityType = (string) content.GetValueForProperty("EntityType",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).EntityType, global::System.Convert.ToString); } if (content.Contains("BlackoutWindowId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BlackoutWindowId = (long?) content.GetValueForProperty("BlackoutWindowId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BlackoutWindowId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("HfsShareId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).HfsShareId = (long?) content.GetValueForProperty("HfsShareId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).HfsShareId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ClusterId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ClusterId = (long?) content.GetValueForProperty("ClusterId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ClusterId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ModifierName")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ModifierName = (string) content.GetValueForProperty("ModifierName",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ModifierName, global::System.Convert.ToString); } if (content.Contains("AlertRuleId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AlertRuleId = (long?) content.GetValueForProperty("AlertRuleId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AlertRuleId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("GlobalSearchEntity")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).GlobalSearchEntity = (string) content.GetValueForProperty("GlobalSearchEntity",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).GlobalSearchEntity, global::System.Convert.ToString); } if (content.Contains("RpsId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RpsId = (string) content.GetValueForProperty("RpsId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RpsId, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).Name = (string) content.GetValueForProperty("Name",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("CredentialName")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CredentialName = (string) content.GetValueForProperty("CredentialName",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CredentialName, global::System.Convert.ToString); } if (content.Contains("CredentialId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CredentialId = (string) content.GetValueForProperty("CredentialId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CredentialId, global::System.Convert.ToString); } if (content.Contains("RecoveryTargetId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RecoveryTargetId = (long?) content.GetValueForProperty("RecoveryTargetId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RecoveryTargetId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DomainId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).DomainId = (long?) content.GetValueForProperty("DomainId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).DomainId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RequestId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RequestId = (long?) content.GetValueForProperty("RequestId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RequestId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("KmsId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).KmsId = (long?) content.GetValueForProperty("KmsId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).KmsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("PairId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).PairId = (long?) content.GetValueForProperty("PairId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).PairId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ReplicationPairId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ReplicationPairId = (long?) content.GetValueForProperty("ReplicationPairId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ReplicationPairId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("Id")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).Id = (long?) content.GetValueForProperty("Id",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SchedulePolicyId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SchedulePolicyId = (long?) content.GetValueForProperty("SchedulePolicyId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SchedulePolicyId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InventoryId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).InventoryId = (long?) content.GetValueForProperty("InventoryId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).InventoryId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("IndexServerClientId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).IndexServerClientId = (long?) content.GetValueForProperty("IndexServerClientId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).IndexServerClientId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("AssetId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AssetId = (string) content.GetValueForProperty("AssetId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AssetId, global::System.Convert.ToString); } if (content.Contains("TagId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).TagId = (long?) content.GetValueForProperty("TagId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).TagId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArrayId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ArrayId = (long?) content.GetValueForProperty("ArrayId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ArrayId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("JobId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).JobId = (long?) content.GetValueForProperty("JobId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).JobId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("VendorId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VendorId = (long?) content.GetValueForProperty("VendorId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VendorId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ClientId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ClientId = (long?) content.GetValueForProperty("ClientId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ClientId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TagValue")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).TagValue = (string) content.GetValueForProperty("TagValue",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).TagValue, global::System.Convert.ToString); } if (content.Contains("CopyId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CopyId = (long?) content.GetValueForProperty("CopyId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CopyId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("AppId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AppId = (long?) content.GetValueForProperty("AppId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AppId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("NameSpace")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).NameSpace = (string) content.GetValueForProperty("NameSpace",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).NameSpace, global::System.Convert.ToString); } if (content.Contains("ApplicationGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ApplicationGroupId = (long?) content.GetValueForProperty("ApplicationGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ApplicationGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("AppGuid")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AppGuid = (string) content.GetValueForProperty("AppGuid",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AppGuid, global::System.Convert.ToString); } if (content.Contains("BackupDestionationId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BackupDestionationId = (long?) content.GetValueForProperty("BackupDestionationId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BackupDestionationId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("CloneId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CloneId = (long?) content.GetValueForProperty("CloneId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CloneId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SnapEngineId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SnapEngineId = (long?) content.GetValueForProperty("SnapEngineId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SnapEngineId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } AfterDeserializeDictionary(content); } /// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Commvault.Powershell.Models.CommvaultPowerShellIdentity" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal CommvaultPowerShellIdentity(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("PlanId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).PlanId = (long?) content.GetValueForProperty("PlanId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).PlanId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BackupDestinationId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BackupDestinationId = (long?) content.GetValueForProperty("BackupDestinationId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BackupDestinationId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RegionList")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RegionList = (string) content.GetValueForProperty("RegionList",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RegionList, global::System.Convert.ToString); } if (content.Contains("RegionId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RegionId = (long?) content.GetValueForProperty("RegionId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RegionId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RecoveryEntityId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RecoveryEntityId = (long?) content.GetValueForProperty("RecoveryEntityId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RecoveryEntityId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RecoveryGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RecoveryGroupId = (long?) content.GetValueForProperty("RecoveryGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RecoveryGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("EntityId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).EntityId = (long?) content.GetValueForProperty("EntityId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).EntityId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("UserId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).UserId = (long?) content.GetValueForProperty("UserId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).UserId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("CompanyId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CompanyId = (long?) content.GetValueForProperty("CompanyId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CompanyId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("UserGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).UserGroupId = (long?) content.GetValueForProperty("UserGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).UserGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("StoragePoolId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).StoragePoolId = (long?) content.GetValueForProperty("StoragePoolId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).StoragePoolId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BackupLocationId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BackupLocationId = (long?) content.GetValueForProperty("BackupLocationId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BackupLocationId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("AccessPathId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AccessPathId = (long?) content.GetValueForProperty("AccessPathId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AccessPathId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ServerGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ServerGroupId = (long?) content.GetValueForProperty("ServerGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ServerGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ServerId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ServerId = (long?) content.GetValueForProperty("ServerId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ServerId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("AgentId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AgentId = (long?) content.GetValueForProperty("AgentId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AgentId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SubclientId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SubclientId = (long?) content.GetValueForProperty("SubclientId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SubclientId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("CloudStorageId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CloudStorageId = (long?) content.GetValueForProperty("CloudStorageId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CloudStorageId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("MetadataCacheId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).MetadataCacheId = (long?) content.GetValueForProperty("MetadataCacheId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).MetadataCacheId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BucketId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BucketId = (long?) content.GetValueForProperty("BucketId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BucketId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("HyperScaleStorageId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).HyperScaleStorageId = (long?) content.GetValueForProperty("HyperScaleStorageId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).HyperScaleStorageId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("NodeId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).NodeId = (long?) content.GetValueForProperty("NodeId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).NodeId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RoleId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RoleId = (long?) content.GetValueForProperty("RoleId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RoleId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("LibraryId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).LibraryId = (long?) content.GetValueForProperty("LibraryId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).LibraryId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SpareGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SpareGroupId = (long?) content.GetValueForProperty("SpareGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SpareGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DriveId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).DriveId = (long?) content.GetValueForProperty("DriveId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).DriveId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InstanceId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).InstanceId = (long?) content.GetValueForProperty("InstanceId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).InstanceId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ReplicationGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ReplicationGroupId = (string) content.GetValueForProperty("ReplicationGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ReplicationGroupId, global::System.Convert.ToString); } if (content.Contains("FailoverGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).FailoverGroupId = (long?) content.GetValueForProperty("FailoverGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).FailoverGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ScheduleId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ScheduleId = (long?) content.GetValueForProperty("ScheduleId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ScheduleId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DrOperation")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).DrOperation = (string) content.GetValueForProperty("DrOperation",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).DrOperation, global::System.Convert.ToString); } if (content.Contains("VMGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VMGroupId = (long?) content.GetValueForProperty("VMGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VMGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("VMGuid")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VMGuid = (string) content.GetValueForProperty("VMGuid",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VMGuid, global::System.Convert.ToString); } if (content.Contains("VMUuid")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VMUuid = (string) content.GetValueForProperty("VMUuid",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VMUuid, global::System.Convert.ToString); } if (content.Contains("MediaAgentId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).MediaAgentId = (long?) content.GetValueForProperty("MediaAgentId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).MediaAgentId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("HypervisorId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).HypervisorId = (long?) content.GetValueForProperty("HypervisorId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).HypervisorId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TopologyId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).TopologyId = (string) content.GetValueForProperty("TopologyId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).TopologyId, global::System.Convert.ToString); } if (content.Contains("RuleId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RuleId = (long?) content.GetValueForProperty("RuleId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RuleId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("EntityType")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).EntityType = (string) content.GetValueForProperty("EntityType",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).EntityType, global::System.Convert.ToString); } if (content.Contains("BlackoutWindowId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BlackoutWindowId = (long?) content.GetValueForProperty("BlackoutWindowId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BlackoutWindowId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("HfsShareId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).HfsShareId = (long?) content.GetValueForProperty("HfsShareId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).HfsShareId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ClusterId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ClusterId = (long?) content.GetValueForProperty("ClusterId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ClusterId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ModifierName")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ModifierName = (string) content.GetValueForProperty("ModifierName",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ModifierName, global::System.Convert.ToString); } if (content.Contains("AlertRuleId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AlertRuleId = (long?) content.GetValueForProperty("AlertRuleId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AlertRuleId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("GlobalSearchEntity")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).GlobalSearchEntity = (string) content.GetValueForProperty("GlobalSearchEntity",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).GlobalSearchEntity, global::System.Convert.ToString); } if (content.Contains("RpsId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RpsId = (string) content.GetValueForProperty("RpsId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RpsId, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).Name = (string) content.GetValueForProperty("Name",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("CredentialName")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CredentialName = (string) content.GetValueForProperty("CredentialName",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CredentialName, global::System.Convert.ToString); } if (content.Contains("CredentialId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CredentialId = (string) content.GetValueForProperty("CredentialId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CredentialId, global::System.Convert.ToString); } if (content.Contains("RecoveryTargetId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RecoveryTargetId = (long?) content.GetValueForProperty("RecoveryTargetId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RecoveryTargetId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DomainId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).DomainId = (long?) content.GetValueForProperty("DomainId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).DomainId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RequestId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RequestId = (long?) content.GetValueForProperty("RequestId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).RequestId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("KmsId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).KmsId = (long?) content.GetValueForProperty("KmsId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).KmsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("PairId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).PairId = (long?) content.GetValueForProperty("PairId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).PairId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ReplicationPairId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ReplicationPairId = (long?) content.GetValueForProperty("ReplicationPairId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ReplicationPairId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("Id")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).Id = (long?) content.GetValueForProperty("Id",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SchedulePolicyId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SchedulePolicyId = (long?) content.GetValueForProperty("SchedulePolicyId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SchedulePolicyId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InventoryId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).InventoryId = (long?) content.GetValueForProperty("InventoryId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).InventoryId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("IndexServerClientId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).IndexServerClientId = (long?) content.GetValueForProperty("IndexServerClientId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).IndexServerClientId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("AssetId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AssetId = (string) content.GetValueForProperty("AssetId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AssetId, global::System.Convert.ToString); } if (content.Contains("TagId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).TagId = (long?) content.GetValueForProperty("TagId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).TagId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ArrayId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ArrayId = (long?) content.GetValueForProperty("ArrayId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ArrayId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("JobId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).JobId = (long?) content.GetValueForProperty("JobId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).JobId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("VendorId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VendorId = (long?) content.GetValueForProperty("VendorId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).VendorId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ClientId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ClientId = (long?) content.GetValueForProperty("ClientId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ClientId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TagValue")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).TagValue = (string) content.GetValueForProperty("TagValue",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).TagValue, global::System.Convert.ToString); } if (content.Contains("CopyId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CopyId = (long?) content.GetValueForProperty("CopyId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CopyId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("AppId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AppId = (long?) content.GetValueForProperty("AppId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AppId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("NameSpace")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).NameSpace = (string) content.GetValueForProperty("NameSpace",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).NameSpace, global::System.Convert.ToString); } if (content.Contains("ApplicationGroupId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ApplicationGroupId = (long?) content.GetValueForProperty("ApplicationGroupId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).ApplicationGroupId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("AppGuid")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AppGuid = (string) content.GetValueForProperty("AppGuid",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).AppGuid, global::System.Convert.ToString); } if (content.Contains("BackupDestionationId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BackupDestionationId = (long?) content.GetValueForProperty("BackupDestionationId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).BackupDestionationId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("CloneId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CloneId = (long?) content.GetValueForProperty("CloneId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).CloneId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SnapEngineId")) { ((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SnapEngineId = (long?) content.GetValueForProperty("SnapEngineId",((Commvault.Powershell.Models.ICommvaultPowerShellIdentityInternal)this).SnapEngineId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } AfterDeserializePSObject(content); } /// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into an instance of <see cref="Commvault.Powershell.Models.CommvaultPowerShellIdentity" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> /// <returns> /// an instance of <see cref="Commvault.Powershell.Models.ICommvaultPowerShellIdentity" />. /// </returns> public static Commvault.Powershell.Models.ICommvaultPowerShellIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CommvaultPowerShellIdentity(content); } /// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into an instance of <see cref="Commvault.Powershell.Models.CommvaultPowerShellIdentity" /// />. /// </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.ICommvaultPowerShellIdentity" />. /// </returns> public static Commvault.Powershell.Models.ICommvaultPowerShellIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CommvaultPowerShellIdentity(content); } /// <summary> /// Creates a new instance of <see cref="CommvaultPowerShellIdentity" />, 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="CommvaultPowerShellIdentity" /> model class.</returns> public static Commvault.Powershell.Models.ICommvaultPowerShellIdentity FromJsonString(string jsonText) => FromJson(Commvault.Powershell.Runtime.Json.JsonNode.Parse(jsonText)); /// <summary>Serializes this instance to a json string.</summary> /// <returns>a <see cref="System.String" /> containing this model serialized to JSON text.</returns> public string ToJsonString() => ToJson(null, Commvault.Powershell.Runtime.SerializationMode.IncludeAll)?.ToString(); public override string ToString() { var returnNow = false; var result = global::System.String.Empty; OverrideToString(ref result, ref returnNow); if (returnNow) { return result; } return ToJsonString(); } } [System.ComponentModel.TypeConverter(typeof(CommvaultPowerShellIdentityTypeConverter))] public partial interface ICommvaultPowerShellIdentity { } } |