/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="GalleryImageVersionPublishingProfile" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param> internal GalleryImageVersionPublishingProfile(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __galleryArtifactPublishingProfileBase = new Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryArtifactPublishingProfileBase(json); AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject into a new instance of <see cref="GalleryApplicationVersionPublishingProfile" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject instance to deserialize from.</param> internal GalleryApplicationVersionPublishingProfile(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __galleryArtifactPublishingProfileBase = new Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryArtifactPublishingProfileBase(json); { _source = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("source"), out var __jsonSource) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UserArtifactSource.FromJson(__jsonSource) : Source; } { _manageAction = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonObject>("manageActions"), out var __jsonManageActions) ? Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UserArtifactManage.FromJson(__jsonManageActions) : ManageAction; } { _enableHealthCheck = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonBoolean>("enableHealthCheck"), out var __jsonEnableHealthCheck) ? (bool?)__jsonEnableHealthCheck : EnableHealthCheck; } AfterFromJson(json); }