-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple architectures for genes (#86)
* Update REST client * Add user-friendly formatting for gene information
- Loading branch information
1 parent
4843c99
commit 99de852
Showing
10 changed files
with
186 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
src/Eryph.ComputeClient/Generated/Models/VirtualDiskGeneInfo.Serialization.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
// <auto-generated/> | ||
|
||
#nullable disable | ||
|
||
using System.Text.Json; | ||
using Azure; | ||
|
||
namespace Eryph.ComputeClient.Models | ||
{ | ||
public partial class VirtualDiskGeneInfo | ||
{ | ||
internal static VirtualDiskGeneInfo DeserializeVirtualDiskGeneInfo(JsonElement element) | ||
{ | ||
if (element.ValueKind == JsonValueKind.Null) | ||
{ | ||
return null; | ||
} | ||
string geneSet = default; | ||
string name = default; | ||
string architecture = default; | ||
foreach (var property in element.EnumerateObject()) | ||
{ | ||
if (property.NameEquals("gene_set"u8)) | ||
{ | ||
geneSet = property.Value.GetString(); | ||
continue; | ||
} | ||
if (property.NameEquals("name"u8)) | ||
{ | ||
name = property.Value.GetString(); | ||
continue; | ||
} | ||
if (property.NameEquals("architecture"u8)) | ||
{ | ||
architecture = property.Value.GetString(); | ||
continue; | ||
} | ||
} | ||
return new VirtualDiskGeneInfo(geneSet, name, architecture); | ||
} | ||
|
||
/// <summary> Deserializes the model from a raw response. </summary> | ||
/// <param name="response"> The response to deserialize the model from. </param> | ||
internal static VirtualDiskGeneInfo FromResponse(Response response) | ||
{ | ||
using var document = JsonDocument.Parse(response.Content); | ||
return DeserializeVirtualDiskGeneInfo(document.RootElement); | ||
} | ||
} | ||
} |
Oops, something went wrong.