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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _display = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject>("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ResourceProviderOperationDisplay.FromJson(__jsonDisplay) : Display; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            AfterFromJson(json);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject into a new instance of <see cref="ListByCustomRpManifest" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ListByCustomRpManifest(Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _specification = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("specification"), out var __jsonSpecification) ? (string)__jsonSpecification : (string)Specification; }
            { _validationType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("validationType"), out var __jsonValidationType) ? (string)__jsonValidationType : (string)ValidationType; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject into a new instance of <see cref="AssociationProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal AssociationProperties(Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _targetResourceId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("targetResourceId"), out var __jsonTargetResourceId) ? (string)__jsonTargetResourceId : (string)TargetResourceId; }
            AfterFromJson(json);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject into a new instance of <see cref="ErrorDefinition" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ErrorDefinition(Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _action = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonArray>("actions"), out var __jsonActions) ? If(__jsonActions as Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpActionRouteDefinition[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpActionRouteDefinition)(Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.CustomRpActionRouteDefinition.FromJson(__u)))))() : null : Action; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _resourceType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonArray>("resourceTypes"), out var __jsonResourceTypes) ? If(__jsonResourceTypes as Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpResourceTypeRouteDefinition[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpResourceTypeRouteDefinition)(Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.CustomRpResourceTypeRouteDefinition.FromJson(__p)))))() : null : ResourceType; }
            { _validation = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonArray>("validations"), out var __jsonValidations) ? If(__jsonValidations as Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonArray, out var __l) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpValidations[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k) => (Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpValidations)(Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.CustomRpValidations.FromJson(__k)))))() : null : Validation; }
            AfterFromJson(json);
        }
Ejemplo n.º 9
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject into a new instance of <see cref="Association" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Association(Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location; }
            { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ResourceTags.FromJson(__jsonTags) : Tag; }
            AfterFromJson(json);
        }
Ejemplo n.º 11
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject into a new instance of <see cref="ResourceProvidersUpdate" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ResourceProvidersUpdate(Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __customRpRouteDefinition = new Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.CustomRpRouteDefinition(json);
            { _routingType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("routingType"), out var __jsonRoutingType) ? (string)__jsonRoutingType : (string)RoutingType; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject into a new instance of <see cref="CustomRpManifest" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal CustomRpManifest(Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __resource = new Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.Resource(json);
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.CustomRpManifestProperties.FromJson(__jsonProperties) : Property; }
            AfterFromJson(json);
        }
Ejemplo n.º 15
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject into a new instance of <see cref="CustomProvidersIdentity" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal CustomProvidersIdentity(Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _associationName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("associationName"), out var __jsonAssociationName) ? (string)__jsonAssociationName : (string)AssociationName; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _resourceGroupName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName; }
            { _resourceProviderName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("resourceProviderName"), out var __jsonResourceProviderName) ? (string)__jsonResourceProviderName : (string)ResourceProviderName; }
            { _scope = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("scope"), out var __jsonScope) ? (string)__jsonScope : (string)Scope; }
            { _subscriptionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.Json.JsonString>("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId; }
            AfterFromJson(json);
        }