/// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.PlannedFailoverInput"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal PlannedFailoverInput(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IPlannedFailoverInputInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IPlannedFailoverInputProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IPlannedFailoverInputInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.PlannedFailoverInputPropertiesTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IPlannedFailoverInputInternal) this).ProviderSpecificDetail             = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IPlannedFailoverProviderSpecificFailoverInput)content.GetValueForProperty("ProviderSpecificDetail", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IPlannedFailoverInputInternal) this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.PlannedFailoverProviderSpecificFailoverInputTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IPlannedFailoverInputInternal) this).FailoverDirection                  = (string)content.GetValueForProperty("FailoverDirection", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IPlannedFailoverInputInternal) this).FailoverDirection, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IPlannedFailoverInputInternal) this).ProviderSpecificDetailInstanceType = (string)content.GetValueForProperty("ProviderSpecificDetailInstanceType", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IPlannedFailoverInputInternal) this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString);
            AfterDeserializeDictionary(content);
        }
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.EdgeNodeProperties"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal EdgeNodeProperties(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            if (content.Contains("IPAddressGroup"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IEdgeNodePropertiesInternal) this).IPAddressGroup = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IIPAddressGroup[])content.GetValueForProperty("IPAddressGroup", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IEdgeNodePropertiesInternal) this).IPAddressGroup, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IIPAddressGroup>(__y, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IPAddressGroupTypeConverter.ConvertFrom));
            }
            AfterDeserializeDictionary(content);
        }
Esempio n. 3
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.LogFile"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal LogFile(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFileInternal) this).Property         = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFileProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFileInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.LogFilePropertiesTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.IResourceInternal) this).Name                  = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.IResourceInternal) this).Name, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.IResourceInternal) this).Type                  = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.IResourceInternal) this).Type, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.IResourceInternal) this).Id                    = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.IResourceInternal) this).Id, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFileInternal) this).PropertiesType   = (string)content.GetValueForProperty("PropertiesType", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFileInternal) this).PropertiesType, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFileInternal) this).CreatedTime      = (global::System.DateTime?)content.GetValueForProperty("CreatedTime", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFileInternal) this).CreatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
            ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFileInternal) this).LastModifiedTime = (global::System.DateTime?)content.GetValueForProperty("LastModifiedTime", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFileInternal) this).LastModifiedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
            ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFileInternal) this).SizeInKb         = (long?)content.GetValueForProperty("SizeInKb", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFileInternal) this).SizeInKb, (__y) => (long)global::System.Convert.ChangeType(__y, typeof(long)));
            ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFileInternal) this).Url              = (string)content.GetValueForProperty("Url", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFileInternal) this).Url, global::System.Convert.ToString);
            AfterDeserializeDictionary(content);
        }
Esempio n. 4
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.VirtualNetworkRuleProperties"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal VirtualNetworkRuleProperties(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            if (content.Contains("VirtualNetworkSubnetId"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal) this).VirtualNetworkSubnetId = (string)content.GetValueForProperty("VirtualNetworkSubnetId", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal) this).VirtualNetworkSubnetId, global::System.Convert.ToString);
            }
            if (content.Contains("IgnoreMissingVnetServiceEndpoint"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal) this).IgnoreMissingVnetServiceEndpoint = (bool?)content.GetValueForProperty("IgnoreMissingVnetServiceEndpoint", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal) this).IgnoreMissingVnetServiceEndpoint, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("State"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal) this).State = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.VirtualNetworkRuleState?)content.GetValueForProperty("State", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal) this).State, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.VirtualNetworkRuleState.CreateFrom);
            }
            AfterDeserializeDictionary(content);
        }
Esempio n. 5
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.HyperVReplicaPolicyDetails"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal HyperVReplicaPolicyDetails(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).RecoveryPoint = (int?)content.GetValueForProperty("RecoveryPoint", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).RecoveryPoint, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int)));
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).ApplicationConsistentSnapshotFrequencyInHour = (int?)content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).ApplicationConsistentSnapshotFrequencyInHour, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int)));
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).Compression = (string)content.GetValueForProperty("Compression", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).Compression, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).InitialReplicationMethod     = (string)content.GetValueForProperty("InitialReplicationMethod", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).InitialReplicationMethod, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).OnlineReplicationStartTime   = (string)content.GetValueForProperty("OnlineReplicationStartTime", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).OnlineReplicationStartTime, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).OfflineReplicationImportPath = (string)content.GetValueForProperty("OfflineReplicationImportPath", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).OfflineReplicationImportPath, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).OfflineReplicationExportPath = (string)content.GetValueForProperty("OfflineReplicationExportPath", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).OfflineReplicationExportPath, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).ReplicationPort           = (int?)content.GetValueForProperty("ReplicationPort", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).ReplicationPort, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int)));
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).AllowedAuthenticationType = (int?)content.GetValueForProperty("AllowedAuthenticationType", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).AllowedAuthenticationType, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int)));
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).ReplicaDeletionOption     = (string)content.GetValueForProperty("ReplicaDeletionOption", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHyperVReplicaPolicyDetailsInternal) this).ReplicaDeletionOption, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IPolicyProviderSpecificDetailsInternal) this).InstanceType           = (string)content.GetValueForProperty("InstanceType", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IPolicyProviderSpecificDetailsInternal) this).InstanceType, global::System.Convert.ToString);
            AfterDeserializeDictionary(content);
        }
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.HybridComputePrivateLinkScopeListResult"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal HybridComputePrivateLinkScopeListResult(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            if (content.Contains("Value"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.IHybridComputePrivateLinkScopeListResultInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.IHybridComputePrivateLinkScope[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.IHybridComputePrivateLinkScopeListResultInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.IHybridComputePrivateLinkScope>(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.HybridComputePrivateLinkScopeTypeConverter.ConvertFrom));
            }
            if (content.Contains("NextLink"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.IHybridComputePrivateLinkScopeListResultInternal) this).NextLink = (string)content.GetValueForProperty("NextLink", ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.IHybridComputePrivateLinkScopeListResultInternal) this).NextLink, global::System.Convert.ToString);
            }
            AfterDeserializeDictionary(content);
        }
Esempio n. 7
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrateIdentity"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal MigrateIdentity(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).SubscriptionId                   = (string)content.GetValueForProperty("SubscriptionId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).SubscriptionId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ResourceGroupName                = (string)content.GetValueForProperty("ResourceGroupName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ResourceGroupName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).SiteName                         = (string)content.GetValueForProperty("SiteName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).SiteName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ClusterName                      = (string)content.GetValueForProperty("ClusterName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ClusterName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).HostName                         = (string)content.GetValueForProperty("HostName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).HostName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).JobName                          = (string)content.GetValueForProperty("JobName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).JobName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).MachineName                      = (string)content.GetValueForProperty("MachineName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).MachineName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).OperationStatusName              = (string)content.GetValueForProperty("OperationStatusName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).OperationStatusName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).AccountName                      = (string)content.GetValueForProperty("AccountName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).AccountName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).MigrateProjectName               = (string)content.GetValueForProperty("MigrateProjectName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).MigrateProjectName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).VcenterName                      = (string)content.GetValueForProperty("VcenterName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).VcenterName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).DatabaseInstanceName             = (string)content.GetValueForProperty("DatabaseInstanceName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).DatabaseInstanceName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).DatabaseName                     = (string)content.GetValueForProperty("DatabaseName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).DatabaseName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).EventName                        = (string)content.GetValueForProperty("EventName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).EventName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).SolutionName                     = (string)content.GetValueForProperty("SolutionName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).SolutionName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ResourceName                     = (string)content.GetValueForProperty("ResourceName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ResourceName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).AlertSettingName                 = (string)content.GetValueForProperty("AlertSettingName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).AlertSettingName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).FabricName                       = (string)content.GetValueForProperty("FabricName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).FabricName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).LogicalNetworkName               = (string)content.GetValueForProperty("LogicalNetworkName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).LogicalNetworkName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).NetworkName                      = (string)content.GetValueForProperty("NetworkName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).NetworkName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).NetworkMappingName               = (string)content.GetValueForProperty("NetworkMappingName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).NetworkMappingName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ProtectionContainerName          = (string)content.GetValueForProperty("ProtectionContainerName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ProtectionContainerName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).MigrationItemName                = (string)content.GetValueForProperty("MigrationItemName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).MigrationItemName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).MigrationRecoveryPointName       = (string)content.GetValueForProperty("MigrationRecoveryPointName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).MigrationRecoveryPointName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ProtectableItemName              = (string)content.GetValueForProperty("ProtectableItemName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ProtectableItemName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ReplicatedProtectedItemName      = (string)content.GetValueForProperty("ReplicatedProtectedItemName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ReplicatedProtectedItemName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ReplicationProtectedItemName     = (string)content.GetValueForProperty("ReplicationProtectedItemName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ReplicationProtectedItemName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).RecoveryPointName                = (string)content.GetValueForProperty("RecoveryPointName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).RecoveryPointName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).MappingName                      = (string)content.GetValueForProperty("MappingName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).MappingName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ProviderName                     = (string)content.GetValueForProperty("ProviderName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).ProviderName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).StorageClassificationName        = (string)content.GetValueForProperty("StorageClassificationName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).StorageClassificationName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).StorageClassificationMappingName = (string)content.GetValueForProperty("StorageClassificationMappingName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).StorageClassificationMappingName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).PolicyName                       = (string)content.GetValueForProperty("PolicyName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).PolicyName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).RecoveryPlanName                 = (string)content.GetValueForProperty("RecoveryPlanName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).RecoveryPlanName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal) this).Id, global::System.Convert.ToString);
            AfterDeserializeDictionary(content);
        }
Esempio n. 8
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ErrorEntity"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal ErrorEntity(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            if (content.Contains("ExtendedCode"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IErrorEntityInternal) this).ExtendedCode = (string)content.GetValueForProperty("ExtendedCode", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IErrorEntityInternal) this).ExtendedCode, global::System.Convert.ToString);
            }
            if (content.Contains("MessageTemplate"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IErrorEntityInternal) this).MessageTemplate = (string)content.GetValueForProperty("MessageTemplate", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IErrorEntityInternal) this).MessageTemplate, global::System.Convert.ToString);
            }
            if (content.Contains("Parameter"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IErrorEntityInternal) this).Parameter = (string[])content.GetValueForProperty("Parameter", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IErrorEntityInternal) this).Parameter, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString));
            }
            if (content.Contains("InnerError"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IErrorEntityInternal) this).InnerError = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IErrorEntity[])content.GetValueForProperty("InnerError", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IErrorEntityInternal) this).InnerError, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IErrorEntity>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ErrorEntityTypeConverter.ConvertFrom));
            }
            if (content.Contains("Code"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IErrorEntityInternal) this).Code = (string)content.GetValueForProperty("Code", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IErrorEntityInternal) this).Code, global::System.Convert.ToString);
            }
            if (content.Contains("Message"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IErrorEntityInternal) this).Message = (string)content.GetValueForProperty("Message", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IErrorEntityInternal) this).Message, global::System.Convert.ToString);
            }
            AfterDeserializeDictionary(content);
        }
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.StorageEditionCapability"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal StorageEditionCapability(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            if (content.Contains("Name"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IStorageEditionCapabilityInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IStorageEditionCapabilityInternal) this).Name, global::System.Convert.ToString);
            }
            if (content.Contains("SupportedStorageMb"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IStorageEditionCapabilityInternal) this).SupportedStorageMb = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IStorageMbCapability[])content.GetValueForProperty("SupportedStorageMb", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IStorageEditionCapabilityInternal) this).SupportedStorageMb, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IStorageMbCapability>(__y, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.StorageMbCapabilityTypeConverter.ConvertFrom));
            }
            if (content.Contains("Status"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IStorageEditionCapabilityInternal) this).Status = (string)content.GetValueForProperty("Status", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IStorageEditionCapabilityInternal) this).Status, global::System.Convert.ToString);
            }
            AfterDeserializeDictionary(content);
        }
Esempio n. 10
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphSpaApplication"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal MicrosoftGraphSpaApplication(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphSpaApplicationInternal) this).RedirectUri = (string[])content.GetValueForProperty("RedirectUri", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphSpaApplicationInternal) this).RedirectUri, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString));
            // this type is a dictionary; copy elements from source to here.
            CopyFrom(content);
            AfterDeserializeDictionary(content);
        }
Esempio n. 11
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.Origin"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal Origin(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            if (content.Contains("Property"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.OriginPropertiesTypeConverter.ConvertFrom);
            }
            if (content.Contains("SystemDataCreatedBy"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).SystemDataCreatedBy = (string)content.GetValueForProperty("SystemDataCreatedBy", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).SystemDataCreatedBy, global::System.Convert.ToString);
            }
            if (content.Contains("SystemDataCreatedAt"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).SystemDataCreatedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataCreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
            }
            if (content.Contains("SystemDataCreatedByType"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.IdentityType?)content.GetValueForProperty("SystemDataCreatedByType", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.IdentityType.CreateFrom);
            }
            if (content.Contains("SystemDataLastModifiedBy"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).SystemDataLastModifiedBy = (string)content.GetValueForProperty("SystemDataLastModifiedBy", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).SystemDataLastModifiedBy, global::System.Convert.ToString);
            }
            if (content.Contains("SystemDataLastModifiedByType"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.IdentityType?)content.GetValueForProperty("SystemDataLastModifiedByType", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.IdentityType.CreateFrom);
            }
            if (content.Contains("SystemDataLastModifiedAt"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).SystemDataLastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataLastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
            }
            if (content.Contains("SystemData"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ISystemData)content.GetValueForProperty("SystemData", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.SystemDataTypeConverter.ConvertFrom);
            }
            if (content.Contains("Id"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).Id, global::System.Convert.ToString);
            }
            if (content.Contains("Name"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).Name, global::System.Convert.ToString);
            }
            if (content.Contains("Type"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceInternal) this).Type, global::System.Convert.ToString);
            }
            if (content.Contains("HostName"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).HostName = (string)content.GetValueForProperty("HostName", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).HostName, global::System.Convert.ToString);
            }
            if (content.Contains("HttpPort"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).HttpPort = (int?)content.GetValueForProperty("HttpPort", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).HttpPort, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int)));
            }
            if (content.Contains("HttpsPort"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).HttpsPort = (int?)content.GetValueForProperty("HttpsPort", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).HttpsPort, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int)));
            }
            if (content.Contains("HostHeader"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).HostHeader = (string)content.GetValueForProperty("HostHeader", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).HostHeader, global::System.Convert.ToString);
            }
            if (content.Contains("Priority"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).Priority = (int?)content.GetValueForProperty("Priority", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).Priority, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int)));
            }
            if (content.Contains("Weight"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).Weight = (int?)content.GetValueForProperty("Weight", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).Weight, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int)));
            }
            if (content.Contains("Enabled"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).Enabled = (bool?)content.GetValueForProperty("Enabled", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).Enabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("PrivateLinkAlias"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).PrivateLinkAlias = (string)content.GetValueForProperty("PrivateLinkAlias", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).PrivateLinkAlias, global::System.Convert.ToString);
            }
            if (content.Contains("PrivateLinkResourceId"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).PrivateLinkResourceId = (string)content.GetValueForProperty("PrivateLinkResourceId", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).PrivateLinkResourceId, global::System.Convert.ToString);
            }
            if (content.Contains("PrivateLinkLocation"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).PrivateLinkLocation = (string)content.GetValueForProperty("PrivateLinkLocation", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).PrivateLinkLocation, global::System.Convert.ToString);
            }
            if (content.Contains("PrivateLinkApprovalMessage"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).PrivateLinkApprovalMessage = (string)content.GetValueForProperty("PrivateLinkApprovalMessage", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).PrivateLinkApprovalMessage, global::System.Convert.ToString);
            }
            if (content.Contains("ResourceState"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.OriginResourceState?)content.GetValueForProperty("ResourceState", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.OriginResourceState.CreateFrom);
            }
            if (content.Contains("ProvisioningState"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).ProvisioningState = (string)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).ProvisioningState, global::System.Convert.ToString);
            }
            if (content.Contains("PrivateEndpointStatus"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).PrivateEndpointStatus = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.PrivateEndpointStatus?)content.GetValueForProperty("PrivateEndpointStatus", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IOriginInternal) this).PrivateEndpointStatus, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.PrivateEndpointStatus.CreateFrom);
            }
            AfterDeserializeDictionary(content);
        }
Esempio n. 12
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.VMwareSite"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal VMwareSite(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.ISiteProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.SitePropertiesTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).Id       = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).Id, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).Name     = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).Name, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).Type     = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).Type, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).Tag      = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteTags)content.GetValueForProperty("Tag", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.VMwareSiteTagsTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ETag     = (string)content.GetValueForProperty("ETag", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ETag, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).Location = (string)content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).Location, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServicePrincipalIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.ISiteSpnProperties)content.GetValueForProperty("ServicePrincipalIdentityDetail", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServicePrincipalIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.SiteSpnPropertiesTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).AgentDetail         = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.ISiteAgentProperties)content.GetValueForProperty("AgentDetail", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).AgentDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.SiteAgentPropertiesTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServiceEndpoint     = (string)content.GetValueForProperty("ServiceEndpoint", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServiceEndpoint, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).DiscoverySolutionId = (string)content.GetValueForProperty("DiscoverySolutionId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).DiscoverySolutionId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ApplianceName       = (string)content.GetValueForProperty("ApplianceName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ApplianceName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServicePrincipalIdentityDetailTenantId      = (string)content.GetValueForProperty("ServicePrincipalIdentityDetailTenantId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServicePrincipalIdentityDetailTenantId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServicePrincipalIdentityDetailApplicationId = (string)content.GetValueForProperty("ServicePrincipalIdentityDetailApplicationId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServicePrincipalIdentityDetailApplicationId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServicePrincipalIdentityDetailObjectId      = (string)content.GetValueForProperty("ServicePrincipalIdentityDetailObjectId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServicePrincipalIdentityDetailObjectId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServicePrincipalIdentityDetailAudience      = (string)content.GetValueForProperty("ServicePrincipalIdentityDetailAudience", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServicePrincipalIdentityDetailAudience, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServicePrincipalIdentityDetailAadAuthority  = (string)content.GetValueForProperty("ServicePrincipalIdentityDetailAadAuthority", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServicePrincipalIdentityDetailAadAuthority, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServicePrincipalIdentityDetailRawCertData   = (string)content.GetValueForProperty("ServicePrincipalIdentityDetailRawCertData", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).ServicePrincipalIdentityDetailRawCertData, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).AgentDetailId               = (string)content.GetValueForProperty("AgentDetailId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).AgentDetailId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).AgentDetailVersion          = (string)content.GetValueForProperty("AgentDetailVersion", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).AgentDetailVersion, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).AgentDetailLastHeartBeatUtc = (global::System.DateTime?)content.GetValueForProperty("AgentDetailLastHeartBeatUtc", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).AgentDetailLastHeartBeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).AgentDetailKeyVaultUri      = (string)content.GetValueForProperty("AgentDetailKeyVaultUri", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).AgentDetailKeyVaultUri, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).AgentDetailKeyVaultId       = (string)content.GetValueForProperty("AgentDetailKeyVaultId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareSiteInternal) this).AgentDetailKeyVaultId, global::System.Convert.ToString);
            AfterDeserializeDictionary(content);
        }
Esempio n. 13
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.MobilityServiceUpdate"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal MobilityServiceUpdate(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IMobilityServiceUpdateInternal) this).Version      = (string)content.GetValueForProperty("Version", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IMobilityServiceUpdateInternal) this).Version, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IMobilityServiceUpdateInternal) this).RebootStatus = (string)content.GetValueForProperty("RebootStatus", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IMobilityServiceUpdateInternal) this).RebootStatus, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IMobilityServiceUpdateInternal) this).OSType       = (string)content.GetValueForProperty("OSType", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IMobilityServiceUpdateInternal) this).OSType, global::System.Convert.ToString);
            AfterDeserializeDictionary(content);
        }
Esempio n. 14
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.JobQueryParameter"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal JobQueryParameter(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IJobQueryParameterInternal) this).AffectedObjectType = (string)content.GetValueForProperty("AffectedObjectType", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IJobQueryParameterInternal) this).AffectedObjectType, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IJobQueryParameterInternal) this).EndTime            = (string)content.GetValueForProperty("EndTime", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IJobQueryParameterInternal) this).EndTime, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IJobQueryParameterInternal) this).FabricId           = (string)content.GetValueForProperty("FabricId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IJobQueryParameterInternal) this).FabricId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IJobQueryParameterInternal) this).JobStatus          = (string)content.GetValueForProperty("JobStatus", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IJobQueryParameterInternal) this).JobStatus, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IJobQueryParameterInternal) this).StartTime          = (string)content.GetValueForProperty("StartTime", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IJobQueryParameterInternal) this).StartTime, global::System.Convert.ToString);
            AfterDeserializeDictionary(content);
        }
Esempio n. 15
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.MetricSpecification"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal MetricSpecification(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            if (content.Contains("Name"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).Name, global::System.Convert.ToString);
            }
            if (content.Contains("DisplayName"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).DisplayName = (string)content.GetValueForProperty("DisplayName", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).DisplayName, global::System.Convert.ToString);
            }
            if (content.Contains("DisplayDescription"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).DisplayDescription = (string)content.GetValueForProperty("DisplayDescription", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).DisplayDescription, global::System.Convert.ToString);
            }
            if (content.Contains("Unit"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).Unit = (string)content.GetValueForProperty("Unit", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).Unit, global::System.Convert.ToString);
            }
            if (content.Contains("AggregationType"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).AggregationType = (string)content.GetValueForProperty("AggregationType", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).AggregationType, global::System.Convert.ToString);
            }
            if (content.Contains("SupportsInstanceLevelAggregation"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).SupportsInstanceLevelAggregation = (bool?)content.GetValueForProperty("SupportsInstanceLevelAggregation", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).SupportsInstanceLevelAggregation, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("EnableRegionalMdmAccount"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).EnableRegionalMdmAccount = (bool?)content.GetValueForProperty("EnableRegionalMdmAccount", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).EnableRegionalMdmAccount, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("SourceMdmAccount"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).SourceMdmAccount = (string)content.GetValueForProperty("SourceMdmAccount", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).SourceMdmAccount, global::System.Convert.ToString);
            }
            if (content.Contains("SourceMdmNamespace"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).SourceMdmNamespace = (string)content.GetValueForProperty("SourceMdmNamespace", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).SourceMdmNamespace, global::System.Convert.ToString);
            }
            if (content.Contains("MetricFilterPattern"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).MetricFilterPattern = (string)content.GetValueForProperty("MetricFilterPattern", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).MetricFilterPattern, global::System.Convert.ToString);
            }
            if (content.Contains("FillGapWithZero"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).FillGapWithZero = (bool?)content.GetValueForProperty("FillGapWithZero", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).FillGapWithZero, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("IsInternal"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).IsInternal = (bool?)content.GetValueForProperty("IsInternal", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).IsInternal, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("Dimension"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).Dimension = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDimension[])content.GetValueForProperty("Dimension", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).Dimension, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDimension>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.DimensionTypeConverter.ConvertFrom));
            }
            if (content.Contains("Category"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).Category = (string)content.GetValueForProperty("Category", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).Category, global::System.Convert.ToString);
            }
            if (content.Contains("Availability"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).Availability = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricAvailability[])content.GetValueForProperty("Availability", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).Availability, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricAvailability>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.MetricAvailabilityTypeConverter.ConvertFrom));
            }
            if (content.Contains("SupportedTimeGrainType"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).SupportedTimeGrainType = (string[])content.GetValueForProperty("SupportedTimeGrainType", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IMetricSpecificationInternal) this).SupportedTimeGrainType, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString));
            }
            AfterDeserializeDictionary(content);
        }
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.MsixPackagePatch"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal MsixPackagePatch(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IMsixPackagePatchInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IMsixPackagePatchProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IMsixPackagePatchInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.MsixPackagePatchPropertiesTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceInternal) this).Id   = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceInternal) this).Id, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceInternal) this).Name, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceInternal) this).Type, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IMsixPackagePatchInternal) this).IsActive = (bool?)content.GetValueForProperty("IsActive", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IMsixPackagePatchInternal) this).IsActive, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IMsixPackagePatchInternal) this).IsRegularRegistration = (bool?)content.GetValueForProperty("IsRegularRegistration", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IMsixPackagePatchInternal) this).IsRegularRegistration, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IMsixPackagePatchInternal) this).DisplayName           = (string)content.GetValueForProperty("DisplayName", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IMsixPackagePatchInternal) this).DisplayName, global::System.Convert.ToString);
            AfterDeserializeDictionary(content);
        }
Esempio n. 17
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210801.IscsiTargetList"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal IscsiTargetList(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210801.IIscsiTargetListInternal) this).Value    = (Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210801.IIscsiTarget[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210801.IIscsiTargetListInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210801.IIscsiTarget>(__y, Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210801.IscsiTargetTypeConverter.ConvertFrom));
            ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210801.IIscsiTargetListInternal) this).NextLink = (string)content.GetValueForProperty("NextLink", ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210801.IIscsiTargetListInternal) this).NextLink, global::System.Convert.ToString);
            AfterDeserializeDictionary(content);
        }
Esempio n. 18
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.DatabaseBackupSetting"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal DatabaseBackupSetting(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDatabaseBackupSettingInternal) this).DatabaseType         = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DatabaseType)content.GetValueForProperty("DatabaseType", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDatabaseBackupSettingInternal) this).DatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DatabaseType.CreateFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDatabaseBackupSettingInternal) this).Name                 = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDatabaseBackupSettingInternal) this).Name, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDatabaseBackupSettingInternal) this).ConnectionStringName = (string)content.GetValueForProperty("ConnectionStringName", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDatabaseBackupSettingInternal) this).ConnectionStringName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDatabaseBackupSettingInternal) this).ConnectionString     = (string)content.GetValueForProperty("ConnectionString", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDatabaseBackupSettingInternal) this).ConnectionString, global::System.Convert.ToString);
            AfterDeserializeDictionary(content);
        }
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxDiskCopyLogDetails"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal DataBoxDiskCopyLogDetails(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IDataBoxDiskCopyLogDetailsInternal) this).DiskSerialNumber = (string)content.GetValueForProperty("DiskSerialNumber", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IDataBoxDiskCopyLogDetailsInternal) this).DiskSerialNumber, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IDataBoxDiskCopyLogDetailsInternal) this).ErrorLogLink     = (string)content.GetValueForProperty("ErrorLogLink", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IDataBoxDiskCopyLogDetailsInternal) this).ErrorLogLink, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IDataBoxDiskCopyLogDetailsInternal) this).VerboseLogLink   = (string)content.GetValueForProperty("VerboseLogLink", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IDataBoxDiskCopyLogDetailsInternal) this).VerboseLogLink, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ICopyLogDetailsInternal) this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ICopyLogDetailsInternal) this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom);
            AfterDeserializeDictionary(content);
        }
 /// <summary>
 /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.A2ASwitchProtectionInput"
 /// />.
 /// </summary>
 /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
 internal A2ASwitchProtectionInput(global::System.Collections.IDictionary content)
 {
     bool returnNow = false;
     BeforeDeserializeDictionary(content, ref returnNow);
     if (returnNow)
     {
         return;
     }
     // actually deserialize
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.DiskEncryptionInfoTypeConverter.ConvertFrom);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryContainerId, global::System.Convert.ToString);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray<Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2AvmDiskInputDetails>(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.A2AvmDiskInputDetailsTypeConverter.ConvertFrom));
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2AvmManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray<Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2AvmManagedDiskInputDetails>(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.A2AvmManagedDiskInputDetailsTypeConverter.ConvertFrom));
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).PolicyId, global::System.Convert.ToString);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.DiskEncryptionKeyInfoTypeConverter.ConvertFrom);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.KeyEncryptionKeyInfoTypeConverter.ConvertFrom);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString);
     ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString);
     AfterDeserializeDictionary(content);
 }
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.RecoveryServicesProvider"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal RecoveryServicesProvider(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.RecoveryServicesProviderPropertiesTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IResourceInternal) this).Id       = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IResourceInternal) this).Id, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IResourceInternal) this).Name     = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IResourceInternal) this).Name, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IResourceInternal) this).Type     = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IResourceInternal) this).Type, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IResourceInternal) this).Location = (string)content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IResourceInternal) this).Location, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).AuthenticationIdentityDetail          = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IIdentityProviderDetails)content.GetValueForProperty("AuthenticationIdentityDetail", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).AuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IdentityProviderDetailsTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ResourceAccessIdentityDetail          = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IIdentityProviderDetails)content.GetValueForProperty("ResourceAccessIdentityDetail", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ResourceAccessIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IdentityProviderDetailsTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).DataPlaneAuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IIdentityProviderDetails)content.GetValueForProperty("DataPlaneAuthenticationIdentityDetail", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).DataPlaneAuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IdentityProviderDetailsTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProviderVersionDetail     = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IVersionDetails)content.GetValueForProperty("ProviderVersionDetail", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProviderVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.VersionDetailsTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).FabricType                = (string)content.GetValueForProperty("FabricType", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).FabricType, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).FriendlyName              = (string)content.GetValueForProperty("FriendlyName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).FriendlyName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProviderVersion           = (string)content.GetValueForProperty("ProviderVersion", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProviderVersion, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ServerVersion             = (string)content.GetValueForProperty("ServerVersion", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ServerVersion, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProviderVersionState      = (string)content.GetValueForProperty("ProviderVersionState", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProviderVersionState, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProviderVersionExpiryDate = (global::System.DateTime?)content.GetValueForProperty("ProviderVersionExpiryDate", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProviderVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).FabricFriendlyName        = (string)content.GetValueForProperty("FabricFriendlyName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).FabricFriendlyName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).LastHeartBeat             = (global::System.DateTime?)content.GetValueForProperty("LastHeartBeat", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).LastHeartBeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ConnectionStatus          = (string)content.GetValueForProperty("ConnectionStatus", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ConnectionStatus, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProtectedItemCount        = (int?)content.GetValueForProperty("ProtectedItemCount", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProtectedItemCount, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int)));
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).AllowedScenario           = (string[])content.GetValueForProperty("AllowedScenario", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).AllowedScenario, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString));
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).HealthErrorDetail         = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IHealthError[])content.GetValueForProperty("HealthErrorDetail", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IHealthError>(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.HealthErrorTypeConverter.ConvertFrom));
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).DraIdentifier             = (string)content.GetValueForProperty("DraIdentifier", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).DraIdentifier, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).MachineId   = (string)content.GetValueForProperty("MachineId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).MachineId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).MachineName = (string)content.GetValueForProperty("MachineName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).MachineName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).BiosId      = (string)content.GetValueForProperty("BiosId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).BiosId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).AuthenticationIdentityDetailTenantId               = (string)content.GetValueForProperty("AuthenticationIdentityDetailTenantId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).AuthenticationIdentityDetailTenantId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).AuthenticationIdentityDetailApplicationId          = (string)content.GetValueForProperty("AuthenticationIdentityDetailApplicationId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).AuthenticationIdentityDetailApplicationId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).AuthenticationIdentityDetailObjectId               = (string)content.GetValueForProperty("AuthenticationIdentityDetailObjectId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).AuthenticationIdentityDetailObjectId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).AuthenticationIdentityDetailAudience               = (string)content.GetValueForProperty("AuthenticationIdentityDetailAudience", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).AuthenticationIdentityDetailAudience, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).AuthenticationIdentityDetailAadAuthority           = (string)content.GetValueForProperty("AuthenticationIdentityDetailAadAuthority", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).AuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ResourceAccessIdentityDetailTenantId               = (string)content.GetValueForProperty("ResourceAccessIdentityDetailTenantId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ResourceAccessIdentityDetailTenantId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ResourceAccessIdentityDetailApplicationId          = (string)content.GetValueForProperty("ResourceAccessIdentityDetailApplicationId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ResourceAccessIdentityDetailApplicationId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ResourceAccessIdentityDetailObjectId               = (string)content.GetValueForProperty("ResourceAccessIdentityDetailObjectId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ResourceAccessIdentityDetailObjectId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ResourceAccessIdentityDetailAudience               = (string)content.GetValueForProperty("ResourceAccessIdentityDetailAudience", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ResourceAccessIdentityDetailAudience, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ResourceAccessIdentityDetailAadAuthority           = (string)content.GetValueForProperty("ResourceAccessIdentityDetailAadAuthority", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ResourceAccessIdentityDetailAadAuthority, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).DataPlaneAuthenticationIdentityDetailTenantId      = (string)content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailTenantId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).DataPlaneAuthenticationIdentityDetailTenantId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).DataPlaneAuthenticationIdentityDetailApplicationId = (string)content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailApplicationId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).DataPlaneAuthenticationIdentityDetailApplicationId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).DataPlaneAuthenticationIdentityDetailObjectId      = (string)content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailObjectId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).DataPlaneAuthenticationIdentityDetailObjectId, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).DataPlaneAuthenticationIdentityDetailAudience      = (string)content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAudience", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).DataPlaneAuthenticationIdentityDetailAudience, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).DataPlaneAuthenticationIdentityDetailAadAuthority  = (string)content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAadAuthority", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).DataPlaneAuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProviderVersionDetailVersion    = (string)content.GetValueForProperty("ProviderVersionDetailVersion", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProviderVersionDetailVersion, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProviderVersionDetailExpiryDate = (global::System.DateTime?)content.GetValueForProperty("ProviderVersionDetailExpiryDate", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProviderVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
            ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProviderVersionDetailStatus     = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?)content.GetValueForProperty("ProviderVersionDetailStatus", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.IRecoveryServicesProviderInternal) this).ProviderVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom);
            AfterDeserializeDictionary(content);
        }
Esempio n. 22
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200215.OptimizedAutoscale"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal OptimizedAutoscale(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200215.IOptimizedAutoscaleInternal) this).IsEnabled = (bool)content.GetValueForProperty("IsEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200215.IOptimizedAutoscaleInternal) this).IsEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200215.IOptimizedAutoscaleInternal) this).Maximum   = (int)content.GetValueForProperty("Maximum", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200215.IOptimizedAutoscaleInternal) this).Maximum, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int)));
            ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200215.IOptimizedAutoscaleInternal) this).Minimum   = (int)content.GetValueForProperty("Minimum", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200215.IOptimizedAutoscaleInternal) this).Minimum, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int)));
            ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200215.IOptimizedAutoscaleInternal) this).Version   = (int)content.GetValueForProperty("Version", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200215.IOptimizedAutoscaleInternal) this).Version, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int)));
            AfterDeserializeDictionary(content);
        }
Esempio n. 23
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfo"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal RestoreTargetInfo(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            if (content.Contains("DatasourceInfo"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal) this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource)content.GetValueForProperty("DatasourceInfo", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal) this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceTypeConverter.ConvertFrom);
            }
            if (content.Contains("DatasourceSetInfo"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal) this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet)content.GetValueForProperty("DatasourceSetInfo", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal) this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSetTypeConverter.ConvertFrom);
            }
            if (content.Contains("DatasourceAuthCredentials"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal) this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials)content.GetValueForProperty("DatasourceAuthCredentials", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal) this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AuthCredentialsTypeConverter.ConvertFrom);
            }
            if (content.Contains("ObjectType"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal) this).ObjectType = (string)content.GetValueForProperty("ObjectType", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal) this).ObjectType, global::System.Convert.ToString);
            }
            if (content.Contains("RecoveryOption"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal) this).RecoveryOption = (string)content.GetValueForProperty("RecoveryOption", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal) this).RecoveryOption, global::System.Convert.ToString);
            }
            if (content.Contains("RestoreLocation"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal) this).RestoreLocation = (string)content.GetValueForProperty("RestoreLocation", ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal) this).RestoreLocation, global::System.Convert.ToString);
            }
            AfterDeserializeDictionary(content);
        }
Esempio n. 24
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IscsiTargetCreate"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal IscsiTargetCreate(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IIscsiTargetCreateInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IIscsiTargetCreateProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IIscsiTargetCreateInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IscsiTargetCreatePropertiesTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IResourceInternal) this).Id                  = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IResourceInternal) this).Id, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IResourceInternal) this).Name                = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IResourceInternal) this).Name, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IResourceInternal) this).Type                = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IResourceInternal) this).Type, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IIscsiTargetCreateInternal) this).AclMode    = (Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Support.IscsiTargetAclMode)content.GetValueForProperty("AclMode", ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IIscsiTargetCreateInternal) this).AclMode, Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Support.IscsiTargetAclMode.CreateFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IIscsiTargetCreateInternal) this).TargetIqn  = (string)content.GetValueForProperty("TargetIqn", ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IIscsiTargetCreateInternal) this).TargetIqn, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IIscsiTargetCreateInternal) this).StaticAcls = (Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IAcl[])content.GetValueForProperty("StaticAcls", ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IIscsiTargetCreateInternal) this).StaticAcls, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IAcl>(__y, Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.AclTypeConverter.ConvertFrom));
            ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IIscsiTargetCreateInternal) this).Lun        = (Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IIscsiLun[])content.GetValueForProperty("Lun", ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IIscsiTargetCreateInternal) this).Lun, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IIscsiLun>(__y, Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IscsiLunTypeConverter.ConvertFrom));
            AfterDeserializeDictionary(content);
        }
Esempio n. 25
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceInstanceView"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal CloudServiceInstanceView(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal) this).RoleInstance = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary)content.GetValueForProperty("RoleInstance", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal) this).RoleInstance, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InstanceViewStatusesSummaryTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal) this).SdkVersion   = (string)content.GetValueForProperty("SdkVersion", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal) this).SdkVersion, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal) this).PrivateId    = (string[])content.GetValueForProperty("PrivateId", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal) this).PrivateId, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString));
            ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal) this).Statuses     = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[])content.GetValueForProperty("Statuses", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal) this).Statuses, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus>(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ResourceInstanceViewStatusTypeConverter.ConvertFrom));
            ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal) this).RoleInstanceStatusesSummary = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount[])content.GetValueForProperty("RoleInstanceStatusesSummary", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal) this).RoleInstanceStatusesSummary, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount>(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.StatusCodeCountTypeConverter.ConvertFrom));
            AfterDeserializeDictionary(content);
        }
Esempio n. 26
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.SiteSourceControl"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal SiteSourceControl(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            if (content.Contains("Property"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.SiteSourceControlPropertiesTypeConverter.ConvertFrom);
            }
            if (content.Contains("Id"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IProxyOnlyResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IProxyOnlyResourceInternal) this).Id, global::System.Convert.ToString);
            }
            if (content.Contains("Name"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IProxyOnlyResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IProxyOnlyResourceInternal) this).Name, global::System.Convert.ToString);
            }
            if (content.Contains("Kind"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IProxyOnlyResourceInternal) this).Kind = (string)content.GetValueForProperty("Kind", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IProxyOnlyResourceInternal) this).Kind, global::System.Convert.ToString);
            }
            if (content.Contains("Type"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IProxyOnlyResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IProxyOnlyResourceInternal) this).Type, global::System.Convert.ToString);
            }
            if (content.Contains("GitHubActionConfiguration"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).GitHubActionConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IGitHubActionConfiguration)content.GetValueForProperty("GitHubActionConfiguration", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).GitHubActionConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.GitHubActionConfigurationTypeConverter.ConvertFrom);
            }
            if (content.Contains("RepoUrl"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).RepoUrl = (string)content.GetValueForProperty("RepoUrl", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).RepoUrl, global::System.Convert.ToString);
            }
            if (content.Contains("Branch"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).Branch = (string)content.GetValueForProperty("Branch", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).Branch, global::System.Convert.ToString);
            }
            if (content.Contains("IsManualIntegration"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).IsManualIntegration = (bool?)content.GetValueForProperty("IsManualIntegration", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).IsManualIntegration, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("IsGitHubAction"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).IsGitHubAction = (bool?)content.GetValueForProperty("IsGitHubAction", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).IsGitHubAction, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("DeploymentRollbackEnabled"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).DeploymentRollbackEnabled = (bool?)content.GetValueForProperty("DeploymentRollbackEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).DeploymentRollbackEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("IsMercurial"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).IsMercurial = (bool?)content.GetValueForProperty("IsMercurial", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).IsMercurial, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("GitHubActionConfigurationCodeConfiguration"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).GitHubActionConfigurationCodeConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IGitHubActionCodeConfiguration)content.GetValueForProperty("GitHubActionConfigurationCodeConfiguration", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).GitHubActionConfigurationCodeConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.GitHubActionCodeConfigurationTypeConverter.ConvertFrom);
            }
            if (content.Contains("GitHubActionConfigurationContainerConfiguration"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).GitHubActionConfigurationContainerConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IGitHubActionContainerConfiguration)content.GetValueForProperty("GitHubActionConfigurationContainerConfiguration", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).GitHubActionConfigurationContainerConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.GitHubActionContainerConfigurationTypeConverter.ConvertFrom);
            }
            if (content.Contains("GitHubActionConfigurationIsLinux"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).GitHubActionConfigurationIsLinux = (bool?)content.GetValueForProperty("GitHubActionConfigurationIsLinux", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).GitHubActionConfigurationIsLinux, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("GitHubActionConfigurationGenerateWorkflowFile"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).GitHubActionConfigurationGenerateWorkflowFile = (bool?)content.GetValueForProperty("GitHubActionConfigurationGenerateWorkflowFile", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).GitHubActionConfigurationGenerateWorkflowFile, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("CodeConfigurationRuntimeStack"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).CodeConfigurationRuntimeStack = (string)content.GetValueForProperty("CodeConfigurationRuntimeStack", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).CodeConfigurationRuntimeStack, global::System.Convert.ToString);
            }
            if (content.Contains("CodeConfigurationRuntimeVersion"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).CodeConfigurationRuntimeVersion = (string)content.GetValueForProperty("CodeConfigurationRuntimeVersion", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).CodeConfigurationRuntimeVersion, global::System.Convert.ToString);
            }
            if (content.Contains("ContainerConfigurationServerUrl"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).ContainerConfigurationServerUrl = (string)content.GetValueForProperty("ContainerConfigurationServerUrl", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).ContainerConfigurationServerUrl, global::System.Convert.ToString);
            }
            if (content.Contains("ContainerConfigurationImageName"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).ContainerConfigurationImageName = (string)content.GetValueForProperty("ContainerConfigurationImageName", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).ContainerConfigurationImageName, global::System.Convert.ToString);
            }
            if (content.Contains("ContainerConfigurationUsername"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).ContainerConfigurationUsername = (string)content.GetValueForProperty("ContainerConfigurationUsername", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).ContainerConfigurationUsername, global::System.Convert.ToString);
            }
            if (content.Contains("ContainerConfigurationPassword"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).ContainerConfigurationPassword = (string)content.GetValueForProperty("ContainerConfigurationPassword", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ISiteSourceControlInternal) this).ContainerConfigurationPassword, global::System.Convert.ToString);
            }
            AfterDeserializeDictionary(content);
        }
Esempio n. 27
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.SiteCloneability"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal SiteCloneability(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            if (content.Contains("Result"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteCloneabilityInternal) this).Result = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.CloneAbilityResult?)content.GetValueForProperty("Result", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteCloneabilityInternal) this).Result, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.CloneAbilityResult.CreateFrom);
            }
            if (content.Contains("BlockingFeature"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteCloneabilityInternal) this).BlockingFeature = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteCloneabilityCriterion[])content.GetValueForProperty("BlockingFeature", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteCloneabilityInternal) this).BlockingFeature, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteCloneabilityCriterion>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.SiteCloneabilityCriterionTypeConverter.ConvertFrom));
            }
            if (content.Contains("UnsupportedFeature"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteCloneabilityInternal) this).UnsupportedFeature = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteCloneabilityCriterion[])content.GetValueForProperty("UnsupportedFeature", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteCloneabilityInternal) this).UnsupportedFeature, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteCloneabilityCriterion>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.SiteCloneabilityCriterionTypeConverter.ConvertFrom));
            }
            if (content.Contains("BlockingCharacteristic"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteCloneabilityInternal) this).BlockingCharacteristic = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteCloneabilityCriterion[])content.GetValueForProperty("BlockingCharacteristic", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteCloneabilityInternal) this).BlockingCharacteristic, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteCloneabilityCriterion>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.SiteCloneabilityCriterionTypeConverter.ConvertFrom));
            }
            AfterDeserializeDictionary(content);
        }
Esempio n. 28
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.StartMenuItem"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal StartMenuItem(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.StartMenuItemPropertiesTypeConverter.ConvertFrom);
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceInternal) this).Id   = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceInternal) this).Id, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceInternal) this).Name, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceInternal) this).Type, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemInternal) this).AppAlias            = (string)content.GetValueForProperty("AppAlias", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemInternal) this).AppAlias, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemInternal) this).FriendlyName        = (string)content.GetValueForProperty("FriendlyName", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemInternal) this).FriendlyName, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemInternal) this).FilePath            = (string)content.GetValueForProperty("FilePath", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemInternal) this).FilePath, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemInternal) this).CommandLineArgument = (string)content.GetValueForProperty("CommandLineArgument", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemInternal) this).CommandLineArgument, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemInternal) this).IconPath            = (string)content.GetValueForProperty("IconPath", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemInternal) this).IconPath, global::System.Convert.ToString);
            ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemInternal) this).IconIndex           = (int?)content.GetValueForProperty("IconIndex", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IStartMenuItemInternal) this).IconIndex, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int)));
            AfterDeserializeDictionary(content);
        }
Esempio n. 29
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.OperationsDefinition"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal OperationsDefinition(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            if (content.Contains("Display"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDisplayDefinition)content.GetValueForProperty("Display", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.OperationsDisplayDefinitionTypeConverter.ConvertFrom);
            }
            if (content.Contains("Name"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).Name, global::System.Convert.ToString);
            }
            if (content.Contains("IsDataAction"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).IsDataAction = (bool?)content.GetValueForProperty("IsDataAction", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).IsDataAction, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool)));
            }
            if (content.Contains("Origin"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin?)content.GetValueForProperty("Origin", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).Origin, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin.CreateFrom);
            }
            if (content.Contains("Property"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.OperationsDefinitionPropertiesTypeConverter.ConvertFrom);
            }
            if (content.Contains("DisplayProvider"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).DisplayProvider = (string)content.GetValueForProperty("DisplayProvider", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).DisplayProvider, global::System.Convert.ToString);
            }
            if (content.Contains("DisplayResource"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).DisplayResource = (string)content.GetValueForProperty("DisplayResource", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).DisplayResource, global::System.Convert.ToString);
            }
            if (content.Contains("DisplayOperation"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).DisplayOperation = (string)content.GetValueForProperty("DisplayOperation", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).DisplayOperation, global::System.Convert.ToString);
            }
            if (content.Contains("DisplayDescription"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).DisplayDescription = (string)content.GetValueForProperty("DisplayDescription", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.IOperationsDefinitionInternal) this).DisplayDescription, global::System.Convert.ToString);
            }
            AfterDeserializeDictionary(content);
        }
Esempio n. 30
0
        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.HybridComputePrivateLinkScopeProperties"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal HybridComputePrivateLinkScopeProperties(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;

            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            if (content.Contains("PublicNetworkAccess"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.IHybridComputePrivateLinkScopePropertiesInternal) this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Support.PublicNetworkAccessType?)content.GetValueForProperty("PublicNetworkAccess", ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.IHybridComputePrivateLinkScopePropertiesInternal) this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Support.PublicNetworkAccessType.CreateFrom);
            }
            if (content.Contains("ProvisioningState"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.IHybridComputePrivateLinkScopePropertiesInternal) this).ProvisioningState = (string)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.IHybridComputePrivateLinkScopePropertiesInternal) this).ProvisioningState, global::System.Convert.ToString);
            }
            if (content.Contains("PrivateLinkScopeId"))
            {
                ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.IHybridComputePrivateLinkScopePropertiesInternal) this).PrivateLinkScopeId = (string)content.GetValueForProperty("PrivateLinkScopeId", ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20210520.IHybridComputePrivateLinkScopePropertiesInternal) this).PrivateLinkScopeId, global::System.Convert.ToString);
            }
            AfterDeserializeDictionary(content);
        }