aioli-sdk 0.2.4.dev0__tar.gz → 0.2.4.dev1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/PKG-INFO +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/__version__.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/model.py +13 -14
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/test/test_cli.py +14 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli_sdk.egg-info/PKG-INFO +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli_sdk.egg-info/SOURCES.txt +1 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/__init__.py +2 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/api/authentication_api.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/api/deployments_api.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/api/information_api.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/api/packaged_models_api.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/api/registries_api.py +270 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/api/roles_api.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/api/templates_api.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/api/users_api.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/api_client.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/configuration.py +2 -2
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/exceptions.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/__init__.py +2 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/auto_scaling_template.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/autoscaling.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/configuration_resources.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/deployment.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/deployment_model_version.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/deployment_request.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/deployment_state.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/error_response.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/event_info.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/failure_info.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/login_request.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/login_response.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/model_auth_token.py +1 -1
- aioli_sdk-0.2.4.dev1/aiolirest/models/model_response.py +101 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/observability.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/packaged_model.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/packaged_model_request.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/resource_profile.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/resources_template.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/role.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/role_assignment.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/role_assignments.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/security.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/success_response.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/trained_model_registry.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/trained_model_registry_request.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/user.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/user_patch_request.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/user_request.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/rest.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/setup.py +1 -1
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/README.md +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/__init__.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/__init__.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/__main__.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/_util.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/cli.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/deployment.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/errors.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/registry.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/render.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/role.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/sso.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/test/conftest.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/user.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/cli/version.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/common/__init__.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/common/api/__init__.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/common/api/_util.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/common/api/authentication.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/common/api/certs.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/common/api/errors.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/common/api/request.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/common/check.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/common/constants.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/common/declarative_argparse.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/common/requests.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/common/util.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli/util.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli_sdk.egg-info/dependency_links.txt +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli_sdk.egg-info/entry_points.txt +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli_sdk.egg-info/not-zip-safe +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli_sdk.egg-info/requires.txt +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aioli_sdk.egg-info/top_level.txt +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/api/__init__.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/api_response.py +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/py.typed +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/pyproject.toml +0 -0
- {aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/setup.cfg +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# © Copyright 2024 Hewlett Packard Enterprise Development LP
|
|
2
|
-
__version__ = "0.2.4-
|
|
2
|
+
__version__ = "0.2.4-dev1"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# © Copyright 2023-2024 Hewlett Packard Enterprise Development LP
|
|
2
|
+
import re
|
|
2
3
|
from argparse import Namespace
|
|
3
4
|
from typing import Any, List
|
|
4
5
|
|
|
@@ -117,31 +118,29 @@ def lookup_model(name: str, args: Namespace, api: aiolirest.PackagedModelsApi) -
|
|
|
117
118
|
if model_count == 1:
|
|
118
119
|
return model # Found a single version of the specified model
|
|
119
120
|
if model_count > 1 and not args.version:
|
|
120
|
-
raise_version_required(name)
|
|
121
|
+
raise_version_required(name, model_count)
|
|
121
122
|
|
|
122
123
|
if model_count == 0:
|
|
123
124
|
# The specified model does not exist; extract the version suffix if any
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
regexp = re.compile(r"^(.+)\.[Vv](\d+)$")
|
|
126
|
+
m = regexp.match(name)
|
|
127
|
+
if m is None:
|
|
128
|
+
raise NotFoundException(
|
|
129
|
+
f"model {name} not found. Model versions may optionally be specified "
|
|
130
|
+
"using the suffix '.v#', for example, '.v1', '.v100'"
|
|
131
|
+
)
|
|
132
|
+
name = m.group(1)
|
|
133
|
+
version = m.group(2)
|
|
131
134
|
|
|
132
135
|
# if there is an explicit version specified, then use that
|
|
133
136
|
if args.version:
|
|
134
137
|
version = args.version
|
|
135
|
-
if version is None:
|
|
136
|
-
raise_version_required(name)
|
|
137
138
|
|
|
138
139
|
return lookup_model_and_version(name, version, models)
|
|
139
140
|
|
|
140
141
|
|
|
141
|
-
def raise_version_required(name: str) -> None:
|
|
142
|
-
raise VersionRequiredException(
|
|
143
|
-
f"please specify model version as {name} matches more than one model"
|
|
144
|
-
)
|
|
142
|
+
def raise_version_required(name: str, count: int) -> None:
|
|
143
|
+
raise VersionRequiredException(f"specify a version as model {name} exists in {count} versions")
|
|
145
144
|
|
|
146
145
|
|
|
147
146
|
def lookup_model_and_version(name: str, version: str, models: List[PackagedModel]) -> PackagedModel:
|
|
@@ -357,6 +357,20 @@ class TestCli:
|
|
|
357
357
|
assert (actual.find(expected)) > 0
|
|
358
358
|
assert os.system("aioli model delete openllm 1") == 0
|
|
359
359
|
|
|
360
|
+
def test_model_update_bad_model_name(self, setup_login: None) -> None:
|
|
361
|
+
# Attempt to update model specifying the version incorrectly. Here we specify
|
|
362
|
+
# a suffix of ".1", and not ".v1" which would specify the name & version.
|
|
363
|
+
# assert (os.system("aioli model update iris-tf-keras.1") == 0)
|
|
364
|
+
try:
|
|
365
|
+
subprocess.check_output(
|
|
366
|
+
["aioli", "model", "update", "iris-tf-keras.1"], stderr=subprocess.STDOUT
|
|
367
|
+
)
|
|
368
|
+
except subprocess.CalledProcessError as e:
|
|
369
|
+
assert e.returncode == 1
|
|
370
|
+
expected = "Failed to modify a packaged model: model iris-tf-keras.1 not found"
|
|
371
|
+
actual: str = e.output.decode("utf-8")
|
|
372
|
+
assert actual.find(expected) == 0
|
|
373
|
+
|
|
360
374
|
def test_model_update(self, setup_login: None) -> None:
|
|
361
375
|
# Update existing model entry and test for expected values
|
|
362
376
|
assert (
|
|
@@ -68,6 +68,7 @@ aiolirest/models/failure_info.py
|
|
|
68
68
|
aiolirest/models/login_request.py
|
|
69
69
|
aiolirest/models/login_response.py
|
|
70
70
|
aiolirest/models/model_auth_token.py
|
|
71
|
+
aiolirest/models/model_response.py
|
|
71
72
|
aiolirest/models/observability.py
|
|
72
73
|
aiolirest/models/packaged_model.py
|
|
73
74
|
aiolirest/models/packaged_model_request.py
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
9
9
|
|
|
10
|
-
The version of the OpenAPI document: 0.2.4-
|
|
10
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
11
11
|
Contact: community@determined-ai
|
|
12
12
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
13
13
|
|
|
@@ -52,6 +52,7 @@ from aiolirest.models.failure_info import FailureInfo
|
|
|
52
52
|
from aiolirest.models.login_request import LoginRequest
|
|
53
53
|
from aiolirest.models.login_response import LoginResponse
|
|
54
54
|
from aiolirest.models.model_auth_token import ModelAuthToken
|
|
55
|
+
from aiolirest.models.model_response import ModelResponse
|
|
55
56
|
from aiolirest.models.observability import Observability
|
|
56
57
|
from aiolirest.models.packaged_model import PackagedModel
|
|
57
58
|
from aiolirest.models.packaged_model_request import PackagedModelRequest
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -30,6 +30,7 @@ from pydantic import StrictStr
|
|
|
30
30
|
|
|
31
31
|
from typing import List
|
|
32
32
|
|
|
33
|
+
from aiolirest.models.model_response import ModelResponse
|
|
33
34
|
from aiolirest.models.success_response import SuccessResponse
|
|
34
35
|
from aiolirest.models.trained_model_registry import TrainedModelRegistry
|
|
35
36
|
from aiolirest.models.trained_model_registry_request import TrainedModelRegistryRequest
|
|
@@ -838,6 +839,274 @@ class RegistriesApi:
|
|
|
838
839
|
|
|
839
840
|
|
|
840
841
|
|
|
842
|
+
@validate_call
|
|
843
|
+
def registries_id_models_get(
|
|
844
|
+
self,
|
|
845
|
+
id: Annotated[StrictStr, Field(description="Model Registry ID")],
|
|
846
|
+
_request_timeout: Union[
|
|
847
|
+
None,
|
|
848
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
849
|
+
Tuple[
|
|
850
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
851
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
852
|
+
]
|
|
853
|
+
] = None,
|
|
854
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
855
|
+
_content_type: Optional[StrictStr] = None,
|
|
856
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
857
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
858
|
+
) -> List[ModelResponse]:
|
|
859
|
+
"""Get all available models from a registry
|
|
860
|
+
|
|
861
|
+
Returns an array of all available models from a registry
|
|
862
|
+
|
|
863
|
+
:param id: Model Registry ID (required)
|
|
864
|
+
:type id: str
|
|
865
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
866
|
+
number provided, it will be total request
|
|
867
|
+
timeout. It can also be a pair (tuple) of
|
|
868
|
+
(connection, read) timeouts.
|
|
869
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
870
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
871
|
+
request; this effectively ignores the
|
|
872
|
+
authentication in the spec for a single request.
|
|
873
|
+
:type _request_auth: dict, optional
|
|
874
|
+
:param _content_type: force content-type for the request.
|
|
875
|
+
:type _content_type: str, Optional
|
|
876
|
+
:param _headers: set to override the headers for a single
|
|
877
|
+
request; this effectively ignores the headers
|
|
878
|
+
in the spec for a single request.
|
|
879
|
+
:type _headers: dict, optional
|
|
880
|
+
:param _host_index: set to override the host_index for a single
|
|
881
|
+
request; this effectively ignores the host_index
|
|
882
|
+
in the spec for a single request.
|
|
883
|
+
:type _host_index: int, optional
|
|
884
|
+
:return: Returns the result object.
|
|
885
|
+
""" # noqa: E501
|
|
886
|
+
|
|
887
|
+
_param = self._registries_id_models_get_serialize(
|
|
888
|
+
id=id,
|
|
889
|
+
_request_auth=_request_auth,
|
|
890
|
+
_content_type=_content_type,
|
|
891
|
+
_headers=_headers,
|
|
892
|
+
_host_index=_host_index
|
|
893
|
+
)
|
|
894
|
+
|
|
895
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
896
|
+
'200': "List[ModelResponse]",
|
|
897
|
+
'404': "ErrorResponse",
|
|
898
|
+
'500': "ErrorResponse"
|
|
899
|
+
|
|
900
|
+
}
|
|
901
|
+
response_data = self.api_client.call_api(
|
|
902
|
+
*_param,
|
|
903
|
+
_request_timeout=_request_timeout
|
|
904
|
+
)
|
|
905
|
+
response_data.read()
|
|
906
|
+
return self.api_client.response_deserialize(
|
|
907
|
+
response_data=response_data,
|
|
908
|
+
response_types_map=_response_types_map,
|
|
909
|
+
).data
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
@validate_call
|
|
913
|
+
def registries_id_models_get_with_http_info(
|
|
914
|
+
self,
|
|
915
|
+
id: Annotated[StrictStr, Field(description="Model Registry ID")],
|
|
916
|
+
_request_timeout: Union[
|
|
917
|
+
None,
|
|
918
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
919
|
+
Tuple[
|
|
920
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
921
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
922
|
+
]
|
|
923
|
+
] = None,
|
|
924
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
925
|
+
_content_type: Optional[StrictStr] = None,
|
|
926
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
927
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
928
|
+
) -> ApiResponse[List[ModelResponse]]:
|
|
929
|
+
"""Get all available models from a registry
|
|
930
|
+
|
|
931
|
+
Returns an array of all available models from a registry
|
|
932
|
+
|
|
933
|
+
:param id: Model Registry ID (required)
|
|
934
|
+
:type id: str
|
|
935
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
936
|
+
number provided, it will be total request
|
|
937
|
+
timeout. It can also be a pair (tuple) of
|
|
938
|
+
(connection, read) timeouts.
|
|
939
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
940
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
941
|
+
request; this effectively ignores the
|
|
942
|
+
authentication in the spec for a single request.
|
|
943
|
+
:type _request_auth: dict, optional
|
|
944
|
+
:param _content_type: force content-type for the request.
|
|
945
|
+
:type _content_type: str, Optional
|
|
946
|
+
:param _headers: set to override the headers for a single
|
|
947
|
+
request; this effectively ignores the headers
|
|
948
|
+
in the spec for a single request.
|
|
949
|
+
:type _headers: dict, optional
|
|
950
|
+
:param _host_index: set to override the host_index for a single
|
|
951
|
+
request; this effectively ignores the host_index
|
|
952
|
+
in the spec for a single request.
|
|
953
|
+
:type _host_index: int, optional
|
|
954
|
+
:return: Returns the result object.
|
|
955
|
+
""" # noqa: E501
|
|
956
|
+
|
|
957
|
+
_param = self._registries_id_models_get_serialize(
|
|
958
|
+
id=id,
|
|
959
|
+
_request_auth=_request_auth,
|
|
960
|
+
_content_type=_content_type,
|
|
961
|
+
_headers=_headers,
|
|
962
|
+
_host_index=_host_index
|
|
963
|
+
)
|
|
964
|
+
|
|
965
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
966
|
+
'200': "List[ModelResponse]",
|
|
967
|
+
'404': "ErrorResponse",
|
|
968
|
+
'500': "ErrorResponse"
|
|
969
|
+
|
|
970
|
+
}
|
|
971
|
+
response_data = self.api_client.call_api(
|
|
972
|
+
*_param,
|
|
973
|
+
_request_timeout=_request_timeout
|
|
974
|
+
)
|
|
975
|
+
response_data.read()
|
|
976
|
+
return self.api_client.response_deserialize(
|
|
977
|
+
response_data=response_data,
|
|
978
|
+
response_types_map=_response_types_map,
|
|
979
|
+
)
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
@validate_call
|
|
983
|
+
def registries_id_models_get_without_preload_content(
|
|
984
|
+
self,
|
|
985
|
+
id: Annotated[StrictStr, Field(description="Model Registry ID")],
|
|
986
|
+
_request_timeout: Union[
|
|
987
|
+
None,
|
|
988
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
989
|
+
Tuple[
|
|
990
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
991
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
992
|
+
]
|
|
993
|
+
] = None,
|
|
994
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
995
|
+
_content_type: Optional[StrictStr] = None,
|
|
996
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
997
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
998
|
+
) -> RESTResponseType:
|
|
999
|
+
"""Get all available models from a registry
|
|
1000
|
+
|
|
1001
|
+
Returns an array of all available models from a registry
|
|
1002
|
+
|
|
1003
|
+
:param id: Model Registry ID (required)
|
|
1004
|
+
:type id: str
|
|
1005
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1006
|
+
number provided, it will be total request
|
|
1007
|
+
timeout. It can also be a pair (tuple) of
|
|
1008
|
+
(connection, read) timeouts.
|
|
1009
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1010
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1011
|
+
request; this effectively ignores the
|
|
1012
|
+
authentication in the spec for a single request.
|
|
1013
|
+
:type _request_auth: dict, optional
|
|
1014
|
+
:param _content_type: force content-type for the request.
|
|
1015
|
+
:type _content_type: str, Optional
|
|
1016
|
+
:param _headers: set to override the headers for a single
|
|
1017
|
+
request; this effectively ignores the headers
|
|
1018
|
+
in the spec for a single request.
|
|
1019
|
+
:type _headers: dict, optional
|
|
1020
|
+
:param _host_index: set to override the host_index for a single
|
|
1021
|
+
request; this effectively ignores the host_index
|
|
1022
|
+
in the spec for a single request.
|
|
1023
|
+
:type _host_index: int, optional
|
|
1024
|
+
:return: Returns the result object.
|
|
1025
|
+
""" # noqa: E501
|
|
1026
|
+
|
|
1027
|
+
_param = self._registries_id_models_get_serialize(
|
|
1028
|
+
id=id,
|
|
1029
|
+
_request_auth=_request_auth,
|
|
1030
|
+
_content_type=_content_type,
|
|
1031
|
+
_headers=_headers,
|
|
1032
|
+
_host_index=_host_index
|
|
1033
|
+
)
|
|
1034
|
+
|
|
1035
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1036
|
+
'200': "List[ModelResponse]",
|
|
1037
|
+
'404': "ErrorResponse",
|
|
1038
|
+
'500': "ErrorResponse"
|
|
1039
|
+
|
|
1040
|
+
}
|
|
1041
|
+
response_data = self.api_client.call_api(
|
|
1042
|
+
*_param,
|
|
1043
|
+
_request_timeout=_request_timeout
|
|
1044
|
+
)
|
|
1045
|
+
return response_data.response
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
def _registries_id_models_get_serialize(
|
|
1049
|
+
self,
|
|
1050
|
+
id,
|
|
1051
|
+
_request_auth,
|
|
1052
|
+
_content_type,
|
|
1053
|
+
_headers,
|
|
1054
|
+
_host_index,
|
|
1055
|
+
) -> Tuple:
|
|
1056
|
+
|
|
1057
|
+
_host = None
|
|
1058
|
+
|
|
1059
|
+
_collection_formats: Dict[str, str] = {
|
|
1060
|
+
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
_path_params: Dict[str, str] = {}
|
|
1064
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1065
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1066
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1067
|
+
_files: Dict[str, str] = {}
|
|
1068
|
+
_body_params: Optional[bytes] = None
|
|
1069
|
+
|
|
1070
|
+
# process the path parameters
|
|
1071
|
+
if id is not None:
|
|
1072
|
+
_path_params['id'] = id
|
|
1073
|
+
# process the query parameters
|
|
1074
|
+
# process the header parameters
|
|
1075
|
+
# process the form parameters
|
|
1076
|
+
# process the body parameter
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
# set the HTTP header `Accept`
|
|
1080
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1081
|
+
[
|
|
1082
|
+
'*/*'
|
|
1083
|
+
]
|
|
1084
|
+
)
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
# authentication setting
|
|
1088
|
+
_auth_settings: List[str] = [
|
|
1089
|
+
'ApiKeyAuth'
|
|
1090
|
+
]
|
|
1091
|
+
|
|
1092
|
+
return self.api_client.param_serialize(
|
|
1093
|
+
method='GET',
|
|
1094
|
+
resource_path='/registries/{id}/models',
|
|
1095
|
+
path_params=_path_params,
|
|
1096
|
+
query_params=_query_params,
|
|
1097
|
+
header_params=_header_params,
|
|
1098
|
+
body=_body_params,
|
|
1099
|
+
post_params=_form_params,
|
|
1100
|
+
files=_files,
|
|
1101
|
+
auth_settings=_auth_settings,
|
|
1102
|
+
collection_formats=_collection_formats,
|
|
1103
|
+
_host=_host,
|
|
1104
|
+
_request_auth=_request_auth
|
|
1105
|
+
)
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
|
|
841
1110
|
@validate_call
|
|
842
1111
|
def registries_id_put(
|
|
843
1112
|
self,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -389,7 +389,7 @@ conf = aiolirest.Configuration(
|
|
|
389
389
|
return "Python SDK Debug Report:\n"\
|
|
390
390
|
"OS: {env}\n"\
|
|
391
391
|
"Python Version: {pyversion}\n"\
|
|
392
|
-
"Version of the API: 0.2.4-
|
|
392
|
+
"Version of the API: 0.2.4-dev1\n"\
|
|
393
393
|
"SDK Package Version: 1.0.0".\
|
|
394
394
|
format(env=sys.platform, pyversion=sys.version)
|
|
395
395
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
8
8
|
|
|
9
|
-
The version of the OpenAPI document: 0.2.4-
|
|
9
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
10
10
|
Contact: community@determined-ai
|
|
11
11
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
12
|
|
|
@@ -28,6 +28,7 @@ from aiolirest.models.failure_info import FailureInfo
|
|
|
28
28
|
from aiolirest.models.login_request import LoginRequest
|
|
29
29
|
from aiolirest.models.login_response import LoginResponse
|
|
30
30
|
from aiolirest.models.model_auth_token import ModelAuthToken
|
|
31
|
+
from aiolirest.models.model_response import ModelResponse
|
|
31
32
|
from aiolirest.models.observability import Observability
|
|
32
33
|
from aiolirest.models.packaged_model import PackagedModel
|
|
33
34
|
from aiolirest.models.packaged_model_request import PackagedModelRequest
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
HPE Machine Learning Inference Software (MLIS/Aioli)
|
|
5
|
+
|
|
6
|
+
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
|
+
Contact: community@determined-ai
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from pydantic import BaseModel, StrictInt, StrictStr
|
|
24
|
+
from pydantic import Field
|
|
25
|
+
try:
|
|
26
|
+
from typing import Self
|
|
27
|
+
except ImportError:
|
|
28
|
+
from typing_extensions import Self
|
|
29
|
+
|
|
30
|
+
class ModelResponse(BaseModel):
|
|
31
|
+
"""
|
|
32
|
+
Provides a set of values that are returned by querying for models
|
|
33
|
+
""" # noqa: E501
|
|
34
|
+
description: Optional[StrictStr] = Field(default=None, description="The description of desribing the model")
|
|
35
|
+
display_name: Optional[StrictStr] = Field(default=None, description="The name displayed that is human readable", alias="displayName")
|
|
36
|
+
image: Optional[StrictStr] = Field(default=None, description="The default container image to execute the model (if available)")
|
|
37
|
+
latest_version_id_str: Optional[StrictStr] = Field(default=None, description="The latest version of the model", alias="latestVersionIdStr")
|
|
38
|
+
latest_version_size_in_bytes: Optional[StrictInt] = Field(default=None, description="The number of bytes for the latest model", alias="latestVersionSizeInBytes")
|
|
39
|
+
metadata: Optional[Dict[str, StrictStr]] = Field(default=None, description="Extra argument in case more variables need to be stored.")
|
|
40
|
+
name: Optional[StrictStr] = Field(default=None, description="The name used in model specification")
|
|
41
|
+
__properties: ClassVar[List[str]] = ["description", "displayName", "image", "latestVersionIdStr", "latestVersionSizeInBytes", "metadata", "name"]
|
|
42
|
+
|
|
43
|
+
model_config = {
|
|
44
|
+
"populate_by_name": True,
|
|
45
|
+
"validate_assignment": True
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def to_str(self) -> str:
|
|
50
|
+
"""Returns the string representation of the model using alias"""
|
|
51
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
52
|
+
|
|
53
|
+
def to_json(self) -> str:
|
|
54
|
+
"""Returns the JSON representation of the model using alias"""
|
|
55
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
56
|
+
return json.dumps(self.to_dict())
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_json(cls, json_str: str) -> Self:
|
|
60
|
+
"""Create an instance of ModelResponse from a JSON string"""
|
|
61
|
+
return cls.from_dict(json.loads(json_str))
|
|
62
|
+
|
|
63
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
64
|
+
"""Return the dictionary representation of the model using alias.
|
|
65
|
+
|
|
66
|
+
This has the following differences from calling pydantic's
|
|
67
|
+
`self.model_dump(by_alias=True)`:
|
|
68
|
+
|
|
69
|
+
* `None` is only added to the output dict for nullable fields that
|
|
70
|
+
were set at model initialization. Other fields with value `None`
|
|
71
|
+
are ignored.
|
|
72
|
+
"""
|
|
73
|
+
_dict = self.model_dump(
|
|
74
|
+
by_alias=True,
|
|
75
|
+
exclude={
|
|
76
|
+
},
|
|
77
|
+
exclude_none=True,
|
|
78
|
+
)
|
|
79
|
+
return _dict
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_dict(cls, obj: Dict) -> Self:
|
|
83
|
+
"""Create an instance of ModelResponse from a dict"""
|
|
84
|
+
if obj is None:
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
if not isinstance(obj, dict):
|
|
88
|
+
return cls.model_validate(obj)
|
|
89
|
+
|
|
90
|
+
_obj = cls.model_validate({
|
|
91
|
+
"description": obj.get("description"),
|
|
92
|
+
"displayName": obj.get("displayName"),
|
|
93
|
+
"image": obj.get("image"),
|
|
94
|
+
"latestVersionIdStr": obj.get("latestVersionIdStr"),
|
|
95
|
+
"latestVersionSizeInBytes": obj.get("latestVersionSizeInBytes"),
|
|
96
|
+
"metadata": obj.get("metadata"),
|
|
97
|
+
"name": obj.get("name")
|
|
98
|
+
})
|
|
99
|
+
return _obj
|
|
100
|
+
|
|
101
|
+
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
{aioli_sdk-0.2.4.dev0 → aioli_sdk-0.2.4.dev1}/aiolirest/models/trained_model_registry_request.py
RENAMED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
HPE MLIS is *Aioli* -- The AI On-line Inference Platform that enables easy deployment, tracking, and serving of your packaged models regardless of your preferred AI framework.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.2.4-
|
|
8
|
+
The version of the OpenAPI document: 0.2.4-dev1
|
|
9
9
|
Contact: community@determined-ai
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|