/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="VolumeMount" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal VolumeMount(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _volumeName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("volumeName"), out var __jsonVolumeName) ? (string)__jsonVolumeName : (string)VolumeName; } { _mountPath = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("mountPath"), out var __jsonMountPath) ? (string)__jsonMountPath : (string)MountPath; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="UserAssignedIdentity" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal UserAssignedIdentity(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _principalId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId; } { _clientId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("clientId"), out var __jsonClientId) ? (string)__jsonClientId : (string)ClientId; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="CheckNameAvailabilityRequest" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal CheckNameAvailabilityRequest(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="Twitter" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal Twitter(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _registration = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject>("registration"), out var __jsonRegistration) ? Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.TwitterRegistration.FromJson(__jsonRegistration) : Registration; } { _enabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonBoolean>("enabled"), out var __jsonEnabled) ? (bool?)__jsonEnabled : Enabled; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="DefaultAuthorizationPolicy" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal DefaultAuthorizationPolicy(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _allowedPrincipal = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject>("allowedPrincipals"), out var __jsonAllowedPrincipals) ? Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.AllowedPrincipals.FromJson(__jsonAllowedPrincipals) : AllowedPrincipal; } { _allowedApplication = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray>("allowedApplications"), out var __jsonAllowedApplications) ? If(__jsonAllowedApplications as Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (string)(__u is Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : AllowedApplication; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="ReplicaProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal ReplicaProperties(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _createdTime = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("createdTime"), out var __jsonCreatedTime) ? global::System.DateTime.TryParse((string)__jsonCreatedTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedTimeValue) ? __jsonCreatedTimeValue : CreatedTime : CreatedTime; } { _container = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray>("containers"), out var __jsonContainers) ? If(__jsonContainers as Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IReplicaContainer[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IReplicaContainer)(Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ReplicaContainer.FromJson(__u)))))() : null : Container; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="ScaleRuleAuth" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal ScaleRuleAuth(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _secretRef = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("secretRef"), out var __jsonSecretRef) ? (string)__jsonSecretRef : (string)SecretRef; } { _triggerParameter = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("triggerParameter"), out var __jsonTriggerParameter) ? (string)__jsonTriggerParameter : (string)TriggerParameter; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="AuthPlatform" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal AuthPlatform(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _enabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonBoolean>("enabled"), out var __jsonEnabled) ? (bool?)__jsonEnabled : Enabled; } { _runtimeVersion = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("runtimeVersion"), out var __jsonRuntimeVersion) ? (string)__jsonRuntimeVersion : (string)RuntimeVersion; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="AzureActiveDirectoryLogin" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal AzureActiveDirectoryLogin(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _loginParameter = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray>("loginParameters"), out var __jsonLoginParameters) ? If(__jsonLoginParameters as Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (string)(__u is Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : LoginParameter; } { _disableWwwAuthenticate = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonBoolean>("disableWWWAuthenticate"), out var __jsonDisableWwwAuthenticate) ? (bool?)__jsonDisableWwwAuthenticate : DisableWwwAuthenticate; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="ClientRegistration" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal ClientRegistration(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _clientId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("clientId"), out var __jsonClientId) ? (string)__jsonClientId : (string)ClientId; } { _clientSecretSettingName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("clientSecretSettingName"), out var __jsonClientSecretSettingName) ? (string)__jsonClientSecretSettingName : (string)ClientSecretSettingName; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="AllowedPrincipals" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal AllowedPrincipals(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _group = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray>("groups"), out var __jsonGroups) ? If(__jsonGroups as Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (string)(__u is Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : Group; } { _identity = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray>("identities"), out var __jsonIdentities) ? If(__jsonIdentities as Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (string)(__p is Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null))))() : null : Identity; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="ContainerAppProbeTcpSocket" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal ContainerAppProbeTcpSocket(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _host = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("host"), out var __jsonHost) ? (string)__jsonHost : (string)Host; } { _port = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonNumber>("port"), out var __jsonPort) ? (int)__jsonPort : Port; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="OpenIdConnectLogin" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal OpenIdConnectLogin(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _nameClaimType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("nameClaimType"), out var __jsonNameClaimType) ? (string)__jsonNameClaimType : (string)NameClaimType; } { _scope = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray>("scopes"), out var __jsonScopes) ? If(__jsonScopes as Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (string)(__u is Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : Scope; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="HttpScaleRule" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal HttpScaleRule(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _metadata = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject>("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.HttpScaleRuleMetadata.FromJson(__jsonMetadata) : Metadata; } { _auth = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray>("auth"), out var __jsonAuth) ? If(__jsonAuth as Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IScaleRuleAuth[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IScaleRuleAuth)(Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ScaleRuleAuth.FromJson(__u)))))() : null : Auth; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="AppLogsConfiguration" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal AppLogsConfiguration(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _logAnalyticsConfiguration = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject>("logAnalyticsConfiguration"), out var __jsonLogAnalyticsConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.LogAnalyticsConfiguration.FromJson(__jsonLogAnalyticsConfiguration) : LogAnalyticsConfiguration; } { _destination = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("destination"), out var __jsonDestination) ? (string)__jsonDestination : (string)Destination; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="OpenIdConnectClientCredential" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal OpenIdConnectClientCredential(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _method = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("method"), out var __jsonMethod) ? (string)__jsonMethod : (string)Method; } { _clientSecretSettingName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("clientSecretSettingName"), out var __jsonClientSecretSettingName) ? (string)__jsonClientSecretSettingName : (string)ClientSecretSettingName; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="LogAnalyticsConfiguration" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal LogAnalyticsConfiguration(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _customerId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("customerId"), out var __jsonCustomerId) ? (string)__jsonCustomerId : (string)CustomerId; } { _sharedKey = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("sharedKey"), out var __jsonSharedKey) ? (string)__jsonSharedKey : (string)SharedKey; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="AvailableOperations" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal AvailableOperations(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray>("value"), out var __jsonValue) ? If(__jsonValue as Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IOperationDetail[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IOperationDetail)(Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.OperationDetail.FromJson(__u)))))() : null : Value; } { _nextLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="TwitterRegistration" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal TwitterRegistration(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _consumerKey = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("consumerKey"), out var __jsonConsumerKey) ? (string)__jsonConsumerKey : (string)ConsumerKey; } { _consumerSecretSettingName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("consumerSecretSettingName"), out var __jsonConsumerSecretSettingName) ? (string)__jsonConsumerSecretSettingName : (string)ConsumerSecretSettingName; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="Nonce" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal Nonce(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _validateNonce = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonBoolean>("validateNonce"), out var __jsonValidateNonce) ? (bool?)__jsonValidateNonce : ValidateNonce; } { _expirationInterval = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("nonceExpirationInterval"), out var __jsonNonceExpirationInterval) ? (string)__jsonNonceExpirationInterval : (string)ExpirationInterval; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="Secret" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal Secret(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("value"), out var __jsonValue) ? (string)__jsonValue : (string)Value; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="JwtClaimChecks" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal JwtClaimChecks(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _allowedGroup = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray>("allowedGroups"), out var __jsonAllowedGroups) ? If(__jsonAllowedGroups as Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (string)(__u is Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : AllowedGroup; } { _allowedClientApplication = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray>("allowedClientApplications"), out var __jsonAllowedClientApplications) ? If(__jsonAllowedClientApplications as Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (string)(__p is Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null))))() : null : AllowedClientApplication; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="CookieExpiration" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal CookieExpiration(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _convention = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("convention"), out var __jsonConvention) ? (string)__jsonConvention : (string)Convention; } { _timeToExpiration = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("timeToExpiration"), out var __jsonTimeToExpiration) ? (string)__jsonTimeToExpiration : (string)TimeToExpiration; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="HttpSettings" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal HttpSettings(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _route = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject>("routes"), out var __jsonRoutes) ? Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.HttpSettingsRoutes.FromJson(__jsonRoutes) : Route; } { _forwardProxy = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject>("forwardProxy"), out var __jsonForwardProxy) ? Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ForwardProxy.FromJson(__jsonForwardProxy) : ForwardProxy; } { _requireHttps = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonBoolean>("requireHttps"), out var __jsonRequireHttps) ? (bool?)__jsonRequireHttps : RequireHttps; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="Scale" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal Scale(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _minReplica = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonNumber>("minReplicas"), out var __jsonMinReplicas) ? (int?)__jsonMinReplicas : MinReplica; } { _maxReplica = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonNumber>("maxReplicas"), out var __jsonMaxReplicas) ? (int?)__jsonMaxReplicas : MaxReplica; } { _rule = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray>("rules"), out var __jsonRules) ? If(__jsonRules as Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IScaleRule[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IScaleRule)(Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ScaleRule.FromJson(__u)))))() : null : Rule; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="QueueScaleRule" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal QueueScaleRule(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _queueName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("queueName"), out var __jsonQueueName) ? (string)__jsonQueueName : (string)QueueName; } { _queueLength = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonNumber>("queueLength"), out var __jsonQueueLength) ? (int?)__jsonQueueLength : QueueLength; } { _auth = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray>("auth"), out var __jsonAuth) ? If(__jsonAuth as Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IScaleRuleAuth[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.IScaleRuleAuth)(Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.ScaleRuleAuth.FromJson(__u)))))() : null : Auth; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="AzureActiveDirectoryValidation" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal AzureActiveDirectoryValidation(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _jwtClaimCheck = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject>("jwtClaimChecks"), out var __jsonJwtClaimChecks) ? Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.JwtClaimChecks.FromJson(__jsonJwtClaimChecks) : JwtClaimCheck; } { _defaultAuthorizationPolicy = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject>("defaultAuthorizationPolicy"), out var __jsonDefaultAuthorizationPolicy) ? Microsoft.Azure.PowerShell.Cmdlets.App.Models.Api20220301.DefaultAuthorizationPolicy.FromJson(__jsonDefaultAuthorizationPolicy) : DefaultAuthorizationPolicy; } { _allowedAudience = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray>("allowedAudiences"), out var __jsonAllowedAudiences) ? If(__jsonAllowedAudiences as Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (string)(__u is Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : AllowedAudience; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="Volume" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal Volume(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } { _storageType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("storageType"), out var __jsonStorageType) ? (string)__jsonStorageType : (string)StorageType; } { _storageName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("storageName"), out var __jsonStorageName) ? (string)__jsonStorageName : (string)StorageName; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="ForwardProxy" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal ForwardProxy(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _convention = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("convention"), out var __jsonConvention) ? (string)__jsonConvention : (string)Convention; } { _customHostHeaderName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("customHostHeaderName"), out var __jsonCustomHostHeaderName) ? (string)__jsonCustomHostHeaderName : (string)CustomHostHeaderName; } { _customProtoHeaderName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("customProtoHeaderName"), out var __jsonCustomProtoHeaderName) ? (string)__jsonCustomProtoHeaderName : (string)CustomProtoHeaderName; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject into a new instance of <see cref="DefaultErrorResponseErrorDetailsItem" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject instance to deserialize from.</param> internal DefaultErrorResponseErrorDetailsItem(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _code = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code; } { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; } { _target = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonString>("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target; } AfterFromJson(json); }