/// <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);
        }
Ejemplo n.º 2
0
        /// <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="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);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="ElasticMonitorResourceUpdateParametersTags" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param>
        /// <param name="exclusions"></param>
        internal ElasticMonitorResourceUpdateParametersTags(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet <string> exclusions = null)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.JsonSerializable.FromJson(json, ((Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.IAssociativeArray <string>) this).AdditionalProperties, null, exclusions);
            AfterFromJson(json);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject into a new instance of <see cref="VMResources" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal VMResources(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; }
            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="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);
        }
Ejemplo n.º 8
0
        /// <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="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);
        }
Ejemplo n.º 10
0
        /// <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);
        }
Ejemplo n.º 11
0
        /// <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="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);
        }
Ejemplo n.º 13
0
        /// <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="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);
        }
Ejemplo n.º 15
0
        /// <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);
        }
Ejemplo n.º 16
0
        /// <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="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="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);
        }
Ejemplo n.º 20
0
        /// <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);
        }
Ejemplo n.º 21
0
        /// <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="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="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);
        }
Ejemplo n.º 24
0
        /// <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);
        }
Ejemplo n.º 25
0
        /// <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);
        }
Ejemplo n.º 26
0
        /// <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);
        }
Ejemplo n.º 27
0
        /// <summary>
        /// Serializes this instance of <see cref="VMResources" /> into a <see cref="Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonNode" />.
        /// </summary>
        /// <param name="container">The <see cref="Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject"/> container to serialize this object into. If the caller
        /// passes in <c>null</c>, a new instance will be created and returned to the caller.</param>
        /// <param name="serializationMode">Allows the caller to choose the depth of the serialization. See <see cref="Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.SerializationMode"/>.</param>
        /// <returns>
        /// a serialized instance of <see cref="VMResources" /> as a <see cref="Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonNode" />.
        /// </returns>
        public Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.SerializationMode serializationMode)
        {
            container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject();

            bool returnNow = false;

            BeforeToJson(ref container, ref returnNow);
            if (returnNow)
            {
                return(container);
            }
            AddIf(null != (((object)this._vMResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonString(this._vMResourceId.ToString()) : null, "vmResourceId", container.Add);
            AfterToJson(ref container);
            return(container);
        }
Ejemplo n.º 28
0
        /// <summary>
        /// <c>BeforeToJson</c> will be called before the json serialization has commenced, allowing complete customization of the
        /// object before it is serialized.
        /// If you wish to disable the default serialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
        /// Implement this method in a partial class to enable this behavior.
        /// </summary>
        /// <param name="container">The JSON container that the serialization result will be placed in.</param>
        /// <param name="returnNow">Determines if the rest of the serialization should be processed, or if the method should return
        /// instantly.</param>

        partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject container, ref bool returnNow);
Ejemplo n.º 29
0
        /// <summary>
        /// <c>BeforeFromJson</c> will be called before the json deserialization has commenced, allowing complete customization of
        /// the object before it is deserialized.
        /// If you wish to disable the default deserialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
        /// Implement this method in a partial class to enable this behavior.
        /// </summary>
        /// <param name="json">The JsonNode that should be deserialized into this object.</param>
        /// <param name="returnNow">Determines if the rest of the deserialization should be processed, or if the method should return
        /// instantly.</param>

        partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject json, ref bool returnNow);
Ejemplo n.º 30
0
        /// <summary>
        /// <c>AfterToJson</c> will be called after the json erialization has finished, allowing customization of the <see cref="Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject"
        /// /> before it is returned. Implement this method in a partial class to enable this behavior
        /// </summary>
        /// <param name="container">The JSON container that the serialization result will be placed in.</param>

        partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Elastic.Runtime.Json.JsonObject container);