Skip to content

Commit

Permalink
liblab SDK update v0.9.0-alpha.5 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
seniorquico authored Oct 4, 2024
1 parent b970227 commit c37af02
Show file tree
Hide file tree
Showing 48 changed files with 213 additions and 112 deletions.
28 changes: 14 additions & 14 deletions .manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"liblabVersion": "2.5.0",
"date": "2024-10-01T05:14:05.186Z",
"liblabVersion": "2.5.1",
"date": "2024-10-04T04:24:23.519Z",
"config": {
"apiId": 1228,
"apiId": 1252,
"sdkName": "salad-cloud-sdk",
"sdkVersion": "0.9.0-alpha.4",
"sdkVersion": "0.9.0-alpha.5",
"liblabVersion": "2",
"deliveryMethods": ["zip"],
"languages": ["csharp"],
Expand All @@ -26,15 +26,15 @@
"homepage": "https://github.com/saladtechnologies/salad-cloud-sdk-dotnet",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
"sdkVersion": "0.9.0-alpha.4",
"sdkVersion": "0.9.0-alpha.5",
"targetBranch": "main"
},
"go": {
"goModuleName": "github.com/saladtechnologies/salad-cloud-sdk-go",
"githubRepoName": "salad-cloud-sdk-go",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
"sdkVersion": "0.9.0-alpha.4",
"sdkVersion": "0.9.0-alpha.5",
"targetBranch": "main"
},
"java": {
Expand All @@ -58,7 +58,7 @@
"homepage": "https://github.com/saladtechnologies/salad-cloud-sdk-java",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
"sdkVersion": "0.9.0-alpha.5",
"sdkVersion": "0.9.0-alpha.6",
"targetBranch": "main"
},
"python": {
Expand Down Expand Up @@ -101,7 +101,7 @@
"githubRepoName": "salad-cloud-sdk-python",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
"sdkVersion": "0.9.0-alpha.4",
"sdkVersion": "0.9.0-alpha.5",
"targetBranch": "main"
},
"terraform": {
Expand Down Expand Up @@ -138,7 +138,7 @@
"homepage": "https://github.com/saladtechnologies/salad-cloud-sdk-javascript",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
"sdkVersion": "0.9.0-alpha.5",
"sdkVersion": "0.9.0-alpha.6",
"targetBranch": "main",
"generateEnumAs": "enum"
}
Expand Down Expand Up @@ -233,7 +233,7 @@
}
],
"apiName": "SaladCloud API",
"apiVersion": "0.9.0-alpha.4",
"apiVersion": "0.9.0-alpha.5",
"authentication": {
"apiKey": {
"header": "Salad-Api-Key"
Expand Down Expand Up @@ -376,7 +376,6 @@
"documentation/models/ContainerRestartPolicy.md",
"documentation/models/ContainerGroupState.md",
"documentation/models/CountryCode.md",
"documentation/models/ContainerGroupNetworking.md",
"documentation/models/ContainerGroupLivenessProbe.md",
"documentation/models/ContainerGroupReadinessProbe.md",
"documentation/models/ContainerGroupStartupProbe.md",
Expand All @@ -393,7 +392,6 @@
"documentation/models/ContainerGroupProbeExec.md",
"documentation/models/ContainerProbeHttpScheme.md",
"documentation/models/ContainerGroupProbeHttpHeaders2.md",
"documentation/models/CreateContainerGroupNetworking.md",
"documentation/models/UpdateContainerGroupNetworking.md",
"documentation/models/WorkloadError.md",
"documentation/models/ContainerGroupsQuotas.md",
Expand Down Expand Up @@ -425,7 +423,6 @@
"Salad.Cloud.SDK/Models/ContainerRestartPolicy.cs",
"Salad.Cloud.SDK/Models/ContainerGroupState.cs",
"Salad.Cloud.SDK/Models/CountryCode.cs",
"Salad.Cloud.SDK/Models/ContainerGroupNetworking.cs",
"Salad.Cloud.SDK/Models/ContainerGroupLivenessProbe.cs",
"Salad.Cloud.SDK/Models/ContainerGroupReadinessProbe.cs",
"Salad.Cloud.SDK/Models/ContainerGroupStartupProbe.cs",
Expand All @@ -442,7 +439,6 @@
"Salad.Cloud.SDK/Models/ContainerGroupProbeExec.cs",
"Salad.Cloud.SDK/Models/ContainerProbeHttpScheme.cs",
"Salad.Cloud.SDK/Models/ContainerGroupProbeHttpHeaders2.cs",
"Salad.Cloud.SDK/Models/CreateContainerGroupNetworking.cs",
"Salad.Cloud.SDK/Models/UpdateContainerGroupNetworking.cs",
"Salad.Cloud.SDK/Models/WorkloadError.cs",
"Salad.Cloud.SDK/Models/ContainerGroupsQuotas.cs",
Expand All @@ -451,6 +447,8 @@
"documentation/models/ContainerGroupInstance.md",
"documentation/models/QueueJob.md",
"documentation/models/InferenceEndpointJob.md",
"documentation/models/ContainerGroupNetworking.md",
"documentation/models/CreateContainerGroupNetworking.md",
"documentation/models/QueueJobEvent.md",
"documentation/models/InferenceEndpointJobEvent.md",
"documentation/services/WorkloadErrorsService.md",
Expand All @@ -459,6 +457,8 @@
"Salad.Cloud.SDK/Models/ContainerGroupInstance.cs",
"Salad.Cloud.SDK/Models/QueueJob.cs",
"Salad.Cloud.SDK/Models/InferenceEndpointJob.cs",
"Salad.Cloud.SDK/Models/ContainerGroupNetworking.cs",
"Salad.Cloud.SDK/Models/CreateContainerGroupNetworking.cs",
"Salad.Cloud.SDK/Models/QueueJobEvent.cs",
"Salad.Cloud.SDK/Models/InferenceEndpointJobEvent.cs",
"documentation/services/WebhookSecretKeyService.md",
Expand Down
2 changes: 1 addition & 1 deletion Example/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@

var client = new SaladCloudSdkClient(config);

var response = await client.Quotas.GetQuotasAsync("o110sou");
var response = await client.Quotas.GetQuotasAsync("oecson4k2eclxr");

Console.WriteLine(response);
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# SaladCloudSdk C# SDK 0.9.0-alpha.4
# SaladCloudSdk C# SDK 0.9.0-alpha.5

Welcome to the SaladCloudSdk SDK documentation. This guide will help you get started with integrating and using the SaladCloudSdk SDK in your project.

## Versions

- API version: `0.9.0-alpha.4`
- SDK version: `0.9.0-alpha.4`
- API version: `0.9.0-alpha.5`
- SDK version: `0.9.0-alpha.5`

## About the API

Expand Down Expand Up @@ -84,7 +84,7 @@ ApiKeyAuth = apiKeyConfig

var client = new SaladCloudSdkClient(config);

var response = await client.Quotas.GetQuotasAsync("o110sou");
var response = await client.Quotas.GetQuotasAsync("oecson4k2eclxr");

Console.WriteLine(response);

Expand Down
39 changes: 37 additions & 2 deletions Salad.Cloud.SDK/Models/ContainerGroupNetworking.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
using Salad.Cloud.SDK.Json;

namespace Salad.Cloud.SDK.Models;

Expand All @@ -7,5 +8,39 @@ public record ContainerGroupNetworking(
[property: JsonPropertyName("protocol")] ContainerNetworkingProtocol Protocol,
[property: JsonPropertyName("port")] long Port,
[property: JsonPropertyName("auth")] bool Auth,
[property: JsonPropertyName("dns")] string Dns
);
[property: JsonPropertyName("dns")] string Dns,
[property:
JsonPropertyName("load_balancer"),
JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)
]
ContainerGroupNetworking.ContainerGroupNetworkingLoadBalancer? 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 ContainerGroupNetworkingLoadBalancer : ValueEnum<string>
{
internal ContainerGroupNetworkingLoadBalancer(string value)
: base(value) { }

public ContainerGroupNetworkingLoadBalancer()
: base("round_robin") { }

public static ContainerGroupNetworkingLoadBalancer RoundRobin = new("round_robin");
public static ContainerGroupNetworkingLoadBalancer LeastNumberOfConnections =
new("least_number_of_connections");
}
}
40 changes: 38 additions & 2 deletions Salad.Cloud.SDK/Models/CreateContainerGroupNetworking.cs
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");
}
}
5 changes: 4 additions & 1 deletion Salad.Cloud.SDK/Models/UpdateContainerGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ public record UpdateContainerGroup(
ContainerGroupReadinessProbe? ReadinessProbe = null,
/// <value>Represents the container group startup probe</value>
[property: JsonPropertyName("startup_probe")]
ContainerGroupStartupProbe? StartupProbe = null
ContainerGroupStartupProbe? StartupProbe = null,
/// <value>Represents the autoscaling rules for a queue</value>
[property: JsonPropertyName("queue_autoscaler")]
QueueAutoscaler? QueueAutoscaler = null
);
2 changes: 1 addition & 1 deletion Salad.Cloud.SDK/Salad.Cloud.SDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Salad.Cloud.SDK</RootNamespace>
<Version>0.9.0-alpha.4</Version>
<Version>0.9.0-alpha.5</Version>
<PackageId>Salad.Cloud.SDK</PackageId>
<Authors>salad, seniorquico</Authors>
<ProjectUrl>https://github.com/saladtechnologies/salad-cloud-sdk-dotnet</ProjectUrl>
Expand Down
25 changes: 19 additions & 6 deletions documentation/models/ContainerGroupNetworking.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,22 @@ Represents container group networking parameters

**Properties**

| Name | Type | Required | Description |
| :------- | :-------------------------- | :------- | :---------- |
| Protocol | ContainerNetworkingProtocol || |
| Port | long || |
| Auth | bool || |
| Dns | string || |
| Name | Type | Required | Description |
| :-------------------- | :----------------------------------- | :------- | :---------- |
| Protocol | ContainerNetworkingProtocol || |
| Port | long || |
| Auth | bool || |
| Dns | string || |
| LoadBalancer | ContainerGroupNetworkingLoadBalancer || |
| SingleConnectionLimit | bool || |
| ClientRequestTimeout | long || |
| ServerResponseTimeout | long || |

# ContainerGroupNetworkingLoadBalancer

**Properties**

| Name | Type | Required | Description |
| :----------------------- | :----- | :------- | :---------------------------- |
| RoundRobin | string || "round_robin" |
| LeastNumberOfConnections | string || "least_number_of_connections" |
23 changes: 18 additions & 5 deletions documentation/models/CreateContainerGroupNetworking.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,21 @@ Represents container group networking parameters

**Properties**

| Name | Type | Required | Description |
| :------- | :-------------------------- | :------- | :---------- |
| Protocol | ContainerNetworkingProtocol || |
| Port | long || |
| Auth | bool || |
| Name | Type | Required | Description |
| :-------------------- | :----------------------------------------- | :------- | :---------- |
| Protocol | ContainerNetworkingProtocol || |
| Port | long || |
| Auth | bool || |
| LoadBalancer | CreateContainerGroupNetworkingLoadBalancer || |
| SingleConnectionLimit | bool || |
| ClientRequestTimeout | long || |
| ServerResponseTimeout | long || |

# CreateContainerGroupNetworkingLoadBalancer

**Properties**

| Name | Type | Required | Description |
| :----------------------- | :----- | :------- | :---------------------------- |
| RoundRobin | string || "round_robin" |
| LeastNumberOfConnections | string || "least_number_of_connections" |
21 changes: 11 additions & 10 deletions documentation/models/UpdateContainerGroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ Represents a request to update a container group

**Properties**

| Name | Type | Required | Description |
| :------------- | :----------------------------- | :------- | :---------------------------------------------------------------------------------------------- |
| DisplayName | string || |
| Container | UpdateContainer || Represents an update container object |
| Replicas | long || |
| CountryCodes | List<CountryCode> || List of countries nodes must be located in. Remove this field to permit nodes from any country. |
| Networking | UpdateContainerGroupNetworking || Represents update container group networking parameters |
| LivenessProbe | ContainerGroupLivenessProbe || Represents the container group liveness probe |
| ReadinessProbe | ContainerGroupReadinessProbe || Represents the container group readiness probe |
| StartupProbe | ContainerGroupStartupProbe || Represents the container group startup probe |
| Name | Type | Required | Description |
| :-------------- | :----------------------------- | :------- | :---------------------------------------------------------------------------------------------- |
| DisplayName | string || |
| Container | UpdateContainer || Represents an update container object |
| Replicas | long || |
| CountryCodes | List<CountryCode> || List of countries nodes must be located in. Remove this field to permit nodes from any country. |
| Networking | UpdateContainerGroupNetworking || Represents update container group networking parameters |
| LivenessProbe | ContainerGroupLivenessProbe || Represents the container group liveness probe |
| ReadinessProbe | ContainerGroupReadinessProbe || Represents the container group readiness probe |
| StartupProbe | ContainerGroupStartupProbe || Represents the container group startup probe |
| QueueAutoscaler | QueueAutoscaler || Represents the autoscaling rules for a queue |
Loading

0 comments on commit c37af02

Please sign in to comment.