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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _networkInterface = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonArray>("networkInterfaces"), out var __jsonNetworkInterfaces) ? If(__jsonNetworkInterfaces as Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IIPAddress)(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IPAddress.FromJson(__u)))))() : null : NetworkInterface; }
            { _circuitId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("circuitId"), out var __jsonCircuitId) ? (string)__jsonCircuitId : (string)CircuitId; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject into a new instance of <see cref="HardwareProfile" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal HardwareProfile(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _hardwareType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("hardwareType"), out var __jsonHardwareType) ? (string)__jsonHardwareType : (string)HardwareType; }
            { _azureBareMetalInstanceSize = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("azureBareMetalInstanceSize"), out var __jsonAzureBareMetalInstanceSize) ? (string)__jsonAzureBareMetalInstanceSize : (string)AzureBareMetalInstanceSize; }
            AfterFromJson(json);
        }
예제 #3
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject into a new instance of <see cref="StorageProfile" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal StorageProfile(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _nfsIPAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("nfsIpAddress"), out var __jsonNfsIPAddress) ? (string)__jsonNfsIPAddress : (string)NfsIPAddress; }
            { _oSDisk = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonArray>("osDisks"), out var __jsonOSDisks) ? If(__jsonOSDisks as Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IDisk)(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.Disk.FromJson(__u)))))() : null : OSDisk; }
            AfterFromJson(json);
        }
예제 #4
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject into a new instance of <see cref="AzureBareMetalInstancesListResult" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal AzureBareMetalInstancesListResult(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.TrackedResource(json);
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.AzureBareMetalInstanceProperties.FromJson(__jsonProperties) : Property; }
            { _systemData = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject>("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.SystemData.FromJson(__jsonSystemData) : SystemData; }
            AfterFromJson(json);
        }
예제 #7
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject into a new instance of <see cref="Operation" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Operation(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _display = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject>("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.Display.FromJson(__jsonDisplay) : Display; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _isDataAction = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonBoolean>("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : IsDataAction; }
            AfterFromJson(json);
        }
예제 #8
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject into a new instance of <see cref="Resource" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Resource(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __resource = new Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.Resource(json);
            { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api10.TrackedResourceTags.FromJson(__jsonTags) : Tag; }
            { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location; }
            AfterFromJson(json);
        }
예제 #10
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject into a new instance of <see cref="Disk" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Disk(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _sizeGb = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNumber>("diskSizeGB"), out var __jsonDiskSizeGb) ? (int?)__jsonDiskSizeGb : SizeGb; }
            { _lun = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonNumber>("lun"), out var __jsonLun) ? (int?)__jsonLun : Lun; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject into a new instance of <see cref="BareMetalIdentity" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal BareMetalIdentity(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _subscriptionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId; }
            { _resourceGroupName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName; }
            { _azureBareMetalInstanceName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("azureBareMetalInstanceName"), out var __jsonAzureBareMetalInstanceName) ? (string)__jsonAzureBareMetalInstanceName : (string)AzureBareMetalInstanceName; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            AfterFromJson(json);
        }
예제 #12
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject into a new instance of <see cref="Display" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Display(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _computerName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("computerName"), out var __jsonComputerName) ? (string)__jsonComputerName : (string)ComputerName; }
            { _oSType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType; }
            { _version = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version; }
            { _sshPublicKey = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("sshPublicKey"), out var __jsonSshPublicKey) ? (string)__jsonSshPublicKey : (string)SshPublicKey; }
            AfterFromJson(json);
        }
예제 #14
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject into a new instance of <see cref="OperationList" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal OperationList(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _iPAddress1 = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("ipAddress"), out var __jsonIPAddress) ? (string)__jsonIPAddress : (string)IPAddress1; }
            AfterFromJson(json);
        }
예제 #16
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject into a new instance of <see cref="AzureBareMetalInstanceProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal AzureBareMetalInstanceProperties(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _hardwareProfile = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject>("hardwareProfile"), out var __jsonHardwareProfile) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.HardwareProfile.FromJson(__jsonHardwareProfile) : HardwareProfile; }
            { _storageProfile = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject>("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.StorageProfile.FromJson(__jsonStorageProfile) : StorageProfile; }
            { _oSProfile = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject>("osProfile"), out var __jsonOSProfile) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.OSProfile.FromJson(__jsonOSProfile) : OSProfile; }
            { _networkProfile = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject>("networkProfile"), out var __jsonNetworkProfile) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.NetworkProfile.FromJson(__jsonNetworkProfile) : NetworkProfile; }
            { _azureBareMetalInstanceId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("azureBareMetalInstanceId"), out var __jsonAzureBareMetalInstanceId) ? (string)__jsonAzureBareMetalInstanceId : (string)AzureBareMetalInstanceId; }
            { _powerState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("powerState"), out var __jsonPowerState) ? (string)__jsonPowerState : (string)PowerState; }
            { _proximityPlacementGroup = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("proximityPlacementGroup"), out var __jsonProximityPlacementGroup) ? (string)__jsonProximityPlacementGroup : (string)ProximityPlacementGroup; }
            { _hwRevision = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("hwRevision"), out var __jsonHwRevision) ? (string)__jsonHwRevision : (string)HwRevision; }
            { _partnerNodeId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("partnerNodeId"), out var __jsonPartnerNodeId) ? (string)__jsonPartnerNodeId : (string)PartnerNodeId; }
            { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; }
            AfterFromJson(json);
        }
예제 #17
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject into a new instance of <see cref="Result" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Result(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _sampleProperty = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("sampleProperty"), out var __jsonSampleProperty) ? (string)__jsonSampleProperty : (string)SampleProperty; }
            AfterFromJson(json);
        }
예제 #18
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject into a new instance of <see cref="ErrorResponse" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.Tags.FromJson(__jsonTags) : Tag; }
            AfterFromJson(json);
        }
예제 #20
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject into a new instance of <see cref="SystemData" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal SystemData(Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _createdBy = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("createdBy"), out var __jsonCreatedBy) ? (string)__jsonCreatedBy : (string)CreatedBy; }
            { _createdByType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("createdByType"), out var __jsonCreatedByType) ? (string)__jsonCreatedByType : (string)CreatedByType; }
            { _createdAt = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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.BareMetal.Runtime.Json.JsonString>("lastModifiedBy"), out var __jsonLastModifiedBy) ? (string)__jsonLastModifiedBy : (string)LastModifiedBy; }
            { _lastModifiedByType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Runtime.Json.JsonString>("lastModifiedByType"), out var __jsonLastModifiedByType) ? (string)__jsonLastModifiedByType : (string)LastModifiedByType; }
            { _lastModifiedAt = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BareMetal.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);
        }