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

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonNumber>("value"), out var __jsonValue) ? (int)__jsonValue : Value; }
            { _usagesType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("usagesType"), out var __jsonUsagesType) ? (string)__jsonUsagesType : (string)UsagesType; }
            AfterFromJson(json);
        }
Beispiel #3
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject into a new instance of <see cref="ResourceName" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ResourceName(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _code = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code; }
            { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; }
            AfterFromJson(json);
        }
Beispiel #5
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject into a new instance of <see cref="ServiceError" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ServiceError(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _code = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code; }
            { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; }
            { _detail = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonArray>("details"), out var __jsonDetails) ? If(__jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.IServiceErrorDetail[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.IServiceErrorDetail)(Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.ServiceErrorDetail.FromJson(__u)))))() : null : Detail; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject into a new instance of <see cref="LimitObject" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal LimitObject(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __limitJsonObject = new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.LimitJsonObject(json);
            { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonNumber>("value"), out var __jsonValue) ? (int)__jsonValue : Value; }
            { _limitType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("limitType"), out var __jsonLimitType) ? (string)__jsonLimitType : (string)LimitType; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject into a new instance of <see cref="OperationResponse" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal OperationResponse(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _display = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject>("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.OperationDisplay.FromJson(__jsonDisplay) : Display; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _origin = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject into a new instance of <see cref="CommonResourceProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal CommonResourceProperties(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _resourceName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("resourceName"), out var __jsonResourceName) ? (string)__jsonResourceName : (string)ResourceName; }
            { _scope = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("scope"), out var __jsonScope) ? (string)__jsonScope : (string)Scope; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _id1 = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id1; }
            AfterFromJson(json);
        }
Beispiel #11
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject into a new instance of <see cref="CurrentUsagesBase" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal CurrentUsagesBase(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.UsagesProperties.FromJson(__jsonProperties) : Property; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject into a new instance of <see cref="QuotaRequestProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal QuotaRequestProperties(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _error = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject>("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.ServiceErrorDetail.FromJson(__jsonError) : Error; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; }
            { _requestSubmitTime = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("requestSubmitTime"), out var __jsonRequestSubmitTime) ? global::System.DateTime.TryParse((string)__jsonRequestSubmitTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonRequestSubmitTimeValue) ? __jsonRequestSubmitTimeValue : RequestSubmitTime : RequestSubmitTime; }
            { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonArray>("value"), out var __jsonValue) ? If(__jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.ISubRequest[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.ISubRequest)(Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.SubRequest.FromJson(__u)))))() : null : Value; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject into a new instance of <see cref="ExceptionResponse" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ExceptionResponse(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _error = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject>("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.ServiceError.FromJson(__jsonError) : Error; }
            AfterFromJson(json);
        }
Beispiel #14
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject into a new instance of <see cref="LimitJsonObject" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal LimitJsonObject(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("limitObjectType"), out var __jsonLimitObjectType) ? (string)__jsonLimitObjectType : (string)Type; }
            AfterFromJson(json);
        }
Beispiel #15
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject into a new instance of <see cref="QuotaRequestStatusDetails" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal QuotaRequestStatusDetails(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _limit = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject>("limit"), out var __jsonLimit) ? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.LimitObject.FromJson(__jsonLimit) : Limit; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject>("name"), out var __jsonName) ? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.ResourceName.FromJson(__jsonName) : Name; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; }
            { _unit = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("unit"), out var __jsonUnit) ? (string)__jsonUnit : (string)Unit; }
            { _resourceType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("resourceType"), out var __jsonResourceType) ? (string)__jsonResourceType : (string)ResourceType; }
            { _quotaPeriod = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("quotaPeriod"), out var __jsonQuotaPeriod) ? (string)__jsonQuotaPeriod : (string)QuotaPeriod; }
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Any.FromJson(__jsonProperties) : Property; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject into a new instance of <see cref="QuotaProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal QuotaProperties(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject>("name"), out var __jsonName) ? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.ResourceName.FromJson(__jsonName) : Name; }
            { _limit = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject>("limit"), out var __jsonLimit) ? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.LimitJsonObject.FromJson(__jsonLimit) : Limit; }
            { _unit = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("unit"), out var __jsonUnit) ? (string)__jsonUnit : (string)Unit; }
            { _resourceType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("resourceType"), out var __jsonResourceType) ? (string)__jsonResourceType : (string)ResourceType; }
            { _quotaPeriod = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("quotaPeriod"), out var __jsonQuotaPeriod) ? (string)__jsonQuotaPeriod : (string)QuotaPeriod; }
            { _isQuotaApplicable = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonBoolean>("isQuotaApplicable"), out var __jsonIsQuotaApplicable) ? (bool?)__jsonIsQuotaApplicable : IsQuotaApplicable; }
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Any.FromJson(__jsonProperties) : Property; }
            AfterFromJson(json);
        }
Beispiel #17
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject into a new instance of <see cref="QuotaRequestOneResourceProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal QuotaRequestOneResourceProperties(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _limit = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject>("limit"), out var __jsonLimit) ? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.LimitObject.FromJson(__jsonLimit) : Limit; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject>("name"), out var __jsonName) ? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.ResourceName.FromJson(__jsonName) : Name; }
            { _error = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject>("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Api20210315Preview.ServiceErrorDetail.FromJson(__jsonError) : Error; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; }
            { _requestSubmitTime = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("requestSubmitTime"), out var __jsonRequestSubmitTime) ? global::System.DateTime.TryParse((string)__jsonRequestSubmitTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonRequestSubmitTimeValue) ? __jsonRequestSubmitTimeValue : RequestSubmitTime : RequestSubmitTime; }
            { _currentValue = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonNumber>("currentValue"), out var __jsonCurrentValue) ? (int?)__jsonCurrentValue : CurrentValue; }
            { _unit = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("unit"), out var __jsonUnit) ? (string)__jsonUnit : (string)Unit; }
            { _resourceType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("resourceType"), out var __jsonResourceType) ? (string)__jsonResourceType : (string)ResourceType; }
            { _quotaPeriod = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonString>("quotaPeriod"), out var __jsonQuotaPeriod) ? (string)__jsonQuotaPeriod : (string)QuotaPeriod; }
            { _isQuotaApplicable = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonBoolean>("isQuotaApplicable"), out var __jsonIsQuotaApplicable) ? (bool?)__jsonIsQuotaApplicable : IsQuotaApplicable; }
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.Any.FromJson(__jsonProperties) : Property; }
            AfterFromJson(json);
        }