/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of <see cref="RouteTable" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from.</param> internal RouteTable(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Resource(json); { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RouteTablePropertiesFormat.FromJson(__jsonProperties) : Property; } { _etag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString>("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of <see cref="PrivateEndpoint" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from.</param> internal PrivateEndpoint(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Resource(json); { _extendedLocation = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject>("extendedLocation"), out var __jsonExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ExtendedLocation.FromJson(__jsonExtendedLocation) : ExtendedLocation; } { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.PrivateEndpointProperties.FromJson(__jsonProperties) : Property; } { _etag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString>("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of <see cref="NatGateway" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from.</param> internal NatGateway(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Resource(json); { _sku = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject>("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.NatGatewaySku.FromJson(__jsonSku) : Sku; } { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.NatGatewayPropertiesFormat.FromJson(__jsonProperties) : Property; } { _zone = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonArray>("zones"), out var __jsonZones) ? If(__jsonZones as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : Zone; } { _etag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString>("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag; } AfterFromJson(json); }