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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _validatorNodesSku = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject>("validatorNodesSku"), out var __jsonValidatorNodesSku) ? Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberNodesSku.FromJson(__jsonValidatorNodesSku) : ValidatorNodesSku; }
            { _consortium = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("consortium"), out var __jsonConsortium) ? (string)__jsonConsortium : (string)Consortium; }
            { _consortiumManagementAccountAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("consortiumManagementAccountAddress"), out var __jsonConsortiumManagementAccountAddress) ? (string)__jsonConsortiumManagementAccountAddress : (string)ConsortiumManagementAccountAddress; }
            { _consortiumManagementAccountPassword = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("consortiumManagementAccountPassword"), out var __jsonConsortiumManagementAccountPassword) ? (string)__jsonConsortiumManagementAccountPassword : (string)ConsortiumManagementAccountPassword; }
            { _consortiumMemberDisplayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("consortiumMemberDisplayName"), out var __jsonConsortiumMemberDisplayName) ? (string)__jsonConsortiumMemberDisplayName : (string)ConsortiumMemberDisplayName; }
            { _consortiumRole = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("consortiumRole"), out var __jsonConsortiumRole) ? (string)__jsonConsortiumRole : (string)ConsortiumRole; }
            { _dns = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("dns"), out var __jsonDns) ? (string)__jsonDns : (string)Dns; }
            { _firewallRule = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray>("firewallRules"), out var __jsonFirewallRules) ? If(__jsonFirewallRules as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule)(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRule.FromJson(__u)))))() : null : FirewallRule; }
            { _password = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("password"), out var __jsonPassword) ? (string)__jsonPassword : (string)Password; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _publicKey = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("publicKey"), out var __jsonPublicKey) ? (string)__jsonPublicKey : (string)PublicKey; }
            { _rootContractAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("rootContractAddress"), out var __jsonRootContractAddress) ? (string)__jsonRootContractAddress : (string)RootContractAddress; }
            { _userName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("userName"), out var __jsonUserName) ? (string)__jsonUserName : (string)UserName; }
            { _protocol = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("protocol"), out var __jsonProtocol) ? (string)__jsonProtocol : (string)Protocol; }
            AfterFromJson(json);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="ApiKeyCollection" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ApiKeyCollection(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _key = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray>("keys"), out var __jsonKeys) ? If(__jsonKeys as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IApiKey[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IApiKey)(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ApiKey.FromJson(__u)))))() : null : Key; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="TrackedResourceTags" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        /// <param name="exclusions"></param>
        internal TrackedResourceTags(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.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.Blockchain.Runtime.JsonSerializable.FromJson(json, ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.IAssociativeArray <string>) this).AdditionalProperties, null, exclusions);
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="ConsortiumCollection" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ConsortiumCollection(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _capacity = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNumber>("capacity"), out var __jsonCapacity) ? (int?)__jsonCapacity : Capacity; }
            AfterFromJson(json);
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="BlockchainMemberPropertiesUpdate" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal BlockchainMemberPropertiesUpdate(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __transactionNodePropertiesUpdate = new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.TransactionNodePropertiesUpdate(json);
            { _consortiumManagementAccountPassword = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("consortiumManagementAccountPassword"), out var __jsonConsortiumManagementAccountPassword) ? (string)__jsonConsortiumManagementAccountPassword : (string)ConsortiumManagementAccountPassword; }
            AfterFromJson(json);
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="Consortium" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Consortium(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _resourceType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("resourceType"), out var __jsonResourceType) ? (string)__jsonResourceType : (string)ResourceType; }
            { _sku = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray>("skus"), out var __jsonSkus) ? If(__jsonSkus as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSetting[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSetting)(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.SkuSetting.FromJson(__u)))))() : null : Sku; }
            AfterFromJson(json);
        }
Ejemplo n.º 10
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="ApiKey" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ApiKey(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

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

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _tier = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("tier"), out var __jsonTier) ? (string)__jsonTier : (string)Tier; }
            AfterFromJson(json);
        }
Ejemplo n.º 14
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="TransactionNodePropertiesUpdate" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal TransactionNodePropertiesUpdate(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _password = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("password"), out var __jsonPassword) ? new System.Net.NetworkCredential("", (string)__jsonPassword).SecurePassword : Password; }
            { _firewallRule = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray>("firewallRules"), out var __jsonFirewallRules) ? If(__jsonFirewallRules as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule)(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRule.FromJson(__u)))))() : null : FirewallRule; }
            AfterFromJson(json);
        }
Ejemplo n.º 15
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="OperationResult" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal OperationResult(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _endTime = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("endTime"), out var __jsonEndTime) ? global::System.DateTime.TryParse((string)__jsonEndTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEndTimeValue) ? __jsonEndTimeValue : EndTime : EndTime; }
            { _startTime = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : StartTime : StartTime; }
            AfterFromJson(json);
        }
Ejemplo n.º 16
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="TransactionNode" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal TransactionNode(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __resource = new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.Resource(json);
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.TransactionNodeProperties.FromJson(__jsonProperties) : Property; }
            { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location; }
            AfterFromJson(json);
        }
Ejemplo n.º 17
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="BlockchainMember" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal BlockchainMember(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.TrackedResource(json);
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberProperties.FromJson(__jsonProperties) : Property; }
            { _sku = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject>("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.Sku.FromJson(__jsonSku) : Sku; }
            AfterFromJson(json);
        }
Ejemplo n.º 18
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="FirewallRule" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal FirewallRule(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _ruleName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("ruleName"), out var __jsonRuleName) ? (string)__jsonRuleName : (string)RuleName; }
            { _startIPAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("startIpAddress"), out var __jsonStartIPAddress) ? (string)__jsonStartIPAddress : (string)StartIPAddress; }
            { _endIPAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("endIpAddress"), out var __jsonEndIPAddress) ? (string)__jsonEndIPAddress : (string)EndIPAddress; }
            AfterFromJson(json);
        }
Ejemplo n.º 19
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="NameAvailability" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal NameAvailability(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _nameAvailable = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonBoolean>("nameAvailable"), out var __jsonNameAvailable) ? (bool?)__jsonNameAvailable : NameAvailable; }
            { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; }
            { _reason = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("reason"), out var __jsonReason) ? (string)__jsonReason : (string)Reason; }
            AfterFromJson(json);
        }
Ejemplo n.º 20
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="ResourceProviderOperation" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ResourceProviderOperation(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray>("locations"), out var __jsonLocations) ? If(__jsonLocations as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (string)(__u is Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : Location; }
            { _requiredFeature = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray>("requiredFeatures"), out var __jsonRequiredFeatures) ? If(__jsonRequiredFeatures as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (string)(__p is Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null))))() : null : RequiredFeature; }
            { _tier = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("tier"), out var __jsonTier) ? (string)__jsonTier : (string)Tier; }
            AfterFromJson(json);
        }
Ejemplo n.º 23
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="TransactionNodeProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal TransactionNodeProperties(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            { _dns = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("dns"), out var __jsonDns) ? (string)__jsonDns : (string)Dns; }
            { _publicKey = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("publicKey"), out var __jsonPublicKey) ? (string)__jsonPublicKey : (string)PublicKey; }
            { _userName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("userName"), out var __jsonUserName) ? (string)__jsonUserName : (string)UserName; }
            { _password = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("password"), out var __jsonPassword) ? (string)__jsonPassword : (string)Password; }
            { _firewallRule = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray>("firewallRules"), out var __jsonFirewallRules) ? If(__jsonFirewallRules as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule)(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRule.FromJson(__u)))))() : null : FirewallRule; }
            AfterFromJson(json);
        }
Ejemplo n.º 24
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="BlockchainIdentity" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal BlockchainIdentity(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _operationId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("operationId"), out var __jsonOperationId) ? (string)__jsonOperationId : (string)OperationId; }
            { _blockchainMemberName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("blockchainMemberName"), out var __jsonBlockchainMemberName) ? (string)__jsonBlockchainMemberName : (string)BlockchainMemberName; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location; }
            { _resourceGroupName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName; }
            { _subscriptionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId; }
            { _transactionNodeName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("transactionNodeName"), out var __jsonTransactionNodeName) ? (string)__jsonTransactionNodeName : (string)TransactionNodeName; }
            AfterFromJson(json);
        }
Ejemplo n.º 25
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject into a new instance of <see cref="ConsortiumMember" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ConsortiumMember(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _displayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName; }
            { _subscriptionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId; }
            { _role = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("role"), out var __jsonRole) ? (string)__jsonRole : (string)Role; }
            { _status = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status; }
            { _joinDate = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("joinDate"), out var __jsonJoinDate) ? global::System.DateTime.TryParse((string)__jsonJoinDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonJoinDateValue) ? __jsonJoinDateValue : JoinDate : JoinDate; }
            { _dateModified = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString>("dateModified"), out var __jsonDateModified) ? global::System.DateTime.TryParse((string)__jsonDateModified, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonDateModifiedValue) ? __jsonDateModifiedValue : DateModified : DateModified; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Serializes this instance of <see cref="ConsortiumCollection" /> into a <see cref="Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode" />.
        /// </summary>
        /// <param name="container">The <see cref="Microsoft.Azure.PowerShell.Cmdlets.Blockchain.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.Blockchain.Runtime.SerializationMode"/>.</param>
        /// <returns>
        /// a serialized instance of <see cref="ConsortiumCollection" /> as a <see cref="Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode" />.
        /// </returns>
        public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.SerializationMode serializationMode)
        {
            container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject();

            bool returnNow = false;

            BeforeToJson(ref container, ref returnNow);
            if (returnNow)
            {
                return(container);
            }
            if (null != this._value)
            {
                var __w = new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.XNodeArray();
                foreach (var __x in this._value)
                {
                    AddIf(__x?.ToJson(null, serializationMode), __w.Add);
                }
                container.Add("value", __w);
            }
            AfterToJson(ref container);
            return(container);
        }
        /// <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.Blockchain.Runtime.Json.JsonObject container, ref bool returnNow);
        /// <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.Blockchain.Runtime.Json.JsonObject json, ref bool returnNow);
        /// <summary>
        /// <c>AfterToJson</c> will be called after the json erialization has finished, allowing customization of the <see cref="Microsoft.Azure.PowerShell.Cmdlets.Blockchain.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.Blockchain.Runtime.Json.JsonObject container);
        /// <summary>
        /// <c>AfterFromJson</c> will be called after the json deserialization has finished, allowing customization of the object
        /// before it is returned. 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>

        partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonObject json);