/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.VirtualNetworkPeering" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal VirtualNetworkPeering(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringPropertiesFormat)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.VirtualNetworkPeeringPropertiesFormatTypeConverter.ConvertFrom); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).Type, global::System.Convert.ToString); } if (content.Contains("PeeringState")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).PeeringState = (Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.PeeringState?)content.GetValueForProperty("PeeringState", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).PeeringState, Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.PeeringState.CreateFrom); } if (content.Contains("DatabricksVirtualNetwork")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).DatabricksVirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork)content.GetValueForProperty("DatabricksVirtualNetwork", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).DatabricksVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetworkTypeConverter.ConvertFrom); } if (content.Contains("DatabricksAddressSpace")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).DatabricksAddressSpace = (Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IAddressSpace)content.GetValueForProperty("DatabricksAddressSpace", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).DatabricksAddressSpace, Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.AddressSpaceTypeConverter.ConvertFrom); } if (content.Contains("RemoteVirtualNetwork")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).RemoteVirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork)content.GetValueForProperty("RemoteVirtualNetwork", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).RemoteVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetworkTypeConverter.ConvertFrom); } if (content.Contains("RemoteAddressSpace")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).RemoteAddressSpace = (Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IAddressSpace)content.GetValueForProperty("RemoteAddressSpace", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).RemoteAddressSpace, Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.AddressSpaceTypeConverter.ConvertFrom); } if (content.Contains("AllowVirtualNetworkAccess")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).AllowVirtualNetworkAccess = (bool?)content.GetValueForProperty("AllowVirtualNetworkAccess", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).AllowVirtualNetworkAccess, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AllowForwardedTraffic")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).AllowForwardedTraffic = (bool?)content.GetValueForProperty("AllowForwardedTraffic", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).AllowForwardedTraffic, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AllowGatewayTransit")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).AllowGatewayTransit = (bool?)content.GetValueForProperty("AllowGatewayTransit", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).AllowGatewayTransit, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("UseRemoteGateway")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).UseRemoteGateway = (bool?)content.GetValueForProperty("UseRemoteGateway", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).UseRemoteGateway, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.PeeringProvisioningState?)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.PeeringProvisioningState.CreateFrom); } if (content.Contains("DatabrickVirtualNetworkId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).DatabrickVirtualNetworkId = (string)content.GetValueForProperty("DatabrickVirtualNetworkId", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).DatabrickVirtualNetworkId, global::System.Convert.ToString); } if (content.Contains("DatabrickAddressSpaceAddressPrefix")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).DatabrickAddressSpaceAddressPrefix = (string[])content.GetValueForProperty("DatabrickAddressSpaceAddressPrefix", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).DatabrickAddressSpaceAddressPrefix, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("RemoteVirtualNetworkId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).RemoteVirtualNetworkId = (string)content.GetValueForProperty("RemoteVirtualNetworkId", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).RemoteVirtualNetworkId, global::System.Convert.ToString); } if (content.Contains("RemoteAddressSpaceAddressPrefix")) { ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).RemoteAddressSpaceAddressPrefix = (string[])content.GetValueForProperty("RemoteAddressSpaceAddressPrefix", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IVirtualNetworkPeeringInternal) this).RemoteAddressSpaceAddressPrefix, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.BlobDataSourceProperties" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal BlobDataSourceProperties(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).StorageAccount = (Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IStorageAccount[])content.GetValueForProperty("StorageAccount", ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).StorageAccount, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IStorageAccount>(__y, Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.StorageAccountTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).Container = (string)content.GetValueForProperty("Container", ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).Container, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).PathPattern = (string)content.GetValueForProperty("PathPattern", ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).PathPattern, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).DateFormat = (string)content.GetValueForProperty("DateFormat", ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).DateFormat, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).TimeFormat = (string)content.GetValueForProperty("TimeFormat", ((Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IBlobDataSourcePropertiesInternal) this).TimeFormat, global::System.Convert.ToString); AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.Alert" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal Alert(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.AlertPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Type, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Location = (string)content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IResourceInternal) this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).CustomEmailAddress = (string[])content.GetValueForProperty("CustomEmailAddress", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).Locale = (string)content.GetValueForProperty("Locale", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).Locale, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).SendToOwner = (string)content.GetValueForProperty("SendToOwner", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IAlertInternal) this).SendToOwner, global::System.Convert.ToString); AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.OutboundEnvironmentEndpointCollection" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal OutboundEnvironmentEndpointCollection(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IOutboundEnvironmentEndpointCollectionInternal) this).NextLink = (string)content.GetValueForProperty("NextLink", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IOutboundEnvironmentEndpointCollectionInternal) this).NextLink, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IOutboundEnvironmentEndpointCollectionInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IOutboundEnvironmentEndpoint[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IOutboundEnvironmentEndpointCollectionInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IOutboundEnvironmentEndpoint>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.OutboundEnvironmentEndpointTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.SqlServerDatabaseSystemScanRuleset" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal SqlServerDatabaseSystemScanRuleset(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseScanRulesetProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.SqlServerDatabaseScanRulesetPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IProxyResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IProxyResourceInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IProxyResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IProxyResourceInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IVersionedScanRulesetInternal) this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetType?)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IVersionedScanRulesetInternal) this).Type, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetType.CreateFrom); } if (content.Contains("Status")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IVersionedScanRulesetInternal) this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetStatus?)content.GetValueForProperty("Status", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IVersionedScanRulesetInternal) this).Status, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetStatus.CreateFrom); } if (content.Contains("Version")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IVersionedScanRulesetInternal) this).Version = (int?)content.GetValueForProperty("Version", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IVersionedScanRulesetInternal) this).Version, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Kind")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISystemScanRulesetInternal) this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.DataSourceType)content.GetValueForProperty("Kind", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISystemScanRulesetInternal) this).Kind, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.DataSourceType.CreateFrom); } if (content.Contains("CreatedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).CreatedAt = (global::System.DateTime?)content.GetValueForProperty("CreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).Description = (string)content.GetValueForProperty("Description", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).Description, global::System.Convert.ToString); } if (content.Contains("ExcludedSystemClassification")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).ExcludedSystemClassification = (string[])content.GetValueForProperty("ExcludedSystemClassification", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).ExcludedSystemClassification, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("IncludedCustomClassificationRuleName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).IncludedCustomClassificationRuleName = (string[])content.GetValueForProperty("IncludedCustomClassificationRuleName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).IncludedCustomClassificationRuleName, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("LastModifiedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).LastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("LastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ISqlServerDatabaseSystemScanRulesetInternal) this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.HostPoolProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal HostPoolProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).RegistrationInfo = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IRegistrationInfo)content.GetValueForProperty("RegistrationInfo", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).RegistrationInfo, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.RegistrationInfoTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).MigrationRequest = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IMigrationRequestProperties)content.GetValueForProperty("MigrationRequest", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).MigrationRequest, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.MigrationRequestPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).ObjectId = (string)content.GetValueForProperty("ObjectId", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).ObjectId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).FriendlyName = (string)content.GetValueForProperty("FriendlyName", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).FriendlyName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).Description = (string)content.GetValueForProperty("Description", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).Description, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).HostPoolType = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType)content.GetValueForProperty("HostPoolType", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).HostPoolType, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).PersonalDesktopAssignmentType = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType?)content.GetValueForProperty("PersonalDesktopAssignmentType", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).PersonalDesktopAssignmentType, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).CustomRdpProperty = (string)content.GetValueForProperty("CustomRdpProperty", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).CustomRdpProperty, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).MaxSessionLimit = (int?)content.GetValueForProperty("MaxSessionLimit", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).MaxSessionLimit, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).LoadBalancerType = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType)content.GetValueForProperty("LoadBalancerType", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).LoadBalancerType, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).Ring = (int?)content.GetValueForProperty("Ring", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).Ring, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).ValidationEnvironment = (bool?)content.GetValueForProperty("ValidationEnvironment", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).ValidationEnvironment, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).VMTemplate = (string)content.GetValueForProperty("VMTemplate", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).VMTemplate, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).ApplicationGroupReference = (string[])content.GetValueForProperty("ApplicationGroupReference", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).ApplicationGroupReference, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).SsoadfsAuthority = (string)content.GetValueForProperty("SsoadfsAuthority", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).SsoadfsAuthority, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).SsoClientId = (string)content.GetValueForProperty("SsoClientId", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).SsoClientId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).SsoClientSecretKeyVaultPath = (string)content.GetValueForProperty("SsoClientSecretKeyVaultPath", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).SsoClientSecretKeyVaultPath, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).SsoSecretType = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType?)content.GetValueForProperty("SsoSecretType", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).SsoSecretType, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).PreferredAppGroupType = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType)content.GetValueForProperty("PreferredAppGroupType", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).PreferredAppGroupType, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).StartVMOnConnect = (bool?)content.GetValueForProperty("StartVMOnConnect", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).StartVMOnConnect, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).CloudPcResource = (bool?)content.GetValueForProperty("CloudPcResource", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).CloudPcResource, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).RegistrationInfoExpirationTime = (global::System.DateTime?)content.GetValueForProperty("RegistrationInfoExpirationTime", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).RegistrationInfoExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).RegistrationInfoToken = (string)content.GetValueForProperty("RegistrationInfoToken", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).RegistrationInfoToken, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).MigrationRequestOperation = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.Operation?)content.GetValueForProperty("MigrationRequestOperation", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).MigrationRequestOperation, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.Operation.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).RegistrationInfoRegistrationTokenOperation = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation?)content.GetValueForProperty("RegistrationInfoRegistrationTokenOperation", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).RegistrationInfoRegistrationTokenOperation, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).MigrationRequestMigrationPath = (string)content.GetValueForProperty("MigrationRequestMigrationPath", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210712.IHostPoolPropertiesInternal) this).MigrationRequestMigrationPath, global::System.Convert.ToString); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ListContainerItems" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal ListContainerItems(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IListContainerItemsInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IListContainerItem[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IListContainerItemsInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IListContainerItem>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ListContainerItemTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IListContainerItemsInternal) this).NextLink = (string)content.GetValueForProperty("NextLink", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IListContainerItemsInternal) this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.InconsistentVMDetails" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal InconsistentVMDetails(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IInconsistentVMDetailsInternal) this).CloudName = (string)content.GetValueForProperty("CloudName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IInconsistentVMDetailsInternal) this).CloudName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IInconsistentVMDetailsInternal) this).ErrorId = (string[])content.GetValueForProperty("ErrorId", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IInconsistentVMDetailsInternal) this).ErrorId, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IInconsistentVMDetailsInternal) this).VMName = (string)content.GetValueForProperty("VMName", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IInconsistentVMDetailsInternal) this).VMName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IInconsistentVMDetailsInternal) this).Detail = (string[])content.GetValueForProperty("Detail", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IInconsistentVMDetailsInternal) this).Detail, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.TriggerRecurrence" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal TriggerRecurrence(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Schedule")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IRecurrenceSchedule)content.GetValueForProperty("Schedule", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.RecurrenceScheduleTypeConverter.ConvertFrom); } if (content.Contains("Frequency")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.TriggerFrequency?)content.GetValueForProperty("Frequency", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.TriggerFrequency.CreateFrom); } if (content.Contains("Interval")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).Interval = (int?)content.GetValueForProperty("Interval", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).Interval, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("StartTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).StartTime = (global::System.DateTime?)content.GetValueForProperty("StartTime", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).EndTime = (global::System.DateTime?)content.GetValueForProperty("EndTime", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("TimeZone")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).TimeZone = (string)content.GetValueForProperty("TimeZone", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).TimeZone, global::System.Convert.ToString); } if (content.Contains("ScheduleAdditionalProperty")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).ScheduleAdditionalProperty = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IRecurrenceScheduleAdditionalProperties)content.GetValueForProperty("ScheduleAdditionalProperty", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).ScheduleAdditionalProperty, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.RecurrenceScheduleAdditionalPropertiesTypeConverter.ConvertFrom); } if (content.Contains("ScheduleMinute")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).ScheduleMinute = (int[])content.GetValueForProperty("ScheduleMinute", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).ScheduleMinute, __y => TypeConverterExtensions.SelectToArray <int>(__y, (__w) => (int)global::System.Convert.ChangeType(__w, typeof(int)))); } if (content.Contains("ScheduleHour")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).ScheduleHour = (int[])content.GetValueForProperty("ScheduleHour", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).ScheduleHour, __y => TypeConverterExtensions.SelectToArray <int>(__y, (__w) => (int)global::System.Convert.ChangeType(__w, typeof(int)))); } if (content.Contains("ScheduleWeekDay")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).ScheduleWeekDay = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.DaysOfWeek[])content.GetValueForProperty("ScheduleWeekDay", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).ScheduleWeekDay, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.DaysOfWeek>(__y, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.DaysOfWeek.CreateFrom)); } if (content.Contains("ScheduleMonthDay")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).ScheduleMonthDay = (int[])content.GetValueForProperty("ScheduleMonthDay", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).ScheduleMonthDay, __y => TypeConverterExtensions.SelectToArray <int>(__y, (__w) => (int)global::System.Convert.ChangeType(__w, typeof(int)))); } if (content.Contains("ScheduleMonthlyOccurrence")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).ScheduleMonthlyOccurrence = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IRecurrenceScheduleOccurrence[])content.GetValueForProperty("ScheduleMonthlyOccurrence", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITriggerRecurrenceInternal) this).ScheduleMonthlyOccurrence, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IRecurrenceScheduleOccurrence>(__y, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.RecurrenceScheduleOccurrenceTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyDefinition" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal ManagementPolicyDefinition(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Action")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).Action = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyAction)content.GetValueForProperty("Action", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).Action, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyActionTypeConverter.ConvertFrom); } if (content.Contains("Filter")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).Filter = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyFilter)content.GetValueForProperty("Filter", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).Filter, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyFilterTypeConverter.ConvertFrom); } if (content.Contains("ActionBaseBlob")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).ActionBaseBlob = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyBaseBlob)content.GetValueForProperty("ActionBaseBlob", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).ActionBaseBlob, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyBaseBlobTypeConverter.ConvertFrom); } if (content.Contains("ActionSnapshot")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).ActionSnapshot = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicySnapShot)content.GetValueForProperty("ActionSnapshot", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).ActionSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicySnapShotTypeConverter.ConvertFrom); } if (content.Contains("FilterPrefixMatch")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).FilterPrefixMatch = (string[])content.GetValueForProperty("FilterPrefixMatch", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).FilterPrefixMatch, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("FilterBlobType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).FilterBlobType = (string[])content.GetValueForProperty("FilterBlobType", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).FilterBlobType, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("BaseBlobTierToCool")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).BaseBlobTierToCool = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IDateAfterModification)content.GetValueForProperty("BaseBlobTierToCool", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).BaseBlobTierToCool, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.DateAfterModificationTypeConverter.ConvertFrom); } if (content.Contains("BaseBlobTierToArchive")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).BaseBlobTierToArchive = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IDateAfterModification)content.GetValueForProperty("BaseBlobTierToArchive", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).BaseBlobTierToArchive, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.DateAfterModificationTypeConverter.ConvertFrom); } if (content.Contains("BaseBlobDelete")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).BaseBlobDelete = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IDateAfterModification)content.GetValueForProperty("BaseBlobDelete", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).BaseBlobDelete, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.DateAfterModificationTypeConverter.ConvertFrom); } if (content.Contains("SnapshotDelete")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).SnapshotDelete = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IDateAfterCreation)content.GetValueForProperty("SnapshotDelete", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).SnapshotDelete, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.DateAfterCreationTypeConverter.ConvertFrom); } if (content.Contains("TierToCoolDaysAfterModificationGreaterThan")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).TierToCoolDaysAfterModificationGreaterThan = (float)content.GetValueForProperty("TierToCoolDaysAfterModificationGreaterThan", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).TierToCoolDaysAfterModificationGreaterThan, (__y) => (float)global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("TierToArchiveDaysAfterModificationGreaterThan")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).TierToArchiveDaysAfterModificationGreaterThan = (float)content.GetValueForProperty("TierToArchiveDaysAfterModificationGreaterThan", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).TierToArchiveDaysAfterModificationGreaterThan, (__y) => (float)global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("DeleteDaysAfterModificationGreaterThan")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).DeleteDaysAfterModificationGreaterThan = (float)content.GetValueForProperty("DeleteDaysAfterModificationGreaterThan", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).DeleteDaysAfterModificationGreaterThan, (__y) => (float)global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("DeleteDaysAfterCreationGreaterThan")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).DeleteDaysAfterCreationGreaterThan = (float)content.GetValueForProperty("DeleteDaysAfterCreationGreaterThan", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyDefinitionInternal) this).DeleteDaysAfterCreationGreaterThan, (__y) => (float)global::System.Convert.ChangeType(__y, typeof(float))); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.ClusterProperties" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal ClusterProperties(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).KeyVaultProperty = (Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IKeyVaultProperties)content.GetValueForProperty("KeyVaultProperty", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).KeyVaultProperty, Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.KeyVaultPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).LanguageExtension = (Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.ILanguageExtensionsList)content.GetValueForProperty("LanguageExtension", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).LanguageExtension, Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.LanguageExtensionsListTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).OptimizedAutoscale = (Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IOptimizedAutoscale)content.GetValueForProperty("OptimizedAutoscale", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).OptimizedAutoscale, Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.OptimizedAutoscaleTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).VirtualNetworkConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IVirtualNetworkConfiguration)content.GetValueForProperty("VirtualNetworkConfiguration", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).VirtualNetworkConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.VirtualNetworkConfigurationTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).DataIngestionUri = (string)content.GetValueForProperty("DataIngestionUri", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).DataIngestionUri, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).EnableDiskEncryption = (bool?)content.GetValueForProperty("EnableDiskEncryption", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).EnableDiskEncryption, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).EnableDoubleEncryption = (bool?)content.GetValueForProperty("EnableDoubleEncryption", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).EnableDoubleEncryption, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).EnablePurge = (bool?)content.GetValueForProperty("EnablePurge", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).EnablePurge, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).EnableStreamingIngest = (bool?)content.GetValueForProperty("EnableStreamingIngest", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).EnableStreamingIngest, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Kusto.Support.ProvisioningState?)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Kusto.Support.ProvisioningState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).State = (Microsoft.Azure.PowerShell.Cmdlets.Kusto.Support.State?)content.GetValueForProperty("State", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).State, Microsoft.Azure.PowerShell.Cmdlets.Kusto.Support.State.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).StateReason = (string)content.GetValueForProperty("StateReason", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).StateReason, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).TrustedExternalTenant = (Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.ITrustedExternalTenant[])content.GetValueForProperty("TrustedExternalTenant", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).TrustedExternalTenant, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.ITrustedExternalTenant>(__y, Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.TrustedExternalTenantTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).Uri = (string)content.GetValueForProperty("Uri", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).Uri, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).KeyVaultPropertyKeyName = (string)content.GetValueForProperty("KeyVaultPropertyKeyName", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).KeyVaultPropertyKeyName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).VirtualNetworkConfigurationSubnetId = (string)content.GetValueForProperty("VirtualNetworkConfigurationSubnetId", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).VirtualNetworkConfigurationSubnetId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).KeyVaultPropertyKeyVersion = (string)content.GetValueForProperty("KeyVaultPropertyKeyVersion", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).KeyVaultPropertyKeyVersion, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).LanguageExtensionValue = (Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.ILanguageExtension[])content.GetValueForProperty("LanguageExtensionValue", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).LanguageExtensionValue, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.ILanguageExtension>(__y, Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.LanguageExtensionTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).OptimizedAutoscaleIsEnabled = (bool)content.GetValueForProperty("OptimizedAutoscaleIsEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).OptimizedAutoscaleIsEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).KeyVaultPropertyKeyVaultUri = (string)content.GetValueForProperty("KeyVaultPropertyKeyVaultUri", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).KeyVaultPropertyKeyVaultUri, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).OptimizedAutoscaleMinimum = (int)content.GetValueForProperty("OptimizedAutoscaleMinimum", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).OptimizedAutoscaleMinimum, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).OptimizedAutoscaleVersion = (int)content.GetValueForProperty("OptimizedAutoscaleVersion", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).OptimizedAutoscaleVersion, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).VirtualNetworkConfigurationDataManagementPublicIPId = (string)content.GetValueForProperty("VirtualNetworkConfigurationDataManagementPublicIPId", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).VirtualNetworkConfigurationDataManagementPublicIPId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).VirtualNetworkConfigurationEnginePublicIPId = (string)content.GetValueForProperty("VirtualNetworkConfigurationEnginePublicIPId", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).VirtualNetworkConfigurationEnginePublicIPId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).OptimizedAutoscaleMaximum = (int)content.GetValueForProperty("OptimizedAutoscaleMaximum", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20200614.IClusterPropertiesInternal) this).OptimizedAutoscaleMaximum, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.UrlFileExtensionMatchConditionParameters" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal UrlFileExtensionMatchConditionParameters(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("TypeName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IUrlFileExtensionMatchConditionParametersInternal) this).TypeName = (string)content.GetValueForProperty("TypeName", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IUrlFileExtensionMatchConditionParametersInternal) this).TypeName, global::System.Convert.ToString); } if (content.Contains("Operator")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IUrlFileExtensionMatchConditionParametersInternal) this).Operator = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.UrlFileExtensionOperator)content.GetValueForProperty("Operator", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IUrlFileExtensionMatchConditionParametersInternal) this).Operator, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.UrlFileExtensionOperator.CreateFrom); } if (content.Contains("NegateCondition")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IUrlFileExtensionMatchConditionParametersInternal) this).NegateCondition = (bool?)content.GetValueForProperty("NegateCondition", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IUrlFileExtensionMatchConditionParametersInternal) this).NegateCondition, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("MatchValue")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IUrlFileExtensionMatchConditionParametersInternal) this).MatchValue = (string[])content.GetValueForProperty("MatchValue", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IUrlFileExtensionMatchConditionParametersInternal) this).MatchValue, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("Transform")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IUrlFileExtensionMatchConditionParametersInternal) this).Transform = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[])content.GetValueForProperty("Transform", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IUrlFileExtensionMatchConditionParametersInternal) this).Transform, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform>(__y, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform.CreateFrom)); } AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.OperationResult" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal OperationResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Error")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Error = (Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.IErrorDetail)content.GetValueForProperty("Error", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Error, Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.ErrorDetailTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Status")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Status = (Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.OperationStatus)content.GetValueForProperty("Status", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Status, Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.OperationStatus.CreateFrom); } if (content.Contains("StartTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).StartTime = (global::System.DateTime?)content.GetValueForProperty("StartTime", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).EndTime = (global::System.DateTime?)content.GetValueForProperty("EndTime", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PercentComplete")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).PercentComplete = (float?)content.GetValueForProperty("PercentComplete", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).PercentComplete, (__y) => (float)global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("Code")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Code = (string)content.GetValueForProperty("Code", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Message = (string)content.GetValueForProperty("Message", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Target = (string)content.GetValueForProperty("Target", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.IErrorDetail[])content.GetValueForProperty("Detail", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).Detail, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.IErrorDetail>(__y, Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.IErrorAdditionalInfo[])content.GetValueForProperty("AdditionalInfo", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IOperationResultInternal) this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.IErrorAdditionalInfo>(__y, Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.HyperVJobCollection" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal HyperVJobCollection(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IHyperVJobCollectionInternal) this).NextLink = (string)content.GetValueForProperty("NextLink", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IHyperVJobCollectionInternal) this).NextLink, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IHyperVJobCollectionInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IHyperVJob[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IHyperVJobCollectionInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IHyperVJob>(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.HyperVJobTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Cluster" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal Cluster(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku)content.GetValueForProperty("Sku", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).Sku, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.SkuTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).Zone = (string[])content.GetValueForProperty("Zone", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).Zone, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal) this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal) this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal) this).Type, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal) this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags)content.GetValueForProperty("Tag", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal) this).Tag, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal) this).Location = (string)content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal) this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName)content.GetValueForProperty("SkuName", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?)content.GetValueForProperty("ResourceState", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).SkuCapacity = (int?)content.GetValueForProperty("SkuCapacity", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).SkuCapacity, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).MinimumTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion?)content.GetValueForProperty("MinimumTlsVersion", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).MinimumTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).HostName = (string)content.GetValueForProperty("HostName", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).HostName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).RedisVersion = (string)content.GetValueForProperty("RedisVersion", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).RedisVersion, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[])content.GetValueForProperty("PrivateEndpointConnection", ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal) this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection>(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.PrivateEndpointConnectionTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.DatabaseInstance" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal DatabaseInstance(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.DatabaseInstancePropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceInternal) this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceInternal) this).Type, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceInternal) this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceInternal) this).DiscoveryData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceDiscoveryDetails[])content.GetValueForProperty("DiscoveryData", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceInternal) this).DiscoveryData, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceDiscoveryDetails>(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.DatabaseInstanceDiscoveryDetailsTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceInternal) this).LastUpdatedTime = (global::System.DateTime?)content.GetValueForProperty("LastUpdatedTime", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceInternal) this).LastUpdatedTime, (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.Api20180901Preview.IDatabaseInstanceInternal) this).Summary = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstancePropertiesSummary)content.GetValueForProperty("Summary", ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IDatabaseInstanceInternal) this).Summary, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.DatabaseInstancePropertiesSummaryTypeConverter.ConvertFrom); AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.EventSourceListResponse" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal EventSourceListResponse(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.IEventSourceListResponseInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.IEventSourceResource[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.IEventSourceListResponseInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.IEventSourceResource>(__y, Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.EventSourceResourceTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ResourceProviderOperationList" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal ResourceProviderOperationList(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.IResourceProviderOperationListInternal) this).NextLink = (string)content.GetValueForProperty("NextLink", ((Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.IResourceProviderOperationListInternal) this).NextLink, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.IResourceProviderOperationListInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.IResourceProviderOperation[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.IResourceProviderOperationListInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.IResourceProviderOperation>(__y, Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ResourceProviderOperationTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20220310.HybridComputePrivateLinkScopeProperties" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal HybridComputePrivateLinkScopeProperties(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("PublicNetworkAccess")) { ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20220310.IHybridComputePrivateLinkScopePropertiesInternal) this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Support.PublicNetworkAccessType?)content.GetValueForProperty("PublicNetworkAccess", ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20220310.IHybridComputePrivateLinkScopePropertiesInternal) this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Support.PublicNetworkAccessType.CreateFrom); } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20220310.IHybridComputePrivateLinkScopePropertiesInternal) this).ProvisioningState = (string)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20220310.IHybridComputePrivateLinkScopePropertiesInternal) this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("PrivateLinkScopeId")) { ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20220310.IHybridComputePrivateLinkScopePropertiesInternal) this).PrivateLinkScopeId = (string)content.GetValueForProperty("PrivateLinkScopeId", ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20220310.IHybridComputePrivateLinkScopePropertiesInternal) this).PrivateLinkScopeId, global::System.Convert.ToString); } if (content.Contains("PrivateEndpointConnection")) { ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20220310.IHybridComputePrivateLinkScopePropertiesInternal) this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20220310.IPrivateEndpointConnectionDataModel[])content.GetValueForProperty("PrivateEndpointConnection", ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20220310.IHybridComputePrivateLinkScopePropertiesInternal) this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20220310.IPrivateEndpointConnectionDataModel>(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20220310.PrivateEndpointConnectionDataModelTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.MetricSpecificationAutoGenerated" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal MetricSpecificationAutoGenerated(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).DisplayName = (string)content.GetValueForProperty("DisplayName", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).DisplayName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).DisplayDescription = (string)content.GetValueForProperty("DisplayDescription", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).DisplayDescription, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).Unit = (string)content.GetValueForProperty("Unit", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).Unit, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).Dimension = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IDimensionAutoGenerated[])content.GetValueForProperty("Dimension", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).Dimension, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IDimensionAutoGenerated>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.DimensionAutoGeneratedTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).AggregationType = (string)content.GetValueForProperty("AggregationType", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).AggregationType, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).FillGapWithZero = (bool?)content.GetValueForProperty("FillGapWithZero", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).FillGapWithZero, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).Category = (string)content.GetValueForProperty("Category", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).Category, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).ResourceIdDimensionNameOverride = (string)content.GetValueForProperty("ResourceIdDimensionNameOverride", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IMetricSpecificationAutoGeneratedInternal) this).ResourceIdDimensionNameOverride, 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.Functions.Models.Api20190801.NetworkFeaturesProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal NetworkFeaturesProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VirtualNetworkConnection = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IVnetInfo)content.GetValueForProperty("VirtualNetworkConnection", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VirtualNetworkConnection, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.VnetInfoTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VirtualNetworkName = (string)content.GetValueForProperty("VirtualNetworkName", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VirtualNetworkName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).HybridConnection = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IRelayServiceConnectionEntity[])content.GetValueForProperty("HybridConnection", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).HybridConnection, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IRelayServiceConnectionEntity>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.RelayServiceConnectionEntityTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).HybridConnectionsV2 = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHybridConnection[])content.GetValueForProperty("HybridConnectionsV2", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).HybridConnectionsV2, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHybridConnection>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.HybridConnectionTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VirtualNetworkConnectionId = (string)content.GetValueForProperty("VirtualNetworkConnectionId", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VirtualNetworkConnectionId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VirtualNetworkConnectionKind = (string)content.GetValueForProperty("VirtualNetworkConnectionKind", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VirtualNetworkConnectionKind, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VirtualNetworkConnectionType = (string)content.GetValueForProperty("VirtualNetworkConnectionType", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VirtualNetworkConnectionType, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VirtualNetworkConnectionProperty = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IVnetInfoProperties)content.GetValueForProperty("VirtualNetworkConnectionProperty", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VirtualNetworkConnectionProperty, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.VnetInfoPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VirtualNetworkConnectionName = (string)content.GetValueForProperty("VirtualNetworkConnectionName", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VirtualNetworkConnectionName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VnetResourceId = (string)content.GetValueForProperty("VnetResourceId", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).VnetResourceId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).IsSwift = (bool?)content.GetValueForProperty("IsSwift", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).IsSwift, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).CertBlob = (string)content.GetValueForProperty("CertBlob", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).CertBlob, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).Route = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IVnetRoute[])content.GetValueForProperty("Route", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).Route, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IVnetRoute>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.VnetRouteTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).ResyncRequired = (bool?)content.GetValueForProperty("ResyncRequired", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).ResyncRequired, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).DnsServer = (string)content.GetValueForProperty("DnsServer", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).DnsServer, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).CertThumbprint = (string)content.GetValueForProperty("CertThumbprint", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.INetworkFeaturesPropertiesInternal) this).CertThumbprint, 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.Databricks.Models.Api20180401.ErrorResponse" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal ErrorResponse(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorResponseInternal) this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorInfo)content.GetValueForProperty("Error", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorResponseInternal) this).Error, Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.ErrorInfoTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorResponseInternal) this).Code = (string)content.GetValueForProperty("Code", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorResponseInternal) this).Code, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorResponseInternal) this).Message = (string)content.GetValueForProperty("Message", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorResponseInternal) this).Message, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorResponseInternal) this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorDetail[])content.GetValueForProperty("Detail", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorResponseInternal) this).Detail, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorDetail>(__y, Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.ErrorDetailTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorResponseInternal) this).Innererror = (string)content.GetValueForProperty("Innererror", ((Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorResponseInternal) this).Innererror, 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.Purview.Models.Api20210701.Account" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal Account(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.AccountPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountSku)content.GetValueForProperty("Sku", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).Sku, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.AccountSkuTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).IdentityPrincipalId = (string)content.GetValueForProperty("IdentityPrincipalId", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).IdentityPrincipalId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).IdentityTenantId = (string)content.GetValueForProperty("IdentityTenantId", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.Type?)content.GetValueForProperty("IdentityType", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.Type.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataCreatedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataCreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataCreatedBy = (string)content.GetValueForProperty("SystemDataCreatedBy", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataCreatedBy, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.CreatedByType?)content.GetValueForProperty("SystemDataCreatedByType", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.CreatedByType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataLastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataLastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataLastModifiedBy = (string)content.GetValueForProperty("SystemDataLastModifiedBy", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataLastModifiedBy, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.LastModifiedByType?)content.GetValueForProperty("SystemDataLastModifiedByType", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.LastModifiedByType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IIdentity)content.GetValueForProperty("Identity", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Identity, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IdentityTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ISystemData)content.GetValueForProperty("SystemData", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Location = (string)content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceTags)content.GetValueForProperty("Tag", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.TrackedResourceTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ITrackedResourceInternal) this).Type, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CloudConnector = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ICloudConnectors)content.GetValueForProperty("CloudConnector", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CloudConnector, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.CloudConnectorsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResource = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IManagedResources)content.GetValueForProperty("ManagedResource", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResource, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.ManagedResourcesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.ProvisioningState?)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.ProvisioningState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.Name?)content.GetValueForProperty("SkuName", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.Name.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).Endpoint = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountEndpoints)content.GetValueForProperty("Endpoint", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).Endpoint, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.AccountEndpointsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CreatedAt = (global::System.DateTime?)content.GetValueForProperty("CreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CreatedBy = (string)content.GetValueForProperty("CreatedBy", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CreatedBy, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CreatedByObjectId = (string)content.GetValueForProperty("CreatedByObjectId", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CreatedByObjectId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).FriendlyName = (string)content.GetValueForProperty("FriendlyName", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).FriendlyName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceGroupName = (string)content.GetValueForProperty("ManagedResourceGroupName", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceGroupName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IPrivateEndpointConnection[])content.GetValueForProperty("PrivateEndpointConnection", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IPrivateEndpointConnection>(__y, Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.PrivateEndpointConnectionTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.PublicNetworkAccess?)content.GetValueForProperty("PublicNetworkAccess", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.PublicNetworkAccess.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceGroup = (string)content.GetValueForProperty("ManagedResourceGroup", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceGroup, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceStorageAccount = (string)content.GetValueForProperty("ManagedResourceStorageAccount", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceStorageAccount, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).SkuCapacity = (int?)content.GetValueForProperty("SkuCapacity", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).SkuCapacity, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CloudConnectorAwsExternalId = (string)content.GetValueForProperty("CloudConnectorAwsExternalId", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).CloudConnectorAwsExternalId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).EndpointCatalog = (string)content.GetValueForProperty("EndpointCatalog", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).EndpointCatalog, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).EndpointGuardian = (string)content.GetValueForProperty("EndpointGuardian", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).EndpointGuardian, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).EndpointScan = (string)content.GetValueForProperty("EndpointScan", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).EndpointScan, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceEventHubNamespace = (string)content.GetValueForProperty("ManagedResourceEventHubNamespace", ((Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701.IAccountInternal) this).ManagedResourceEventHubNamespace, 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.Api20201019Preview.ExpandMsixImageProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal ExpandMsixImageProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).DisplayName = (string)content.GetValueForProperty("DisplayName", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).DisplayName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).ImagePath = (string)content.GetValueForProperty("ImagePath", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).ImagePath, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).IsActive = (bool?)content.GetValueForProperty("IsActive", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).IsActive, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).IsRegularRegistration = (bool?)content.GetValueForProperty("IsRegularRegistration", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).IsRegularRegistration, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).LastUpdated = (global::System.DateTime?)content.GetValueForProperty("LastUpdated", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).LastUpdated, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).PackageAlias = (string)content.GetValueForProperty("PackageAlias", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).PackageAlias, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).PackageApplication = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IMsixPackageApplications[])content.GetValueForProperty("PackageApplication", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).PackageApplication, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IMsixPackageApplications>(__y, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.MsixPackageApplicationsTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).PackageDependency = (Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IMsixPackageDependencies[])content.GetValueForProperty("PackageDependency", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).PackageDependency, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IMsixPackageDependencies>(__y, Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.MsixPackageDependenciesTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).PackageFamilyName = (string)content.GetValueForProperty("PackageFamilyName", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).PackageFamilyName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).PackageFullName = (string)content.GetValueForProperty("PackageFullName", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).PackageFullName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).PackageName = (string)content.GetValueForProperty("PackageName", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).PackageName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).PackageRelativePath = (string)content.GetValueForProperty("PackageRelativePath", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).PackageRelativePath, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).Version = (string)content.GetValueForProperty("Version", ((Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201019Preview.IExpandMsixImagePropertiesInternal) this).Version, 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.Api20171201.OperationListResult" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal OperationListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IOperationListResultInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IOperation[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IOperationListResultInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IOperation>(__y, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.OperationTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.TeradataCredentialScan" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal TeradataCredentialScan(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.TeradataCredentialScanPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IProxyResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IProxyResourceInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IProxyResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IProxyResourceInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Kind")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanInternal) this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanAuthorizationType)content.GetValueForProperty("Kind", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanInternal) this).Kind, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanAuthorizationType.CreateFrom); } if (content.Contains("Result")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanInternal) this).Result = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanResult[])content.GetValueForProperty("Result", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanInternal) this).Result, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanResult>(__y, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ScanResultTypeConverter.ConvertFrom)); } if (content.Contains("ConnectedVia")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).ConnectedVia = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IConnectedVia)content.GetValueForProperty("ConnectedVia", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).ConnectedVia, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ConnectedViaTypeConverter.ConvertFrom); } if (content.Contains("CollectionReferenceName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).CollectionReferenceName = (string)content.GetValueForProperty("CollectionReferenceName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).CollectionReferenceName, global::System.Convert.ToString); } if (content.Contains("ConnectedViaReferenceName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).ConnectedViaReferenceName = (string)content.GetValueForProperty("ConnectedViaReferenceName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).ConnectedViaReferenceName, global::System.Convert.ToString); } if (content.Contains("Collection")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).Collection = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ICollectionReference)content.GetValueForProperty("Collection", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).Collection, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.CollectionReferenceTypeConverter.ConvertFrom); } if (content.Contains("ScanRulesetName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).ScanRulesetName = (string)content.GetValueForProperty("ScanRulesetName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).ScanRulesetName, global::System.Convert.ToString); } if (content.Contains("ScanRulesetType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).ScanRulesetType = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetType?)content.GetValueForProperty("ScanRulesetType", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).ScanRulesetType, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetType.CreateFrom); } if (content.Contains("Worker")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).Worker = (int?)content.GetValueForProperty("Worker", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).Worker, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CreatedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).CreatedAt = (global::System.DateTime?)content.GetValueForProperty("CreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).LastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("LastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("MaximumMemoryAllowedInGb")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).MaximumMemoryAllowedInGb = (string)content.GetValueForProperty("MaximumMemoryAllowedInGb", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).MaximumMemoryAllowedInGb, global::System.Convert.ToString); } if (content.Contains("MitiCache")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).MitiCache = (string)content.GetValueForProperty("MitiCache", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).MitiCache, global::System.Convert.ToString); } if (content.Contains("Credential")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).Credential = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ICredentialReference)content.GetValueForProperty("Credential", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).Credential, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.CredentialReferenceTypeConverter.ConvertFrom); } if (content.Contains("Schema")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).Schema = (string)content.GetValueForProperty("Schema", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).Schema, global::System.Convert.ToString); } if (content.Contains("DriverLocation")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).DriverLocation = (string)content.GetValueForProperty("DriverLocation", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).DriverLocation, global::System.Convert.ToString); } if (content.Contains("CredentialReferenceName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).CredentialReferenceName = (string)content.GetValueForProperty("CredentialReferenceName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).CredentialReferenceName, global::System.Convert.ToString); } if (content.Contains("CredentialType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).CredentialType = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.CredentialType?)content.GetValueForProperty("CredentialType", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).CredentialType, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.CredentialType.CreateFrom); } if (content.Contains("CollectionLastModifiedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).CollectionLastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("CollectionLastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).CollectionLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CollectionType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).CollectionType = (string)content.GetValueForProperty("CollectionType", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ITeradataCredentialScanInternal) this).CollectionType, global::System.Convert.ToString); } AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.HybridConnectionCollection" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal HybridConnectionCollection(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.Functions.Models.Api20190801.IHybridConnectionCollectionInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHybridConnection[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHybridConnectionCollectionInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHybridConnection>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.HybridConnectionTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHybridConnectionCollectionInternal) this).NextLink = (string)content.GetValueForProperty("NextLink", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHybridConnectionCollectionInternal) this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.ContainerServiceLinuxProfile" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal ContainerServiceLinuxProfile(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Ssh")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceLinuxProfileInternal) this).Ssh = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceSshConfiguration)content.GetValueForProperty("Ssh", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceLinuxProfileInternal) this).Ssh, Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.ContainerServiceSshConfigurationTypeConverter.ConvertFrom); } if (content.Contains("AdminUsername")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceLinuxProfileInternal) this).AdminUsername = (string)content.GetValueForProperty("AdminUsername", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceLinuxProfileInternal) this).AdminUsername, global::System.Convert.ToString); } if (content.Contains("SshPublicKey")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceLinuxProfileInternal) this).SshPublicKey = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceSshPublicKey[])content.GetValueForProperty("SshPublicKey", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceLinuxProfileInternal) this).SshPublicKey, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceSshPublicKey>(__y, Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.ContainerServiceSshPublicKeyTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicy" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal ManagementPolicy(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.IResourceInternal) this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.IResourceInternal) this).Type, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.IResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.IResourceInternal) this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) this).Policy = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicySchema)content.GetValueForProperty("Policy", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) this).Policy, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicySchemaTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) this).LastModifiedTime = (global::System.DateTime?)content.GetValueForProperty("LastModifiedTime", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) 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.Functions.Models.Api20190401.IManagementPolicyInternal) this).PolicyRule = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyRule[])content.GetValueForProperty("PolicyRule", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyInternal) this).PolicyRule, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicyRule>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyRuleTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.StoragePoolOperationListResult" /// />. /// </summary> /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param> internal StoragePoolOperationListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); if (returnNow) { return; } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IStoragePoolOperationListResultInternal) this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IStoragePoolRpOperation[])content.GetValueForProperty("Value", ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IStoragePoolOperationListResultInternal) this).Value, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IStoragePoolRpOperation>(__y, Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.StoragePoolRpOperationTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IStoragePoolOperationListResultInternal) this).NextLink = (string)content.GetValueForProperty("NextLink", ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210401Preview.IStoragePoolOperationListResultInternal) this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); }