/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="VMCollectionUpdate" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal VMCollectionUpdate(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _vMResourceId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("vmResourceId"), out var __jsonVMResourceId) ? (string)__jsonVMResourceId : (string)VMResourceId; } { _operationName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("operationName"), out var __jsonOperationName) ? (string)__jsonOperationName : (string)OperationName; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="VMIngestionDetailsResponse" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal VMIngestionDetailsResponse(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _cloudId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("cloudId"), out var __jsonCloudId) ? (string)__jsonCloudId : (string)CloudId; } { _ingestionKey = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("ingestionKey"), out var __jsonIngestionKey) ? (string)__jsonIngestionKey : (string)IngestionKey; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="MonitoringTagRulesProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal MonitoringTagRulesProperties(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _logRule = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("logRules"), out var __jsonLogRules) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.LogRules.FromJson(__jsonLogRules) : LogRule; } { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="MonitoredResourceListResponse" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal MonitoredResourceListResponse(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonArray>("value"), out var __jsonValue) ? If(__jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.IMonitoredResource[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.IMonitoredResource)(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.MonitoredResource.FromJson(__u)))))() : null : Value; } { _nextLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="ElasticProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal ElasticProperties(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _elasticCloudUser = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("elasticCloudUser"), out var __jsonElasticCloudUser) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.ElasticCloudUser.FromJson(__jsonElasticCloudUser) : ElasticCloudUser; } { _elasticCloudDeployment = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("elasticCloudDeployment"), out var __jsonElasticCloudDeployment) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.ElasticCloudDeployment.FromJson(__jsonElasticCloudDeployment) : ElasticCloudDeployment; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="IdentityProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal IdentityProperties(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _principalId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId; } { _tenantId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("tenantId"), out var __jsonTenantId) ? (string)__jsonTenantId : (string)TenantId; } { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="ElasticCloudUser" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal ElasticCloudUser(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _emailAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("emailAddress"), out var __jsonEmailAddress) ? (string)__jsonEmailAddress : (string)EmailAddress; } { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; } { _elasticCloudSsoDefaultUrl = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("elasticCloudSsoDefaultUrl"), out var __jsonElasticCloudSsoDefaultUrl) ? (string)__jsonElasticCloudSsoDefaultUrl : (string)ElasticCloudSsoDefaultUrl; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="MonitoredResource" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal MonitoredResource(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; } { _sendingLog = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("sendingLogs"), out var __jsonSendingLogs) ? (string)__jsonSendingLogs : (string)SendingLog; } { _reasonForLogsStatus = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("reasonForLogsStatus"), out var __jsonReasonForLogsStatus) ? (string)__jsonReasonForLogsStatus : (string)ReasonForLogsStatus; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="FilteringTag" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal FilteringTag(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("value"), out var __jsonValue) ? (string)__jsonValue : (string)Value; } { _action = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("action"), out var __jsonAction) ? (string)__jsonAction : (string)Action; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="OperationResult" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal OperationResult(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _display = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.OperationDisplay.FromJson(__jsonDisplay) : Display; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } { _isDataAction = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonBoolean>("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : IsDataAction; } { _origin = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="ErrorResponseBody" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal ErrorResponseBody(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _code = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code; } { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; } { _target = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target; } { _detail = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonArray>("details"), out var __jsonDetails) ? If(__jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.IErrorResponseBody[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.IErrorResponseBody)(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.ErrorResponseBody.FromJson(__u)))))() : null : Detail; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="OperationDisplay" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal OperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _provider = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)Provider; } { _resource = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("resource"), out var __jsonResource) ? (string)__jsonResource : (string)Resource; } { _operation = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation; } { _description = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="DeploymentInfoResponse" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal DeploymentInfoResponse(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _status = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status; } { _version = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version; } { _memoryCapacity = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("memoryCapacity"), out var __jsonMemoryCapacity) ? (string)__jsonMemoryCapacity : (string)MemoryCapacity; } { _diskCapacity = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("diskCapacity"), out var __jsonDiskCapacity) ? (string)__jsonDiskCapacity : (string)DiskCapacity; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="LogRules" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal LogRules(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _sendAadLog = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonBoolean>("sendAadLogs"), out var __jsonSendAadLogs) ? (bool?)__jsonSendAadLogs : SendAadLog; } { _sendSubscriptionLog = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonBoolean>("sendSubscriptionLogs"), out var __jsonSendSubscriptionLogs) ? (bool?)__jsonSendSubscriptionLogs : SendSubscriptionLog; } { _sendActivityLog = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonBoolean>("sendActivityLogs"), out var __jsonSendActivityLogs) ? (bool?)__jsonSendActivityLogs : SendActivityLog; } { _filteringTag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonArray>("filteringTags"), out var __jsonFilteringTags) ? If(__jsonFilteringTags as Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.IFilteringTag[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.IFilteringTag)(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.FilteringTag.FromJson(__u)))))() : null : FilteringTag; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="ElasticIdentity" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal ElasticIdentity(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _subscriptionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId; } { _resourceGroupName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName; } { _monitorName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("monitorName"), out var __jsonMonitorName) ? (string)__jsonMonitorName : (string)MonitorName; } { _ruleSetName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("ruleSetName"), out var __jsonRuleSetName) ? (string)__jsonRuleSetName : (string)RuleSetName; } { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="MonitoringTagRules" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal MonitoringTagRules(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.MonitoringTagRulesProperties.FromJson(__jsonProperties) : Property; } { _systemData = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; } { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="CompanyInfo" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal CompanyInfo(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _domain = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("domain"), out var __jsonDomain) ? (string)__jsonDomain : (string)Domain; } { _business = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("business"), out var __jsonBusiness) ? (string)__jsonBusiness : (string)Business; } { _employeesNumber = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("employeesNumber"), out var __jsonEmployeesNumber) ? (string)__jsonEmployeesNumber : (string)EmployeesNumber; } { _state = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("state"), out var __jsonState) ? (string)__jsonState : (string)State; } { _country = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("country"), out var __jsonCountry) ? (string)__jsonCountry : (string)Country; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="UserInfo" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal UserInfo(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _companyInfo = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("companyInfo"), out var __jsonCompanyInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.CompanyInfo.FromJson(__jsonCompanyInfo) : CompanyInfo; } { _firstName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("firstName"), out var __jsonFirstName) ? (string)__jsonFirstName : (string)FirstName; } { _lastName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("lastName"), out var __jsonLastName) ? (string)__jsonLastName : (string)LastName; } { _companyName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("companyName"), out var __jsonCompanyName) ? (string)__jsonCompanyName : (string)CompanyName; } { _emailAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("emailAddress"), out var __jsonEmailAddress) ? (string)__jsonEmailAddress : (string)EmailAddress; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="ResourceProviderDefaultErrorResponse" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal ResourceProviderDefaultErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _error = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.ErrorResponseBody.FromJson(__jsonError) : Error; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="ResourceSku" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal ResourceSku(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="ElasticMonitorResourceUpdateParameters" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal ElasticMonitorResourceUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.ElasticMonitorResourceUpdateParametersTags.FromJson(__jsonTags) : Tag; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="ElasticMonitorResource" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal ElasticMonitorResource(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _sku = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.ResourceSku.FromJson(__jsonSku) : Sku; } { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.MonitorProperties.FromJson(__jsonProperties) : Property; } { _identity = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.IdentityProperties.FromJson(__jsonIdentity) : Identity; } { _systemData = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData; } { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; } { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.ElasticMonitorResourceTags.FromJson(__jsonTags) : Tag; } { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="ElasticCloudDeployment" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal ElasticCloudDeployment(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } { _deploymentId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("deploymentId"), out var __jsonDeploymentId) ? (string)__jsonDeploymentId : (string)DeploymentId; } { _azureSubscriptionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("azureSubscriptionId"), out var __jsonAzureSubscriptionId) ? (string)__jsonAzureSubscriptionId : (string)AzureSubscriptionId; } { _elasticsearchRegion = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("elasticsearchRegion"), out var __jsonElasticsearchRegion) ? (string)__jsonElasticsearchRegion : (string)ElasticsearchRegion; } { _elasticsearchServiceUrl = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("elasticsearchServiceUrl"), out var __jsonElasticsearchServiceUrl) ? (string)__jsonElasticsearchServiceUrl : (string)ElasticsearchServiceUrl; } { _kibanaServiceUrl = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("kibanaServiceUrl"), out var __jsonKibanaServiceUrl) ? (string)__jsonKibanaServiceUrl : (string)KibanaServiceUrl; } { _kibanaSsoUrl = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("kibanaSsoUrl"), out var __jsonKibanaSsoUrl) ? (string)__jsonKibanaSsoUrl : (string)KibanaSsoUrl; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="MonitorProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal MonitorProperties(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _elasticProperty = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("elasticProperties"), out var __jsonElasticProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.ElasticProperties.FromJson(__jsonElasticProperties) : ElasticProperty; } { _userInfo = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject>("userInfo"), out var __jsonUserInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20200701.UserInfo.FromJson(__jsonUserInfo) : UserInfo; } { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; } { _monitoringStatus = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("monitoringStatus"), out var __jsonMonitoringStatus) ? (string)__jsonMonitoringStatus : (string)MonitoringStatus; } { _liftrResourceCategory = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("liftrResourceCategory"), out var __jsonLiftrResourceCategory) ? (string)__jsonLiftrResourceCategory : (string)LiftrResourceCategory; } { _liftrResourcePreference = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonNumber>("liftrResourcePreference"), out var __jsonLiftrResourcePreference) ? (int?)__jsonLiftrResourcePreference : LiftrResourcePreference; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="SystemData" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param> internal SystemData(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _createdBy = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("createdBy"), out var __jsonCreatedBy) ? (string)__jsonCreatedBy : (string)CreatedBy; } { _createdByType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("createdByType"), out var __jsonCreatedByType) ? (string)__jsonCreatedByType : (string)CreatedByType; } { _createdAt = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.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.Elastic.Runtime.Json.JsonString>("lastModifiedBy"), out var __jsonLastModifiedBy) ? (string)__jsonLastModifiedBy : (string)LastModifiedBy; } { _lastModifiedByType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString>("lastModifiedByType"), out var __jsonLastModifiedByType) ? (string)__jsonLastModifiedByType : (string)LastModifiedByType; } { _lastModifiedAt = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Elastic.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); }