aioli-sdk 1.3.0.dev29__tar.gz → 1.3.0.dev31__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 (106) hide show
  1. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/PKG-INFO +1 -1
  2. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/__version__.py +1 -1
  3. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/project.py +65 -12
  4. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/test/test_cli.py +8 -0
  5. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/user.py +12 -1
  6. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli_sdk.egg-info/PKG-INFO +1 -1
  7. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/__init__.py +1 -1
  8. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/api/authentication_api.py +1 -1
  9. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/api/deployments_api.py +1 -1
  10. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/api/information_api.py +1 -1
  11. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/api/packaged_models_api.py +1 -1
  12. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/api/projects_api.py +1 -1
  13. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/api/registries_api.py +1 -1
  14. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/api/roles_api.py +1 -1
  15. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/api/templates_api.py +1 -1
  16. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/api/tokens_api.py +1 -1
  17. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/api/users_api.py +1 -1
  18. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/api_client.py +1 -1
  19. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/configuration.py +2 -2
  20. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/exceptions.py +1 -1
  21. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/__init__.py +1 -1
  22. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/auto_scaling_template.py +1 -1
  23. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/auto_scaling_template_request.py +1 -1
  24. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/autoscaling.py +1 -1
  25. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/configuration_resources.py +1 -1
  26. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/controller_config.py +1 -1
  27. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/controller_status.py +1 -1
  28. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/deployment.py +1 -1
  29. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/deployment_model_version.py +1 -1
  30. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/deployment_priority.py +1 -1
  31. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/deployment_request.py +1 -1
  32. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/deployment_state.py +1 -1
  33. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/deployment_token.py +1 -1
  34. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/deployment_token_patch_request.py +1 -1
  35. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/deployment_token_request.py +1 -1
  36. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/error_response.py +1 -1
  37. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/event_info.py +1 -1
  38. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/ezua_info.py +1 -1
  39. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/failure_info.py +1 -1
  40. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/login_request.py +1 -1
  41. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/login_response.py +1 -1
  42. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/model_auth_token.py +1 -1
  43. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/model_response.py +1 -1
  44. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/observability.py +1 -1
  45. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/packaged_model.py +1 -1
  46. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/packaged_model_request.py +1 -1
  47. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/project.py +1 -1
  48. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/project_request.py +1 -1
  49. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/resource_profile.py +1 -1
  50. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/resources_template.py +1 -1
  51. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/resources_template_request.py +1 -1
  52. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/role.py +8 -4
  53. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/role_assignment.py +6 -4
  54. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/role_assignments.py +1 -1
  55. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/security.py +1 -1
  56. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/success_response.py +1 -1
  57. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/telemetry_info.py +1 -1
  58. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/trained_model_registry.py +1 -1
  59. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/trained_model_registry_request.py +5 -3
  60. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/user.py +1 -1
  61. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/user_patch_request.py +1 -1
  62. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/user_request.py +1 -1
  63. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/models/user_session.py +1 -1
  64. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/rest.py +1 -1
  65. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/setup.py +1 -1
  66. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/README.md +0 -0
  67. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/__init__.py +0 -0
  68. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/__init__.py +0 -0
  69. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/__main__.py +0 -0
  70. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/_util.py +0 -0
  71. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/cli.py +0 -0
  72. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/deployment.py +0 -0
  73. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/errors.py +0 -0
  74. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/model.py +0 -0
  75. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/registry.py +0 -0
  76. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/render.py +0 -0
  77. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/role.py +0 -0
  78. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/sso.py +0 -0
  79. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/template.py +0 -0
  80. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/test/conftest.py +0 -0
  81. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/token.py +0 -0
  82. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/cli/version.py +0 -0
  83. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/common/__init__.py +0 -0
  84. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/common/api/__init__.py +0 -0
  85. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/common/api/_util.py +0 -0
  86. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/common/api/authentication.py +0 -0
  87. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/common/api/certs.py +0 -0
  88. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/common/api/errors.py +0 -0
  89. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/common/api/request.py +0 -0
  90. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/common/check.py +0 -0
  91. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/common/constants.py +0 -0
  92. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/common/declarative_argparse.py +0 -0
  93. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/common/requests.py +0 -0
  94. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/common/util.py +0 -0
  95. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli/util.py +0 -0
  96. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli_sdk.egg-info/SOURCES.txt +0 -0
  97. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli_sdk.egg-info/dependency_links.txt +0 -0
  98. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli_sdk.egg-info/entry_points.txt +0 -0
  99. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli_sdk.egg-info/not-zip-safe +0 -0
  100. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli_sdk.egg-info/requires.txt +0 -0
  101. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aioli_sdk.egg-info/top_level.txt +0 -0
  102. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/api/__init__.py +0 -0
  103. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/api_response.py +0 -0
  104. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/aiolirest/py.typed +0 -0
  105. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/pyproject.toml +0 -0
  106. {aioli_sdk-1.3.0.dev29 → aioli_sdk-1.3.0.dev31}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aioli-sdk
3
- Version: 1.3.0.dev29
3
+ Version: 1.3.0.dev31
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__ = "1.3.0-dev29"
2
+ __version__ = "1.3.0-dev31"
@@ -10,6 +10,7 @@ from aioli.common.api.errors import NotFoundException
10
10
  from aioli.common.declarative_argparse import Arg, Cmd, Group
11
11
  from aiolirest.models.project import Project
12
12
  from aiolirest.models.project_request import ProjectRequest
13
+ from aiolirest.models.user_session import UserSession
13
14
 
14
15
 
15
16
  @authentication.required
@@ -108,15 +109,49 @@ def lookup_project(name: str, api: aiolirest.ProjectsApi) -> Project:
108
109
  raise NotFoundException(f"Project {name} not found")
109
110
 
110
111
 
112
+ def lookup_project_by_id(project_id: str, api: aiolirest.ProjectsApi) -> Project:
113
+ p = api.projects_id_get(project_id)
114
+ if p.id != project_id:
115
+ NotFoundException(f"Project {project_id} not found")
116
+ return p
117
+
118
+
119
+ @authentication.required
120
+ def activate_project(args: Namespace) -> None:
121
+ with cli.setup_session(args) as session:
122
+ api_instance = aiolirest.AuthenticationApi(session)
123
+ user_session: UserSession = UserSession(project=args.name)
124
+ api_instance.session_put(user_session=user_session)
125
+
126
+
127
+ @authentication.required
128
+ def clear_project(args: Namespace) -> None:
129
+ with cli.setup_session(args) as session:
130
+ api_instance = aiolirest.AuthenticationApi(session)
131
+ user_session: UserSession = UserSession(project=None)
132
+ api_instance.session_put(user_session=user_session)
133
+
134
+
135
+ @authentication.required
136
+ def display_project(args: Namespace) -> None:
137
+ with cli.setup_session(args) as session:
138
+ api_instance = aiolirest.AuthenticationApi(session)
139
+ user_session: UserSession = api_instance.session_get()
140
+ if user_session.project is None or user_session.project == "":
141
+ print("No project set")
142
+ return
143
+ print(lookup_project_by_id(user_session.project, aiolirest.ProjectsApi(session)).name)
144
+
145
+
111
146
  main_cmd = Cmd(
112
147
  "projects p|roject",
113
148
  None,
114
- "manage projects",
149
+ "Manage projects",
115
150
  [
116
151
  Cmd(
117
152
  "list ls",
118
153
  list_projects,
119
- "list projects",
154
+ "list all projects",
120
155
  [
121
156
  Group(
122
157
  Arg("--csv", action="store_true", help="print as CSV"),
@@ -129,12 +164,12 @@ main_cmd = Cmd(
129
164
  Cmd(
130
165
  "create",
131
166
  create_project,
132
- "create a project",
167
+ "create a new project",
133
168
  [
134
169
  Arg(
135
170
  "name",
136
- help="The name of the project. Must begin with a letter, but may "
137
- "contain letters, numbers, and hyphen",
171
+ help="The name of the project. Must begin with a letter and may "
172
+ "contain letters, numbers, and hyphens.",
138
173
  ),
139
174
  Arg("--description", help="The description of the project"),
140
175
  Arg("--owner", help="The owner of the project"),
@@ -143,16 +178,16 @@ main_cmd = Cmd(
143
178
  Cmd(
144
179
  "update",
145
180
  update_project,
146
- "modify a project",
181
+ "update an existing project",
147
182
  [
148
- Arg("projectname", help="The name of the project"),
183
+ Arg("projectname", help="The current name of the project"),
149
184
  Arg(
150
185
  "--name",
151
- help="The new name of the project. Must begin with a letter, but may "
152
- "contain letters, numbers, and hyphen",
186
+ help="The new name of the project. Must begin with a letter and may "
187
+ "contain letters, numbers, and hyphens.",
153
188
  ),
154
189
  Arg("--description", help="The new description of the project"),
155
- Arg("--owner", help="The owner of the project"),
190
+ Arg("--owner", help="The new owner of the project"),
156
191
  ],
157
192
  ),
158
193
  Cmd(
@@ -160,13 +195,13 @@ main_cmd = Cmd(
160
195
  delete_project,
161
196
  "delete a project",
162
197
  [
163
- Arg("name", help="The name of the project"),
198
+ Arg("name", help="The name of the project to delete"),
164
199
  ],
165
200
  ),
166
201
  Cmd(
167
202
  "show",
168
203
  show_project,
169
- "show a project",
204
+ "show details of a project",
170
205
  [
171
206
  Arg("name", help="The name of the project"),
172
207
  Group(
@@ -175,6 +210,24 @@ main_cmd = Cmd(
175
210
  ),
176
211
  ],
177
212
  ),
213
+ Cmd(
214
+ "set|-for-session",
215
+ activate_project,
216
+ "set the project for the current session, limiting future commands to show and affect "
217
+ "resources from that project only.",
218
+ [
219
+ Arg("name", help="The name of the project"),
220
+ ],
221
+ ),
222
+ Cmd(
223
+ "clear|-for-session",
224
+ clear_project,
225
+ "clear the project from the current session. Display all resources. New resources "
226
+ "will be created in the default project limiting future commands to show and affect "
227
+ "resources from the default project only.",
228
+ [],
229
+ ),
230
+ Cmd("display|-for-session", display_project, "display the current session project", []),
178
231
  ],
179
232
  )
180
233
 
@@ -1153,6 +1153,14 @@ class TestCli:
1153
1153
  actual = subprocess.check_output(["aioli", "user", "list"]).decode("utf-8")
1154
1154
  assert (actual.find(expected)) > 0
1155
1155
 
1156
+ def test_user_delete(self, setup_login: None) -> None:
1157
+ assert os.system("aioli user create testuser2 --password passwd") == 0
1158
+ # Delete user and test for expected values
1159
+ assert os.system("aioli user delete testuser2") == 0
1160
+ actual = subprocess.check_output(["aioli", "user", "list"]).decode("utf-8")
1161
+ expected = "testuser2"
1162
+ assert (actual.find(expected)) < 0 # Expect to be not found
1163
+
1156
1164
  def test_template_resource_create_and_update(self, setup_login: None) -> None:
1157
1165
  # Create a resource template
1158
1166
  assert (
@@ -220,8 +220,16 @@ def whoami(parsed_args: Namespace) -> None:
220
220
  print("You are logged in as user '{}'".format(user.username))
221
221
 
222
222
 
223
- # fmt: off
223
+ @authentication.required
224
+ def delete(parsed_args: Namespace) -> None:
225
+ with cli.setup_session(parsed_args) as session:
226
+ api_instance = aiolirest.UsersApi(session)
227
+ found = get_user_by_name(parsed_args.username, api_instance)
228
+ assert found.id is not None
229
+ api_instance.users_id_delete(int(found.id))
224
230
 
231
+
232
+ # fmt: off
225
233
  args_description = [
226
234
  Cmd("u|ser", None, "manage users", [
227
235
  Cmd("list ls", list_users, "list users",
@@ -279,6 +287,9 @@ args_description = [
279
287
  help="set user as active/inactive",
280
288
  ),
281
289
  ]),
290
+ Cmd("delete", delete, "delete user", [
291
+ Arg("username", help="name of user to delete")
292
+ ]),
282
293
  ])
283
294
  ] # type: List[Any]
284
295
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aioli-sdk
3
- Version: 1.3.0.dev29
3
+ Version: 1.3.0.dev31
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: 1.3.0-dev29
10
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29\n"\
392
+ "Version of the API: 1.3.0-dev31\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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
9
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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, StrictInt, StrictStr
23
+ from pydantic import BaseModel, StrictBool, StrictInt, StrictStr
24
24
  from pydantic import Field
25
25
  try:
26
26
  from typing import Self
@@ -31,9 +31,11 @@ class Role(BaseModel):
31
31
  """
32
32
  Role describes defined role.
33
33
  """ # noqa: E501
34
+ var_global: Optional[StrictBool] = Field(default=None, description="Role must be applied globally without a project scope.", alias="global")
34
35
  id: Optional[StrictInt] = Field(default=None, description="Role ID.")
35
36
  role_name: Optional[StrictStr] = Field(default=None, description="Role Name.", alias="roleName")
36
- __properties: ClassVar[List[str]] = ["id", "roleName"]
37
+ scoped: Optional[StrictBool] = Field(default=None, description="Role must be assigned with a specific project scope.")
38
+ __properties: ClassVar[List[str]] = ["global", "id", "roleName", "scoped"]
37
39
 
38
40
  model_config = {
39
41
  "populate_by_name": True,
@@ -83,8 +85,10 @@ class Role(BaseModel):
83
85
  return cls.model_validate(obj)
84
86
 
85
87
  _obj = cls.model_validate({
88
+ "global": obj.get("global"),
86
89
  "id": obj.get("id"),
87
- "roleName": obj.get("roleName")
90
+ "roleName": obj.get("roleName"),
91
+ "scoped": obj.get("scoped")
88
92
  })
89
93
  return _obj
90
94
 
@@ -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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
9
9
  Contact: community@determined-ai
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -19,7 +19,7 @@ import re # noqa: F401
19
19
  import json
20
20
 
21
21
 
22
- from typing import Any, ClassVar, Dict, List
22
+ from typing import Any, ClassVar, Dict, List, Optional
23
23
  from pydantic import BaseModel, StrictStr
24
24
  from pydantic import Field
25
25
  try:
@@ -31,9 +31,10 @@ class RoleAssignment(BaseModel):
31
31
  """
32
32
  RoleAssignment describes a user-role assignment.
33
33
  """ # noqa: E501
34
- role_name: StrictStr = Field(description="Role Name. Must be one of the values: (Admin, Viewer, Maintainer, Robot).", alias="roleName")
34
+ project: Optional[StrictStr] = Field(default=None, description="Optional project name or ID specifying the scope of the role assignment. An empty value indicates a global role assignment.")
35
+ role_name: StrictStr = Field(description="Role Name. Must be one of the values: (Admin, Viewer, Maintainer, Robot, CacheManager, ProjectCreator, ProjectOwner, ProjectWriter, ProjectViewer).", alias="roleName")
35
36
  user_name: StrictStr = Field(description="User Name.", alias="userName")
36
- __properties: ClassVar[List[str]] = ["roleName", "userName"]
37
+ __properties: ClassVar[List[str]] = ["project", "roleName", "userName"]
37
38
 
38
39
  model_config = {
39
40
  "populate_by_name": True,
@@ -83,6 +84,7 @@ class RoleAssignment(BaseModel):
83
84
  return cls.model_validate(obj)
84
85
 
85
86
  _obj = cls.model_validate({
87
+ "project": obj.get("project"),
86
88
  "roleName": obj.get("roleName"),
87
89
  "userName": obj.get("userName")
88
90
  })
@@ -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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
9
9
  Contact: community@determined-ai
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -37,9 +37,10 @@ class TrainedModelRegistryRequest(BaseModel):
37
37
  insecure_https: Optional[StrictBool] = Field(default=None, description="For https endpoints, the server certificate will be accepted without validation.", alias="insecureHttps")
38
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")
39
39
  name: StrictStr = Field(description="The name of the registry. Must begin with a letter, but may contain letters, numbers, and hyphen.")
40
+ project: Optional[StrictStr] = Field(default=None, description="The type of this model registry. Must be one of the values: (s3, http, openllm, ngc, pfs). * `s3` - Configuration to enable direct model download from an s3 bucket. * `openllm` - Configuration to enable direct model download of OpenLLM models from huggingface.co. * `ngc` - Configuration to enable direct model download from the NVIDIA NGC: AI Development Catalog. * `pfs` - Configuration to enable direct model download from an HPE MLDM Pachyderm File System. The optional name or ID of the containing project. If unspecified, the project is determined by the project in the session, otherwise it uses the default project configured for the user.")
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. * `ngc` - The required NVIDIA NGC apikey. * `pfs` - The required authentication token (e.g. c91ab42a10a...).", alias="secretKey")
41
- type: StrictStr = Field(description="The type of this model registry. Must be one of the values: (s3, http, openllm, ngc, pfs). * `s3` - Configuration to enable direct model download from an s3 bucket. * `openllm` - Configuration to enable direct model download of OpenLLM models from huggingface.co. * `ngc` - Configuration to enable direct model download from the NVIDIA NGC: AI Development Catalog. * `pfs` - Configuration to enable direct model download from an HPE MLDM Pachyderm File System.")
42
- __properties: ClassVar[List[str]] = ["accessKey", "bucket", "endpointUrl", "insecureHttps", "modifiedAt", "name", "secretKey", "type"]
42
+ type: StrictStr
43
+ __properties: ClassVar[List[str]] = ["accessKey", "bucket", "endpointUrl", "insecureHttps", "modifiedAt", "name", "project", "secretKey", "type"]
43
44
 
44
45
  model_config = {
45
46
  "populate_by_name": True,
@@ -95,6 +96,7 @@ class TrainedModelRegistryRequest(BaseModel):
95
96
  "insecureHttps": obj.get("insecureHttps"),
96
97
  "modifiedAt": obj.get("modifiedAt"),
97
98
  "name": obj.get("name"),
99
+ "project": obj.get("project"),
98
100
  "secretKey": obj.get("secretKey"),
99
101
  "type": obj.get("type")
100
102
  })
@@ -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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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: 1.3.0-dev29
8
+ The version of the OpenAPI document: 1.3.0-dev31
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="1.3.0-dev29",
9
+ version="1.3.0-dev31",
10
10
  author="HPE AI Solutions",
11
11
  # author_email="hello@determined.ai",
12
12
  url="https://github.com/determined-ai/aioli",