Skip to content

Commit

Permalink
liblab SDK update for version v0.9.0-alpha.4
Browse files Browse the repository at this point in the history
  • Loading branch information
seniorquico committed Oct 1, 2024
1 parent 8cc8abd commit 60e28d4
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 70 deletions.
29 changes: 14 additions & 15 deletions .manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"liblabVersion": "2.4.0",
"date": "2024-09-17T04:02:37.756Z",
"liblabVersion": "2.5.0",
"date": "2024-10-01T05:13:59.417Z",
"config": {
"language": "go",
"apiId": 1172,
"apiId": 1228,
"sdkName": "salad-cloud-sdk",
"sdkVersion": "0.9.0-alpha.3",
"sdkVersion": "0.9.0-alpha.4",
"liblabVersion": "2",
"deliveryMethods": ["zip"],
"languages": ["go"],
Expand All @@ -27,15 +27,15 @@
"homepage": "https://github.com/saladtechnologies/salad-cloud-sdk-dotnet",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
"sdkVersion": "0.9.0-alpha.3",
"sdkVersion": "0.9.0-alpha.4",
"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.3",
"sdkVersion": "0.9.0-alpha.4",
"targetBranch": "main"
},
"java": {
Expand All @@ -59,7 +59,7 @@
"homepage": "https://github.com/saladtechnologies/salad-cloud-sdk-java",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
"sdkVersion": "0.9.0-alpha.3",
"sdkVersion": "0.9.0-alpha.5",
"targetBranch": "main"
},
"python": {
Expand Down Expand Up @@ -102,7 +102,7 @@
"githubRepoName": "salad-cloud-sdk-python",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
"sdkVersion": "0.9.0-alpha.3",
"sdkVersion": "0.9.0-alpha.4",
"targetBranch": "main"
},
"terraform": {
Expand All @@ -113,7 +113,7 @@
"providerSchemaConfig": {
"authTokenKey": "api_key"
},
"providerVersion": "0.9.0-alpha.3",
"providerVersion": "0.9.0-alpha.1",
"githubRepoName": "terraform-provider-salad-cloud",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
Expand All @@ -139,8 +139,9 @@
"homepage": "https://github.com/saladtechnologies/salad-cloud-sdk-javascript",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
"sdkVersion": "0.9.0-alpha.3",
"targetBranch": "main"
"sdkVersion": "0.9.0-alpha.5",
"targetBranch": "main",
"generateEnumAs": "enum"
}
},
"publishing": {
Expand Down Expand Up @@ -233,7 +234,7 @@
}
],
"apiName": "SaladCloud API",
"apiVersion": "0.9.0-alpha.3",
"apiVersion": "0.9.0-alpha.4",
"authentication": {
"apiKey": {
"header": "Salad-Api-Key"
Expand Down Expand Up @@ -277,7 +278,7 @@
"httpLibrary": {
"name": "axios",
"packages": {
"axios": "^1.7.4"
"axios": "^1.7.7"
},
"languages": ["typescript"]
},
Expand Down Expand Up @@ -405,7 +406,6 @@
"documentation/models/update_container_group_networking.md",
"documentation/models/workload_error.md",
"documentation/models/container_groups_quotas.md",
"documentation/models/recipes_quotas.md",
"documentation/models/gpu_class.md",
"documentation/models/gpu_class_price.md",
"pkg/webhooksecretkey/webhook_secret_key_service.go",
Expand Down Expand Up @@ -457,7 +457,6 @@
"pkg/containergroups/update_container_group_networking.go",
"pkg/workloaderrors/workload_error.go",
"pkg/quotas/container_groups_quotas.go",
"pkg/quotas/recipes_quotas.go",
"pkg/organizationdata/gpu_class.go",
"pkg/organizationdata/gpu_class_price.go",
"documentation/services/workload_errors_service.md",
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# SaladCloudSdk Go SDK 0.9.0-alpha.3
# SaladCloudSdk Go SDK 0.9.0-alpha.4

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.3`
- SDK version: `0.9.0-alpha.3`
- API version: `0.9.0-alpha.4`
- SDK version: `0.9.0-alpha.4`

## About the API

Expand Down Expand Up @@ -182,7 +182,6 @@ The SDK includes several models that represent the data structures used in API r
| [WorkloadError](documentation/models/workload_error.md) | Represents a workload error |
| [QueueJobEvent](documentation/models/queue_job_event.md) | Represents an event for queue job |
| [ContainerGroupsQuotas](documentation/models/container_groups_quotas.md) | |
| [RecipesQuotas](documentation/models/recipes_quotas.md) | |
| [InferenceEndpointJobEvent](documentation/models/inference_endpoint_job_event.md) | Represents an event for inference endpoint job |
| [GpuClass](documentation/models/gpu_class.md) | Represents a GPU Class |
| [GpuClassPrice](documentation/models/gpu_class_price.md) | Represents the price of a GPU class for a given container group priority |
Expand Down
1 change: 0 additions & 1 deletion documentation/models/quotas.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ Represents the organization quotas
| Name | Type | Required | Description |
| :-------------------- | :--------------------------- | :------- | :------------------------------------- |
| ContainerGroupsQuotas | quotas.ContainerGroupsQuotas || |
| RecipesQuotas | quotas.RecipesQuotas || |
| CreateTime | string || The time the resource was created |
| UpdateTime | string || The time the resource was last updated |
8 changes: 0 additions & 8 deletions documentation/models/recipes_quotas.md

This file was deleted.

14 changes: 1 addition & 13 deletions pkg/quotas/quotas.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ package quotas
type Quotas struct {
ContainerGroupsQuotas *ContainerGroupsQuotas `json:"container_groups_quotas,omitempty" required:"true"`
// The time the resource was created
CreateTime *string `json:"create_time,omitempty"`
RecipesQuotas *RecipesQuotas `json:"recipes_quotas,omitempty" required:"true"`
CreateTime *string `json:"create_time,omitempty"`
// The time the resource was last updated
UpdateTime *string `json:"update_time,omitempty"`
}
Expand All @@ -32,17 +31,6 @@ func (q *Quotas) GetCreateTime() *string {
return q.CreateTime
}

func (q *Quotas) SetRecipesQuotas(recipesQuotas RecipesQuotas) {
q.RecipesQuotas = &recipesQuotas
}

func (q *Quotas) GetRecipesQuotas() *RecipesQuotas {
if q == nil {
return nil
}
return q.RecipesQuotas
}

func (q *Quotas) SetUpdateTime(updateTime string) {
q.UpdateTime = &updateTime
}
Expand Down
28 changes: 0 additions & 28 deletions pkg/quotas/recipes_quotas.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/shared/container_resource_requirements.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package shared
// Represents a container resource requirements
type ContainerResourceRequirements struct {
Cpu *int64 `json:"cpu,omitempty" required:"true" min:"1" max:"16"`
Memory *int64 `json:"memory,omitempty" required:"true" min:"1024" max:"30720"`
Memory *int64 `json:"memory,omitempty" required:"true" min:"1024" max:"61440"`
GpuClasses []string `json:"gpu_classes,omitempty"`
StorageAmount *int64 `json:"storage_amount,omitempty" min:"1073741824" max:"53687091200"`
}
Expand Down

0 comments on commit 60e28d4

Please sign in to comment.