/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.WebTestProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal WebTestProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Configuration")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesConfiguration)content.GetValueForProperty("Configuration", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).Configuration, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.WebTestPropertiesConfigurationTypeConverter.ConvertFrom); } if (content.Contains("Request")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).Request = (Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesRequest)content.GetValueForProperty("Request", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).Request, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.WebTestPropertiesRequestTypeConverter.ConvertFrom); } if (content.Contains("ValidationRule")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ValidationRule = (Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesValidationRules)content.GetValueForProperty("ValidationRule", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ValidationRule, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.WebTestPropertiesValidationRulesTypeConverter.ConvertFrom); } if (content.Contains("SyntheticMonitorId")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).SyntheticMonitorId = (string)content.GetValueForProperty("SyntheticMonitorId", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).SyntheticMonitorId, global::System.Convert.ToString); } if (content.Contains("WebTestName")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).WebTestName = (string)content.GetValueForProperty("WebTestName", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).WebTestName, global::System.Convert.ToString); } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).Description = (string)content.GetValueForProperty("Description", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).Description, global::System.Convert.ToString); } if (content.Contains("Enabled")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).Enabled = (bool?)content.GetValueForProperty("Enabled", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).Enabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Frequency")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).Frequency = (int?)content.GetValueForProperty("Frequency", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).Frequency, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Timeout")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).Timeout = (int?)content.GetValueForProperty("Timeout", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).Timeout, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("WebTestKind")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).WebTestKind = (Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.WebTestKindEnum)content.GetValueForProperty("WebTestKind", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).WebTestKind, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.WebTestKindEnum.CreateFrom); } if (content.Contains("RetryEnabled")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).RetryEnabled = (bool?)content.GetValueForProperty("RetryEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).RetryEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Location")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).Location = (Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestGeolocation[])content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).Location, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestGeolocation>(__y, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.WebTestGeolocationTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ProvisioningState = (string)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("ConfigurationWebTest")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ConfigurationWebTest = (string)content.GetValueForProperty("ConfigurationWebTest", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ConfigurationWebTest, global::System.Convert.ToString); } if (content.Contains("RequestUrl")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).RequestUrl = (string)content.GetValueForProperty("RequestUrl", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).RequestUrl, global::System.Convert.ToString); } if (content.Contains("RequestHeader")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).RequestHeader = (Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IHeaderField[])content.GetValueForProperty("RequestHeader", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).RequestHeader, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IHeaderField>(__y, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.HeaderFieldTypeConverter.ConvertFrom)); } if (content.Contains("RequestHttpVerb")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).RequestHttpVerb = (string)content.GetValueForProperty("RequestHttpVerb", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).RequestHttpVerb, global::System.Convert.ToString); } if (content.Contains("RequestBody")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).RequestBody = (string)content.GetValueForProperty("RequestBody", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).RequestBody, global::System.Convert.ToString); } if (content.Contains("RequestParseDependentRequest")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).RequestParseDependentRequest = (bool?)content.GetValueForProperty("RequestParseDependentRequest", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).RequestParseDependentRequest, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("RequestFollowRedirect")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).RequestFollowRedirect = (bool?)content.GetValueForProperty("RequestFollowRedirect", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).RequestFollowRedirect, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ValidationRuleContentValidation")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ValidationRuleContentValidation = (Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesValidationRulesContentValidation)content.GetValueForProperty("ValidationRuleContentValidation", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ValidationRuleContentValidation, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.WebTestPropertiesValidationRulesContentValidationTypeConverter.ConvertFrom); } if (content.Contains("ValidationRuleSslCheck")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ValidationRuleSslCheck = (bool?)content.GetValueForProperty("ValidationRuleSslCheck", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ValidationRuleSslCheck, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ValidationRuleSslCertRemainingLifetimeCheck")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ValidationRuleSslCertRemainingLifetimeCheck = (int?)content.GetValueForProperty("ValidationRuleSslCertRemainingLifetimeCheck", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ValidationRuleSslCertRemainingLifetimeCheck, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ValidationRuleExpectedHttpStatusCode")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ValidationRuleExpectedHttpStatusCode = (int?)content.GetValueForProperty("ValidationRuleExpectedHttpStatusCode", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ValidationRuleExpectedHttpStatusCode, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ValidationRuleIgnoreHttpsStatusCode")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ValidationRuleIgnoreHttpsStatusCode = (bool?)content.GetValueForProperty("ValidationRuleIgnoreHttpsStatusCode", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ValidationRuleIgnoreHttpsStatusCode, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ContentValidationContentMatch")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ContentValidationContentMatch = (string)content.GetValueForProperty("ContentValidationContentMatch", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ContentValidationContentMatch, global::System.Convert.ToString); } if (content.Contains("ContentValidationIgnoreCase")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ContentValidationIgnoreCase = (bool?)content.GetValueForProperty("ContentValidationIgnoreCase", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ContentValidationIgnoreCase, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ContentValidationPassIfTextFound")) { ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ContentValidationPassIfTextFound = (bool?)content.GetValueForProperty("ContentValidationPassIfTextFound", ((Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20180501Preview.IWebTestPropertiesInternal) this).ContentValidationPassIfTextFound, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } 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.SiteAuthSettingsProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal SiteAuthSettingsProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Enabled")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).Enabled = (bool?)content.GetValueForProperty("Enabled", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).Enabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("RuntimeVersion")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).RuntimeVersion = (string)content.GetValueForProperty("RuntimeVersion", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).RuntimeVersion, global::System.Convert.ToString); } if (content.Contains("UnauthenticatedClientAction")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).UnauthenticatedClientAction = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.UnauthenticatedClientAction?)content.GetValueForProperty("UnauthenticatedClientAction", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).UnauthenticatedClientAction, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.UnauthenticatedClientAction.CreateFrom); } if (content.Contains("TokenStoreEnabled")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).TokenStoreEnabled = (bool?)content.GetValueForProperty("TokenStoreEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).TokenStoreEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AllowedExternalRedirectUrl")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).AllowedExternalRedirectUrl = (string[])content.GetValueForProperty("AllowedExternalRedirectUrl", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).AllowedExternalRedirectUrl, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("DefaultProvider")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).DefaultProvider = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.BuiltInAuthenticationProvider?)content.GetValueForProperty("DefaultProvider", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).DefaultProvider, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.BuiltInAuthenticationProvider.CreateFrom); } if (content.Contains("TokenRefreshExtensionHour")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).TokenRefreshExtensionHour = (double?)content.GetValueForProperty("TokenRefreshExtensionHour", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).TokenRefreshExtensionHour, (__y) => (double)global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("ClientId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).ClientId = (string)content.GetValueForProperty("ClientId", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).ClientId, global::System.Convert.ToString); } if (content.Contains("ClientSecret")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).ClientSecret = (string)content.GetValueForProperty("ClientSecret", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).ClientSecret, global::System.Convert.ToString); } if (content.Contains("ClientSecretCertificateThumbprint")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).ClientSecretCertificateThumbprint = (string)content.GetValueForProperty("ClientSecretCertificateThumbprint", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).ClientSecretCertificateThumbprint, global::System.Convert.ToString); } if (content.Contains("Issuer")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).Issuer = (string)content.GetValueForProperty("Issuer", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).Issuer, global::System.Convert.ToString); } if (content.Contains("ValidateIssuer")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).ValidateIssuer = (bool?)content.GetValueForProperty("ValidateIssuer", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).ValidateIssuer, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AllowedAudience")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).AllowedAudience = (string[])content.GetValueForProperty("AllowedAudience", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).AllowedAudience, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("AdditionalLoginParam")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).AdditionalLoginParam = (string[])content.GetValueForProperty("AdditionalLoginParam", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).AdditionalLoginParam, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("GoogleClientId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).GoogleClientId = (string)content.GetValueForProperty("GoogleClientId", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).GoogleClientId, global::System.Convert.ToString); } if (content.Contains("GoogleClientSecret")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).GoogleClientSecret = (string)content.GetValueForProperty("GoogleClientSecret", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).GoogleClientSecret, global::System.Convert.ToString); } if (content.Contains("GoogleOAuthScope")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).GoogleOAuthScope = (string[])content.GetValueForProperty("GoogleOAuthScope", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).GoogleOAuthScope, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("FacebookAppId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).FacebookAppId = (string)content.GetValueForProperty("FacebookAppId", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).FacebookAppId, global::System.Convert.ToString); } if (content.Contains("FacebookAppSecret")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).FacebookAppSecret = (string)content.GetValueForProperty("FacebookAppSecret", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).FacebookAppSecret, global::System.Convert.ToString); } if (content.Contains("FacebookOAuthScope")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).FacebookOAuthScope = (string[])content.GetValueForProperty("FacebookOAuthScope", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).FacebookOAuthScope, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("TwitterConsumerKey")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).TwitterConsumerKey = (string)content.GetValueForProperty("TwitterConsumerKey", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).TwitterConsumerKey, global::System.Convert.ToString); } if (content.Contains("TwitterConsumerSecret")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).TwitterConsumerSecret = (string)content.GetValueForProperty("TwitterConsumerSecret", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).TwitterConsumerSecret, global::System.Convert.ToString); } if (content.Contains("MicrosoftAccountClientId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).MicrosoftAccountClientId = (string)content.GetValueForProperty("MicrosoftAccountClientId", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).MicrosoftAccountClientId, global::System.Convert.ToString); } if (content.Contains("MicrosoftAccountClientSecret")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).MicrosoftAccountClientSecret = (string)content.GetValueForProperty("MicrosoftAccountClientSecret", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).MicrosoftAccountClientSecret, global::System.Convert.ToString); } if (content.Contains("MicrosoftAccountOAuthScope")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).MicrosoftAccountOAuthScope = (string[])content.GetValueForProperty("MicrosoftAccountOAuthScope", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteAuthSettingsPropertiesInternal) this).MicrosoftAccountOAuthScope, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.EventHubConnectionProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal EventHubConnectionProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("EventHubResourceId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).EventHubResourceId = (string)content.GetValueForProperty("EventHubResourceId", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).EventHubResourceId, global::System.Convert.ToString); } if (content.Contains("ConsumerGroup")) { ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).ConsumerGroup = (string)content.GetValueForProperty("ConsumerGroup", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).ConsumerGroup, global::System.Convert.ToString); } if (content.Contains("TableName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).TableName = (string)content.GetValueForProperty("TableName", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).TableName, global::System.Convert.ToString); } if (content.Contains("MappingRuleName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).MappingRuleName = (string)content.GetValueForProperty("MappingRuleName", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).MappingRuleName, global::System.Convert.ToString); } if (content.Contains("DataFormat")) { ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).DataFormat = (Microsoft.Azure.PowerShell.Cmdlets.Kusto.Support.EventHubDataFormat?)content.GetValueForProperty("DataFormat", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).DataFormat, Microsoft.Azure.PowerShell.Cmdlets.Kusto.Support.EventHubDataFormat.CreateFrom); } if (content.Contains("EventSystemProperty")) { ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).EventSystemProperty = (string[])content.GetValueForProperty("EventSystemProperty", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).EventSystemProperty, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("Compression")) { ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).Compression = (Microsoft.Azure.PowerShell.Cmdlets.Kusto.Support.Compression?)content.GetValueForProperty("Compression", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).Compression, Microsoft.Azure.PowerShell.Cmdlets.Kusto.Support.Compression.CreateFrom); } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Kusto.Support.ProvisioningState?)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Kusto.Support.ProvisioningState.CreateFrom); } if (content.Contains("ManagedIdentityResourceId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).ManagedIdentityResourceId = (string)content.GetValueForProperty("ManagedIdentityResourceId", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).ManagedIdentityResourceId, global::System.Convert.ToString); } if (content.Contains("ManagedIdentityObjectId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).ManagedIdentityObjectId = (string)content.GetValueForProperty("ManagedIdentityObjectId", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).ManagedIdentityObjectId, global::System.Convert.ToString); } if (content.Contains("DatabaseRouting")) { ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).DatabaseRouting = (Microsoft.Azure.PowerShell.Cmdlets.Kusto.Support.DatabaseRouting?)content.GetValueForProperty("DatabaseRouting", ((Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20220201.IEventHubConnectionPropertiesInternal) this).DatabaseRouting, Microsoft.Azure.PowerShell.Cmdlets.Kusto.Support.DatabaseRouting.CreateFrom); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.SqlMigrationService" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal SqlMigrationService(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ISqlMigrationServiceInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ISqlMigrationServiceProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ISqlMigrationServiceInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.SqlMigrationServicePropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).SystemDataCreatedBy = (string)content.GetValueForProperty("SystemDataCreatedBy", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).SystemDataCreatedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataCreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?)content.GetValueForProperty("SystemDataCreatedByType", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).SystemDataLastModifiedBy = (string)content.GetValueForProperty("SystemDataLastModifiedBy", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?)content.GetValueForProperty("SystemDataLastModifiedByType", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).SystemDataLastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataLastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ISystemData)content.GetValueForProperty("SystemData", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Location")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).Location = (string)content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).Location, global::System.Convert.ToString); } if (content.Contains("Tag")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceTags)content.GetValueForProperty("Tag", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ITrackedResourceInternal) this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ISqlMigrationServiceInternal) this).ProvisioningState = (string)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ISqlMigrationServiceInternal) this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("IntegrationRuntimeState")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ISqlMigrationServiceInternal) this).IntegrationRuntimeState = (string)content.GetValueForProperty("IntegrationRuntimeState", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20211030Preview.ISqlMigrationServiceInternal) this).IntegrationRuntimeState, 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.Resources.Authorization.Models.Api20201001Preview.RoleAssignmentScheduleProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal RoleAssignmentScheduleProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("ExpandedProperty")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ExpandedProperty = (Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IExpandedProperties)content.GetValueForProperty("ExpandedProperty", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ExpandedProperty, Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.ExpandedPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Scope")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).Scope = (string)content.GetValueForProperty("Scope", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).Scope, global::System.Convert.ToString); } if (content.Contains("RoleDefinitionId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).RoleDefinitionId = (string)content.GetValueForProperty("RoleDefinitionId", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).RoleDefinitionId, global::System.Convert.ToString); } if (content.Contains("PrincipalId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).PrincipalId = (string)content.GetValueForProperty("PrincipalId", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("PrincipalType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).PrincipalType = (Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType?)content.GetValueForProperty("PrincipalType", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).PrincipalType, Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.PrincipalType.CreateFrom); } if (content.Contains("RoleAssignmentScheduleRequestId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).RoleAssignmentScheduleRequestId = (string)content.GetValueForProperty("RoleAssignmentScheduleRequestId", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).RoleAssignmentScheduleRequestId, global::System.Convert.ToString); } if (content.Contains("LinkedRoleEligibilityScheduleId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).LinkedRoleEligibilityScheduleId = (string)content.GetValueForProperty("LinkedRoleEligibilityScheduleId", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).LinkedRoleEligibilityScheduleId, global::System.Convert.ToString); } if (content.Contains("AssignmentType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).AssignmentType = (Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.AssignmentType?)content.GetValueForProperty("AssignmentType", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).AssignmentType, Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.AssignmentType.CreateFrom); } if (content.Contains("MemberType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).MemberType = (Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.MemberType?)content.GetValueForProperty("MemberType", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).MemberType, Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.MemberType.CreateFrom); } if (content.Contains("Status")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status?)content.GetValueForProperty("Status", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).Status, Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Support.Status.CreateFrom); } if (content.Contains("StartDateTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).StartDateTime = (global::System.DateTime?)content.GetValueForProperty("StartDateTime", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).StartDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndDateTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).EndDateTime = (global::System.DateTime?)content.GetValueForProperty("EndDateTime", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).EndDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Condition")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).Condition = (string)content.GetValueForProperty("Condition", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).Condition, global::System.Convert.ToString); } if (content.Contains("ConditionVersion")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ConditionVersion = (string)content.GetValueForProperty("ConditionVersion", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ConditionVersion, global::System.Convert.ToString); } if (content.Contains("CreatedOn")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).CreatedOn = (global::System.DateTime?)content.GetValueForProperty("CreatedOn", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).CreatedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("UpdatedOn")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).UpdatedOn = (global::System.DateTime?)content.GetValueForProperty("UpdatedOn", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).UpdatedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExpandedPropertyScope")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ExpandedPropertyScope = (Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IExpandedPropertiesScope)content.GetValueForProperty("ExpandedPropertyScope", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ExpandedPropertyScope, Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.ExpandedPropertiesScopeTypeConverter.ConvertFrom); } if (content.Contains("ExpandedPropertyRoleDefinition")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ExpandedPropertyRoleDefinition = (Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IExpandedPropertiesRoleDefinition)content.GetValueForProperty("ExpandedPropertyRoleDefinition", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ExpandedPropertyRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.ExpandedPropertiesRoleDefinitionTypeConverter.ConvertFrom); } if (content.Contains("ExpandedPropertyPrincipal")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ExpandedPropertyPrincipal = (Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IExpandedPropertiesPrincipal)content.GetValueForProperty("ExpandedPropertyPrincipal", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ExpandedPropertyPrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.ExpandedPropertiesPrincipalTypeConverter.ConvertFrom); } if (content.Contains("ScopeId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ScopeId = (string)content.GetValueForProperty("ScopeId", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ScopeId, global::System.Convert.ToString); } if (content.Contains("ScopeDisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ScopeDisplayName = (string)content.GetValueForProperty("ScopeDisplayName", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ScopeDisplayName, global::System.Convert.ToString); } if (content.Contains("ScopeType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ScopeType = (string)content.GetValueForProperty("ScopeType", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ScopeType, global::System.Convert.ToString); } if (content.Contains("ExpandedPropertiesRoleDefinitionId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ExpandedPropertiesRoleDefinitionId = (string)content.GetValueForProperty("ExpandedPropertiesRoleDefinitionId", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ExpandedPropertiesRoleDefinitionId, global::System.Convert.ToString); } if (content.Contains("RoleDefinitionDisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).RoleDefinitionDisplayName = (string)content.GetValueForProperty("RoleDefinitionDisplayName", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).RoleDefinitionDisplayName, global::System.Convert.ToString); } if (content.Contains("RoleDefinitionType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).RoleDefinitionType = (string)content.GetValueForProperty("RoleDefinitionType", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).RoleDefinitionType, global::System.Convert.ToString); } if (content.Contains("ExpandedPropertiesPrincipalId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ExpandedPropertiesPrincipalId = (string)content.GetValueForProperty("ExpandedPropertiesPrincipalId", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ExpandedPropertiesPrincipalId, global::System.Convert.ToString); } if (content.Contains("PrincipalDisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).PrincipalDisplayName = (string)content.GetValueForProperty("PrincipalDisplayName", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).PrincipalDisplayName, global::System.Convert.ToString); } if (content.Contains("PrincipalEmail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).PrincipalEmail = (string)content.GetValueForProperty("PrincipalEmail", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).PrincipalEmail, global::System.Convert.ToString); } if (content.Contains("ExpandedPropertiesPrincipalType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ExpandedPropertiesPrincipalType = (string)content.GetValueForProperty("ExpandedPropertiesPrincipalType", ((Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleAssignmentSchedulePropertiesInternal) this).ExpandedPropertiesPrincipalType, 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.App.Models.Api20220301.ManagedEnvironment" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal ManagedEnvironment(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ManagedEnvironmentPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataCreatedBy = (string)content.GetValueForProperty("SystemDataCreatedBy", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataCreatedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataCreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.App.Support.CreatedByType?)content.GetValueForProperty("SystemDataCreatedByType", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.App.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataLastModifiedBy = (string)content.GetValueForProperty("SystemDataLastModifiedBy", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.App.Support.CreatedByType?)content.GetValueForProperty("SystemDataLastModifiedByType", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.App.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataLastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataLastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.ISystemData)content.GetValueForProperty("SystemData", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.ITrackedResourceInternal) this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.ITrackedResourceTags)content.GetValueForProperty("Tag", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.ITrackedResourceInternal) this).Tag, Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.ITrackedResourceInternal) this).Location = (string)content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.ITrackedResourceInternal) this).Location, global::System.Convert.ToString); } if (content.Contains("VnetConfiguration")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).VnetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IVnetConfiguration)content.GetValueForProperty("VnetConfiguration", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).VnetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.VnetConfigurationTypeConverter.ConvertFrom); } if (content.Contains("AppLogsConfiguration")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).AppLogsConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IAppLogsConfiguration)content.GetValueForProperty("AppLogsConfiguration", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).AppLogsConfiguration, Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.AppLogsConfigurationTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.App.Support.EnvironmentProvisioningState?)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.App.Support.EnvironmentProvisioningState.CreateFrom); } if (content.Contains("DaprAiInstrumentationKey")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).DaprAiInstrumentationKey = (string)content.GetValueForProperty("DaprAiInstrumentationKey", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).DaprAiInstrumentationKey, global::System.Convert.ToString); } if (content.Contains("DaprAiConnectionString")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).DaprAiConnectionString = (string)content.GetValueForProperty("DaprAiConnectionString", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).DaprAiConnectionString, global::System.Convert.ToString); } if (content.Contains("DeploymentError")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).DeploymentError = (string)content.GetValueForProperty("DeploymentError", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).DeploymentError, global::System.Convert.ToString); } if (content.Contains("DefaultDomain")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).DefaultDomain = (string)content.GetValueForProperty("DefaultDomain", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).DefaultDomain, global::System.Convert.ToString); } if (content.Contains("StaticIP")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).StaticIP = (string)content.GetValueForProperty("StaticIP", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).StaticIP, global::System.Convert.ToString); } if (content.Contains("ZoneRedundant")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).ZoneRedundant = (bool?)content.GetValueForProperty("ZoneRedundant", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).ZoneRedundant, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AppLogConfigurationDestination")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).AppLogConfigurationDestination = (string)content.GetValueForProperty("AppLogConfigurationDestination", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).AppLogConfigurationDestination, global::System.Convert.ToString); } if (content.Contains("VnetConfigurationInternal")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).VnetConfigurationInternal = (bool?)content.GetValueForProperty("VnetConfigurationInternal", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).VnetConfigurationInternal, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("VnetConfigurationInfrastructureSubnetId")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).VnetConfigurationInfrastructureSubnetId = (string)content.GetValueForProperty("VnetConfigurationInfrastructureSubnetId", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).VnetConfigurationInfrastructureSubnetId, global::System.Convert.ToString); } if (content.Contains("VnetConfigurationRuntimeSubnetId")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).VnetConfigurationRuntimeSubnetId = (string)content.GetValueForProperty("VnetConfigurationRuntimeSubnetId", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).VnetConfigurationRuntimeSubnetId, global::System.Convert.ToString); } if (content.Contains("VnetConfigurationDockerBridgeCidr")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).VnetConfigurationDockerBridgeCidr = (string)content.GetValueForProperty("VnetConfigurationDockerBridgeCidr", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).VnetConfigurationDockerBridgeCidr, global::System.Convert.ToString); } if (content.Contains("VnetConfigurationPlatformReservedCidr")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).VnetConfigurationPlatformReservedCidr = (string)content.GetValueForProperty("VnetConfigurationPlatformReservedCidr", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).VnetConfigurationPlatformReservedCidr, global::System.Convert.ToString); } if (content.Contains("VnetConfigurationPlatformReservedDnsIP")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).VnetConfigurationPlatformReservedDnsIP = (string)content.GetValueForProperty("VnetConfigurationPlatformReservedDnsIP", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).VnetConfigurationPlatformReservedDnsIP, global::System.Convert.ToString); } if (content.Contains("AppLogConfigurationLogAnalyticsConfiguration")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).AppLogConfigurationLogAnalyticsConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ILogAnalyticsConfiguration)content.GetValueForProperty("AppLogConfigurationLogAnalyticsConfiguration", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).AppLogConfigurationLogAnalyticsConfiguration, Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.LogAnalyticsConfigurationTypeConverter.ConvertFrom); } if (content.Contains("LogAnalyticConfigurationCustomerId")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).LogAnalyticConfigurationCustomerId = (string)content.GetValueForProperty("LogAnalyticConfigurationCustomerId", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).LogAnalyticConfigurationCustomerId, global::System.Convert.ToString); } if (content.Contains("LogAnalyticConfigurationSharedKey")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).LogAnalyticConfigurationSharedKey = (string)content.GetValueForProperty("LogAnalyticConfigurationSharedKey", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IManagedEnvironmentInternal) this).LogAnalyticConfigurationSharedKey, 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.SiteLogsConfigProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal SiteLogsConfigProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("ApplicationLog")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).ApplicationLog = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IApplicationLogsConfig)content.GetValueForProperty("ApplicationLog", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).ApplicationLog, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ApplicationLogsConfigTypeConverter.ConvertFrom); } if (content.Contains("HttpLog")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).HttpLog = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHttpLogsConfig)content.GetValueForProperty("HttpLog", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).HttpLog, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.HttpLogsConfigTypeConverter.ConvertFrom); } if (content.Contains("FailedRequestsTracing")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).FailedRequestsTracing = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IEnabledConfig)content.GetValueForProperty("FailedRequestsTracing", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).FailedRequestsTracing, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.EnabledConfigTypeConverter.ConvertFrom); } if (content.Contains("DetailedErrorMessage")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).DetailedErrorMessage = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IEnabledConfig)content.GetValueForProperty("DetailedErrorMessage", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).DetailedErrorMessage, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.EnabledConfigTypeConverter.ConvertFrom); } if (content.Contains("ApplicationLogFileSystem")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).ApplicationLogFileSystem = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IFileSystemApplicationLogsConfig)content.GetValueForProperty("ApplicationLogFileSystem", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).ApplicationLogFileSystem, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.FileSystemApplicationLogsConfigTypeConverter.ConvertFrom); } if (content.Contains("ApplicationLogAzureTableStorage")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).ApplicationLogAzureTableStorage = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAzureTableStorageApplicationLogsConfig)content.GetValueForProperty("ApplicationLogAzureTableStorage", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).ApplicationLogAzureTableStorage, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.AzureTableStorageApplicationLogsConfigTypeConverter.ConvertFrom); } if (content.Contains("ApplicationLogAzureBlobStorage")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).ApplicationLogAzureBlobStorage = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAzureBlobStorageApplicationLogsConfig)content.GetValueForProperty("ApplicationLogAzureBlobStorage", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).ApplicationLogAzureBlobStorage, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.AzureBlobStorageApplicationLogsConfigTypeConverter.ConvertFrom); } if (content.Contains("HttpLogFileSystem")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).HttpLogFileSystem = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IFileSystemHttpLogsConfig)content.GetValueForProperty("HttpLogFileSystem", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).HttpLogFileSystem, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.FileSystemHttpLogsConfigTypeConverter.ConvertFrom); } if (content.Contains("HttpLogAzureBlobStorage")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).HttpLogAzureBlobStorage = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAzureBlobStorageHttpLogsConfig)content.GetValueForProperty("HttpLogAzureBlobStorage", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).HttpLogAzureBlobStorage, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.AzureBlobStorageHttpLogsConfigTypeConverter.ConvertFrom); } if (content.Contains("FailedRequestTracingEnabled")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).FailedRequestTracingEnabled = (bool?)content.GetValueForProperty("FailedRequestTracingEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).FailedRequestTracingEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("DetailedErrorMessageEnabled")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).DetailedErrorMessageEnabled = (bool?)content.GetValueForProperty("DetailedErrorMessageEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).DetailedErrorMessageEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("FileSystemLevel")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).FileSystemLevel = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.LogLevel?)content.GetValueForProperty("FileSystemLevel", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).FileSystemLevel, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.LogLevel.CreateFrom); } if (content.Contains("AzureTableStorageLevel")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).AzureTableStorageLevel = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.LogLevel?)content.GetValueForProperty("AzureTableStorageLevel", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).AzureTableStorageLevel, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.LogLevel.CreateFrom); } if (content.Contains("AzureTableStorageSasUrl")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).AzureTableStorageSasUrl = (string)content.GetValueForProperty("AzureTableStorageSasUrl", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).AzureTableStorageSasUrl, global::System.Convert.ToString); } if (content.Contains("AzureBlobStorageLevel")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).AzureBlobStorageLevel = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.LogLevel?)content.GetValueForProperty("AzureBlobStorageLevel", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).AzureBlobStorageLevel, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.LogLevel.CreateFrom); } if (content.Contains("ApplicationLogsAzureBlobStorageSasUrl")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).ApplicationLogsAzureBlobStorageSasUrl = (string)content.GetValueForProperty("ApplicationLogsAzureBlobStorageSasUrl", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).ApplicationLogsAzureBlobStorageSasUrl, global::System.Convert.ToString); } if (content.Contains("ApplicationLogsAzureBlobStorageRetentionInDay")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).ApplicationLogsAzureBlobStorageRetentionInDay = (int?)content.GetValueForProperty("ApplicationLogsAzureBlobStorageRetentionInDay", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).ApplicationLogsAzureBlobStorageRetentionInDay, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FileSystemRetentionInMb")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).FileSystemRetentionInMb = (int?)content.GetValueForProperty("FileSystemRetentionInMb", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).FileSystemRetentionInMb, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FileSystemRetentionInDay")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).FileSystemRetentionInDay = (int?)content.GetValueForProperty("FileSystemRetentionInDay", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).FileSystemRetentionInDay, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FileSystemEnabled")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).FileSystemEnabled = (bool?)content.GetValueForProperty("FileSystemEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).FileSystemEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("HttpLogsAzureBlobStorageSasUrl")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).HttpLogsAzureBlobStorageSasUrl = (string)content.GetValueForProperty("HttpLogsAzureBlobStorageSasUrl", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).HttpLogsAzureBlobStorageSasUrl, global::System.Convert.ToString); } if (content.Contains("HttpLogsAzureBlobStorageRetentionInDay")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).HttpLogsAzureBlobStorageRetentionInDay = (int?)content.GetValueForProperty("HttpLogsAzureBlobStorageRetentionInDay", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).HttpLogsAzureBlobStorageRetentionInDay, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("AzureBlobStorageEnabled")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).AzureBlobStorageEnabled = (bool?)content.GetValueForProperty("AzureBlobStorageEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISiteLogsConfigPropertiesInternal) this).AzureBlobStorageEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.PremierAddOn" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal PremierAddOn(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPremierAddOnInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPremierAddOnProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPremierAddOnInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.PremierAddOnPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IResourceInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IResourceInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Kind")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IResourceInternal) this).Kind = (string)content.GetValueForProperty("Kind", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IResourceInternal) this).Kind, global::System.Convert.ToString); } if (content.Contains("Location")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IResourceInternal) this).Location = (string)content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IResourceInternal) this).Location, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IResourceInternal) this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IResourceInternal) this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IResourceTags)content.GetValueForProperty("Tag", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.IResourceInternal) this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.ResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Sku")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPremierAddOnInternal) this).Sku = (string)content.GetValueForProperty("Sku", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPremierAddOnInternal) this).Sku, global::System.Convert.ToString); } if (content.Contains("Product")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPremierAddOnInternal) this).Product = (string)content.GetValueForProperty("Product", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPremierAddOnInternal) this).Product, global::System.Convert.ToString); } if (content.Contains("Vendor")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPremierAddOnInternal) this).Vendor = (string)content.GetValueForProperty("Vendor", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPremierAddOnInternal) this).Vendor, global::System.Convert.ToString); } if (content.Contains("MarketplacePublisher")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPremierAddOnInternal) this).MarketplacePublisher = (string)content.GetValueForProperty("MarketplacePublisher", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPremierAddOnInternal) this).MarketplacePublisher, global::System.Convert.ToString); } if (content.Contains("MarketplaceOffer")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPremierAddOnInternal) this).MarketplaceOffer = (string)content.GetValueForProperty("MarketplaceOffer", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.IPremierAddOnInternal) this).MarketplaceOffer, global::System.Convert.ToString); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.JobProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal JobProperties(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.DataBox.Models.Api20210301.IJobPropertiesInternal) this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ICloudError)content.GetValueForProperty("Error", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("DeliveryInfo")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobDeliveryInfo)content.GetValueForProperty("DeliveryInfo", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.JobDeliveryInfoTypeConverter.ConvertFrom); } if (content.Contains("TransferType")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType)content.GetValueForProperty("TransferType", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("IsCancellable")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).IsCancellable = (bool?)content.GetValueForProperty("IsCancellable", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).IsCancellable, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsDeletable")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).IsDeletable = (bool?)content.GetValueForProperty("IsDeletable", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).IsDeletable, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsShippingAddressEditable")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).IsShippingAddressEditable = (bool?)content.GetValueForProperty("IsShippingAddressEditable", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).IsShippingAddressEditable, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsPrepareToShipEnabled")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).IsPrepareToShipEnabled = (bool?)content.GetValueForProperty("IsPrepareToShipEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).IsPrepareToShipEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Status")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?)content.GetValueForProperty("Status", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); } if (content.Contains("StartTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).StartTime = (global::System.DateTime?)content.GetValueForProperty("StartTime", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) 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("Detail")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobDetails)content.GetValueForProperty("Detail", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.JobDetailsTypeConverter.ConvertFrom); } if (content.Contains("CancellationReason")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).CancellationReason = (string)content.GetValueForProperty("CancellationReason", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).CancellationReason, global::System.Convert.ToString); } if (content.Contains("DeliveryType")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).DeliveryType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType?)content.GetValueForProperty("DeliveryType", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).DeliveryType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType.CreateFrom); } if (content.Contains("IsCancellableWithoutFee")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).IsCancellableWithoutFee = (bool?)content.GetValueForProperty("IsCancellableWithoutFee", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).IsCancellableWithoutFee, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Code")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).Code = (string)content.GetValueForProperty("Code", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).Message = (string)content.GetValueForProperty("Message", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).Target = (string)content.GetValueForProperty("Target", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).Target, global::System.Convert.ToString); } if (content.Contains("ErrorDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ICloudError[])content.GetValueForProperty("ErrorDetail", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ICloudError>(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IAdditionalErrorInfo[])content.GetValueForProperty("AdditionalInfo", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IAdditionalErrorInfo>(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("DeliveryInfoScheduledDateTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).DeliveryInfoScheduledDateTime = (global::System.DateTime?)content.GetValueForProperty("DeliveryInfoScheduledDateTime", ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobPropertiesInternal) this).DeliveryInfoScheduledDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.CloningInfo" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal CloningInfo(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("CorrelationId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).CorrelationId = (string)content.GetValueForProperty("CorrelationId", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).CorrelationId, global::System.Convert.ToString); } if (content.Contains("Overwrite")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).Overwrite = (bool?)content.GetValueForProperty("Overwrite", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).Overwrite, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("CloneCustomHostName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).CloneCustomHostName = (bool?)content.GetValueForProperty("CloneCustomHostName", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).CloneCustomHostName, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("CloneSourceControl")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).CloneSourceControl = (bool?)content.GetValueForProperty("CloneSourceControl", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).CloneSourceControl, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("SourceWebAppId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).SourceWebAppId = (string)content.GetValueForProperty("SourceWebAppId", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).SourceWebAppId, global::System.Convert.ToString); } if (content.Contains("SourceWebAppLocation")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).SourceWebAppLocation = (string)content.GetValueForProperty("SourceWebAppLocation", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).SourceWebAppLocation, global::System.Convert.ToString); } if (content.Contains("HostingEnvironment")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).HostingEnvironment = (string)content.GetValueForProperty("HostingEnvironment", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).HostingEnvironment, global::System.Convert.ToString); } if (content.Contains("AppSettingsOverride")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).AppSettingsOverride = (Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoAppSettingsOverrides)content.GetValueForProperty("AppSettingsOverride", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).AppSettingsOverride, Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.CloningInfoAppSettingsOverridesTypeConverter.ConvertFrom); } if (content.Contains("ConfigureLoadBalancing")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).ConfigureLoadBalancing = (bool?)content.GetValueForProperty("ConfigureLoadBalancing", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).ConfigureLoadBalancing, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TrafficManagerProfileId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).TrafficManagerProfileId = (string)content.GetValueForProperty("TrafficManagerProfileId", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).TrafficManagerProfileId, global::System.Convert.ToString); } if (content.Contains("TrafficManagerProfileName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).TrafficManagerProfileName = (string)content.GetValueForProperty("TrafficManagerProfileName", ((Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICloningInfoInternal) this).TrafficManagerProfileName, 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.Aks.Models.Api20200901.ContainerServiceNetworkProfile" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal ContainerServiceNetworkProfile(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("LoadBalancerProfile")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerProfile = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IManagedClusterLoadBalancerProfile)content.GetValueForProperty("LoadBalancerProfile", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerProfile, Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.ManagedClusterLoadBalancerProfileTypeConverter.ConvertFrom); } if (content.Contains("NetworkPlugin")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).NetworkPlugin = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.NetworkPlugin?)content.GetValueForProperty("NetworkPlugin", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).NetworkPlugin, Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.NetworkPlugin.CreateFrom); } if (content.Contains("NetworkPolicy")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).NetworkPolicy = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.NetworkPolicy?)content.GetValueForProperty("NetworkPolicy", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).NetworkPolicy, Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.NetworkPolicy.CreateFrom); } if (content.Contains("NetworkMode")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).NetworkMode = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.NetworkMode?)content.GetValueForProperty("NetworkMode", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).NetworkMode, Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.NetworkMode.CreateFrom); } if (content.Contains("PodCidr")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).PodCidr = (string)content.GetValueForProperty("PodCidr", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).PodCidr, global::System.Convert.ToString); } if (content.Contains("ServiceCidr")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).ServiceCidr = (string)content.GetValueForProperty("ServiceCidr", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).ServiceCidr, global::System.Convert.ToString); } if (content.Contains("DnsServiceIP")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).DnsServiceIP = (string)content.GetValueForProperty("DnsServiceIP", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).DnsServiceIP, global::System.Convert.ToString); } if (content.Contains("DockerBridgeCidr")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).DockerBridgeCidr = (string)content.GetValueForProperty("DockerBridgeCidr", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).DockerBridgeCidr, global::System.Convert.ToString); } if (content.Contains("OutboundType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).OutboundType = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.OutboundType?)content.GetValueForProperty("OutboundType", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).OutboundType, Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.OutboundType.CreateFrom); } if (content.Contains("LoadBalancerSku")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerSku = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.LoadBalancerSku?)content.GetValueForProperty("LoadBalancerSku", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerSku, Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.LoadBalancerSku.CreateFrom); } if (content.Contains("LoadBalancerProfileManagedOutboundIP")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerProfileManagedOutboundIP = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IManagedClusterLoadBalancerProfileManagedOutboundIPs)content.GetValueForProperty("LoadBalancerProfileManagedOutboundIP", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerProfileManagedOutboundIP, Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.ManagedClusterLoadBalancerProfileManagedOutboundIPsTypeConverter.ConvertFrom); } if (content.Contains("LoadBalancerProfileOutboundIPPrefix")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerProfileOutboundIPPrefix = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IManagedClusterLoadBalancerProfileOutboundIPPrefixes)content.GetValueForProperty("LoadBalancerProfileOutboundIPPrefix", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerProfileOutboundIPPrefix, Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.ManagedClusterLoadBalancerProfileOutboundIPPrefixesTypeConverter.ConvertFrom); } if (content.Contains("LoadBalancerProfileOutboundIP")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerProfileOutboundIP = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IManagedClusterLoadBalancerProfileOutboundIPs)content.GetValueForProperty("LoadBalancerProfileOutboundIP", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerProfileOutboundIP, Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.ManagedClusterLoadBalancerProfileOutboundIPsTypeConverter.ConvertFrom); } if (content.Contains("LoadBalancerProfileEffectiveOutboundIP")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerProfileEffectiveOutboundIP = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IResourceReference[])content.GetValueForProperty("LoadBalancerProfileEffectiveOutboundIP", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerProfileEffectiveOutboundIP, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IResourceReference>(__y, Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.ResourceReferenceTypeConverter.ConvertFrom)); } if (content.Contains("LoadBalancerProfileAllocatedOutboundPort")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerProfileAllocatedOutboundPort = (int?)content.GetValueForProperty("LoadBalancerProfileAllocatedOutboundPort", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerProfileAllocatedOutboundPort, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LoadBalancerProfileIdleTimeoutInMinute")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerProfileIdleTimeoutInMinute = (int?)content.GetValueForProperty("LoadBalancerProfileIdleTimeoutInMinute", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).LoadBalancerProfileIdleTimeoutInMinute, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ManagedOutboundIPCount")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).ManagedOutboundIPCount = (int?)content.GetValueForProperty("ManagedOutboundIPCount", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).ManagedOutboundIPCount, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("OutboundIPPrefixPublicIpprefix")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).OutboundIPPrefixPublicIpprefix = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IResourceReference[])content.GetValueForProperty("OutboundIPPrefixPublicIpprefix", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).OutboundIPPrefixPublicIpprefix, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IResourceReference>(__y, Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.ResourceReferenceTypeConverter.ConvertFrom)); } if (content.Contains("OutboundIPPublicIP")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).OutboundIPPublicIP = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IResourceReference[])content.GetValueForProperty("OutboundIPPublicIP", ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IContainerServiceNetworkProfileInternal) this).OutboundIPPublicIP, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IResourceReference>(__y, Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.ResourceReferenceTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.SkypeChannel" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal SkypeChannel(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.SkypeChannelPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IChannelInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IChannelInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("EnableMessaging")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).EnableMessaging = (bool?)content.GetValueForProperty("EnableMessaging", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).EnableMessaging, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("EnableMediaCard")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).EnableMediaCard = (bool?)content.GetValueForProperty("EnableMediaCard", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).EnableMediaCard, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("EnableVideo")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).EnableVideo = (bool?)content.GetValueForProperty("EnableVideo", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).EnableVideo, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("EnableCalling")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).EnableCalling = (bool?)content.GetValueForProperty("EnableCalling", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).EnableCalling, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("EnableScreenSharing")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).EnableScreenSharing = (bool?)content.GetValueForProperty("EnableScreenSharing", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).EnableScreenSharing, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("EnableGroup")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).EnableGroup = (bool?)content.GetValueForProperty("EnableGroup", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).EnableGroup, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("GroupsMode")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).GroupsMode = (string)content.GetValueForProperty("GroupsMode", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).GroupsMode, global::System.Convert.ToString); } if (content.Contains("CallingWebHook")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).CallingWebHook = (string)content.GetValueForProperty("CallingWebHook", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).CallingWebHook, global::System.Convert.ToString); } if (content.Contains("IsEnabled")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).IsEnabled = (bool)content.GetValueForProperty("IsEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISkypeChannelInternal) this).IsEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ApplicationInsightsComponent" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal ApplicationInsightsComponent(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ApplicationInsightsComponentPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Kind")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).Kind = (string)content.GetValueForProperty("Kind", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).Kind, global::System.Convert.ToString); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IComponentsResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IComponentsResourceInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IComponentsResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IComponentsResourceInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IComponentsResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IComponentsResourceInternal) this).Type, global::System.Convert.ToString); } if (content.Contains("Location")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IComponentsResourceInternal) this).Location = (string)content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IComponentsResourceInternal) this).Location, global::System.Convert.ToString); } if (content.Contains("Tag")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IComponentsResourceInternal) this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IComponentsResourceTags)content.GetValueForProperty("Tag", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IComponentsResourceInternal) this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ComponentsResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("ApplicationType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).ApplicationType = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ApplicationType)content.GetValueForProperty("ApplicationType", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).ApplicationType, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ApplicationType.CreateFrom); } if (content.Contains("FlowType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).FlowType = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FlowType?)content.GetValueForProperty("FlowType", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).FlowType, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FlowType.CreateFrom); } if (content.Contains("RequestSource")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).RequestSource = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.RequestSource?)content.GetValueForProperty("RequestSource", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).RequestSource, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.RequestSource.CreateFrom); } if (content.Contains("ApplicationId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).ApplicationId = (string)content.GetValueForProperty("ApplicationId", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).ApplicationId, global::System.Convert.ToString); } if (content.Contains("AppId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).AppId = (string)content.GetValueForProperty("AppId", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).AppId, global::System.Convert.ToString); } if (content.Contains("InstrumentationKey")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).InstrumentationKey = (string)content.GetValueForProperty("InstrumentationKey", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).InstrumentationKey, global::System.Convert.ToString); } if (content.Contains("CreationDate")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).CreationDate = (global::System.DateTime?)content.GetValueForProperty("CreationDate", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).CreationDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("TenantId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).TenantId = (string)content.GetValueForProperty("TenantId", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).TenantId, global::System.Convert.ToString); } if (content.Contains("HockeyAppId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).HockeyAppId = (string)content.GetValueForProperty("HockeyAppId", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).HockeyAppId, global::System.Convert.ToString); } if (content.Contains("HockeyAppToken")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).HockeyAppToken = (string)content.GetValueForProperty("HockeyAppToken", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).HockeyAppToken, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).ProvisioningState = (string)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("SamplingPercentage")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).SamplingPercentage = (double?)content.GetValueForProperty("SamplingPercentage", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentInternal) this).SamplingPercentage, (__y) => (double)global::System.Convert.ChangeType(__y, typeof(double))); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.Image" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal Image(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("SystemData")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.ISystemData)content.GetValueForProperty("SystemData", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.ImagePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.IResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.IResourceInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.IResourceInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20.IResourceInternal) this).Type, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SystemDataCreatedBy = (string)content.GetValueForProperty("SystemDataCreatedBy", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SystemDataCreatedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataCreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ProvisioningState?)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ProvisioningState.CreateFrom); } if (content.Contains("OSType")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.OSType?)content.GetValueForProperty("OSType", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).OSType, Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.OSType.CreateFrom); } if (content.Contains("OSState")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).OSState = (Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.OSState?)content.GetValueForProperty("OSState", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).OSState, Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.OSState.CreateFrom); } if (content.Contains("SystemDataCreatedByType")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.CreatedByType?)content.GetValueForProperty("SystemDataCreatedByType", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SystemDataLastModifiedBy = (string)content.GetValueForProperty("SystemDataLastModifiedBy", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.CreatedByType?)content.GetValueForProperty("SystemDataLastModifiedByType", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SystemDataLastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataLastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EnabledState")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).EnabledState = (Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState?)content.GetValueForProperty("EnabledState", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).EnabledState, Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState.CreateFrom); } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).DisplayName = (string)content.GetValueForProperty("DisplayName", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).DisplayName, global::System.Convert.ToString); } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Description = (string)content.GetValueForProperty("Description", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Description, global::System.Convert.ToString); } if (content.Contains("IconUrl")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).IconUrl = (string)content.GetValueForProperty("IconUrl", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).IconUrl, global::System.Convert.ToString); } if (content.Contains("Author")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Author = (string)content.GetValueForProperty("Author", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Author, global::System.Convert.ToString); } if (content.Contains("Plan")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Plan = (string)content.GetValueForProperty("Plan", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Plan, global::System.Convert.ToString); } if (content.Contains("TermsStatus")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).TermsStatus = (Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState?)content.GetValueForProperty("TermsStatus", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).TermsStatus, Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.EnableState.CreateFrom); } if (content.Contains("Offer")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Offer = (string)content.GetValueForProperty("Offer", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Offer, global::System.Convert.ToString); } if (content.Contains("Publisher")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Publisher = (string)content.GetValueForProperty("Publisher", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Publisher, global::System.Convert.ToString); } if (content.Contains("Sku")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Sku = (string)content.GetValueForProperty("Sku", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Sku, global::System.Convert.ToString); } if (content.Contains("Version")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Version = (string)content.GetValueForProperty("Version", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).Version, global::System.Convert.ToString); } if (content.Contains("SharedGalleryId")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SharedGalleryId = (string)content.GetValueForProperty("SharedGalleryId", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).SharedGalleryId, global::System.Convert.ToString); } if (content.Contains("AvailableRegion")) { ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).AvailableRegion = (string[])content.GetValueForProperty("AvailableRegion", ((Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.Api20211001Preview.IImageInternal) this).AvailableRegion, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.NetworkInterfaceIPConfigurationPropertiesFormat" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal NetworkInterfaceIPConfigurationPropertiesFormat(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("GatewayLoadBalancer")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).GatewayLoadBalancer = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResourceAutoGenerated)content.GetValueForProperty("GatewayLoadBalancer", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).GatewayLoadBalancer, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceAutoGeneratedTypeConverter.ConvertFrom); } if (content.Contains("PrivateLinkConnectionProperty")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PrivateLinkConnectionProperty = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPrivateLinkConnectionProperties)content.GetValueForProperty("PrivateLinkConnectionProperty", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PrivateLinkConnectionProperty, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.NetworkInterfaceIPConfigurationPrivateLinkConnectionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkTap")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).VirtualNetworkTap = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IVirtualNetworkTap[])content.GetValueForProperty("VirtualNetworkTap", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).VirtualNetworkTap, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IVirtualNetworkTap>(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.VirtualNetworkTapTypeConverter.ConvertFrom)); } if (content.Contains("ApplicationGatewayBackendAddressPool")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).ApplicationGatewayBackendAddressPool = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApplicationGatewayBackendAddressPool[])content.GetValueForProperty("ApplicationGatewayBackendAddressPool", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).ApplicationGatewayBackendAddressPool, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApplicationGatewayBackendAddressPool>(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApplicationGatewayBackendAddressPoolTypeConverter.ConvertFrom)); } if (content.Contains("LoadBalancerBackendAddressPool")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).LoadBalancerBackendAddressPool = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IBackendAddressPool[])content.GetValueForProperty("LoadBalancerBackendAddressPool", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).LoadBalancerBackendAddressPool, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IBackendAddressPool>(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.BackendAddressPoolTypeConverter.ConvertFrom)); } if (content.Contains("LoadBalancerInboundNatRule")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).LoadBalancerInboundNatRule = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInboundNatRule[])content.GetValueForProperty("LoadBalancerInboundNatRule", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).LoadBalancerInboundNatRule, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInboundNatRule>(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InboundNatRuleTypeConverter.ConvertFrom)); } if (content.Contains("PrivateIPAddress")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PrivateIPAddress = (string)content.GetValueForProperty("PrivateIPAddress", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PrivateIPAddress, global::System.Convert.ToString); } if (content.Contains("PrivateIPAllocationMethod")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.IPAllocationMethod?)content.GetValueForProperty("PrivateIPAllocationMethod", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.IPAllocationMethod.CreateFrom); } if (content.Contains("PrivateIPAddressVersion")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PrivateIPAddressVersion = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.IPVersion?)content.GetValueForProperty("PrivateIPAddressVersion", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PrivateIPAddressVersion, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.IPVersion.CreateFrom); } if (content.Contains("Primary")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).Primary = (bool?)content.GetValueForProperty("Primary", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).Primary, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("PublicIPAddress")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PublicIPAddress = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddress)content.GetValueForProperty("PublicIPAddress", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PublicIPAddress, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.PublicIPAddressTypeConverter.ConvertFrom); } if (content.Contains("ApplicationSecurityGroup")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).ApplicationSecurityGroup = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApplicationSecurityGroup[])content.GetValueForProperty("ApplicationSecurityGroup", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).ApplicationSecurityGroup, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApplicationSecurityGroup>(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApplicationSecurityGroupTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState?)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.ProvisioningState.CreateFrom); } if (content.Contains("Subnet")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubnet)content.GetValueForProperty("Subnet", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubnetTypeConverter.ConvertFrom); } if (content.Contains("GatewayLoadBalancerId")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).GatewayLoadBalancerId = (string)content.GetValueForProperty("GatewayLoadBalancerId", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).GatewayLoadBalancerId, global::System.Convert.ToString); } if (content.Contains("PrivateLinkConnectionPropertyGroupId")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PrivateLinkConnectionPropertyGroupId = (string)content.GetValueForProperty("PrivateLinkConnectionPropertyGroupId", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PrivateLinkConnectionPropertyGroupId, global::System.Convert.ToString); } if (content.Contains("PrivateLinkConnectionPropertyRequiredMemberName")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PrivateLinkConnectionPropertyRequiredMemberName = (string)content.GetValueForProperty("PrivateLinkConnectionPropertyRequiredMemberName", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PrivateLinkConnectionPropertyRequiredMemberName, global::System.Convert.ToString); } if (content.Contains("PrivateLinkConnectionPropertyFqdn")) { ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PrivateLinkConnectionPropertyFqdn = (string[])content.GetValueForProperty("PrivateLinkConnectionPropertyFqdn", ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterfaceIPConfigurationPropertiesFormatInternal) this).PrivateLinkConnectionPropertyFqdn, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.AutoHealRules" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal AutoHealRules(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Trigger")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).Trigger = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealTriggers)content.GetValueForProperty("Trigger", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).Trigger, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.AutoHealTriggersTypeConverter.ConvertFrom); } if (content.Contains("Action")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).Action = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealActions)content.GetValueForProperty("Action", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).Action, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.AutoHealActionsTypeConverter.ConvertFrom); } if (content.Contains("TriggerRequest")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).TriggerRequest = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IRequestsBasedTrigger)content.GetValueForProperty("TriggerRequest", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).TriggerRequest, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.RequestsBasedTriggerTypeConverter.ConvertFrom); } if (content.Contains("TriggerSlowRequest")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).TriggerSlowRequest = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISlowRequestsBasedTrigger)content.GetValueForProperty("TriggerSlowRequest", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).TriggerSlowRequest, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.SlowRequestsBasedTriggerTypeConverter.ConvertFrom); } if (content.Contains("TriggerPrivateBytesInKb")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).TriggerPrivateBytesInKb = (int?)content.GetValueForProperty("TriggerPrivateBytesInKb", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).TriggerPrivateBytesInKb, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("TriggerStatusCode")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).TriggerStatusCode = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStatusCodesBasedTrigger[])content.GetValueForProperty("TriggerStatusCode", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).TriggerStatusCode, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStatusCodesBasedTrigger>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.StatusCodesBasedTriggerTypeConverter.ConvertFrom)); } if (content.Contains("ActionCustomAction")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).ActionCustomAction = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealCustomAction)content.GetValueForProperty("ActionCustomAction", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).ActionCustomAction, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.AutoHealCustomActionTypeConverter.ConvertFrom); } if (content.Contains("ActionType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AutoHealActionType?)content.GetValueForProperty("ActionType", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AutoHealActionType.CreateFrom); } if (content.Contains("ActionMinProcessExecutionTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).ActionMinProcessExecutionTime = (string)content.GetValueForProperty("ActionMinProcessExecutionTime", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).ActionMinProcessExecutionTime, global::System.Convert.ToString); } if (content.Contains("RequestCount")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).RequestCount = (int?)content.GetValueForProperty("RequestCount", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).RequestCount, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("RequestTimeInterval")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).RequestTimeInterval = (string)content.GetValueForProperty("RequestTimeInterval", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).RequestTimeInterval, global::System.Convert.ToString); } if (content.Contains("SlowRequestTimeTaken")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).SlowRequestTimeTaken = (string)content.GetValueForProperty("SlowRequestTimeTaken", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).SlowRequestTimeTaken, global::System.Convert.ToString); } if (content.Contains("SlowRequestCount")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).SlowRequestCount = (int?)content.GetValueForProperty("SlowRequestCount", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).SlowRequestCount, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("SlowRequestTimeInterval")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).SlowRequestTimeInterval = (string)content.GetValueForProperty("SlowRequestTimeInterval", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).SlowRequestTimeInterval, global::System.Convert.ToString); } if (content.Contains("CustomActionExe")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).CustomActionExe = (string)content.GetValueForProperty("CustomActionExe", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).CustomActionExe, global::System.Convert.ToString); } if (content.Contains("CustomActionParameter")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).CustomActionParameter = (string)content.GetValueForProperty("CustomActionParameter", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAutoHealRulesInternal) this).CustomActionParameter, 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.BotService.Models.Api20180712.BotProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal BotProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).DisplayName = (string)content.GetValueForProperty("DisplayName", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).DisplayName, global::System.Convert.ToString); } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).Description = (string)content.GetValueForProperty("Description", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).Description, global::System.Convert.ToString); } if (content.Contains("IconUrl")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).IconUrl = (string)content.GetValueForProperty("IconUrl", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).IconUrl, global::System.Convert.ToString); } if (content.Contains("Endpoint")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).Endpoint = (string)content.GetValueForProperty("Endpoint", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).Endpoint, global::System.Convert.ToString); } if (content.Contains("EndpointVersion")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).EndpointVersion = (string)content.GetValueForProperty("EndpointVersion", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).EndpointVersion, global::System.Convert.ToString); } if (content.Contains("MsaAppId")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).MsaAppId = (string)content.GetValueForProperty("MsaAppId", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).MsaAppId, global::System.Convert.ToString); } if (content.Contains("ConfiguredChannel")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).ConfiguredChannel = (string[])content.GetValueForProperty("ConfiguredChannel", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).ConfiguredChannel, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("EnabledChannel")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).EnabledChannel = (string[])content.GetValueForProperty("EnabledChannel", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).EnabledChannel, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("DeveloperAppInsightKey")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).DeveloperAppInsightKey = (string)content.GetValueForProperty("DeveloperAppInsightKey", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).DeveloperAppInsightKey, global::System.Convert.ToString); } if (content.Contains("DeveloperAppInsightsApiKey")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).DeveloperAppInsightsApiKey = (string)content.GetValueForProperty("DeveloperAppInsightsApiKey", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).DeveloperAppInsightsApiKey, global::System.Convert.ToString); } if (content.Contains("DeveloperAppInsightsApplicationId")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).DeveloperAppInsightsApplicationId = (string)content.GetValueForProperty("DeveloperAppInsightsApplicationId", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).DeveloperAppInsightsApplicationId, global::System.Convert.ToString); } if (content.Contains("LuisAppId")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).LuisAppId = (string[])content.GetValueForProperty("LuisAppId", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).LuisAppId, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("LuisKey")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).LuisKey = (string)content.GetValueForProperty("LuisKey", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBotPropertiesInternal) this).LuisKey, 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.BotService.Models.Api20180712.EnterpriseChannel" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal EnterpriseChannel(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IEnterpriseChannelInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IEnterpriseChannelProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IEnterpriseChannelInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.EnterpriseChannelPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SkuName")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.BotService.Support.SkuName)content.GetValueForProperty("SkuName", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.BotService.Support.SkuName.CreateFrom); } if (content.Contains("SkuTier")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.BotService.Support.SkuTier?)content.GetValueForProperty("SkuTier", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.BotService.Support.SkuTier.CreateFrom); } if (content.Contains("Sku")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ISku)content.GetValueForProperty("Sku", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Sku, Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.SkuTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Location")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Location = (string)content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Location, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceTags)content.GetValueForProperty("Tag", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Tag, Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Kind")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.BotService.Support.Kind?)content.GetValueForProperty("Kind", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Kind, Microsoft.Azure.PowerShell.Cmdlets.BotService.Support.Kind.CreateFrom); } if (content.Contains("Etag")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Etag = (string)content.GetValueForProperty("Etag", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IResourceInternal) this).Etag, global::System.Convert.ToString); } if (content.Contains("State")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IEnterpriseChannelInternal) this).State = (Microsoft.Azure.PowerShell.Cmdlets.BotService.Support.EnterpriseChannelState?)content.GetValueForProperty("State", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IEnterpriseChannelInternal) this).State, Microsoft.Azure.PowerShell.Cmdlets.BotService.Support.EnterpriseChannelState.CreateFrom); } if (content.Contains("Node")) { ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IEnterpriseChannelInternal) this).Node = (Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IEnterpriseChannelNode[])content.GetValueForProperty("Node", ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IEnterpriseChannelInternal) this).Node, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IEnterpriseChannelNode>(__y, Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.EnterpriseChannelNodeTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.AzureCosmosDbCredentialScanProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal AzureCosmosDbCredentialScanProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Credential")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureCosmosDbCredentialScanPropertiesInternal) this).Credential = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ICredentialReference)content.GetValueForProperty("Credential", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureCosmosDbCredentialScanPropertiesInternal) this).Credential, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.CredentialReferenceTypeConverter.ConvertFrom); } if (content.Contains("DatabaseName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureCosmosDbCredentialScanPropertiesInternal) this).DatabaseName = (string)content.GetValueForProperty("DatabaseName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureCosmosDbCredentialScanPropertiesInternal) this).DatabaseName, global::System.Convert.ToString); } if (content.Contains("CollectionReferenceName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).CollectionReferenceName = (string)content.GetValueForProperty("CollectionReferenceName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).CollectionReferenceName, global::System.Convert.ToString); } if (content.Contains("ConnectedViaReferenceName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ConnectedViaReferenceName = (string)content.GetValueForProperty("ConnectedViaReferenceName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ConnectedViaReferenceName, global::System.Convert.ToString); } if (content.Contains("CollectionLastModifiedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).CollectionLastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("CollectionLastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) 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.IScanPropertiesInternal) this).CollectionType = (string)content.GetValueForProperty("CollectionType", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).CollectionType, global::System.Convert.ToString); } if (content.Contains("Collection")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).Collection = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ICollectionReference)content.GetValueForProperty("Collection", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).Collection, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.CollectionReferenceTypeConverter.ConvertFrom); } if (content.Contains("ConnectedVia")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ConnectedVia = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IConnectedVia)content.GetValueForProperty("ConnectedVia", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ConnectedVia, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ConnectedViaTypeConverter.ConvertFrom); } if (content.Contains("ScanRulesetName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ScanRulesetName = (string)content.GetValueForProperty("ScanRulesetName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ScanRulesetName, global::System.Convert.ToString); } if (content.Contains("ScanRulesetType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ScanRulesetType = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetType?)content.GetValueForProperty("ScanRulesetType", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ScanRulesetType, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetType.CreateFrom); } if (content.Contains("Worker")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).Worker = (int?)content.GetValueForProperty("Worker", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).Worker, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CreatedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).CreatedAt = (global::System.DateTime?)content.GetValueForProperty("CreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) 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.IScanPropertiesInternal) this).LastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("LastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) 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("CredentialReferenceName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureCosmosDbCredentialScanPropertiesInternal) this).CredentialReferenceName = (string)content.GetValueForProperty("CredentialReferenceName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureCosmosDbCredentialScanPropertiesInternal) this).CredentialReferenceName, global::System.Convert.ToString); } if (content.Contains("CredentialType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureCosmosDbCredentialScanPropertiesInternal) this).CredentialType = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.CredentialType?)content.GetValueForProperty("CredentialType", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureCosmosDbCredentialScanPropertiesInternal) this).CredentialType, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.CredentialType.CreateFrom); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ProductFamilyProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal ProductFamilyProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("ProductLine")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamilyPropertiesInternal) this).ProductLine = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductLine[])content.GetValueForProperty("ProductLine", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamilyPropertiesInternal) this).ProductLine, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductLine>(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ProductLineTypeConverter.ConvertFrom)); } if (content.Contains("ResourceProviderDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamilyPropertiesInternal) this).ResourceProviderDetail = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IResourceProviderDetails[])content.GetValueForProperty("ResourceProviderDetail", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamilyPropertiesInternal) this).ResourceProviderDetail, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IResourceProviderDetails>(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ResourceProviderDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DescriptionType")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).DescriptionType = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DescriptionType?)content.GetValueForProperty("DescriptionType", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).DescriptionType, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DescriptionType.CreateFrom); } if (content.Contains("DescriptionShortDescription")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).DescriptionShortDescription = (string)content.GetValueForProperty("DescriptionShortDescription", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).DescriptionShortDescription, global::System.Convert.ToString); } if (content.Contains("DescriptionLongDescription")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).DescriptionLongDescription = (string)content.GetValueForProperty("DescriptionLongDescription", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).DescriptionLongDescription, global::System.Convert.ToString); } if (content.Contains("DescriptionKeyword")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).DescriptionKeyword = (string[])content.GetValueForProperty("DescriptionKeyword", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).DescriptionKeyword, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("DescriptionAttribute")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).DescriptionAttribute = (string[])content.GetValueForProperty("DescriptionAttribute", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).DescriptionAttribute, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("DescriptionLink")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).DescriptionLink = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ILink[])content.GetValueForProperty("DescriptionLink", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).DescriptionLink, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ILink>(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.LinkTypeConverter.ConvertFrom)); } if (content.Contains("AvailabilityInformationAvailabilityStage")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).AvailabilityInformationAvailabilityStage = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AvailabilityStage?)content.GetValueForProperty("AvailabilityInformationAvailabilityStage", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).AvailabilityInformationAvailabilityStage, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AvailabilityStage.CreateFrom); } if (content.Contains("AvailabilityInformationDisabledReason")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).AvailabilityInformationDisabledReason = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DisabledReason?)content.GetValueForProperty("AvailabilityInformationDisabledReason", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).AvailabilityInformationDisabledReason, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DisabledReason.CreateFrom); } if (content.Contains("CostInformationBillingMeterDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).CostInformationBillingMeterDetail = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBillingMeterDetails[])content.GetValueForProperty("CostInformationBillingMeterDetail", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).CostInformationBillingMeterDetail, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBillingMeterDetails>(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.BillingMeterDetailsTypeConverter.ConvertFrom)); } if (content.Contains("CostInformationBillingInfoUrl")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).CostInformationBillingInfoUrl = (string)content.GetValueForProperty("CostInformationBillingInfoUrl", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).CostInformationBillingInfoUrl, global::System.Convert.ToString); } if (content.Contains("AvailabilityInformationDisabledReasonMessage")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).AvailabilityInformationDisabledReasonMessage = (string)content.GetValueForProperty("AvailabilityInformationDisabledReasonMessage", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).AvailabilityInformationDisabledReasonMessage, global::System.Convert.ToString); } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).Description = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IDescription)content.GetValueForProperty("Description", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).Description, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.DescriptionTypeConverter.ConvertFrom); } if (content.Contains("CostInformation")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).CostInformation = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICostInformation)content.GetValueForProperty("CostInformation", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).CostInformation, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.CostInformationTypeConverter.ConvertFrom); } if (content.Contains("AvailabilityInformation")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).AvailabilityInformation = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAvailabilityInformation)content.GetValueForProperty("AvailabilityInformation", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).AvailabilityInformation, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.AvailabilityInformationTypeConverter.ConvertFrom); } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).DisplayName = (string)content.GetValueForProperty("DisplayName", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).DisplayName, global::System.Convert.ToString); } if (content.Contains("ImageInformation")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).ImageInformation = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IImageInformation[])content.GetValueForProperty("ImageInformation", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).ImageInformation, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IImageInformation>(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ImageInformationTypeConverter.ConvertFrom)); } if (content.Contains("HierarchyInformation")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).HierarchyInformation = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IHierarchyInformation)content.GetValueForProperty("HierarchyInformation", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformationInternal) this).HierarchyInformation, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.HierarchyInformationTypeConverter.ConvertFrom); } if (content.Contains("FilterableProperty")) { ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICommonPropertiesInternal) this).FilterableProperty = (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IFilterableProperty[])content.GetValueForProperty("FilterableProperty", ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICommonPropertiesInternal) this).FilterableProperty, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IFilterableProperty>(__y, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.FilterablePropertyTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.GithubActionConfiguration" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal GithubActionConfiguration(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("RegistryInfo")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).RegistryInfo = (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IRegistryInfo)content.GetValueForProperty("RegistryInfo", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).RegistryInfo, Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.RegistryInfoTypeConverter.ConvertFrom); } if (content.Contains("AzureCredentials")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).AzureCredentials = (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IAzureCredentials)content.GetValueForProperty("AzureCredentials", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).AzureCredentials, Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.AzureCredentialsTypeConverter.ConvertFrom); } if (content.Contains("ContextPath")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).ContextPath = (string)content.GetValueForProperty("ContextPath", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).ContextPath, global::System.Convert.ToString); } if (content.Contains("Image")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).Image = (string)content.GetValueForProperty("Image", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).Image, global::System.Convert.ToString); } if (content.Contains("PublishType")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).PublishType = (string)content.GetValueForProperty("PublishType", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).PublishType, global::System.Convert.ToString); } if (content.Contains("OS")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).OS = (string)content.GetValueForProperty("OS", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).OS, global::System.Convert.ToString); } if (content.Contains("RuntimeStack")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).RuntimeStack = (string)content.GetValueForProperty("RuntimeStack", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).RuntimeStack, global::System.Convert.ToString); } if (content.Contains("RuntimeVersion")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).RuntimeVersion = (string)content.GetValueForProperty("RuntimeVersion", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).RuntimeVersion, global::System.Convert.ToString); } if (content.Contains("RegistryInfoRegistryUrl")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).RegistryInfoRegistryUrl = (string)content.GetValueForProperty("RegistryInfoRegistryUrl", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).RegistryInfoRegistryUrl, global::System.Convert.ToString); } if (content.Contains("RegistryInfoRegistryPassword")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).RegistryInfoRegistryPassword = (string)content.GetValueForProperty("RegistryInfoRegistryPassword", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).RegistryInfoRegistryPassword, global::System.Convert.ToString); } if (content.Contains("AzureCredentialsClientId")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).AzureCredentialsClientId = (string)content.GetValueForProperty("AzureCredentialsClientId", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).AzureCredentialsClientId, global::System.Convert.ToString); } if (content.Contains("AzureCredentialsClientSecret")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).AzureCredentialsClientSecret = (string)content.GetValueForProperty("AzureCredentialsClientSecret", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).AzureCredentialsClientSecret, global::System.Convert.ToString); } if (content.Contains("AzureCredentialsTenantId")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).AzureCredentialsTenantId = (string)content.GetValueForProperty("AzureCredentialsTenantId", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).AzureCredentialsTenantId, global::System.Convert.ToString); } if (content.Contains("AzureCredentialsSubscriptionId")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).AzureCredentialsSubscriptionId = (string)content.GetValueForProperty("AzureCredentialsSubscriptionId", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).AzureCredentialsSubscriptionId, global::System.Convert.ToString); } if (content.Contains("RegistryInfoRegistryUserName")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).RegistryInfoRegistryUserName = (string)content.GetValueForProperty("RegistryInfoRegistryUserName", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IGithubActionConfigurationInternal) this).RegistryInfoRegistryUserName, 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.DataMigration.Models.Api20220330Preview.BackupConfiguration" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal BackupConfiguration(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("SourceLocation")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).SourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISourceLocation)content.GetValueForProperty("SourceLocation", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).SourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.SourceLocationTypeConverter.ConvertFrom); } if (content.Contains("TargetLocation")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).TargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ITargetLocation)content.GetValueForProperty("TargetLocation", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).TargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.TargetLocationTypeConverter.ConvertFrom); } if (content.Contains("SourceLocationAzureBlob")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IAzureBlob)content.GetValueForProperty("SourceLocationAzureBlob", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.AzureBlobTypeConverter.ConvertFrom); } if (content.Contains("TargetLocationAccountKey")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).TargetLocationAccountKey = (string)content.GetValueForProperty("TargetLocationAccountKey", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).TargetLocationAccountKey, global::System.Convert.ToString); } if (content.Contains("SourceLocationFileShare")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlFileShare)content.GetValueForProperty("SourceLocationFileShare", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.SqlFileShareTypeConverter.ConvertFrom); } if (content.Contains("SourceLocationFileStorageType")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).SourceLocationFileStorageType = (string)content.GetValueForProperty("SourceLocationFileStorageType", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).SourceLocationFileStorageType, global::System.Convert.ToString); } if (content.Contains("AzureBlobAccountKey")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).AzureBlobAccountKey = (string)content.GetValueForProperty("AzureBlobAccountKey", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).AzureBlobAccountKey, global::System.Convert.ToString); } if (content.Contains("TargetLocationStorageAccountResourceId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).TargetLocationStorageAccountResourceId = (string)content.GetValueForProperty("TargetLocationStorageAccountResourceId", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); } if (content.Contains("FileSharePath")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).FileSharePath = (string)content.GetValueForProperty("FileSharePath", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).FileSharePath, global::System.Convert.ToString); } if (content.Contains("FileShareUsername")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).FileShareUsername = (string)content.GetValueForProperty("FileShareUsername", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).FileShareUsername, global::System.Convert.ToString); } if (content.Contains("FileSharePassword")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).FileSharePassword = (System.Security.SecureString)content.GetValueForProperty("FileSharePassword", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("AzureBlobStorageAccountResourceId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).AzureBlobStorageAccountResourceId = (string)content.GetValueForProperty("AzureBlobStorageAccountResourceId", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); } if (content.Contains("AzureBlobContainerName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).AzureBlobContainerName = (string)content.GetValueForProperty("AzureBlobContainerName", ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfigurationInternal) this).AzureBlobContainerName, 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.Purviewdata.Models.Api20211001Preview.AzureSqlDatabaseCredentialScan" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal AzureSqlDatabaseCredentialScan(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.AzureSqlDatabaseCredentialScanPropertiesTypeConverter.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.IAzureSqlDatabaseCredentialScanInternal) this).ConnectedVia = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IConnectedVia)content.GetValueForProperty("ConnectedVia", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).ConnectedVia, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ConnectedViaTypeConverter.ConvertFrom); } if (content.Contains("CollectionReferenceName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).CollectionReferenceName = (string)content.GetValueForProperty("CollectionReferenceName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).CollectionReferenceName, global::System.Convert.ToString); } if (content.Contains("ConnectedViaReferenceName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).ConnectedViaReferenceName = (string)content.GetValueForProperty("ConnectedViaReferenceName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).ConnectedViaReferenceName, global::System.Convert.ToString); } if (content.Contains("Collection")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).Collection = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ICollectionReference)content.GetValueForProperty("Collection", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).Collection, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.CollectionReferenceTypeConverter.ConvertFrom); } if (content.Contains("ScanRulesetName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).ScanRulesetName = (string)content.GetValueForProperty("ScanRulesetName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).ScanRulesetName, global::System.Convert.ToString); } if (content.Contains("ScanRulesetType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).ScanRulesetType = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetType?)content.GetValueForProperty("ScanRulesetType", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).ScanRulesetType, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetType.CreateFrom); } if (content.Contains("Worker")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).Worker = (int?)content.GetValueForProperty("Worker", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).Worker, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CreatedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).CreatedAt = (global::System.DateTime?)content.GetValueForProperty("CreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) 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.IAzureSqlDatabaseCredentialScanInternal) this).LastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("LastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) 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("ServerEndpoint")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).ServerEndpoint = (string)content.GetValueForProperty("ServerEndpoint", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).ServerEndpoint, global::System.Convert.ToString); } if (content.Contains("DatabaseName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).DatabaseName = (string)content.GetValueForProperty("DatabaseName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).DatabaseName, global::System.Convert.ToString); } if (content.Contains("CredentialReferenceName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).CredentialReferenceName = (string)content.GetValueForProperty("CredentialReferenceName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).CredentialReferenceName, global::System.Convert.ToString); } if (content.Contains("CredentialType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).CredentialType = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.CredentialType?)content.GetValueForProperty("CredentialType", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).CredentialType, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.CredentialType.CreateFrom); } if (content.Contains("Credential")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).Credential = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ICredentialReference)content.GetValueForProperty("Credential", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).Credential, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.CredentialReferenceTypeConverter.ConvertFrom); } if (content.Contains("CollectionLastModifiedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).CollectionLastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("CollectionLastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) 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.IAzureSqlDatabaseCredentialScanInternal) this).CollectionType = (string)content.GetValueForProperty("CollectionType", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IAzureSqlDatabaseCredentialScanInternal) this).CollectionType, 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.StaticSiteArmResource" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal StaticSiteArmResource(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSite)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.StaticSiteTypeConverter.ConvertFrom); } if (content.Contains("Sku")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISkuDescription)content.GetValueForProperty("Sku", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).Sku, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.SkuDescriptionTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IResourceInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IResourceInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Kind")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IResourceInternal) this).Kind = (string)content.GetValueForProperty("Kind", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IResourceInternal) this).Kind, global::System.Convert.ToString); } if (content.Contains("Location")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IResourceInternal) this).Location = (string)content.GetValueForProperty("Location", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IResourceInternal) this).Location, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IResourceInternal) this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IResourceInternal) this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IResourceTags)content.GetValueForProperty("Tag", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IResourceInternal) this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("SkuCapacity")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuCapacity = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ISkuCapacity)content.GetValueForProperty("SkuCapacity", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuCapacity, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.SkuCapacityTypeConverter.ConvertFrom); } if (content.Contains("BuildProperty")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).BuildProperty = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteBuildProperties)content.GetValueForProperty("BuildProperty", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).BuildProperty, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.StaticSiteBuildPropertiesTypeConverter.ConvertFrom); } if (content.Contains("DefaultHostname")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).DefaultHostname = (string)content.GetValueForProperty("DefaultHostname", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).DefaultHostname, global::System.Convert.ToString); } if (content.Contains("RepositoryUrl")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).RepositoryUrl = (string)content.GetValueForProperty("RepositoryUrl", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).RepositoryUrl, global::System.Convert.ToString); } if (content.Contains("Branch")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).Branch = (string)content.GetValueForProperty("Branch", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).Branch, global::System.Convert.ToString); } if (content.Contains("CustomDomain")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).CustomDomain = (string[])content.GetValueForProperty("CustomDomain", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).CustomDomain, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("RepositoryToken")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).RepositoryToken = (string)content.GetValueForProperty("RepositoryToken", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).RepositoryToken, global::System.Convert.ToString); } if (content.Contains("SkuName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuName = (string)content.GetValueForProperty("SkuName", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuName, global::System.Convert.ToString); } if (content.Contains("SkuTier")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuTier = (string)content.GetValueForProperty("SkuTier", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuTier, global::System.Convert.ToString); } if (content.Contains("SkuSize")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuSize = (string)content.GetValueForProperty("SkuSize", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuSize, global::System.Convert.ToString); } if (content.Contains("SkuFamily")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuFamily = (string)content.GetValueForProperty("SkuFamily", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuFamily, global::System.Convert.ToString); } if (content.Contains("Capacity")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).Capacity = (int?)content.GetValueForProperty("Capacity", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).Capacity, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("SkuLocation")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuLocation = (string[])content.GetValueForProperty("SkuLocation", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuLocation, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("SkuCapability")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuCapability = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ICapability[])content.GetValueForProperty("SkuCapability", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuCapability, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ICapability>(__y, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.CapabilityTypeConverter.ConvertFrom)); } if (content.Contains("SkuCapacityMinimum")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuCapacityMinimum = (int?)content.GetValueForProperty("SkuCapacityMinimum", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuCapacityMinimum, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("SkuCapacityMaximum")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuCapacityMaximum = (int?)content.GetValueForProperty("SkuCapacityMaximum", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuCapacityMaximum, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("SkuCapacityDefault")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuCapacityDefault = (int?)content.GetValueForProperty("SkuCapacityDefault", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuCapacityDefault, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("SkuCapacityScaleType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuCapacityScaleType = (string)content.GetValueForProperty("SkuCapacityScaleType", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).SkuCapacityScaleType, global::System.Convert.ToString); } if (content.Contains("BuildPropertyAppLocation")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).BuildPropertyAppLocation = (string)content.GetValueForProperty("BuildPropertyAppLocation", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).BuildPropertyAppLocation, global::System.Convert.ToString); } if (content.Contains("BuildPropertyApiLocation")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).BuildPropertyApiLocation = (string)content.GetValueForProperty("BuildPropertyApiLocation", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).BuildPropertyApiLocation, global::System.Convert.ToString); } if (content.Contains("BuildPropertyAppArtifactLocation")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).BuildPropertyAppArtifactLocation = (string)content.GetValueForProperty("BuildPropertyAppArtifactLocation", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStaticSiteArmResourceInternal) this).BuildPropertyAppArtifactLocation, global::System.Convert.ToString); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.RouteUpdatePropertiesParameters" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal RouteUpdatePropertiesParameters(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("OriginGroup")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).OriginGroup = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceReference)content.GetValueForProperty("OriginGroup", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).OriginGroup, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ResourceReferenceTypeConverter.ConvertFrom); } if (content.Contains("CacheConfiguration")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).CacheConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IAfdRouteCacheConfiguration)content.GetValueForProperty("CacheConfiguration", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).CacheConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.AfdRouteCacheConfigurationTypeConverter.ConvertFrom); } if (content.Contains("EndpointName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).EndpointName = (string)content.GetValueForProperty("EndpointName", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).EndpointName, global::System.Convert.ToString); } if (content.Contains("CustomDomain")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).CustomDomain = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IActivatedResourceReference[])content.GetValueForProperty("CustomDomain", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).CustomDomain, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IActivatedResourceReference>(__y, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ActivatedResourceReferenceTypeConverter.ConvertFrom)); } if (content.Contains("OriginPath")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).OriginPath = (string)content.GetValueForProperty("OriginPath", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).OriginPath, global::System.Convert.ToString); } if (content.Contains("RuleSet")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).RuleSet = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceReference[])content.GetValueForProperty("RuleSet", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).RuleSet, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IResourceReference>(__y, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ResourceReferenceTypeConverter.ConvertFrom)); } if (content.Contains("SupportedProtocol")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).SupportedProtocol = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.AfdEndpointProtocols[])content.GetValueForProperty("SupportedProtocol", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).SupportedProtocol, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.AfdEndpointProtocols>(__y, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.AfdEndpointProtocols.CreateFrom)); } if (content.Contains("PatternsToMatch")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).PatternsToMatch = (string[])content.GetValueForProperty("PatternsToMatch", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).PatternsToMatch, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("ForwardingProtocol")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).ForwardingProtocol = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ForwardingProtocol?)content.GetValueForProperty("ForwardingProtocol", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).ForwardingProtocol, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ForwardingProtocol.CreateFrom); } if (content.Contains("LinkToDefaultDomain")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).LinkToDefaultDomain = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.LinkToDefaultDomain?)content.GetValueForProperty("LinkToDefaultDomain", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).LinkToDefaultDomain, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.LinkToDefaultDomain.CreateFrom); } if (content.Contains("HttpsRedirect")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).HttpsRedirect = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HttpsRedirect?)content.GetValueForProperty("HttpsRedirect", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).HttpsRedirect, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HttpsRedirect.CreateFrom); } if (content.Contains("EnabledState")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).EnabledState = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.EnabledState?)content.GetValueForProperty("EnabledState", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).EnabledState, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.EnabledState.CreateFrom); } if (content.Contains("CacheConfigurationCompressionSetting")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).CacheConfigurationCompressionSetting = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ICompressionSettings)content.GetValueForProperty("CacheConfigurationCompressionSetting", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).CacheConfigurationCompressionSetting, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.CompressionSettingsTypeConverter.ConvertFrom); } if (content.Contains("OriginGroupId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).OriginGroupId = (string)content.GetValueForProperty("OriginGroupId", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).OriginGroupId, global::System.Convert.ToString); } if (content.Contains("CacheConfigurationQueryStringCachingBehavior")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).CacheConfigurationQueryStringCachingBehavior = (Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.AfdQueryStringCachingBehavior?)content.GetValueForProperty("CacheConfigurationQueryStringCachingBehavior", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).CacheConfigurationQueryStringCachingBehavior, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.AfdQueryStringCachingBehavior.CreateFrom); } if (content.Contains("CacheConfigurationQueryParameter")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).CacheConfigurationQueryParameter = (string)content.GetValueForProperty("CacheConfigurationQueryParameter", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).CacheConfigurationQueryParameter, global::System.Convert.ToString); } if (content.Contains("CompressionSettingContentTypesToCompress")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).CompressionSettingContentTypesToCompress = (string[])content.GetValueForProperty("CompressionSettingContentTypesToCompress", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).CompressionSettingContentTypesToCompress, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("CompressionSettingIsCompressionEnabled")) { ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).CompressionSettingIsCompressionEnabled = (bool?)content.GetValueForProperty("CompressionSettingIsCompressionEnabled", ((Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IRouteUpdatePropertiesParametersInternal) this).CompressionSettingIsCompressionEnabled, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.PrivateStore" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal PrivateStore(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.PrivateStorePropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).SystemDataCreatedBy = (string)content.GetValueForProperty("SystemDataCreatedBy", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).SystemDataCreatedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataCreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Support.IdentityType?)content.GetValueForProperty("SystemDataCreatedByType", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Support.IdentityType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).SystemDataLastModifiedBy = (string)content.GetValueForProperty("SystemDataLastModifiedBy", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Support.IdentityType?)content.GetValueForProperty("SystemDataLastModifiedByType", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Support.IdentityType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).SystemDataLastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataLastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.ISystemData)content.GetValueForProperty("SystemData", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IResourceInternal) this).Type, global::System.Convert.ToString); } if (content.Contains("Availability")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).Availability = (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Support.Availability?)content.GetValueForProperty("Availability", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).Availability, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Support.Availability.CreateFrom); } if (content.Contains("NotificationsSetting")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).NotificationsSetting = (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.INotificationsSettingsProperties)content.GetValueForProperty("NotificationsSetting", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).NotificationsSetting, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.NotificationsSettingsPropertiesTypeConverter.ConvertFrom); } if (content.Contains("PrivateStoreId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).PrivateStoreId = (string)content.GetValueForProperty("PrivateStoreId", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).PrivateStoreId, global::System.Convert.ToString); } if (content.Contains("ETag")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).ETag = (string)content.GetValueForProperty("ETag", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).ETag, global::System.Convert.ToString); } if (content.Contains("PrivateStoreName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).PrivateStoreName = (string)content.GetValueForProperty("PrivateStoreName", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).PrivateStoreName, global::System.Convert.ToString); } if (content.Contains("TenantId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).TenantId = (string)content.GetValueForProperty("TenantId", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).TenantId, global::System.Convert.ToString); } if (content.Contains("IsGov")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).IsGov = (bool?)content.GetValueForProperty("IsGov", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).IsGov, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("CollectionId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).CollectionId = (string[])content.GetValueForProperty("CollectionId", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).CollectionId, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("Branding")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).Branding = (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStorePropertiesBranding)content.GetValueForProperty("Branding", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).Branding, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.PrivateStorePropertiesBrandingTypeConverter.ConvertFrom); } if (content.Contains("NotificationSettingRecipient")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).NotificationSettingRecipient = (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IRecipient[])content.GetValueForProperty("NotificationSettingRecipient", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).NotificationSettingRecipient, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IRecipient>(__y, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.RecipientTypeConverter.ConvertFrom)); } if (content.Contains("NotificationSettingSendToAllMarketplaceAdmin")) { ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).NotificationSettingSendToAllMarketplaceAdmin = (bool?)content.GetValueForProperty("NotificationSettingSendToAllMarketplaceAdmin", ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPrivateStoreInternal) this).NotificationSettingSendToAllMarketplaceAdmin, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } 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.AppServicePlanPatchResourceProperties" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal AppServicePlanPatchResourceProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("HostingEnvironmentProfile")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).HostingEnvironmentProfile = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IHostingEnvironmentProfile)content.GetValueForProperty("HostingEnvironmentProfile", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).HostingEnvironmentProfile, Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.HostingEnvironmentProfileTypeConverter.ConvertFrom); } if (content.Contains("WorkerTierName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).WorkerTierName = (string)content.GetValueForProperty("WorkerTierName", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).WorkerTierName, global::System.Convert.ToString); } if (content.Contains("Status")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.StatusOptions?)content.GetValueForProperty("Status", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).Status, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.StatusOptions.CreateFrom); } if (content.Contains("Subscription")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).Subscription = (string)content.GetValueForProperty("Subscription", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).Subscription, global::System.Convert.ToString); } if (content.Contains("MaximumNumberOfWorker")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).MaximumNumberOfWorker = (int?)content.GetValueForProperty("MaximumNumberOfWorker", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).MaximumNumberOfWorker, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("GeoRegion")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).GeoRegion = (string)content.GetValueForProperty("GeoRegion", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).GeoRegion, global::System.Convert.ToString); } if (content.Contains("PerSiteScaling")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).PerSiteScaling = (bool?)content.GetValueForProperty("PerSiteScaling", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).PerSiteScaling, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("MaximumElasticWorkerCount")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).MaximumElasticWorkerCount = (int?)content.GetValueForProperty("MaximumElasticWorkerCount", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).MaximumElasticWorkerCount, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("NumberOfSite")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).NumberOfSite = (int?)content.GetValueForProperty("NumberOfSite", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).NumberOfSite, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("IsSpot")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).IsSpot = (bool?)content.GetValueForProperty("IsSpot", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).IsSpot, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("SpotExpirationTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).SpotExpirationTime = (global::System.DateTime?)content.GetValueForProperty("SpotExpirationTime", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).SpotExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("FreeOfferExpirationTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).FreeOfferExpirationTime = (global::System.DateTime?)content.GetValueForProperty("FreeOfferExpirationTime", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).FreeOfferExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ResourceGroup")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).ResourceGroup = (string)content.GetValueForProperty("ResourceGroup", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).ResourceGroup, global::System.Convert.ToString); } if (content.Contains("Reserved")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).Reserved = (bool?)content.GetValueForProperty("Reserved", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).Reserved, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsXenon")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).IsXenon = (bool?)content.GetValueForProperty("IsXenon", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).IsXenon, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("HyperV")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).HyperV = (bool?)content.GetValueForProperty("HyperV", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).HyperV, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TargetWorkerCount")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).TargetWorkerCount = (int?)content.GetValueForProperty("TargetWorkerCount", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).TargetWorkerCount, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("TargetWorkerSizeId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).TargetWorkerSizeId = (int?)content.GetValueForProperty("TargetWorkerSizeId", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).TargetWorkerSizeId, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ProvisioningState?)content.GetValueForProperty("ProvisioningState", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ProvisioningState.CreateFrom); } if (content.Contains("HostingEnvironmentProfileId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).HostingEnvironmentProfileId = (string)content.GetValueForProperty("HostingEnvironmentProfileId", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).HostingEnvironmentProfileId, global::System.Convert.ToString); } if (content.Contains("HostingEnvironmentProfileName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).HostingEnvironmentProfileName = (string)content.GetValueForProperty("HostingEnvironmentProfileName", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).HostingEnvironmentProfileName, global::System.Convert.ToString); } if (content.Contains("HostingEnvironmentProfileType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).HostingEnvironmentProfileType = (string)content.GetValueForProperty("HostingEnvironmentProfileType", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IAppServicePlanPatchResourcePropertiesInternal) this).HostingEnvironmentProfileType, 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.Purviewdata.Models.Api20211001Preview.PowerBiDelegatedScanPropertiesAutoGenerated" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal PowerBiDelegatedScanPropertiesAutoGenerated(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("CollectionReferenceName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).CollectionReferenceName = (string)content.GetValueForProperty("CollectionReferenceName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).CollectionReferenceName, global::System.Convert.ToString); } if (content.Contains("ConnectedViaReferenceName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ConnectedViaReferenceName = (string)content.GetValueForProperty("ConnectedViaReferenceName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ConnectedViaReferenceName, global::System.Convert.ToString); } if (content.Contains("CollectionLastModifiedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).CollectionLastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("CollectionLastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) 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.IScanPropertiesInternal) this).CollectionType = (string)content.GetValueForProperty("CollectionType", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).CollectionType, global::System.Convert.ToString); } if (content.Contains("Collection")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).Collection = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ICollectionReference)content.GetValueForProperty("Collection", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).Collection, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.CollectionReferenceTypeConverter.ConvertFrom); } if (content.Contains("ConnectedVia")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ConnectedVia = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IConnectedVia)content.GetValueForProperty("ConnectedVia", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ConnectedVia, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ConnectedViaTypeConverter.ConvertFrom); } if (content.Contains("ScanRulesetName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ScanRulesetName = (string)content.GetValueForProperty("ScanRulesetName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ScanRulesetName, global::System.Convert.ToString); } if (content.Contains("ScanRulesetType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ScanRulesetType = (Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetType?)content.GetValueForProperty("ScanRulesetType", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).ScanRulesetType, Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Support.ScanRulesetType.CreateFrom); } if (content.Contains("Worker")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).Worker = (int?)content.GetValueForProperty("Worker", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).Worker, (__y) => (int)global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CreatedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) this).CreatedAt = (global::System.DateTime?)content.GetValueForProperty("CreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) 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.IScanPropertiesInternal) this).LastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("LastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IScanPropertiesInternal) 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("Tenant")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IPowerBiDelegatedScanPropertiesInternal) this).Tenant = (string)content.GetValueForProperty("Tenant", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IPowerBiDelegatedScanPropertiesInternal) this).Tenant, global::System.Convert.ToString); } if (content.Contains("AuthenticationType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IPowerBiDelegatedScanPropertiesInternal) this).AuthenticationType = (string)content.GetValueForProperty("AuthenticationType", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IPowerBiDelegatedScanPropertiesInternal) this).AuthenticationType, global::System.Convert.ToString); } if (content.Contains("ClientId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IPowerBiDelegatedScanPropertiesInternal) this).ClientId = (string)content.GetValueForProperty("ClientId", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IPowerBiDelegatedScanPropertiesInternal) this).ClientId, global::System.Convert.ToString); } if (content.Contains("UserName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IPowerBiDelegatedScanPropertiesInternal) this).UserName = (string)content.GetValueForProperty("UserName", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IPowerBiDelegatedScanPropertiesInternal) this).UserName, global::System.Convert.ToString); } if (content.Contains("Password")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IPowerBiDelegatedScanPropertiesInternal) this).Password = (string)content.GetValueForProperty("Password", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IPowerBiDelegatedScanPropertiesInternal) this).Password, global::System.Convert.ToString); } if (content.Contains("IncludePersonalWorkspace")) { ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IPowerBiDelegatedScanPropertiesInternal) this).IncludePersonalWorkspace = (bool?)content.GetValueForProperty("IncludePersonalWorkspace", ((Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.IPowerBiDelegatedScanPropertiesInternal) this).IncludePersonalWorkspace, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); }
/// <summary> /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ServiceSasParameters" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal ServiceSasParameters(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("CanonicalizedResource")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).CanonicalizedResource = (string)content.GetValueForProperty("CanonicalizedResource", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).CanonicalizedResource, global::System.Convert.ToString); } if (content.Contains("Resource")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).Resource = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SignedResource?)content.GetValueForProperty("Resource", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).Resource, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SignedResource.CreateFrom); } if (content.Contains("Permission")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).Permission = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.Permissions?)content.GetValueForProperty("Permission", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).Permission, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.Permissions.CreateFrom); } if (content.Contains("IPAddressOrRange")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).IPAddressOrRange = (string)content.GetValueForProperty("IPAddressOrRange", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).IPAddressOrRange, global::System.Convert.ToString); } if (content.Contains("Protocol")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.HttpProtocol?)content.GetValueForProperty("Protocol", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.HttpProtocol.CreateFrom); } if (content.Contains("SharedAccessStartTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).SharedAccessStartTime = (global::System.DateTime?)content.GetValueForProperty("SharedAccessStartTime", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).SharedAccessStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SharedAccessExpiryTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).SharedAccessExpiryTime = (global::System.DateTime?)content.GetValueForProperty("SharedAccessExpiryTime", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).SharedAccessExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Identifier")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).Identifier = (string)content.GetValueForProperty("Identifier", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).Identifier, global::System.Convert.ToString); } if (content.Contains("PartitionKeyStart")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).PartitionKeyStart = (string)content.GetValueForProperty("PartitionKeyStart", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).PartitionKeyStart, global::System.Convert.ToString); } if (content.Contains("PartitionKeyEnd")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).PartitionKeyEnd = (string)content.GetValueForProperty("PartitionKeyEnd", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).PartitionKeyEnd, global::System.Convert.ToString); } if (content.Contains("RowKeyStart")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).RowKeyStart = (string)content.GetValueForProperty("RowKeyStart", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).RowKeyStart, global::System.Convert.ToString); } if (content.Contains("RowKeyEnd")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).RowKeyEnd = (string)content.GetValueForProperty("RowKeyEnd", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).RowKeyEnd, global::System.Convert.ToString); } if (content.Contains("KeyToSign")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).KeyToSign = (string)content.GetValueForProperty("KeyToSign", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).KeyToSign, global::System.Convert.ToString); } if (content.Contains("CacheControl")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).CacheControl = (string)content.GetValueForProperty("CacheControl", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).CacheControl, global::System.Convert.ToString); } if (content.Contains("ContentDisposition")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).ContentDisposition = (string)content.GetValueForProperty("ContentDisposition", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).ContentDisposition, global::System.Convert.ToString); } if (content.Contains("ContentEncoding")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).ContentEncoding = (string)content.GetValueForProperty("ContentEncoding", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).ContentEncoding, global::System.Convert.ToString); } if (content.Contains("ContentLanguage")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).ContentLanguage = (string)content.GetValueForProperty("ContentLanguage", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).ContentLanguage, global::System.Convert.ToString); } if (content.Contains("ContentType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).ContentType = (string)content.GetValueForProperty("ContentType", ((Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IServiceSasParametersInternal) this).ContentType, 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.App.Models.Api20220301.CustomHostnameAnalysisResult" /// />. /// </summary> /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param> internal CustomHostnameAnalysisResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); if (returnNow) { return; } // actually deserialize if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).Property = (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultProperties)content.GetValueForProperty("Property", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).Property, Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.CustomHostnameAnalysisResultPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataCreatedBy = (string)content.GetValueForProperty("SystemDataCreatedBy", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataCreatedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataCreatedAt", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.App.Support.CreatedByType?)content.GetValueForProperty("SystemDataCreatedByType", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.App.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataLastModifiedBy = (string)content.GetValueForProperty("SystemDataLastModifiedBy", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.App.Support.CreatedByType?)content.GetValueForProperty("SystemDataLastModifiedByType", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.App.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataLastModifiedAt = (global::System.DateTime?)content.GetValueForProperty("SystemDataLastModifiedAt", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime(v.ToString(), global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.ISystemData)content.GetValueForProperty("SystemData", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).Id = (string)content.GetValueForProperty("Id", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).Name = (string)content.GetValueForProperty("Name", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).Type = (string)content.GetValueForProperty("Type", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api30.IResourceInternal) this).Type, global::System.Convert.ToString); } if (content.Contains("CustomDomainVerificationFailureInfo")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).CustomDomainVerificationFailureInfo = (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IDefaultErrorResponse)content.GetValueForProperty("CustomDomainVerificationFailureInfo", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).CustomDomainVerificationFailureInfo, Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.DefaultErrorResponseTypeConverter.ConvertFrom); } if (content.Contains("HostName")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).HostName = (string)content.GetValueForProperty("HostName", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).HostName, global::System.Convert.ToString); } if (content.Contains("IsHostnameAlreadyVerified")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).IsHostnameAlreadyVerified = (bool?)content.GetValueForProperty("IsHostnameAlreadyVerified", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).IsHostnameAlreadyVerified, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("CustomDomainVerificationTest")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).CustomDomainVerificationTest = (Microsoft.Azure.PowerShell.Cmdlets.App.Support.DnsVerificationTestResult?)content.GetValueForProperty("CustomDomainVerificationTest", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).CustomDomainVerificationTest, Microsoft.Azure.PowerShell.Cmdlets.App.Support.DnsVerificationTestResult.CreateFrom); } if (content.Contains("HasConflictOnManagedEnvironment")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).HasConflictOnManagedEnvironment = (bool?)content.GetValueForProperty("HasConflictOnManagedEnvironment", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).HasConflictOnManagedEnvironment, (__y) => (bool)global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ConflictingContainerAppResourceId")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).ConflictingContainerAppResourceId = (string)content.GetValueForProperty("ConflictingContainerAppResourceId", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).ConflictingContainerAppResourceId, global::System.Convert.ToString); } if (content.Contains("CNameRecord")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).CNameRecord = (string[])content.GetValueForProperty("CNameRecord", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).CNameRecord, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("TxtRecord")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).TxtRecord = (string[])content.GetValueForProperty("TxtRecord", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).TxtRecord, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("ARecord")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).ARecord = (string[])content.GetValueForProperty("ARecord", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).ARecord, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("AlternateCNameRecord")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).AlternateCNameRecord = (string[])content.GetValueForProperty("AlternateCNameRecord", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).AlternateCNameRecord, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("AlternateTxtRecord")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).AlternateTxtRecord = (string[])content.GetValueForProperty("AlternateTxtRecord", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).AlternateTxtRecord, __y => TypeConverterExtensions.SelectToArray <string>(__y, global::System.Convert.ToString)); } if (content.Contains("CustomDomainVerificationFailureInfoError")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).CustomDomainVerificationFailureInfoError = (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IDefaultErrorResponseError)content.GetValueForProperty("CustomDomainVerificationFailureInfoError", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).CustomDomainVerificationFailureInfoError, Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.DefaultErrorResponseErrorTypeConverter.ConvertFrom); } if (content.Contains("Code")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).Code = (string)content.GetValueForProperty("Code", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).Message = (string)content.GetValueForProperty("Message", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).Target = (string)content.GetValueForProperty("Target", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IDefaultErrorResponseErrorDetailsItem[])content.GetValueForProperty("Detail", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).Detail, __y => TypeConverterExtensions.SelectToArray <Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IDefaultErrorResponseErrorDetailsItem>(__y, Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.DefaultErrorResponseErrorDetailsItemTypeConverter.ConvertFrom)); } if (content.Contains("Innererror")) { ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).Innererror = (string)content.GetValueForProperty("Innererror", ((Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ICustomHostnameAnalysisResultInternal) this).Innererror, global::System.Convert.ToString); } AfterDeserializeDictionary(content); }