From 2e13c20813d4338375fc6adc4bdebd50b7539beb Mon Sep 17 00:00:00 2001
From: SaladTechnologies <415806+seniorquico@users.noreply.github.com>
Date: Tue, 17 Sep 2024 04:36:29 +0000
Subject: [PATCH] liblab SDK update for version v0.9.0-alpha.3
---
.manifest.json | 18 +++++++++---------
PyPI_README.md | 4 ++--
README.md | 4 ++--
documentation/models/ContainerStatus.md | 8 ++++----
documentation/models/ContainerToken.md | 6 +++---
documentation/models/ReallocateContainer.md | 6 +++---
documentation/services/MetadataService.md | 6 +++---
examples/install.cmd | 2 +-
examples/install.sh | 2 +-
install.cmd | 2 +-
install.sh | 2 +-
pyproject.toml | 2 +-
src/salad_cloud_imds_sdk/services/metadata.py | 4 +---
13 files changed, 32 insertions(+), 34 deletions(-)
diff --git a/.manifest.json b/.manifest.json
index e9ff6bb..752ece6 100644
--- a/.manifest.json
+++ b/.manifest.json
@@ -1,10 +1,10 @@
{
- "liblabVersion": "2.3.1",
- "date": "2024-09-11T23:34:37.044Z",
+ "liblabVersion": "2.4.0",
+ "date": "2024-09-17T04:36:05.362Z",
"config": {
"apiId": 1126,
"sdkName": "salad-cloud-imds-sdk",
- "sdkVersion": "0.9.0-alpha.2",
+ "sdkVersion": "0.9.0-alpha.3",
"liblabVersion": "2",
"deliveryMethods": ["zip"],
"languages": ["python"],
@@ -25,7 +25,7 @@
"homepage": "https://github.com/saladtechnologies/salad-cloud-imds-sdk-dotnet",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
- "sdkVersion": "0.9.0-alpha.2",
+ "sdkVersion": "0.9.0-alpha.3",
"targetBranch": "main"
},
"go": {
@@ -33,7 +33,7 @@
"githubRepoName": "salad-cloud-imds-sdk-go",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
- "sdkVersion": "0.9.0-alpha.2",
+ "sdkVersion": "0.9.0-alpha.3",
"targetBranch": "main"
},
"java": {
@@ -57,7 +57,7 @@
"homepage": "https://github.com/saladtechnologies/salad-cloud-imds-sdk-java",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
- "sdkVersion": "0.9.0-alpha.2",
+ "sdkVersion": "0.9.0-alpha.3",
"targetBranch": "main"
},
"python": {
@@ -100,7 +100,7 @@
"githubRepoName": "salad-cloud-imds-sdk-python",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
- "sdkVersion": "0.9.0-alpha.2",
+ "sdkVersion": "0.9.0-alpha.3",
"targetBranch": "main"
},
"typescript": {
@@ -123,7 +123,7 @@
"homepage": "https://github.com/saladtechnologies/salad-cloud-imds-sdk-javascript",
"ignoreFiles": [".gitignore", "./LICENSE"],
"liblabVersion": "2",
- "sdkVersion": "0.9.0-alpha.2",
+ "sdkVersion": "0.9.0-alpha.3",
"targetBranch": "main"
}
},
@@ -155,7 +155,7 @@
},
"multiTenant": true,
"hooksLocation": {
- "bucketKey": "7096/hooks.zip",
+ "bucketKey": "7207/hooks.zip",
"bucketName": "prod-liblab-api-stack-hooks"
},
"includeWatermark": false,
diff --git a/PyPI_README.md b/PyPI_README.md
index 52ea9f8..216338c 100644
--- a/PyPI_README.md
+++ b/PyPI_README.md
@@ -1,11 +1,11 @@
-# SaladCloudImdsSdk Python SDK 0.9.0-alpha.2
+# SaladCloudImdsSdk Python SDK 0.9.0-alpha.3
Welcome to the SaladCloudImdsSdk SDK documentation. This guide will help you get started with integrating and using the SaladCloudImdsSdk SDK in your project.
## Versions
- API version: `0.9.0-alpha.1`
-- SDK version: `0.9.0-alpha.2`
+- SDK version: `0.9.0-alpha.3`
## About the API
diff --git a/README.md b/README.md
index a7509f0..af18f94 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@
-# SaladCloudImdsSdk Python SDK 0.9.0-alpha.2
+# SaladCloudImdsSdk Python SDK 0.9.0-alpha.3
Welcome to the SaladCloudImdsSdk SDK documentation. This guide will help you get started with integrating and using the SaladCloudImdsSdk SDK in your project.
## Versions
- API version: `0.9.0-alpha.1`
-- SDK version: `0.9.0-alpha.2`
+- SDK version: `0.9.0-alpha.3`
## About the API
diff --git a/documentation/models/ContainerStatus.md b/documentation/models/ContainerStatus.md
index 2bebfc0..d4926a4 100644
--- a/documentation/models/ContainerStatus.md
+++ b/documentation/models/ContainerStatus.md
@@ -4,7 +4,7 @@ Represents the health statuses of the running container.
**Properties**
-| Name | Type | Required | Description |
-| :------ | :----- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| ready | `bool` | ✅ | `true` if the running container is ready. If a readiness probe is defined, this returns the latest result of the probe. If a readiness probe is not defined but a startup probe is defined, this returns the same value as the `started` property. If neither a readiness probe nor a startup probe are defined, returns `true`. |
-| started | `bool` | ✅ | `true` if the running container is started. If a startup probe is defined, this returns the latest result of the probe. If a startup probe is not defined, returns `true`. |
+| Name | Type | Required | Description |
+| :------ | :--- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| ready | bool | ✅ | `true` if the running container is ready. If a readiness probe is defined, this returns the latest result of the probe. If a readiness probe is not defined but a startup probe is defined, this returns the same value as the `started` property. If neither a readiness probe nor a startup probe are defined, returns `true`. |
+| started | bool | ✅ | `true` if the running container is started. If a startup probe is defined, this returns the latest result of the probe. If a startup probe is not defined, returns `true`. |
diff --git a/documentation/models/ContainerToken.md b/documentation/models/ContainerToken.md
index b598b70..6f30902 100644
--- a/documentation/models/ContainerToken.md
+++ b/documentation/models/ContainerToken.md
@@ -4,6 +4,6 @@ Represents the identity token of the running container.
**Properties**
-| Name | Type | Required | Description |
-| :--- | :---- | :------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| jwt | `str` | ✅ | The JSON Web Token (JWT) that may be used to identify the running container. The JWT may be verified using the JSON Web Key Set (JWKS) available at https://matrix-rest-api.salad.com/.well-known/stash-jwks.json. |
+| Name | Type | Required | Description |
+| :--- | :--- | :------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| jwt | str | ✅ | The JSON Web Token (JWT) that may be used to identify the running container. The JWT may be verified using the JSON Web Key Set (JWKS) available at https://matrix-rest-api.salad.com/.well-known/stash-jwks.json. |
diff --git a/documentation/models/ReallocateContainer.md b/documentation/models/ReallocateContainer.md
index 31cf613..d5094ae 100644
--- a/documentation/models/ReallocateContainer.md
+++ b/documentation/models/ReallocateContainer.md
@@ -4,6 +4,6 @@ Represents a request to reallocate a container.
**Properties**
-| Name | Type | Required | Description |
-| :----- | :---- | :------- | :---------------------------------------------------------------------------------------------------------------------------- |
-| reason | `str` | ✅ | The reason for reallocating the container. This value is reported to SaladCloud support for quality assurance of Salad Nodes. |
+| Name | Type | Required | Description |
+| :----- | :--- | :------- | :---------------------------------------------------------------------------------------------------------------------------- |
+| reason | str | ✅ | The reason for reallocating the container. This value is reported to SaladCloud support for quality assurance of Salad Nodes. |
diff --git a/documentation/services/MetadataService.md b/documentation/services/MetadataService.md
index 63a92db..05c81d1 100644
--- a/documentation/services/MetadataService.md
+++ b/documentation/services/MetadataService.md
@@ -17,9 +17,9 @@ Reallocates the running container to another Salad Node
**Parameters**
-| Name | Type | Required | Description |
-| :----------- | :-------------------------------------------------------- | :------- | :---------------- |
-| request_body | `[ReallocateContainer](../models/ReallocateContainer.md)` | ✅ | The request body. |
+| Name | Type | Required | Description |
+| :----------- | :------------------------------------------------------ | :------- | :---------------- |
+| request_body | [ReallocateContainer](../models/ReallocateContainer.md) | ✅ | The request body. |
**Example Usage Code Snippet**
diff --git a/examples/install.cmd b/examples/install.cmd
index d80590c..fca1b65 100644
--- a/examples/install.cmd
+++ b/examples/install.cmd
@@ -2,4 +2,4 @@ python -m venv .venv
call .venv\Scripts\activate
pip install build
python -m build --outdir dist ..\
-pip install dist\salad_cloud_imds_sdk-0.9.0-alpha.2-py3-none-any.whl --force-reinstall
+pip install dist\salad_cloud_imds_sdk-0.9.0-alpha.3-py3-none-any.whl --force-reinstall
diff --git a/examples/install.sh b/examples/install.sh
index de1e32e..5635773 100644
--- a/examples/install.sh
+++ b/examples/install.sh
@@ -2,4 +2,4 @@ python -m venv .venv
. .venv/bin/activate
pip install build
python -m build --outdir dist ../
-pip install dist/salad_cloud_imds_sdk-0.9.0-alpha.2-py3-none-any.whl --force-reinstall
+pip install dist/salad_cloud_imds_sdk-0.9.0-alpha.3-py3-none-any.whl --force-reinstall
diff --git a/install.cmd b/install.cmd
index ab00761..d01db5e 100644
--- a/install.cmd
+++ b/install.cmd
@@ -15,7 +15,7 @@ if "%USE_VENV%"=="1" (
pip install build
python -m build --outdir dist .
-pip install dist\salad_cloud_imds_sdk-0.9.0-alpha.2-py3-none-any.whl --force-reinstall
+pip install dist\salad_cloud_imds_sdk-0.9.0-alpha.3-py3-none-any.whl --force-reinstall
if "%USE_VENV%"=="1" (
deactivate
diff --git a/install.sh b/install.sh
index 3106ec4..c8a2305 100644
--- a/install.sh
+++ b/install.sh
@@ -19,7 +19,7 @@ fi
pip install build
python -m build --outdir dist .
-pip install dist/salad_cloud_imds_sdk-0.9.0-alpha.2-py3-none-any.whl --force-reinstall
+pip install dist/salad_cloud_imds_sdk-0.9.0-alpha.3-py3-none-any.whl --force-reinstall
if [ "$USE_VENV" -eq 1 ]; then
deactivate
diff --git a/pyproject.toml b/pyproject.toml
index 239d864..d5580c0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "salad-cloud-imds-sdk"
-version = "0.9.0-alpha.2"
+version = "0.9.0-alpha.3"
license = { text = "MIT" }
description = """The SaladCloud Instance Metadata Service (IMDS). Please refer to the [SaladCloud API Documentation](https://docs.salad.com/api-reference) for more details."""
readme = "PyPI_README.md"
diff --git a/src/salad_cloud_imds_sdk/services/metadata.py b/src/salad_cloud_imds_sdk/services/metadata.py
index c019ede..9f379e8 100644
--- a/src/salad_cloud_imds_sdk/services/metadata.py
+++ b/src/salad_cloud_imds_sdk/services/metadata.py
@@ -3,9 +3,7 @@
from .utils.base_service import BaseService
from ..net.transport.serializer import Serializer
from ..models.utils.cast_models import cast_models
-from ..models.reallocate_container import ReallocateContainer
-from ..models.container_token import ContainerToken
-from ..models.container_status import ContainerStatus
+from ..models import ContainerStatus, ContainerToken, ReallocateContainer
class MetadataService(BaseService):