-
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.
liblab SDK update v0.9.0-alpha.5 (#14)
- Loading branch information
1 parent
b970227
commit c37af02
Showing
48 changed files
with
213 additions
and
112 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,46 @@ | ||
using System.Text.Json.Serialization; | ||
using Salad.Cloud.SDK.Json; | ||
|
||
namespace Salad.Cloud.SDK.Models; | ||
|
||
/// <summary>Represents container group networking parameters</summary> | ||
public record CreateContainerGroupNetworking( | ||
[property: JsonPropertyName("protocol")] ContainerNetworkingProtocol Protocol, | ||
[property: JsonPropertyName("port")] long Port, | ||
[property: JsonPropertyName("auth")] bool Auth | ||
); | ||
[property: JsonPropertyName("auth")] bool Auth, | ||
[property: | ||
JsonPropertyName("load_balancer"), | ||
JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull) | ||
] | ||
CreateContainerGroupNetworking.CreateContainerGroupNetworkingLoadBalancer? LoadBalancer = | ||
null, | ||
[property: | ||
JsonPropertyName("single_connection_limit"), | ||
JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull) | ||
] | ||
bool? SingleConnectionLimit = null, | ||
[property: | ||
JsonPropertyName("client_request_timeout"), | ||
JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull) | ||
] | ||
long? ClientRequestTimeout = null, | ||
[property: | ||
JsonPropertyName("server_response_timeout"), | ||
JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull) | ||
] | ||
long? ServerResponseTimeout = null | ||
) | ||
{ | ||
public record CreateContainerGroupNetworkingLoadBalancer : ValueEnum<string> | ||
{ | ||
internal CreateContainerGroupNetworkingLoadBalancer(string value) | ||
: base(value) { } | ||
|
||
public CreateContainerGroupNetworkingLoadBalancer() | ||
: base("round_robin") { } | ||
|
||
public static CreateContainerGroupNetworkingLoadBalancer RoundRobin = new("round_robin"); | ||
public static CreateContainerGroupNetworkingLoadBalancer LeastNumberOfConnections = | ||
new("least_number_of_connections"); | ||
} | ||
} |
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
Oops, something went wrong.