generated/api/Models/UpdatevmGroupReq.PowerShell.cs

// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.8.4, generator: @autorest/powershell@3.0.415)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Commvault.Powershell.Models
{
    using Commvault.Powershell.Runtime.PowerShell;

    /// <summary>UpdatevmGroupReq</summary>
    [System.ComponentModel.TypeConverter(typeof(UpdatevmGroupReqTypeConverter))]
    public partial class UpdatevmGroupReq
    {

        /// <summary>
        /// <c>AfterDeserializeDictionary</c> will be called after the deserialization has finished, allowing customization of the
        /// object before it is returned. Implement this method in a partial class to enable this behavior
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>

        partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);

        /// <summary>
        /// <c>AfterDeserializePSObject</c> will be called after the deserialization has finished, allowing customization of the object
        /// before it is returned. Implement this method in a partial class to enable this behavior
        /// </summary>
        /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param>

        partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);

        /// <summary>
        /// <c>BeforeDeserializeDictionary</c> will be called before the deserialization has commenced, allowing complete customization
        /// of the object before it is deserialized.
        /// If you wish to disable the default deserialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
        /// Implement this method in a partial class to enable this behavior.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        /// <param name="returnNow">Determines if the rest of the serialization should be processed, or if the method should return
        /// instantly.</param>

        partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);

        /// <summary>
        /// <c>BeforeDeserializePSObject</c> will be called before the deserialization has commenced, allowing complete customization
        /// of the object before it is deserialized.
        /// If you wish to disable the default deserialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
        /// Implement this method in a partial class to enable this behavior.
        /// </summary>
        /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param>
        /// <param name="returnNow">Determines if the rest of the serialization should be processed, or if the method should return
        /// instantly.</param>

        partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);

        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into an instance of <see cref="Commvault.Powershell.Models.UpdatevmGroupReq"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        /// <returns>an instance of <see cref="Commvault.Powershell.Models.IUpdatevmGroupReq" />.</returns>
        public static Commvault.Powershell.Models.IUpdatevmGroupReq DeserializeFromDictionary(global::System.Collections.IDictionary content)
        {
            return new UpdatevmGroupReq(content);
        }

        /// <summary>
        /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into an instance of <see cref="Commvault.Powershell.Models.UpdatevmGroupReq"
        /// />.
        /// </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.IUpdatevmGroupReq" />.</returns>
        public static Commvault.Powershell.Models.IUpdatevmGroupReq DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
        {
            return new UpdatevmGroupReq(content);
        }

        /// <summary>
        /// Creates a new instance of <see cref="UpdatevmGroupReq" />, deserializing the content from a json string.
        /// </summary>
        /// <param name="jsonText">a string containing a JSON serialized instance of this model.</param>
        /// <returns>an instance of the <see cref="className" /> model class.</returns>
        public static Commvault.Powershell.Models.IUpdatevmGroupReq 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();

        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Commvault.Powershell.Models.UpdatevmGroupReq"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal UpdatevmGroupReq(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;
            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Content = (Commvault.Powershell.Models.IVMContent) content.GetValueForProperty("Content",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Content, Commvault.Powershell.Models.VMContentTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Plan = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("Plan",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Plan, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Storage = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("Storage",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Storage, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Filters = (Commvault.Powershell.Models.IVMContent) content.GetValueForProperty("Filters",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Filters, Commvault.Powershell.Models.VMContentTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Settings = (Commvault.Powershell.Models.IVMGroupSettings) content.GetValueForProperty("Settings",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Settings, Commvault.Powershell.Models.VMGroupSettingsTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagement = (Commvault.Powershell.Models.ISnapCopyInfo) content.GetValueForProperty("SnapshotManagement",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagement, Commvault.Powershell.Models.SnapCopyInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControl = (Commvault.Powershell.Models.IActivityControlOptions) content.GetValueForProperty("ActivityControl",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControl, Commvault.Powershell.Models.ActivityControlOptionsTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).NewName = (string) content.GetValueForProperty("NewName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).NewName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).DiskFilters = (Commvault.Powershell.Models.IVMDiskFilter[]) content.GetValueForProperty("DiskFilters",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).DiskFilters, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IVMDiskFilter>(__y, Commvault.Powershell.Models.VMDiskFilterTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SecurityAssociations = (Commvault.Powershell.Models.ISecurityAssoc[]) content.GetValueForProperty("SecurityAssociations",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SecurityAssociations, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.ISecurityAssoc>(__y, Commvault.Powershell.Models.SecurityAssocTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).EnableFileIndexing = (bool?) content.GetValueForProperty("EnableFileIndexing",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).EnableFileIndexing, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).AccessNode = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("AccessNode",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).AccessNode, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ApplicationValidation = (Commvault.Powershell.Models.IVMAppValidation) content.GetValueForProperty("ApplicationValidation",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ApplicationValidation, Commvault.Powershell.Models.VMAppValidationTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingTransportMode = (string) content.GetValueForProperty("SettingTransportMode",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingTransportMode, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ContentOverwrite = (bool?) content.GetValueForProperty("ContentOverwrite",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ContentOverwrite, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ContentVirtualMachines = (Commvault.Powershell.Models.IVirtualMachinecontent[]) content.GetValueForProperty("ContentVirtualMachines",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ContentVirtualMachines, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IVirtualMachinecontent>(__y, Commvault.Powershell.Models.VirtualMachinecontentTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ContentRuleGroups = (Commvault.Powershell.Models.IRuleGroupContent[]) content.GetValueForProperty("ContentRuleGroups",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ContentRuleGroups, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IRuleGroupContent>(__y, Commvault.Powershell.Models.RuleGroupContentTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).PlanId = (long?) content.GetValueForProperty("PlanId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).PlanId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).PlanName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).StorageId = (long?) content.GetValueForProperty("StorageId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).StorageId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).StorageName = (string) content.GetValueForProperty("StorageName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).StorageName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).FilterOverwrite = (bool?) content.GetValueForProperty("FilterOverwrite",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).FilterOverwrite, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).FilterVirtualMachines = (Commvault.Powershell.Models.IVirtualMachinecontent[]) content.GetValueForProperty("FilterVirtualMachines",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).FilterVirtualMachines, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IVirtualMachinecontent>(__y, Commvault.Powershell.Models.VirtualMachinecontentTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).FilterRuleGroups = (Commvault.Powershell.Models.IRuleGroupContent[]) content.GetValueForProperty("FilterRuleGroups",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).FilterRuleGroups, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IRuleGroupContent>(__y, Commvault.Powershell.Models.RuleGroupContentTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingGuestCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("SettingGuestCredentials",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingGuestCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingUseChangedBlockTrackingOnVM = (bool?) content.GetValueForProperty("SettingUseChangedBlockTrackingOnVM",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingUseChangedBlockTrackingOnVM, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingCustomSnapshotResourceGroup = (string) content.GetValueForProperty("SettingCustomSnapshotResourceGroup",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingCustomSnapshotResourceGroup, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingAutoDetectVMOwner = (bool?) content.GetValueForProperty("SettingAutoDetectVMOwner",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingAutoDetectVMOwner, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingNoOfReaders = (long?) content.GetValueForProperty("SettingNoOfReaders",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingNoOfReaders, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingIsApplicationAware = (bool?) content.GetValueForProperty("SettingIsApplicationAware",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingIsApplicationAware, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingVMBackupType = (string) content.GetValueForProperty("SettingVMBackupType",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingVMBackupType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingUseVMCheckpointSetting = (bool?) content.GetValueForProperty("SettingUseVMCheckpointSetting",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingUseVMCheckpointSetting, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingDatastoreFreespaceCheck = (bool?) content.GetValueForProperty("SettingDatastoreFreespaceCheck",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingDatastoreFreespaceCheck, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingDatastoreFreespaceRequired = (long?) content.GetValueForProperty("SettingDatastoreFreespaceRequired",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingDatastoreFreespaceRequired, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingCollectFileDetailsforGranularRecovery = (bool?) content.GetValueForProperty("SettingCollectFileDetailsforGranularRecovery",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingCollectFileDetailsforGranularRecovery, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingCollectFileDetailsFromSnapshotCopy = (bool?) content.GetValueForProperty("SettingCollectFileDetailsFromSnapshotCopy",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingCollectFileDetailsFromSnapshotCopy, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingJobStartTime = (long?) content.GetValueForProperty("SettingJobStartTime",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingJobStartTime, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementSnapEngine = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("SnapshotManagementSnapEngine",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementSnapEngine, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementCrossAccountCopyDestinationClient = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("SnapshotManagementCrossAccountCopyDestinationClient",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementCrossAccountCopyDestinationClient, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementSnapMountProxy = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("SnapshotManagementSnapMountProxy",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementSnapMountProxy, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementEnableHardwareSnapshot = (bool?) content.GetValueForProperty("SnapshotManagementEnableHardwareSnapshot",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementEnableHardwareSnapshot, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementSnapMountEsxHost = (string) content.GetValueForProperty("SnapshotManagementSnapMountEsxHost",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementSnapMountEsxHost, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsIndependentDisksEnabled = (bool?) content.GetValueForProperty("SnapshotManagementIsIndependentDisksEnabled",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsIndependentDisksEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsRawDeviceMapsEnabled = (bool?) content.GetValueForProperty("SnapshotManagementIsRawDeviceMapsEnabled",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsRawDeviceMapsEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementUseSeparateProxyForSnapToTape = (bool?) content.GetValueForProperty("SnapshotManagementUseSeparateProxyForSnapToTape",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementUseSeparateProxyForSnapToTape, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsCrossAccountEnabled = (bool?) content.GetValueForProperty("SnapshotManagementIsCrossAccountEnabled",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsCrossAccountEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsCrossAccountCopyEnabled = (bool?) content.GetValueForProperty("SnapshotManagementIsCrossAccountCopyEnabled",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsCrossAccountCopyEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementVMApplicationUserName = (string) content.GetValueForProperty("SnapshotManagementVMApplicationUserName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementVMApplicationUserName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementBackupCopyInterface = (string) content.GetValueForProperty("SnapshotManagementBackupCopyInterface",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementBackupCopyInterface, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlBackupActivityControlOptions = (Commvault.Powershell.Models.IBackupActivityControlOptionsProp) content.GetValueForProperty("ActivityControlBackupActivityControlOptions",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlBackupActivityControlOptions, Commvault.Powershell.Models.BackupActivityControlOptionsPropTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlRestoreActivityControlOptions = (Commvault.Powershell.Models.IBackupActivityControlOptionsProp) content.GetValueForProperty("ActivityControlRestoreActivityControlOptions",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlRestoreActivityControlOptions, Commvault.Powershell.Models.BackupActivityControlOptionsPropTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlEnableBackup = (bool?) content.GetValueForProperty("ActivityControlEnableBackup",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlEnableBackup, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlEnableRestore = (bool?) content.GetValueForProperty("ActivityControlEnableRestore",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlEnableRestore, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).GuestCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("GuestCredentialsSavedCredentials",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).GuestCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).GuestCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("GuestCredentials",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).GuestCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapEngineId = (long?) content.GetValueForProperty("SnapEngineId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapEngineId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapEngineName = (string) content.GetValueForProperty("SnapEngineName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapEngineName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CrossAccountCopyDestinationClientId = (long?) content.GetValueForProperty("CrossAccountCopyDestinationClientId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CrossAccountCopyDestinationClientId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CrossAccountCopyDestinationClientName = (string) content.GetValueForProperty("CrossAccountCopyDestinationClientName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CrossAccountCopyDestinationClientName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapMountProxyId = (long?) content.GetValueForProperty("SnapMountProxyId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapMountProxyId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapMountProxyName = (string) content.GetValueForProperty("SnapMountProxyName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapMountProxyName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionTimeZone = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("BackupActivityControlOptionTimeZone",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionTimeZone, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionEnableAfterDelay = (bool?) content.GetValueForProperty("BackupActivityControlOptionEnableAfterDelay",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionEnableAfterDelay, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionDelayTime = (string) content.GetValueForProperty("BackupActivityControlOptionDelayTime",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionDelayTime, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionTimeZone = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("RestoreActivityControlOptionTimeZone",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionTimeZone, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionEnableAfterDelay = (bool?) content.GetValueForProperty("RestoreActivityControlOptionEnableAfterDelay",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionEnableAfterDelay, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionDelayTime = (string) content.GetValueForProperty("RestoreActivityControlOptionDelayTime",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionDelayTime, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SavedCredentialsId = (long?) content.GetValueForProperty("SavedCredentialsId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SavedCredentialsName = (string) content.GetValueForProperty("SavedCredentialsName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CredentialsName = (string) content.GetValueForProperty("CredentialsName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CredentialsPassword = (string) content.GetValueForProperty("CredentialsPassword",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionsTimeZoneId = (long?) content.GetValueForProperty("BackupActivityControlOptionsTimeZoneId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionsTimeZoneId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionsTimeZoneName = (string) content.GetValueForProperty("BackupActivityControlOptionsTimeZoneName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionsTimeZoneName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionsTimeZoneId = (long?) content.GetValueForProperty("RestoreActivityControlOptionsTimeZoneId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionsTimeZoneId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionsTimeZoneName = (string) content.GetValueForProperty("RestoreActivityControlOptionsTimeZoneName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionsTimeZoneName, 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.UpdatevmGroupReq"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param>
        internal UpdatevmGroupReq(global::System.Management.Automation.PSObject content)
        {
            bool returnNow = false;
            BeforeDeserializePSObject(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Content = (Commvault.Powershell.Models.IVMContent) content.GetValueForProperty("Content",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Content, Commvault.Powershell.Models.VMContentTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Plan = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("Plan",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Plan, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Storage = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("Storage",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Storage, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Filters = (Commvault.Powershell.Models.IVMContent) content.GetValueForProperty("Filters",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Filters, Commvault.Powershell.Models.VMContentTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Settings = (Commvault.Powershell.Models.IVMGroupSettings) content.GetValueForProperty("Settings",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).Settings, Commvault.Powershell.Models.VMGroupSettingsTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagement = (Commvault.Powershell.Models.ISnapCopyInfo) content.GetValueForProperty("SnapshotManagement",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagement, Commvault.Powershell.Models.SnapCopyInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControl = (Commvault.Powershell.Models.IActivityControlOptions) content.GetValueForProperty("ActivityControl",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControl, Commvault.Powershell.Models.ActivityControlOptionsTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).NewName = (string) content.GetValueForProperty("NewName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).NewName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).DiskFilters = (Commvault.Powershell.Models.IVMDiskFilter[]) content.GetValueForProperty("DiskFilters",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).DiskFilters, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IVMDiskFilter>(__y, Commvault.Powershell.Models.VMDiskFilterTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SecurityAssociations = (Commvault.Powershell.Models.ISecurityAssoc[]) content.GetValueForProperty("SecurityAssociations",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SecurityAssociations, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.ISecurityAssoc>(__y, Commvault.Powershell.Models.SecurityAssocTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).EnableFileIndexing = (bool?) content.GetValueForProperty("EnableFileIndexing",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).EnableFileIndexing, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).AccessNode = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("AccessNode",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).AccessNode, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ApplicationValidation = (Commvault.Powershell.Models.IVMAppValidation) content.GetValueForProperty("ApplicationValidation",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ApplicationValidation, Commvault.Powershell.Models.VMAppValidationTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingTransportMode = (string) content.GetValueForProperty("SettingTransportMode",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingTransportMode, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ContentOverwrite = (bool?) content.GetValueForProperty("ContentOverwrite",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ContentOverwrite, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ContentVirtualMachines = (Commvault.Powershell.Models.IVirtualMachinecontent[]) content.GetValueForProperty("ContentVirtualMachines",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ContentVirtualMachines, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IVirtualMachinecontent>(__y, Commvault.Powershell.Models.VirtualMachinecontentTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ContentRuleGroups = (Commvault.Powershell.Models.IRuleGroupContent[]) content.GetValueForProperty("ContentRuleGroups",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ContentRuleGroups, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IRuleGroupContent>(__y, Commvault.Powershell.Models.RuleGroupContentTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).PlanId = (long?) content.GetValueForProperty("PlanId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).PlanId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).PlanName = (string) content.GetValueForProperty("PlanName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).PlanName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).StorageId = (long?) content.GetValueForProperty("StorageId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).StorageId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).StorageName = (string) content.GetValueForProperty("StorageName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).StorageName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).FilterOverwrite = (bool?) content.GetValueForProperty("FilterOverwrite",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).FilterOverwrite, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).FilterVirtualMachines = (Commvault.Powershell.Models.IVirtualMachinecontent[]) content.GetValueForProperty("FilterVirtualMachines",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).FilterVirtualMachines, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IVirtualMachinecontent>(__y, Commvault.Powershell.Models.VirtualMachinecontentTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).FilterRuleGroups = (Commvault.Powershell.Models.IRuleGroupContent[]) content.GetValueForProperty("FilterRuleGroups",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).FilterRuleGroups, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IRuleGroupContent>(__y, Commvault.Powershell.Models.RuleGroupContentTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingGuestCredentials = (Commvault.Powershell.Models.IGuestCredentialInfo) content.GetValueForProperty("SettingGuestCredentials",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingGuestCredentials, Commvault.Powershell.Models.GuestCredentialInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingUseChangedBlockTrackingOnVM = (bool?) content.GetValueForProperty("SettingUseChangedBlockTrackingOnVM",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingUseChangedBlockTrackingOnVM, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingCustomSnapshotResourceGroup = (string) content.GetValueForProperty("SettingCustomSnapshotResourceGroup",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingCustomSnapshotResourceGroup, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingAutoDetectVMOwner = (bool?) content.GetValueForProperty("SettingAutoDetectVMOwner",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingAutoDetectVMOwner, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingNoOfReaders = (long?) content.GetValueForProperty("SettingNoOfReaders",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingNoOfReaders, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingIsApplicationAware = (bool?) content.GetValueForProperty("SettingIsApplicationAware",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingIsApplicationAware, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingVMBackupType = (string) content.GetValueForProperty("SettingVMBackupType",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingVMBackupType, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingUseVMCheckpointSetting = (bool?) content.GetValueForProperty("SettingUseVMCheckpointSetting",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingUseVMCheckpointSetting, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingDatastoreFreespaceCheck = (bool?) content.GetValueForProperty("SettingDatastoreFreespaceCheck",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingDatastoreFreespaceCheck, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingDatastoreFreespaceRequired = (long?) content.GetValueForProperty("SettingDatastoreFreespaceRequired",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingDatastoreFreespaceRequired, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingCollectFileDetailsforGranularRecovery = (bool?) content.GetValueForProperty("SettingCollectFileDetailsforGranularRecovery",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingCollectFileDetailsforGranularRecovery, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingCollectFileDetailsFromSnapshotCopy = (bool?) content.GetValueForProperty("SettingCollectFileDetailsFromSnapshotCopy",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingCollectFileDetailsFromSnapshotCopy, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingJobStartTime = (long?) content.GetValueForProperty("SettingJobStartTime",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SettingJobStartTime, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementSnapEngine = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("SnapshotManagementSnapEngine",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementSnapEngine, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementCrossAccountCopyDestinationClient = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("SnapshotManagementCrossAccountCopyDestinationClient",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementCrossAccountCopyDestinationClient, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementSnapMountProxy = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("SnapshotManagementSnapMountProxy",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementSnapMountProxy, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementEnableHardwareSnapshot = (bool?) content.GetValueForProperty("SnapshotManagementEnableHardwareSnapshot",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementEnableHardwareSnapshot, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementSnapMountEsxHost = (string) content.GetValueForProperty("SnapshotManagementSnapMountEsxHost",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementSnapMountEsxHost, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsIndependentDisksEnabled = (bool?) content.GetValueForProperty("SnapshotManagementIsIndependentDisksEnabled",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsIndependentDisksEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsRawDeviceMapsEnabled = (bool?) content.GetValueForProperty("SnapshotManagementIsRawDeviceMapsEnabled",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsRawDeviceMapsEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementUseSeparateProxyForSnapToTape = (bool?) content.GetValueForProperty("SnapshotManagementUseSeparateProxyForSnapToTape",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementUseSeparateProxyForSnapToTape, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsCrossAccountEnabled = (bool?) content.GetValueForProperty("SnapshotManagementIsCrossAccountEnabled",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsCrossAccountEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsCrossAccountCopyEnabled = (bool?) content.GetValueForProperty("SnapshotManagementIsCrossAccountCopyEnabled",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementIsCrossAccountCopyEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementVMApplicationUserName = (string) content.GetValueForProperty("SnapshotManagementVMApplicationUserName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementVMApplicationUserName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementBackupCopyInterface = (string) content.GetValueForProperty("SnapshotManagementBackupCopyInterface",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapshotManagementBackupCopyInterface, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlBackupActivityControlOptions = (Commvault.Powershell.Models.IBackupActivityControlOptionsProp) content.GetValueForProperty("ActivityControlBackupActivityControlOptions",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlBackupActivityControlOptions, Commvault.Powershell.Models.BackupActivityControlOptionsPropTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlRestoreActivityControlOptions = (Commvault.Powershell.Models.IBackupActivityControlOptionsProp) content.GetValueForProperty("ActivityControlRestoreActivityControlOptions",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlRestoreActivityControlOptions, Commvault.Powershell.Models.BackupActivityControlOptionsPropTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlEnableBackup = (bool?) content.GetValueForProperty("ActivityControlEnableBackup",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlEnableBackup, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlEnableRestore = (bool?) content.GetValueForProperty("ActivityControlEnableRestore",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).ActivityControlEnableRestore, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).GuestCredentialsSavedCredentials = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("GuestCredentialsSavedCredentials",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).GuestCredentialsSavedCredentials, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).GuestCredentials = (Commvault.Powershell.Models.IUserNamePassword) content.GetValueForProperty("GuestCredentials",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).GuestCredentials, Commvault.Powershell.Models.UserNamePasswordTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapEngineId = (long?) content.GetValueForProperty("SnapEngineId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapEngineId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapEngineName = (string) content.GetValueForProperty("SnapEngineName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapEngineName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CrossAccountCopyDestinationClientId = (long?) content.GetValueForProperty("CrossAccountCopyDestinationClientId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CrossAccountCopyDestinationClientId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CrossAccountCopyDestinationClientName = (string) content.GetValueForProperty("CrossAccountCopyDestinationClientName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CrossAccountCopyDestinationClientName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapMountProxyId = (long?) content.GetValueForProperty("SnapMountProxyId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapMountProxyId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapMountProxyName = (string) content.GetValueForProperty("SnapMountProxyName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SnapMountProxyName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionTimeZone = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("BackupActivityControlOptionTimeZone",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionTimeZone, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionEnableAfterDelay = (bool?) content.GetValueForProperty("BackupActivityControlOptionEnableAfterDelay",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionEnableAfterDelay, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionDelayTime = (string) content.GetValueForProperty("BackupActivityControlOptionDelayTime",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionDelayTime, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionTimeZone = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("RestoreActivityControlOptionTimeZone",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionTimeZone, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionEnableAfterDelay = (bool?) content.GetValueForProperty("RestoreActivityControlOptionEnableAfterDelay",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionEnableAfterDelay, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionDelayTime = (string) content.GetValueForProperty("RestoreActivityControlOptionDelayTime",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionDelayTime, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SavedCredentialsId = (long?) content.GetValueForProperty("SavedCredentialsId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SavedCredentialsId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SavedCredentialsName = (string) content.GetValueForProperty("SavedCredentialsName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).SavedCredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CredentialsName = (string) content.GetValueForProperty("CredentialsName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CredentialsName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CredentialsPassword = (string) content.GetValueForProperty("CredentialsPassword",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).CredentialsPassword, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionsTimeZoneId = (long?) content.GetValueForProperty("BackupActivityControlOptionsTimeZoneId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionsTimeZoneId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionsTimeZoneName = (string) content.GetValueForProperty("BackupActivityControlOptionsTimeZoneName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).BackupActivityControlOptionsTimeZoneName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionsTimeZoneId = (long?) content.GetValueForProperty("RestoreActivityControlOptionsTimeZoneId",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionsTimeZoneId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionsTimeZoneName = (string) content.GetValueForProperty("RestoreActivityControlOptionsTimeZoneName",((Commvault.Powershell.Models.IUpdatevmGroupReqInternal)this).RestoreActivityControlOptionsTimeZoneName, global::System.Convert.ToString);
            AfterDeserializePSObject(content);
        }
    }
    /// UpdatevmGroupReq
    [System.ComponentModel.TypeConverter(typeof(UpdatevmGroupReqTypeConverter))]
    public partial interface IUpdatevmGroupReq

    {

    }
}