diff --git a/.manifest.json b/.manifest.json index 61959dc..92a8677 100644 --- a/.manifest.json +++ b/.manifest.json @@ -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"], @@ -27,7 +27,7 @@ "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": { @@ -35,7 +35,7 @@ "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": { @@ -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": { @@ -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": { @@ -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", @@ -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": { @@ -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" @@ -277,7 +278,7 @@ "httpLibrary": { "name": "axios", "packages": { - "axios": "^1.7.4" + "axios": "^1.7.7" }, "languages": ["typescript"] }, @@ -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", @@ -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", diff --git a/README.md b/README.md index 523e6e4..ac97295 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 | diff --git a/documentation/models/quotas.md b/documentation/models/quotas.md index 186a267..7522b32 100644 --- a/documentation/models/quotas.md +++ b/documentation/models/quotas.md @@ -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 | diff --git a/documentation/models/recipes_quotas.md b/documentation/models/recipes_quotas.md deleted file mode 100644 index 3ab8c3c..0000000 --- a/documentation/models/recipes_quotas.md +++ /dev/null @@ -1,8 +0,0 @@ -# RecipesQuotas - -**Properties** - -| Name | Type | Required | Description | -| :-------------------------- | :---- | :------- | :---------- | -| MaxCreatedRecipeDeployments | int64 | ✅ | | -| RecipeInstanceQuota | int64 | ✅ | | diff --git a/pkg/quotas/quotas.go b/pkg/quotas/quotas.go index 185c828..2c56e93 100644 --- a/pkg/quotas/quotas.go +++ b/pkg/quotas/quotas.go @@ -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"` } @@ -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 } diff --git a/pkg/quotas/recipes_quotas.go b/pkg/quotas/recipes_quotas.go deleted file mode 100644 index d472db7..0000000 --- a/pkg/quotas/recipes_quotas.go +++ /dev/null @@ -1,28 +0,0 @@ -package quotas - -type RecipesQuotas struct { - MaxCreatedRecipeDeployments *int64 `json:"max_created_recipe_deployments,omitempty" required:"true"` - RecipeInstanceQuota *int64 `json:"recipe_instance_quota,omitempty" required:"true"` -} - -func (r *RecipesQuotas) SetMaxCreatedRecipeDeployments(maxCreatedRecipeDeployments int64) { - r.MaxCreatedRecipeDeployments = &maxCreatedRecipeDeployments -} - -func (r *RecipesQuotas) GetMaxCreatedRecipeDeployments() *int64 { - if r == nil { - return nil - } - return r.MaxCreatedRecipeDeployments -} - -func (r *RecipesQuotas) SetRecipeInstanceQuota(recipeInstanceQuota int64) { - r.RecipeInstanceQuota = &recipeInstanceQuota -} - -func (r *RecipesQuotas) GetRecipeInstanceQuota() *int64 { - if r == nil { - return nil - } - return r.RecipeInstanceQuota -} diff --git a/pkg/shared/container_resource_requirements.go b/pkg/shared/container_resource_requirements.go index 5150c0c..90915b0 100644 --- a/pkg/shared/container_resource_requirements.go +++ b/pkg/shared/container_resource_requirements.go @@ -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"` }