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

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _vMResourceId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonArray>("vmResourceIds"), out var __jsonVMResourceIds) ? If(__jsonVMResourceIds as Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.IVMResources[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.IVMResources)(Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.VMResources.FromJson(__u)))))() : null : VMResourceId; }
            { _state = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("state"), out var __jsonState) ? (string)__jsonState : (string)State; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="VMExtensionPayload" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal VMExtensionPayload(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _apiKey = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("apiKey"), out var __jsonApiKey) ? (string)__jsonApiKey : (string)ApiKey; }
            { _region = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("region"), out var __jsonRegion) ? (string)__jsonRegion : (string)Region; }
            AfterFromJson(json);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="LogzMonitorResourceUpdateParameters" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal LogzMonitorResourceUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.MonitorUpdateProperties.FromJson(__jsonProperties) : Property; }
            { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.LogzMonitorResourceUpdateParametersTags.FromJson(__jsonTags) : Tag; }
            AfterFromJson(json);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="MonitoredResourceListResponse" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal MonitoredResourceListResponse(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _agentVersion = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("agentVersion"), out var __jsonAgentVersion) ? (string)__jsonAgentVersion : (string)AgentVersion; }
            AfterFromJson(json);
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="FilteringTag" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal FilteringTag(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("value"), out var __jsonValue) ? (string)__jsonValue : (string)Value; }
            { _action = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("action"), out var __jsonAction) ? (string)__jsonAction : (string)Action; }
            AfterFromJson(json);
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="IdentityProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal IdentityProperties(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _principalId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId; }
            { _tenantId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("tenantId"), out var __jsonTenantId) ? (string)__jsonTenantId : (string)TenantId; }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            AfterFromJson(json);
        }
Ejemplo n.º 9
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="MonitoringTagRulesProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal MonitoringTagRulesProperties(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _logRule = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject>("logRules"), out var __jsonLogRules) ? Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.LogRules.FromJson(__jsonLogRules) : LogRule; }
            { _systemData = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject>("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="LogzSingleSignOnProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal LogzSingleSignOnProperties(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _singleSignOnState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("singleSignOnState"), out var __jsonSingleSignOnState) ? (string)__jsonSingleSignOnState : (string)SingleSignOnState; }
            { _enterpriseAppId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("enterpriseAppId"), out var __jsonEnterpriseAppId) ? (string)__jsonEnterpriseAppId : (string)EnterpriseAppId; }
            { _singleSignOnUrl = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("singleSignOnUrl"), out var __jsonSingleSignOnUrl) ? (string)__jsonSingleSignOnUrl : (string)SingleSignOnUrl; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="OperationDisplay" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal OperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _firstName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("firstName"), out var __jsonFirstName) ? (string)__jsonFirstName : (string)FirstName; }
            { _lastName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("lastName"), out var __jsonLastName) ? (string)__jsonLastName : (string)LastName; }
            { _emailAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("emailAddress"), out var __jsonEmailAddress) ? (string)__jsonEmailAddress : (string)EmailAddress; }
            { _phoneNumber = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("phoneNumber"), out var __jsonPhoneNumber) ? (string)__jsonPhoneNumber : (string)PhoneNumber; }
            AfterFromJson(json);
        }
Ejemplo n.º 13
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="LogRules" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal LogRules(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _sendAadLog = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonBoolean>("sendAadLogs"), out var __jsonSendAadLogs) ? (bool?)__jsonSendAadLogs : SendAadLog; }
            { _sendSubscriptionLog = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonBoolean>("sendSubscriptionLogs"), out var __jsonSendSubscriptionLogs) ? (bool?)__jsonSendSubscriptionLogs : SendSubscriptionLog; }
            { _sendActivityLog = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonBoolean>("sendActivityLogs"), out var __jsonSendActivityLogs) ? (bool?)__jsonSendActivityLogs : SendActivityLog; }
            { _filteringTag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonArray>("filteringTags"), out var __jsonFilteringTags) ? If(__jsonFilteringTags as Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.IFilteringTag[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.IFilteringTag)(Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.FilteringTag.FromJson(__u)))))() : null : FilteringTag; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="OperationResult" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal OperationResult(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _usageType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("usageType"), out var __jsonUsageType) ? (string)__jsonUsageType : (string)UsageType; }
            { _billingCycle = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("billingCycle"), out var __jsonBillingCycle) ? (string)__jsonBillingCycle : (string)BillingCycle; }
            { _planDetail = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("planDetails"), out var __jsonPlanDetails) ? (string)__jsonPlanDetails : (string)PlanDetail; }
            { _effectiveDate = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("effectiveDate"), out var __jsonEffectiveDate) ? global::System.DateTime.TryParse((string)__jsonEffectiveDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEffectiveDateValue) ? __jsonEffectiveDateValue : EffectiveDate : EffectiveDate; }
            AfterFromJson(json);
        }
Ejemplo n.º 16
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="LogzOrganizationProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal LogzOrganizationProperties(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _companyName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("companyName"), out var __jsonCompanyName) ? (string)__jsonCompanyName : (string)CompanyName; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _enterpriseAppId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("enterpriseAppId"), out var __jsonEnterpriseAppId) ? (string)__jsonEnterpriseAppId : (string)EnterpriseAppId; }
            { _singleSignOnUrl = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("singleSignOnUrl"), out var __jsonSingleSignOnUrl) ? (string)__jsonSingleSignOnUrl : (string)SingleSignOnUrl; }
            AfterFromJson(json);
        }
Ejemplo n.º 17
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="ErrorDetail" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _code = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code; }
            { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; }
            { _target = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target; }
            { _detail = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonArray>("details"), out var __jsonDetails) ? If(__jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20.IErrorDetail[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20.IErrorDetail)(Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20.ErrorDetail.FromJson(__u)))))() : null : Detail; }
            { _additionalInfo = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonArray>("additionalInfo"), out var __jsonAdditionalInfo) ? If(__jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20.IErrorAdditionalInfo[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20.IErrorAdditionalInfo)(Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20.ErrorAdditionalInfo.FromJson(__p)))))() : null : AdditionalInfo; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="LogzSingleSignOnResource" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal LogzSingleSignOnResource(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _emailAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("emailAddress"), out var __jsonEmailAddress) ? (string)__jsonEmailAddress : (string)EmailAddress; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="MonitorUpdateProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal MonitorUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _monitoringStatus = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("monitoringStatus"), out var __jsonMonitoringStatus) ? (string)__jsonMonitoringStatus : (string)MonitoringStatus; }
            AfterFromJson(json);
        }
Ejemplo n.º 21
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="ErrorResponse" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _role = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("role"), out var __jsonRole) ? (string)__jsonRole : (string)Role; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="LogzMonitorResource" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal LogzMonitorResource(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _systemData = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject>("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData; }
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.MonitorProperties.FromJson(__jsonProperties) : Property; }
            { _identity = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject>("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.IdentityProperties.FromJson(__jsonIdentity) : Identity; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.LogzMonitorResourceTags.FromJson(__jsonTags) : Tag; }
            { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="MonitorProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal MonitorProperties(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _logzOrganizationProperty = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject>("logzOrganizationProperties"), out var __jsonLogzOrganizationProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.LogzOrganizationProperties.FromJson(__jsonLogzOrganizationProperties) : LogzOrganizationProperty; }
            { _userInfo = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject>("userInfo"), out var __jsonUserInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.UserInfo.FromJson(__jsonUserInfo) : UserInfo; }
            { _planData = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject>("planData"), out var __jsonPlanData) ? Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20201001Preview.PlanData.FromJson(__jsonPlanData) : PlanData; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _monitoringStatus = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("monitoringStatus"), out var __jsonMonitoringStatus) ? (string)__jsonMonitoringStatus : (string)MonitoringStatus; }
            { _marketplaceSubscriptionStatus = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("marketplaceSubscriptionStatus"), out var __jsonMarketplaceSubscriptionStatus) ? (string)__jsonMarketplaceSubscriptionStatus : (string)MarketplaceSubscriptionStatus; }
            { _liftrResourceCategory = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("liftrResourceCategory"), out var __jsonLiftrResourceCategory) ? (string)__jsonLiftrResourceCategory : (string)LiftrResourceCategory; }
            { _liftrResourcePreference = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonNumber>("liftrResourcePreference"), out var __jsonLiftrResourcePreference) ? (int?)__jsonLiftrResourcePreference : LiftrResourcePreference; }
            AfterFromJson(json);
        }
Ejemplo n.º 25
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="LogzIdentity" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal LogzIdentity(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _subscriptionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId; }
            { _resourceGroupName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName; }
            { _monitorName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("monitorName"), out var __jsonMonitorName) ? (string)__jsonMonitorName : (string)MonitorName; }
            { _ruleSetName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("ruleSetName"), out var __jsonRuleSetName) ? (string)__jsonRuleSetName : (string)RuleSetName; }
            { _configurationName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("configurationName"), out var __jsonConfigurationName) ? (string)__jsonConfigurationName : (string)ConfigurationName; }
            { _subAccountName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("subAccountName"), out var __jsonSubAccountName) ? (string)__jsonSubAccountName : (string)SubAccountName; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="MonitoredResource" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal MonitoredResource(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _systemData = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject>("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.Logz.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _sendingMetric = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonBoolean>("sendingMetrics"), out var __jsonSendingMetrics) ? (bool?)__jsonSendingMetrics : SendingMetric; }
            { _reasonForMetricsStatus = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("reasonForMetricsStatus"), out var __jsonReasonForMetricsStatus) ? (string)__jsonReasonForMetricsStatus : (string)ReasonForMetricsStatus; }
            { _sendingLog = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonBoolean>("sendingLogs"), out var __jsonSendingLogs) ? (bool?)__jsonSendingLogs : SendingLog; }
            { _reasonForLogsStatus = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("reasonForLogsStatus"), out var __jsonReasonForLogsStatus) ? (string)__jsonReasonForLogsStatus : (string)ReasonForLogsStatus; }
            AfterFromJson(json);
        }
Ejemplo n.º 27
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject into a new instance of <see cref="SystemData" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal SystemData(Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _createdBy = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("createdBy"), out var __jsonCreatedBy) ? (string)__jsonCreatedBy : (string)CreatedBy; }
            { _createdByType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("createdByType"), out var __jsonCreatedByType) ? (string)__jsonCreatedByType : (string)CreatedByType; }
            { _createdAt = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("createdAt"), out var __jsonCreatedAt) ? global::System.DateTime.TryParse((string)__jsonCreatedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedAtValue) ? __jsonCreatedAtValue : CreatedAt : CreatedAt; }
            { _lastModifiedBy = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("lastModifiedBy"), out var __jsonLastModifiedBy) ? (string)__jsonLastModifiedBy : (string)LastModifiedBy; }
            { _lastModifiedByType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("lastModifiedByType"), out var __jsonLastModifiedByType) ? (string)__jsonLastModifiedByType : (string)LastModifiedByType; }
            { _lastModifiedAt = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Logz.Runtime.Json.JsonString>("lastModifiedAt"), out var __jsonLastModifiedAt) ? global::System.DateTime.TryParse((string)__jsonLastModifiedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastModifiedAtValue) ? __jsonLastModifiedAtValue : LastModifiedAt : LastModifiedAt; }
            AfterFromJson(json);
        }