aioli-sdk 0.2.4.dev3__tar.gz → 0.2.4.dev6__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.
Files changed (88) hide show
  1. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/PKG-INFO +1 -1
  2. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/__version__.py +1 -1
  3. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/cli.py +15 -5
  4. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/registry.py +11 -0
  5. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/test/test_cli.py +47 -0
  6. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli_sdk.egg-info/PKG-INFO +1 -1
  7. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/__init__.py +1 -1
  8. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/api/authentication_api.py +1 -1
  9. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/api/deployments_api.py +1 -1
  10. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/api/information_api.py +1 -1
  11. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/api/packaged_models_api.py +1 -1
  12. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/api/registries_api.py +1 -1
  13. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/api/roles_api.py +1 -1
  14. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/api/templates_api.py +1 -1
  15. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/api/users_api.py +1 -1
  16. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/api_client.py +1 -1
  17. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/configuration.py +2 -2
  18. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/exceptions.py +1 -1
  19. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/__init__.py +1 -1
  20. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/auto_scaling_template.py +1 -1
  21. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/autoscaling.py +1 -1
  22. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/configuration_resources.py +1 -1
  23. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/deployment.py +1 -1
  24. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/deployment_model_version.py +1 -1
  25. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/deployment_request.py +1 -1
  26. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/deployment_state.py +1 -1
  27. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/error_response.py +1 -1
  28. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/event_info.py +1 -1
  29. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/failure_info.py +1 -1
  30. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/login_request.py +1 -1
  31. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/login_response.py +1 -1
  32. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/model_auth_token.py +1 -1
  33. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/model_response.py +1 -1
  34. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/observability.py +1 -1
  35. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/packaged_model.py +1 -1
  36. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/packaged_model_request.py +1 -1
  37. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/resource_profile.py +1 -1
  38. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/resources_template.py +1 -1
  39. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/role.py +1 -1
  40. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/role_assignment.py +1 -1
  41. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/role_assignments.py +1 -1
  42. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/security.py +1 -1
  43. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/success_response.py +1 -1
  44. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/trained_model_registry.py +5 -3
  45. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/trained_model_registry_request.py +5 -3
  46. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/user.py +1 -1
  47. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/user_patch_request.py +1 -1
  48. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/models/user_request.py +1 -1
  49. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/rest.py +1 -1
  50. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/setup.py +1 -1
  51. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/README.md +0 -0
  52. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/__init__.py +0 -0
  53. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/__init__.py +0 -0
  54. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/__main__.py +0 -0
  55. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/_util.py +0 -0
  56. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/deployment.py +0 -0
  57. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/errors.py +0 -0
  58. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/model.py +0 -0
  59. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/render.py +0 -0
  60. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/role.py +0 -0
  61. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/sso.py +0 -0
  62. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/test/conftest.py +0 -0
  63. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/user.py +0 -0
  64. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/cli/version.py +0 -0
  65. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/common/__init__.py +0 -0
  66. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/common/api/__init__.py +0 -0
  67. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/common/api/_util.py +0 -0
  68. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/common/api/authentication.py +0 -0
  69. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/common/api/certs.py +0 -0
  70. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/common/api/errors.py +0 -0
  71. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/common/api/request.py +0 -0
  72. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/common/check.py +0 -0
  73. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/common/constants.py +0 -0
  74. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/common/declarative_argparse.py +0 -0
  75. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/common/requests.py +0 -0
  76. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/common/util.py +0 -0
  77. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli/util.py +0 -0
  78. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli_sdk.egg-info/SOURCES.txt +0 -0
  79. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli_sdk.egg-info/dependency_links.txt +0 -0
  80. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli_sdk.egg-info/entry_points.txt +0 -0
  81. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli_sdk.egg-info/not-zip-safe +0 -0
  82. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli_sdk.egg-info/requires.txt +0 -0
  83. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aioli_sdk.egg-info/top_level.txt +0 -0
  84. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/api/__init__.py +0 -0
  85. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/api_response.py +0 -0
  86. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/aiolirest/py.typed +0 -0
  87. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/pyproject.toml +0 -0
  88. {aioli_sdk-0.2.4.dev3 → aioli_sdk-0.2.4.dev6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aioli-sdk
3
- Version: 0.2.4.dev3
3
+ Version: 0.2.4.dev6
4
4
  Summary: Aioli (AI OnLine Inference), a platform for deploying AI models at scale.
5
5
  Home-page: https://github.com/determined-ai/aioli
6
6
  Author: HPE AI Solutions
@@ -1,2 +1,2 @@
1
1
  # © Copyright 2024 Hewlett Packard Enterprise Development LP
2
- __version__ = "0.2.4-dev3"
2
+ __version__ = "0.2.4-dev6"
@@ -6,7 +6,7 @@ import socket
6
6
  import ssl
7
7
  import sys
8
8
  from argparse import ArgumentDefaultsHelpFormatter, ArgumentError, ArgumentParser
9
- from typing import List, Sequence, Union, cast
9
+ from typing import List, Optional, Sequence, Union, cast
10
10
 
11
11
  import argcomplete
12
12
  import argcomplete.completers
@@ -184,17 +184,27 @@ def main(
184
184
  if "Client sent an HTTP request to an HTTPS server" in e.body:
185
185
  die(f"Ensure the controller address includes 'https://': {e.reason}: {e.body}")
186
186
  else:
187
- decoder = json.JSONDecoder()
188
- body_obj = decoder.decode(e.body)
189
- message: str = body_obj["message"]
187
+ message = extract_message(e)
190
188
  if message is not None and len(message) > 1:
191
189
  # The first character of the message may/should be capitalized.
192
190
  # In this context however it looks better if in lower case.
193
191
  message = message[0].lower() + message[1 : len(message)]
194
192
  die(f"Failed to {parsed_args.func.__name__}: {message}")
195
193
 
196
- die(f"Failed on REST API operation {e.status}: {e.reason}: {e.body}")
194
+ die(
195
+ f"Failed on REST API operation, status {e.status}, reason: "
196
+ f"{e.reason}, body: {e.body}"
197
+ )
197
198
  except Exception:
198
199
  die(f"Failed to {parsed_args.func.__name__}", always_print_traceback=True)
199
200
  except KeyboardInterrupt:
200
201
  die("Interrupting...", exit_code=3)
202
+
203
+
204
+ def extract_message(e: ApiException) -> Optional[str]:
205
+ decoder = json.JSONDecoder()
206
+ try:
207
+ body_obj = decoder.decode(e.body)
208
+ return str(body_obj["message"])
209
+ except json.JSONDecodeError:
210
+ return None
@@ -77,6 +77,7 @@ def create(args: Namespace) -> None:
77
77
  endpointUrl=args.endpoint_url,
78
78
  secretKey=args.secret_key,
79
79
  type=args.type,
80
+ insecureHttps=args.insecure_https,
80
81
  )
81
82
  api_instance.registries_post(r)
82
83
 
@@ -200,6 +201,11 @@ main_cmd = Cmd(
200
201
  Arg("--access-key", help="S3 access key/username"),
201
202
  Arg("--secret-key", help="secret key/password", required="true"),
202
203
  Arg("--endpoint-url", help="S3 endpoint URL"),
204
+ Arg(
205
+ "--insecure-https",
206
+ help="Allow insecure HTTPS connections to S3",
207
+ action="store_true", # prefer argparse.BooleanOptionalAction
208
+ ),
203
209
  ],
204
210
  ),
205
211
  # Show command.
@@ -235,6 +241,11 @@ main_cmd = Cmd(
235
241
  Arg("--access-key", help="S3 access key/username"),
236
242
  Arg("--secret-key", help="S3 secret key/password"),
237
243
  Arg("--endpoint-url", help="S3 endpoint URL"),
244
+ Arg(
245
+ "--insecure-https",
246
+ help="Allow insecure HTTPS connections to S3",
247
+ action="store_true", # prefer argparse.BooleanOptionalAction
248
+ ),
238
249
  ],
239
250
  ),
240
251
  Cmd(
@@ -3,6 +3,8 @@ import csv
3
3
  import os
4
4
  import subprocess
5
5
 
6
+ import yaml
7
+
6
8
 
7
9
  class TestCli:
8
10
  testdir = os.path.dirname(os.path.realpath(__file__))
@@ -33,6 +35,50 @@ class TestCli:
33
35
  actual = subprocess.check_output(["aioli", "registry", "list"]).decode("utf-8")
34
36
  assert actual == expected
35
37
 
38
+ def test_registry_create_and_update_insecure(self, setup_login: None) -> None:
39
+ # Create a registry with insecure-https and test for expected values
40
+ assert (
41
+ os.system(
42
+ "aioli registry create --type s3 --access-key minioadmin "
43
+ "--secret-key minioadmin --bucket demo-bento-registry "
44
+ "--endpoint-url http://10.30.89.14:30008 --insecure-https bento-registry-insecure"
45
+ )
46
+ == 0
47
+ )
48
+
49
+ # Newly created registry entry without id/modified as dict
50
+ expected = yaml.safe_load(
51
+ "accessKey: minioadmin\nbucket: demo-bento-registry\nendpointUrl: "
52
+ "http://10.30.89.14:30008\ninsecureHttps: true\n"
53
+ "name: bento-registry-insecure\nsecretKey: '**********'\ntype: s3\n\n"
54
+ )
55
+ actualstr = subprocess.check_output(
56
+ ["aioli", "registry", "show", "bento-registry-insecure"]
57
+ ).decode("utf-8")
58
+ actual = yaml.safe_load(actualstr)
59
+ del actual["id"]
60
+ del actual["modifiedAt"]
61
+ assert actual == expected
62
+
63
+ # Update to secure
64
+ if False:
65
+ # This is blocked until CI is at python 3.9 -- then update
66
+ # registry.py to use action=argparse.BoolOptionalAction
67
+ assert (
68
+ os.system("aioli registry update --no-insecure-https bento-registry-insecure") == 0
69
+ )
70
+ expected["insecureHttps"] = False
71
+ actual = subprocess.check_output(
72
+ ["aioli", "registry", "show", "bento-registry-insecure"]
73
+ ).decode("utf-8")
74
+ actual = yaml.safe_load(actual)
75
+ del actual["id"]
76
+ del actual["modifiedAt"]
77
+ assert actual == expected
78
+
79
+ # Cleanup test registry
80
+ assert os.system("aioli registry delete bento-registry-insecure") == 0
81
+
36
82
  def test_registry_create(self, setup_login: None) -> None:
37
83
  # Create a registry entry and test for success
38
84
  assert (
@@ -133,6 +179,7 @@ class TestCli:
133
179
  ' "accessKey": "minioadmin",\n'
134
180
  ' "bucket": "demo-bento-registry",\n'
135
181
  ' "endpointUrl": "http://10.30.89.14:30008/",\n'
182
+ ' "insecureHttps": false,\n'
136
183
  ' "name": "bento-registry",\n'
137
184
  ' "secretKey": "**********",\n'
138
185
  ' "type": "s3"\n'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aioli-sdk
3
- Version: 0.2.4.dev3
3
+ Version: 0.2.4.dev6
4
4
  Summary: Aioli (AI OnLine Inference), a platform for deploying AI models at scale.
5
5
  Home-page: https://github.com/determined-ai/aioli
6
6
  Author: HPE AI Solutions
@@ -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-dev3
10
+ The version of the OpenAPI document: 0.2.4-dev6
11
11
  Contact: community@determined-ai
12
12
  Generated by OpenAPI Generator (https://openapi-generator.tech)
13
13
 
@@ -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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3\n"\
392
+ "Version of the API: 0.2.4-dev6\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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
9
+ The version of the OpenAPI document: 0.2.4-dev6
10
10
  Contact: community@determined-ai
11
11
  Generated by OpenAPI Generator (https://openapi-generator.tech)
12
12
 
@@ -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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
9
9
  Contact: community@determined-ai
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -20,7 +20,7 @@ import json
20
20
 
21
21
 
22
22
  from typing import Any, ClassVar, Dict, List, Optional
23
- from pydantic import BaseModel, StrictStr
23
+ from pydantic import BaseModel, StrictBool, StrictStr
24
24
  from pydantic import Field
25
25
  try:
26
26
  from typing import Self
@@ -35,11 +35,12 @@ class TrainedModelRegistry(BaseModel):
35
35
  bucket: Optional[StrictStr] = Field(default=None, description="The bucket or organization name. * `s3` - The required S3 bucket name. * `ngc` - The required NGC org name.")
36
36
  endpoint_url: Optional[StrictStr] = Field(default=None, description="The registry endpoint (host): * `s3` - The S3 registry endpoint. Required. * `openllm` - The huggingface.co-compatible endpoint (default https://huggingface.co). * `ngc` - The NVIDIA NGC-compatible api endpoint (default https://api.ngc.nvidia.com).", alias="endpointUrl")
37
37
  id: Optional[StrictStr] = Field(default=None, description="The ID of the model registry. This is a read-only field and is automatically assigned on creation.")
38
+ insecure_https: Optional[StrictBool] = Field(default=None, description="For https endpoints, the server certificate will be accepted without validation.", alias="insecureHttps")
38
39
  modified_at: Optional[StrictStr] = Field(default=None, description="Date-time of last modification of the registry. This is a read-only field and is automatically updated.", alias="modifiedAt")
39
40
  name: StrictStr = Field(description="The name of the registry. Must begin with a letter, but may contain letters, numbers, and hyphen.")
40
41
  secret_key: StrictStr = Field(description="The secret key is the password, secret key, or access token for the registry. * `s3` - The secret key for the S3 bucket. * `openllm` - The access token for huggingface.co and is supplied to the launched container via the `HF_TOKEN` environment variable.bucket. * `ngc` - The NVIDIA NGC apikey.", alias="secretKey")
41
42
  type: StrictStr = Field(description="The type of this model registry. Must be one of the values: (s3, http, openllm, ngc). * `s3` - Configuration to enable access to an s3 bucket. * `openllm` - Configuration to enable direct download of OpenLLM models from huggingface.co. Provide your access token in the `secretKey` field. * `ngc` - Configuration to enable direct download from the NVIDA NGC: AI Development Catalog. * `http` - Not yet supported. Configuration to enable model download from a protected http endpoint that requires login.")
42
- __properties: ClassVar[List[str]] = ["accessKey", "bucket", "endpointUrl", "id", "modifiedAt", "name", "secretKey", "type"]
43
+ __properties: ClassVar[List[str]] = ["accessKey", "bucket", "endpointUrl", "id", "insecureHttps", "modifiedAt", "name", "secretKey", "type"]
43
44
 
44
45
  model_config = {
45
46
  "populate_by_name": True,
@@ -93,6 +94,7 @@ class TrainedModelRegistry(BaseModel):
93
94
  "bucket": obj.get("bucket"),
94
95
  "endpointUrl": obj.get("endpointUrl"),
95
96
  "id": obj.get("id"),
97
+ "insecureHttps": obj.get("insecureHttps"),
96
98
  "modifiedAt": obj.get("modifiedAt"),
97
99
  "name": obj.get("name"),
98
100
  "secretKey": obj.get("secretKey"),
@@ -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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
9
9
  Contact: community@determined-ai
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -20,7 +20,7 @@ import json
20
20
 
21
21
 
22
22
  from typing import Any, ClassVar, Dict, List, Optional
23
- from pydantic import BaseModel, StrictStr
23
+ from pydantic import BaseModel, StrictBool, StrictStr
24
24
  from pydantic import Field
25
25
  try:
26
26
  from typing import Self
@@ -34,11 +34,12 @@ class TrainedModelRegistryRequest(BaseModel):
34
34
  access_key: Optional[StrictStr] = Field(default=None, description="The access key, username or team name for the registry. * `s3` - The access key/username. * `ngc` - The optional NGC team name.", alias="accessKey")
35
35
  bucket: Optional[StrictStr] = Field(default=None, description="The bucket or organization name. * `s3` - The required S3 bucket name. * `ngc` - The required NGC org name.")
36
36
  endpoint_url: Optional[StrictStr] = Field(default=None, description="The registry endpoint (host): * `s3` - The S3 registry endpoint. Required. * `openllm` - The huggingface.co-compatible endpoint (default https://huggingface.co). * `ngc` - The NVIDIA NGC-compatible api endpoint (default https://api.ngc.nvidia.com).", alias="endpointUrl")
37
+ insecure_https: Optional[StrictBool] = Field(default=None, description="For https endpoints, the server certificate will be accepted without validation.", alias="insecureHttps")
37
38
  modified_at: Optional[StrictStr] = Field(default=None, description="Date-time of last modification of the registry. This is a read-only field and is automatically updated.", alias="modifiedAt")
38
39
  name: StrictStr = Field(description="The name of the registry. Must begin with a letter, but may contain letters, numbers, and hyphen.")
39
40
  secret_key: StrictStr = Field(description="The secret key is the password, secret key, or access token for the registry. * `s3` - The secret key for the S3 bucket. * `openllm` - The access token for huggingface.co and is supplied to the launched container via the `HF_TOKEN` environment variable.bucket. * `ngc` - The requied NVIDIA NGC apikey.", alias="secretKey")
40
41
  type: StrictStr = Field(description="The type of this model registry. Must be one of the values: (s3, http, openllm, ngc). * `s3` - Configuration to enable access to an s3 bucket. * `openllm` - Configuration to enable direct download of OpenLLM models from huggingface.co. Provide your access token in the `secretKey` field. * `ngc` - Configuration to enable direct download from the NVIDA NGC: AI Development Catalog. * `http` - Not yet supported. Configuration to enable model download from a protected http endpoint that requires login.")
41
- __properties: ClassVar[List[str]] = ["accessKey", "bucket", "endpointUrl", "modifiedAt", "name", "secretKey", "type"]
42
+ __properties: ClassVar[List[str]] = ["accessKey", "bucket", "endpointUrl", "insecureHttps", "modifiedAt", "name", "secretKey", "type"]
42
43
 
43
44
  model_config = {
44
45
  "populate_by_name": True,
@@ -91,6 +92,7 @@ class TrainedModelRegistryRequest(BaseModel):
91
92
  "accessKey": obj.get("accessKey"),
92
93
  "bucket": obj.get("bucket"),
93
94
  "endpointUrl": obj.get("endpointUrl"),
95
+ "insecureHttps": obj.get("insecureHttps"),
94
96
  "modifiedAt": obj.get("modifiedAt"),
95
97
  "name": obj.get("name"),
96
98
  "secretKey": obj.get("secretKey"),
@@ -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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
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-dev3
8
+ The version of the OpenAPI document: 0.2.4-dev6
9
9
  Contact: community@determined-ai
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -6,7 +6,7 @@ with open("README.md", "r") as readme:
6
6
 
7
7
  setuptools.setup(
8
8
  name="aioli-sdk",
9
- version="0.2.4-dev3",
9
+ version="0.2.4-dev6",
10
10
  author="HPE AI Solutions",
11
11
  # author_email="hello@determined.ai",
12
12
  url="https://github.com/determined-ai/aioli",
File without changes
File without changes