Esempio n. 1
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="ErrorAdditionalInfo" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            { _info = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Any.FromJson(__jsonInfo) : Info; }
            AfterFromJson(json);
        }
Esempio n. 2
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="UserAssignedIdentityProperty" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal UserAssignedIdentityProperty(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _principalId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId; }
            { _clientId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("clientId"), out var __jsonClientId) ? (string)__jsonClientId : (string)ClientId; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="LiveTraceCategory" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal LiveTraceCategory(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _enabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("enabled"), out var __jsonEnabled) ? (string)__jsonEnabled : (string)Enabled; }
            AfterFromJson(json);
        }
Esempio n. 4
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="SignalRServiceUsageName" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal SignalRServiceUsageName(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("value"), out var __jsonValue) ? (string)__jsonValue : (string)Value; }
            { _localizedValue = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("localizedValue"), out var __jsonLocalizedValue) ? (string)__jsonLocalizedValue : (string)LocalizedValue; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="UpstreamAuthSettings" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal UpstreamAuthSettings(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _managedIdentity = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("managedIdentity"), out var __jsonManagedIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.ManagedIdentitySettings.FromJson(__jsonManagedIdentity) : ManagedIdentity; }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="NameAvailabilityParameters" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal NameAvailabilityParameters(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="LogSpecification" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal LogSpecification(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _displayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName; }
            AfterFromJson(json);
        }
Esempio n. 8
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="WebPubSubHubProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal WebPubSubHubProperties(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _eventHandler = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray>("eventHandlers"), out var __jsonEventHandlers) ? If(__jsonEventHandlers as Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.IEventHandler[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.IEventHandler)(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.EventHandler.FromJson(__u)))))() : null : EventHandler; }
            { _anonymousConnectPolicy = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("anonymousConnectPolicy"), out var __jsonAnonymousConnectPolicy) ? (string)__jsonAnonymousConnectPolicy : (string)AnonymousConnectPolicy; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="ShareablePrivateLinkResourceType" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ShareablePrivateLinkResourceType(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.ShareablePrivateLinkResourceProperties.FromJson(__jsonProperties) : Property; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            AfterFromJson(json);
        }
Esempio n. 10
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="NetworkAcl" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal NetworkAcl(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _allow = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray>("allow"), out var __jsonAllow) ? If(__jsonAllow as Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Support.WebPubSubRequestType[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Support.WebPubSubRequestType)(__u is Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString __t ? (Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Support.WebPubSubRequestType)(__t.ToString()) : ((Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Support.WebPubSubRequestType) "")))))() : null : Allow; }
            { _deny = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray>("deny"), out var __jsonDeny) ? If(__jsonDeny as Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Support.WebPubSubRequestType[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Support.WebPubSubRequestType)(__p is Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString __o ? (Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Support.WebPubSubRequestType)(__o.ToString()) : ((Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Support.WebPubSubRequestType) "")))))() : null : Deny; }
            AfterFromJson(json);
        }
Esempio n. 11
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="PrivateLinkResourceList" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal PrivateLinkResourceList(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray>("value"), out var __jsonValue) ? If(__jsonValue as Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.IPrivateLinkResource[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.IPrivateLinkResource)(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.PrivateLinkResource.FromJson(__u)))))() : null : Value; }
            { _nextLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="LiveTraceConfiguration" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal LiveTraceConfiguration(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _enabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("enabled"), out var __jsonEnabled) ? (string)__jsonEnabled : (string)Enabled; }
            { _category = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray>("categories"), out var __jsonCategories) ? If(__jsonCategories as Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.ILiveTraceCategory[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.ILiveTraceCategory)(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.LiveTraceCategory.FromJson(__u)))))() : null : Category; }
            AfterFromJson(json);
        }
Esempio n. 13
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="ServiceSpecification" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ServiceSpecification(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _metricSpecification = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray>("metricSpecifications"), out var __jsonMetricSpecifications) ? If(__jsonMetricSpecifications as Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.IMetricSpecification[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.IMetricSpecification)(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.MetricSpecification.FromJson(__u)))))() : null : MetricSpecification; }
            { _logSpecification = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray>("logSpecifications"), out var __jsonLogSpecifications) ? If(__jsonLogSpecifications as Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.ILogSpecification[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.ILogSpecification)(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.LogSpecification.FromJson(__p)))))() : null : LogSpecification; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="PrivateLinkServiceConnectionState" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal PrivateLinkServiceConnectionState(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _status = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status; }
            { _description = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description; }
            { _actionsRequired = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("actionsRequired"), out var __jsonActionsRequired) ? (string)__jsonActionsRequired : (string)ActionsRequired; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="WebPubSubHub" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal WebPubSubHub(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __resource = new Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.Resource(json);
            { _systemData = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData; }
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.WebPubSubHubProperties.FromJson(__jsonProperties) : Property; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="NameAvailability" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal NameAvailability(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _nameAvailable = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonBoolean>("nameAvailable"), out var __jsonNameAvailable) ? (bool?)__jsonNameAvailable : NameAvailable; }
            { _reason = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("reason"), out var __jsonReason) ? (string)__jsonReason : (string)Reason; }
            { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; }
            AfterFromJson(json);
        }
Esempio n. 17
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="Sku" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Sku(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _sku1 = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.ResourceSku.FromJson(__jsonSku) : Sku1; }
            { _capacity = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("capacity"), out var __jsonCapacity) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.SkuCapacity.FromJson(__jsonCapacity) : Capacity; }
            { _resourceType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("resourceType"), out var __jsonResourceType) ? (string)__jsonResourceType : (string)ResourceType; }
            AfterFromJson(json);
        }
Esempio n. 18
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="WebPubSubNetworkAcLs" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal WebPubSubNetworkAcLs(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _publicNetwork = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("publicNetwork"), out var __jsonPublicNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.NetworkAcl.FromJson(__jsonPublicNetwork) : PublicNetwork; }
            { _defaultAction = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("defaultAction"), out var __jsonDefaultAction) ? (string)__jsonDefaultAction : (string)DefaultAction; }
            { _privateEndpoint = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray>("privateEndpoints"), out var __jsonPrivateEndpoints) ? If(__jsonPrivateEndpoints as Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.IPrivateEndpointAcl[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.IPrivateEndpointAcl)(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.PrivateEndpointAcl.FromJson(__u)))))() : null : PrivateEndpoint; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="TrackedResource" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __resource = new Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.Resource(json);
            { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location; }
            { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.TrackedResourceTags.FromJson(__jsonTags) : Tag; }
            AfterFromJson(json);
        }
Esempio n. 20
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="ShareablePrivateLinkResourceProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ShareablePrivateLinkResourceProperties(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _description = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description; }
            { _groupId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("groupId"), out var __jsonGroupId) ? (string)__jsonGroupId : (string)GroupId; }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="WebPubSubKeys" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal WebPubSubKeys(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _primaryKey = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("primaryKey"), out var __jsonPrimaryKey) ? (string)__jsonPrimaryKey : (string)PrimaryKey; }
            { _secondaryKey = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("secondaryKey"), out var __jsonSecondaryKey) ? (string)__jsonSecondaryKey : (string)SecondaryKey; }
            { _primaryConnectionString = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("primaryConnectionString"), out var __jsonPrimaryConnectionString) ? (string)__jsonPrimaryConnectionString : (string)PrimaryConnectionString; }
            { _secondaryConnectionString = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("secondaryConnectionString"), out var __jsonSecondaryConnectionString) ? (string)__jsonSecondaryConnectionString : (string)SecondaryConnectionString; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="EventHandler" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal EventHandler(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _auth = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("auth"), out var __jsonAuth) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.UpstreamAuthSettings.FromJson(__jsonAuth) : Auth; }
            { _urlTemplate = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("urlTemplate"), out var __jsonUrlTemplate) ? (string)__jsonUrlTemplate : (string)UrlTemplate; }
            { _userEventPattern = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("userEventPattern"), out var __jsonUserEventPattern) ? (string)__jsonUserEventPattern : (string)UserEventPattern; }
            { _systemEvent = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray>("systemEvents"), out var __jsonSystemEvents) ? If(__jsonSystemEvents as Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.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.WebPubSub.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : SystemEvent; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="OperationDisplay" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal OperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _provider = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)Provider; }
            { _resource = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("resource"), out var __jsonResource) ? (string)__jsonResource : (string)Resource; }
            { _operation = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation; }
            { _description = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description; }
            AfterFromJson(json);
        }
Esempio n. 24
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="ManagedIdentity" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ManagedIdentity(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            { _userAssignedIdentity = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("userAssignedIdentities"), out var __jsonUserAssignedIdentities) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.ManagedIdentityUserAssignedIdentities.FromJson(__jsonUserAssignedIdentities) : UserAssignedIdentity; }
            { _principalId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId; }
            { _tenantId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("tenantId"), out var __jsonTenantId) ? (string)__jsonTenantId : (string)TenantId; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="PrivateEndpointConnectionProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal PrivateEndpointConnectionProperties(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _privateEndpoint = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("privateEndpoint"), out var __jsonPrivateEndpoint) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.PrivateEndpoint.FromJson(__jsonPrivateEndpoint) : PrivateEndpoint; }
            { _privateLinkServiceConnectionState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("privateLinkServiceConnectionState"), out var __jsonPrivateLinkServiceConnectionState) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.PrivateLinkServiceConnectionState.FromJson(__jsonPrivateLinkServiceConnectionState) : PrivateLinkServiceConnectionState; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _groupId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray>("groupIds"), out var __jsonGroupIds) ? If(__jsonGroupIds as Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.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.WebPubSub.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : GroupId; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="Dimension" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Dimension(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _displayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName; }
            { _internalName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("internalName"), out var __jsonInternalName) ? (string)__jsonInternalName : (string)InternalName; }
            { _toBeExportedForShoebox = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonBoolean>("toBeExportedForShoebox"), out var __jsonToBeExportedForShoebox) ? (bool?)__jsonToBeExportedForShoebox : ToBeExportedForShoebox; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="PrivateLinkResourceProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal PrivateLinkResourceProperties(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _groupId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("groupId"), out var __jsonGroupId) ? (string)__jsonGroupId : (string)GroupId; }
            { _requiredMember = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray>("requiredMembers"), out var __jsonRequiredMembers) ? If(__jsonRequiredMembers as Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.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.WebPubSub.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : RequiredMember; }
            { _requiredZoneName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray>("requiredZoneNames"), out var __jsonRequiredZoneNames) ? If(__jsonRequiredZoneNames as Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.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.WebPubSub.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null))))() : null : RequiredZoneName; }
            { _shareablePrivateLinkResourceType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray>("shareablePrivateLinkResourceTypes"), out var __jsonShareablePrivateLinkResourceTypes) ? If(__jsonShareablePrivateLinkResourceTypes as Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray, out var __l) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.IShareablePrivateLinkResourceType[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k) => (Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.IShareablePrivateLinkResourceType)(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.ShareablePrivateLinkResourceType.FromJson(__k)))))() : null : ShareablePrivateLinkResourceType; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="SharedPrivateLinkResourceProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal SharedPrivateLinkResourceProperties(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _groupId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("groupId"), out var __jsonGroupId) ? (string)__jsonGroupId : (string)GroupId; }
            { _privateLinkResourceId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("privateLinkResourceId"), out var __jsonPrivateLinkResourceId) ? (string)__jsonPrivateLinkResourceId : (string)PrivateLinkResourceId; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _requestMessage = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("requestMessage"), out var __jsonRequestMessage) ? (string)__jsonRequestMessage : (string)RequestMessage; }
            { _status = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="SkuCapacity" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal SkuCapacity(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _minimum = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonNumber>("minimum"), out var __jsonMinimum) ? (int?)__jsonMinimum : Minimum; }
            { _maximum = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonNumber>("maximum"), out var __jsonMaximum) ? (int?)__jsonMaximum : Maximum; }
            { _default = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonNumber>("default"), out var __jsonDefault) ? (int?)__jsonDefault : Default; }
            { _allowedValue = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray>("allowedValues"), out var __jsonAllowedValues) ? If(__jsonAllowedValues as Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <int[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (int)(__u is Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonNumber __t ? (int)__t : default(int)))))() : null : AllowedValue; }
            { _scaleType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("scaleType"), out var __jsonScaleType) ? (string)__jsonScaleType : (string)ScaleType; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject into a new instance of <see cref="Operation" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Operation(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _display = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.OperationDisplay.FromJson(__jsonDisplay) : Display; }
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20211001.OperationProperties.FromJson(__jsonProperties) : Property; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _isDataAction = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonBoolean>("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : IsDataAction; }
            { _origin = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.Json.JsonString>("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin; }
            AfterFromJson(json);
        }