anyscale 0.24.87__py3-none-any.whl → 0.24.88__py3-none-any.whl
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.
- anyscale/__init__.py +10 -0
- anyscale/_private/anyscale_client/anyscale_client.py +10 -0
- anyscale/_private/anyscale_client/common.py +9 -0
- anyscale/_private/anyscale_client/fake_anyscale_client.py +28 -0
- anyscale/_private/docgen/__main__.py +12 -0
- anyscale/_private/docgen/generator.py +1 -0
- anyscale/client/README.md +4 -1
- anyscale/client/openapi_client/__init__.py +3 -1
- anyscale/client/openapi_client/api/default_api.py +191 -5
- anyscale/client/openapi_client/models/__init__.py +3 -1
- anyscale/client/openapi_client/models/admin_create_user.py +255 -0
- anyscale/client/openapi_client/models/admin_created_user.py +281 -0
- anyscale/client/openapi_client/models/{paging_context.py → admincreateduser_list_response.py} +38 -63
- anyscale/client/openapi_client/models/aggregated_usage_query.py +1 -29
- anyscale/commands/command_examples.py +6 -0
- anyscale/commands/user_commands.py +49 -0
- anyscale/scripts.py +2 -0
- anyscale/user/__init__.py +35 -0
- anyscale/user/_private/user_sdk.py +32 -0
- anyscale/user/commands.py +42 -0
- anyscale/user/models.py +191 -0
- anyscale/version.py +1 -1
- {anyscale-0.24.87.dist-info → anyscale-0.24.88.dist-info}/METADATA +1 -1
- {anyscale-0.24.87.dist-info → anyscale-0.24.88.dist-info}/RECORD +29 -22
- {anyscale-0.24.87.dist-info → anyscale-0.24.88.dist-info}/LICENSE +0 -0
- {anyscale-0.24.87.dist-info → anyscale-0.24.88.dist-info}/NOTICE +0 -0
- {anyscale-0.24.87.dist-info → anyscale-0.24.88.dist-info}/WHEEL +0 -0
- {anyscale-0.24.87.dist-info → anyscale-0.24.88.dist-info}/entry_points.txt +0 -0
- {anyscale-0.24.87.dist-info → anyscale-0.24.88.dist-info}/top_level.txt +0 -0
anyscale/__init__.py
CHANGED
|
@@ -27,6 +27,7 @@ from anyscale import (
|
|
|
27
27
|
llm,
|
|
28
28
|
schedule,
|
|
29
29
|
service,
|
|
30
|
+
user,
|
|
30
31
|
)
|
|
31
32
|
from anyscale._private.anyscale_client import AnyscaleClient, AnyscaleClientInterface
|
|
32
33
|
from anyscale._private.sdk.base_sdk import Timer
|
|
@@ -43,6 +44,7 @@ from anyscale.llm import LLMSDK
|
|
|
43
44
|
from anyscale.schedule import ScheduleSDK
|
|
44
45
|
from anyscale.sdk.anyscale_client.sdk import AnyscaleSDK
|
|
45
46
|
from anyscale.service import ServiceSDK
|
|
47
|
+
from anyscale.user import UserSDK
|
|
46
48
|
from anyscale.workspace import WorkspaceSDK
|
|
47
49
|
|
|
48
50
|
|
|
@@ -108,6 +110,7 @@ class Anyscale:
|
|
|
108
110
|
self._schedule_sdk = ScheduleSDK(client=self._anyscale_client)
|
|
109
111
|
self._image_sdk = ImageSDK(client=self._anyscale_client)
|
|
110
112
|
self._llm_sdk = LLMSDK(client=self._anyscale_client)
|
|
113
|
+
self._user_sdk = UserSDK(client=self._anyscale_client)
|
|
111
114
|
self._workspace_sdk = WorkspaceSDK(client=self._anyscale_client)
|
|
112
115
|
|
|
113
116
|
@classmethod
|
|
@@ -132,6 +135,9 @@ class Anyscale:
|
|
|
132
135
|
client=client, logger=logger, timer=timer,
|
|
133
136
|
)
|
|
134
137
|
obj._image_sdk = ImageSDK(client=client, logger=logger) # noqa: SLF001
|
|
138
|
+
obj._user_sdk = UserSDK( # noqa: SLF001
|
|
139
|
+
client=client, logger=logger, timer=timer
|
|
140
|
+
)
|
|
135
141
|
obj._workspace_sdk = WorkspaceSDK( # noqa: SLF001
|
|
136
142
|
client=client, logger=logger, timer=timer,
|
|
137
143
|
)
|
|
@@ -165,6 +171,10 @@ class Anyscale:
|
|
|
165
171
|
def llm(self) -> LLMSDK: # noqa: F811
|
|
166
172
|
return self._llm_sdk
|
|
167
173
|
|
|
174
|
+
@property
|
|
175
|
+
def user(self) -> UserSDK: # noqa: F811
|
|
176
|
+
return self._user_sdk
|
|
177
|
+
|
|
168
178
|
@property
|
|
169
179
|
def workspace(self) -> WorkspaceSDK: # noqa: F811
|
|
170
180
|
return self._workspace_sdk
|
|
@@ -34,6 +34,8 @@ from anyscale.authenticate import AuthenticationBlock, get_auth_api_client
|
|
|
34
34
|
from anyscale.cli_logger import BlockLogger
|
|
35
35
|
from anyscale.client.openapi_client.api.default_api import DefaultApi as InternalApi
|
|
36
36
|
from anyscale.client.openapi_client.models import (
|
|
37
|
+
AdminCreatedUser,
|
|
38
|
+
AdminCreateUser,
|
|
37
39
|
ArchiveStatus,
|
|
38
40
|
Cloud,
|
|
39
41
|
CloudDataBucketAccessMode,
|
|
@@ -1845,3 +1847,11 @@ class AnyscaleClient(AnyscaleClientInterface):
|
|
|
1845
1847
|
)
|
|
1846
1848
|
|
|
1847
1849
|
return filepath
|
|
1850
|
+
|
|
1851
|
+
@handle_api_exceptions
|
|
1852
|
+
def admin_batch_create_users(
|
|
1853
|
+
self, admin_create_users: List[AdminCreateUser]
|
|
1854
|
+
) -> List[AdminCreatedUser]:
|
|
1855
|
+
return self._internal_api_client.admin_batch_create_users_api_v2_users_admin_batch_create_post(
|
|
1856
|
+
admin_create_users
|
|
1857
|
+
).results
|
|
@@ -4,6 +4,8 @@ from typing import Dict, Generator, List, Optional, Tuple
|
|
|
4
4
|
|
|
5
5
|
from anyscale._private.models.image_uri import ImageURI
|
|
6
6
|
from anyscale.client.openapi_client.models import (
|
|
7
|
+
AdminCreatedUser,
|
|
8
|
+
AdminCreateUser,
|
|
7
9
|
Cloud,
|
|
8
10
|
ComputeTemplateConfig,
|
|
9
11
|
CreateExperimentalWorkspace,
|
|
@@ -591,3 +593,10 @@ class AnyscaleClientInterface(ABC):
|
|
|
591
593
|
) -> str:
|
|
592
594
|
"""Download the aggregated instance usage csv."""
|
|
593
595
|
raise NotImplementedError
|
|
596
|
+
|
|
597
|
+
@abstractmethod
|
|
598
|
+
def admin_batch_create_users(
|
|
599
|
+
self, admin_create_users: List[AdminCreateUser]
|
|
600
|
+
) -> List[AdminCreatedUser]:
|
|
601
|
+
"""Batch create users without email verification as an admin."""
|
|
602
|
+
raise NotImplementedError
|
|
@@ -14,6 +14,8 @@ from anyscale._private.models.image_uri import ImageURI
|
|
|
14
14
|
from anyscale._private.models.model_base import ListResponse
|
|
15
15
|
from anyscale.cli_logger import BlockLogger
|
|
16
16
|
from anyscale.client.openapi_client.models import (
|
|
17
|
+
AdminCreatedUser,
|
|
18
|
+
AdminCreateUser,
|
|
17
19
|
Cloud,
|
|
18
20
|
ComputeTemplateConfig,
|
|
19
21
|
CreateExperimentalWorkspace,
|
|
@@ -146,6 +148,7 @@ class FakeAnyscaleClient(AnyscaleClientInterface):
|
|
|
146
148
|
self._controller_logs: Dict[str, str] = {}
|
|
147
149
|
self._schedules: Dict[str, DecoratedSchedule] = {}
|
|
148
150
|
self._schedule_trigger_counts: Dict[str, int] = defaultdict(int)
|
|
151
|
+
self._users: Dict[str, AdminCreatedUser] = {}
|
|
149
152
|
self._workspaces: Dict[str, ExperimentalWorkspace] = {}
|
|
150
153
|
self._workspaces_dependencies: Dict[str, List[str]] = {}
|
|
151
154
|
self._workspaces_env_vars: Dict[str, Dict[str, str]] = {}
|
|
@@ -1078,3 +1081,28 @@ class FakeAnyscaleClient(AnyscaleClientInterface):
|
|
|
1078
1081
|
filepath = filename
|
|
1079
1082
|
|
|
1080
1083
|
return filepath
|
|
1084
|
+
|
|
1085
|
+
def admin_batch_create_users(
|
|
1086
|
+
self, admin_create_users: List[AdminCreateUser]
|
|
1087
|
+
) -> List[AdminCreatedUser]:
|
|
1088
|
+
created_users = []
|
|
1089
|
+
for admin_create_user in admin_create_users:
|
|
1090
|
+
if admin_create_user.email in self._users:
|
|
1091
|
+
raise ValueError(
|
|
1092
|
+
f"User with email '{admin_create_user.email}' already exists."
|
|
1093
|
+
)
|
|
1094
|
+
|
|
1095
|
+
user_id = f"user-id-{uuid.uuid4()!s}"
|
|
1096
|
+
created_user = AdminCreatedUser(
|
|
1097
|
+
user_id=user_id,
|
|
1098
|
+
email=admin_create_user.email,
|
|
1099
|
+
created_at=datetime.utcnow(),
|
|
1100
|
+
name=admin_create_user.name,
|
|
1101
|
+
lastname=admin_create_user.lastname,
|
|
1102
|
+
title=admin_create_user.title,
|
|
1103
|
+
is_sso_user=admin_create_user.is_sso_user,
|
|
1104
|
+
)
|
|
1105
|
+
created_users.append(created_user)
|
|
1106
|
+
self._users[admin_create_user.email] = created_user
|
|
1107
|
+
|
|
1108
|
+
return created_users
|
|
@@ -27,6 +27,7 @@ from anyscale.commands import (
|
|
|
27
27
|
schedule_commands,
|
|
28
28
|
service_account_commands,
|
|
29
29
|
service_commands,
|
|
30
|
+
user_commands,
|
|
30
31
|
workspace_commands,
|
|
31
32
|
workspace_commands_v2,
|
|
32
33
|
)
|
|
@@ -67,6 +68,7 @@ from anyscale.service.models import (
|
|
|
67
68
|
ServiceVersionStatus,
|
|
68
69
|
TracingConfig,
|
|
69
70
|
)
|
|
71
|
+
from anyscale.user.models import AdminCreatedUser, AdminCreateUser
|
|
70
72
|
from anyscale.workspace.models import WorkspaceConfig
|
|
71
73
|
|
|
72
74
|
|
|
@@ -81,6 +83,15 @@ ALL_MODULES = [
|
|
|
81
83
|
sdk_commands=[anyscale.aggregated_instance_usage.download_csv,],
|
|
82
84
|
models=[DownloadCSVFilters],
|
|
83
85
|
),
|
|
86
|
+
Module(
|
|
87
|
+
title="User",
|
|
88
|
+
filename="user.md",
|
|
89
|
+
cli_prefix="user",
|
|
90
|
+
cli_commands=[user_commands.admin_batch_create],
|
|
91
|
+
sdk_prefix="anyscale.user",
|
|
92
|
+
sdk_commands=[anyscale.user.admin_batch_create,],
|
|
93
|
+
models=[AdminCreateUser, AdminCreatedUser],
|
|
94
|
+
),
|
|
84
95
|
Module(
|
|
85
96
|
title="Job",
|
|
86
97
|
filename="job-api.md",
|
|
@@ -389,6 +400,7 @@ ALL_MODULES = [
|
|
|
389
400
|
cloud_commands.cloud_verify,
|
|
390
401
|
cloud_commands.list_cloud,
|
|
391
402
|
cloud_commands.cloud_config_update,
|
|
403
|
+
cloud_commands.cloud_set_default,
|
|
392
404
|
],
|
|
393
405
|
sdk_prefix="anyscale.cloud",
|
|
394
406
|
sdk_commands=[],
|
anyscale/client/README.md
CHANGED
|
@@ -76,6 +76,7 @@ All URIs are relative to *http://localhost*
|
|
|
76
76
|
Class | Method | HTTP request | Description
|
|
77
77
|
------------ | ------------- | ------------- | -------------
|
|
78
78
|
*DefaultApi* | [**add_to_waitlist_api_v2_aioa_cloud_waitlist_post**](docs/DefaultApi.md#add_to_waitlist_api_v2_aioa_cloud_waitlist_post) | **POST** /api/v2/aioa_cloud_waitlist/ | Add To Waitlist
|
|
79
|
+
*DefaultApi* | [**admin_batch_create_users_api_v2_users_admin_batch_create_post**](docs/DefaultApi.md#admin_batch_create_users_api_v2_users_admin_batch_create_post) | **POST** /api/v2/users/admin_batch_create | Admin Batch Create Users
|
|
79
80
|
*DefaultApi* | [**admission_api_v2_kubernetes_manager_admission_cloud_resource_id_post**](docs/DefaultApi.md#admission_api_v2_kubernetes_manager_admission_cloud_resource_id_post) | **POST** /api/v2/kubernetes_manager/admission/{cloud_resource_id} | Admission
|
|
80
81
|
*DefaultApi* | [**alter_organization_collaborator_api_v2_organization_collaborators_identity_id_put**](docs/DefaultApi.md#alter_organization_collaborator_api_v2_organization_collaborators_identity_id_put) | **PUT** /api/v2/organization_collaborators/{identity_id} | Alter Organization Collaborator
|
|
81
82
|
*DefaultApi* | [**alter_project_collaborator_api_v2_projects_project_id_collaborators_role_or_identity_id_put**](docs/DefaultApi.md#alter_project_collaborator_api_v2_projects_project_id_collaborators_role_or_identity_id_put) | **PUT** /api/v2/projects/{project_id}/collaborators/{role_or_identity_id} | Alter Project Collaborator
|
|
@@ -430,6 +431,9 @@ Class | Method | HTTP request | Description
|
|
|
430
431
|
- [AWSCredentials](docs/AWSCredentials.md)
|
|
431
432
|
- [AWSMemoryDBClusterConfig](docs/AWSMemoryDBClusterConfig.md)
|
|
432
433
|
- [AccessConfig](docs/AccessConfig.md)
|
|
434
|
+
- [AdminCreateUser](docs/AdminCreateUser.md)
|
|
435
|
+
- [AdminCreatedUser](docs/AdminCreatedUser.md)
|
|
436
|
+
- [AdmincreateduserListResponse](docs/AdmincreateduserListResponse.md)
|
|
433
437
|
- [AggregatedInstanceUsageCSV](docs/AggregatedInstanceUsageCSV.md)
|
|
434
438
|
- [AggregatedUsage](docs/AggregatedUsage.md)
|
|
435
439
|
- [AggregatedUsageQuery](docs/AggregatedUsageQuery.md)
|
|
@@ -863,7 +867,6 @@ Class | Method | HTTP request | Description
|
|
|
863
867
|
- [OrganizationpublicidentifierResponse](docs/OrganizationpublicidentifierResponse.md)
|
|
864
868
|
- [OrganizationusagealertListResponse](docs/OrganizationusagealertListResponse.md)
|
|
865
869
|
- [PageQuery](docs/PageQuery.md)
|
|
866
|
-
- [PagingContext](docs/PagingContext.md)
|
|
867
870
|
- [PauseSchedule](docs/PauseSchedule.md)
|
|
868
871
|
- [PermissionLevel](docs/PermissionLevel.md)
|
|
869
872
|
- [PlatformFineTuningJob](docs/PlatformFineTuningJob.md)
|
|
@@ -31,6 +31,9 @@ from openapi_client.exceptions import ApiException
|
|
|
31
31
|
from openapi_client.models.aws_credentials import AWSCredentials
|
|
32
32
|
from openapi_client.models.aws_memory_db_cluster_config import AWSMemoryDBClusterConfig
|
|
33
33
|
from openapi_client.models.access_config import AccessConfig
|
|
34
|
+
from openapi_client.models.admin_create_user import AdminCreateUser
|
|
35
|
+
from openapi_client.models.admin_created_user import AdminCreatedUser
|
|
36
|
+
from openapi_client.models.admincreateduser_list_response import AdmincreateduserListResponse
|
|
34
37
|
from openapi_client.models.aggregated_instance_usage_csv import AggregatedInstanceUsageCSV
|
|
35
38
|
from openapi_client.models.aggregated_usage import AggregatedUsage
|
|
36
39
|
from openapi_client.models.aggregated_usage_query import AggregatedUsageQuery
|
|
@@ -464,7 +467,6 @@ from openapi_client.models.organizationprojectcollaborator_list_response import
|
|
|
464
467
|
from openapi_client.models.organizationpublicidentifier_response import OrganizationpublicidentifierResponse
|
|
465
468
|
from openapi_client.models.organizationusagealert_list_response import OrganizationusagealertListResponse
|
|
466
469
|
from openapi_client.models.page_query import PageQuery
|
|
467
|
-
from openapi_client.models.paging_context import PagingContext
|
|
468
470
|
from openapi_client.models.pause_schedule import PauseSchedule
|
|
469
471
|
from openapi_client.models.permission_level import PermissionLevel
|
|
470
472
|
from openapi_client.models.platform_fine_tuning_job import PlatformFineTuningJob
|
|
@@ -152,6 +152,122 @@ class DefaultApi(object):
|
|
|
152
152
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
153
153
|
collection_formats=collection_formats)
|
|
154
154
|
|
|
155
|
+
def admin_batch_create_users_api_v2_users_admin_batch_create_post(self, admin_create_user, **kwargs): # noqa: E501
|
|
156
|
+
"""Admin Batch Create Users # noqa: E501
|
|
157
|
+
|
|
158
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
159
|
+
asynchronous HTTP request, please pass async_req=True
|
|
160
|
+
>>> thread = api.admin_batch_create_users_api_v2_users_admin_batch_create_post(admin_create_user, async_req=True)
|
|
161
|
+
>>> result = thread.get()
|
|
162
|
+
|
|
163
|
+
:param async_req bool: execute request asynchronously
|
|
164
|
+
:param list[AdminCreateUser] admin_create_user: (required)
|
|
165
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
166
|
+
be returned without reading/decoding response
|
|
167
|
+
data. Default is True.
|
|
168
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
169
|
+
number provided, it will be total request
|
|
170
|
+
timeout. It can also be a pair (tuple) of
|
|
171
|
+
(connection, read) timeouts.
|
|
172
|
+
:return: AdmincreateduserListResponse
|
|
173
|
+
If the method is called asynchronously,
|
|
174
|
+
returns the request thread.
|
|
175
|
+
"""
|
|
176
|
+
kwargs['_return_http_data_only'] = True
|
|
177
|
+
return self.admin_batch_create_users_api_v2_users_admin_batch_create_post_with_http_info(admin_create_user, **kwargs) # noqa: E501
|
|
178
|
+
|
|
179
|
+
def admin_batch_create_users_api_v2_users_admin_batch_create_post_with_http_info(self, admin_create_user, **kwargs): # noqa: E501
|
|
180
|
+
"""Admin Batch Create Users # noqa: E501
|
|
181
|
+
|
|
182
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
183
|
+
asynchronous HTTP request, please pass async_req=True
|
|
184
|
+
>>> thread = api.admin_batch_create_users_api_v2_users_admin_batch_create_post_with_http_info(admin_create_user, async_req=True)
|
|
185
|
+
>>> result = thread.get()
|
|
186
|
+
|
|
187
|
+
:param async_req bool: execute request asynchronously
|
|
188
|
+
:param list[AdminCreateUser] admin_create_user: (required)
|
|
189
|
+
:param _return_http_data_only: response data without head status code
|
|
190
|
+
and headers
|
|
191
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
192
|
+
be returned without reading/decoding response
|
|
193
|
+
data. Default is True.
|
|
194
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
195
|
+
number provided, it will be total request
|
|
196
|
+
timeout. It can also be a pair (tuple) of
|
|
197
|
+
(connection, read) timeouts.
|
|
198
|
+
:return: tuple(AdmincreateduserListResponse, status_code(int), headers(HTTPHeaderDict))
|
|
199
|
+
If the method is called asynchronously,
|
|
200
|
+
returns the request thread.
|
|
201
|
+
"""
|
|
202
|
+
|
|
203
|
+
local_var_params = locals()
|
|
204
|
+
|
|
205
|
+
all_params = [
|
|
206
|
+
'admin_create_user'
|
|
207
|
+
]
|
|
208
|
+
all_params.extend(
|
|
209
|
+
[
|
|
210
|
+
'async_req',
|
|
211
|
+
'_return_http_data_only',
|
|
212
|
+
'_preload_content',
|
|
213
|
+
'_request_timeout'
|
|
214
|
+
]
|
|
215
|
+
)
|
|
216
|
+
|
|
217
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
218
|
+
if key not in all_params:
|
|
219
|
+
raise ApiTypeError(
|
|
220
|
+
"Got an unexpected keyword argument '%s'"
|
|
221
|
+
" to method admin_batch_create_users_api_v2_users_admin_batch_create_post" % key
|
|
222
|
+
)
|
|
223
|
+
local_var_params[key] = val
|
|
224
|
+
del local_var_params['kwargs']
|
|
225
|
+
# verify the required parameter 'admin_create_user' is set
|
|
226
|
+
if self.api_client.client_side_validation and ('admin_create_user' not in local_var_params or # noqa: E501
|
|
227
|
+
local_var_params['admin_create_user'] is None): # noqa: E501
|
|
228
|
+
raise ApiValueError("Missing the required parameter `admin_create_user` when calling `admin_batch_create_users_api_v2_users_admin_batch_create_post`") # noqa: E501
|
|
229
|
+
|
|
230
|
+
collection_formats = {}
|
|
231
|
+
|
|
232
|
+
path_params = {}
|
|
233
|
+
|
|
234
|
+
query_params = []
|
|
235
|
+
|
|
236
|
+
header_params = {}
|
|
237
|
+
|
|
238
|
+
form_params = []
|
|
239
|
+
local_var_files = {}
|
|
240
|
+
|
|
241
|
+
body_params = None
|
|
242
|
+
if 'admin_create_user' in local_var_params:
|
|
243
|
+
body_params = local_var_params['admin_create_user']
|
|
244
|
+
# HTTP header `Accept`
|
|
245
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
246
|
+
['application/json']) # noqa: E501
|
|
247
|
+
|
|
248
|
+
# HTTP header `Content-Type`
|
|
249
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
250
|
+
['application/json']) # noqa: E501
|
|
251
|
+
|
|
252
|
+
# Authentication setting
|
|
253
|
+
auth_settings = [] # noqa: E501
|
|
254
|
+
|
|
255
|
+
return self.api_client.call_api(
|
|
256
|
+
'/api/v2/users/admin_batch_create', 'POST',
|
|
257
|
+
path_params,
|
|
258
|
+
query_params,
|
|
259
|
+
header_params,
|
|
260
|
+
body=body_params,
|
|
261
|
+
post_params=form_params,
|
|
262
|
+
files=local_var_files,
|
|
263
|
+
response_type='AdmincreateduserListResponse', # noqa: E501
|
|
264
|
+
auth_settings=auth_settings,
|
|
265
|
+
async_req=local_var_params.get('async_req'),
|
|
266
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
267
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
268
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
269
|
+
collection_formats=collection_formats)
|
|
270
|
+
|
|
155
271
|
def admission_api_v2_kubernetes_manager_admission_cloud_resource_id_post(self, cloud_resource_id, **kwargs): # noqa: E501
|
|
156
272
|
"""Admission # noqa: E501
|
|
157
273
|
|
|
@@ -10258,6 +10374,8 @@ class DefaultApi(object):
|
|
|
10258
10374
|
|
|
10259
10375
|
:param async_req bool: execute request asynchronously
|
|
10260
10376
|
:param AggregatedUsageQuery aggregated_usage_query: (required)
|
|
10377
|
+
:param str paging_token:
|
|
10378
|
+
:param int count:
|
|
10261
10379
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
10262
10380
|
be returned without reading/decoding response
|
|
10263
10381
|
data. Default is True.
|
|
@@ -10282,6 +10400,8 @@ class DefaultApi(object):
|
|
|
10282
10400
|
|
|
10283
10401
|
:param async_req bool: execute request asynchronously
|
|
10284
10402
|
:param AggregatedUsageQuery aggregated_usage_query: (required)
|
|
10403
|
+
:param str paging_token:
|
|
10404
|
+
:param int count:
|
|
10285
10405
|
:param _return_http_data_only: response data without head status code
|
|
10286
10406
|
and headers
|
|
10287
10407
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
@@ -10299,7 +10419,9 @@ class DefaultApi(object):
|
|
|
10299
10419
|
local_var_params = locals()
|
|
10300
10420
|
|
|
10301
10421
|
all_params = [
|
|
10302
|
-
'aggregated_usage_query'
|
|
10422
|
+
'aggregated_usage_query',
|
|
10423
|
+
'paging_token',
|
|
10424
|
+
'count'
|
|
10303
10425
|
]
|
|
10304
10426
|
all_params.extend(
|
|
10305
10427
|
[
|
|
@@ -10323,11 +10445,19 @@ class DefaultApi(object):
|
|
|
10323
10445
|
local_var_params['aggregated_usage_query'] is None): # noqa: E501
|
|
10324
10446
|
raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`") # noqa: E501
|
|
10325
10447
|
|
|
10448
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
|
10449
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`, must be a value less than or equal to `50`") # noqa: E501
|
|
10450
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
|
10451
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`, must be a value greater than or equal to `0`") # noqa: E501
|
|
10326
10452
|
collection_formats = {}
|
|
10327
10453
|
|
|
10328
10454
|
path_params = {}
|
|
10329
10455
|
|
|
10330
10456
|
query_params = []
|
|
10457
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
|
10458
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
|
10459
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
|
10460
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
|
10331
10461
|
|
|
10332
10462
|
header_params = {}
|
|
10333
10463
|
|
|
@@ -10374,6 +10504,8 @@ class DefaultApi(object):
|
|
|
10374
10504
|
|
|
10375
10505
|
:param async_req bool: execute request asynchronously
|
|
10376
10506
|
:param AggregatedUsageQuery aggregated_usage_query: (required)
|
|
10507
|
+
:param str paging_token:
|
|
10508
|
+
:param int count:
|
|
10377
10509
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
10378
10510
|
be returned without reading/decoding response
|
|
10379
10511
|
data. Default is True.
|
|
@@ -10398,6 +10530,8 @@ class DefaultApi(object):
|
|
|
10398
10530
|
|
|
10399
10531
|
:param async_req bool: execute request asynchronously
|
|
10400
10532
|
:param AggregatedUsageQuery aggregated_usage_query: (required)
|
|
10533
|
+
:param str paging_token:
|
|
10534
|
+
:param int count:
|
|
10401
10535
|
:param _return_http_data_only: response data without head status code
|
|
10402
10536
|
and headers
|
|
10403
10537
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
@@ -10415,7 +10549,9 @@ class DefaultApi(object):
|
|
|
10415
10549
|
local_var_params = locals()
|
|
10416
10550
|
|
|
10417
10551
|
all_params = [
|
|
10418
|
-
'aggregated_usage_query'
|
|
10552
|
+
'aggregated_usage_query',
|
|
10553
|
+
'paging_token',
|
|
10554
|
+
'count'
|
|
10419
10555
|
]
|
|
10420
10556
|
all_params.extend(
|
|
10421
10557
|
[
|
|
@@ -10439,11 +10575,19 @@ class DefaultApi(object):
|
|
|
10439
10575
|
local_var_params['aggregated_usage_query'] is None): # noqa: E501
|
|
10440
10576
|
raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`") # noqa: E501
|
|
10441
10577
|
|
|
10578
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
|
10579
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`, must be a value less than or equal to `50`") # noqa: E501
|
|
10580
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
|
10581
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`, must be a value greater than or equal to `0`") # noqa: E501
|
|
10442
10582
|
collection_formats = {}
|
|
10443
10583
|
|
|
10444
10584
|
path_params = {}
|
|
10445
10585
|
|
|
10446
10586
|
query_params = []
|
|
10587
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
|
10588
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
|
10589
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
|
10590
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
|
10447
10591
|
|
|
10448
10592
|
header_params = {}
|
|
10449
10593
|
|
|
@@ -10490,6 +10634,8 @@ class DefaultApi(object):
|
|
|
10490
10634
|
|
|
10491
10635
|
:param async_req bool: execute request asynchronously
|
|
10492
10636
|
:param AggregatedUsageQuery aggregated_usage_query: (required)
|
|
10637
|
+
:param str paging_token:
|
|
10638
|
+
:param int count:
|
|
10493
10639
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
10494
10640
|
be returned without reading/decoding response
|
|
10495
10641
|
data. Default is True.
|
|
@@ -10514,6 +10660,8 @@ class DefaultApi(object):
|
|
|
10514
10660
|
|
|
10515
10661
|
:param async_req bool: execute request asynchronously
|
|
10516
10662
|
:param AggregatedUsageQuery aggregated_usage_query: (required)
|
|
10663
|
+
:param str paging_token:
|
|
10664
|
+
:param int count:
|
|
10517
10665
|
:param _return_http_data_only: response data without head status code
|
|
10518
10666
|
and headers
|
|
10519
10667
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
@@ -10531,7 +10679,9 @@ class DefaultApi(object):
|
|
|
10531
10679
|
local_var_params = locals()
|
|
10532
10680
|
|
|
10533
10681
|
all_params = [
|
|
10534
|
-
'aggregated_usage_query'
|
|
10682
|
+
'aggregated_usage_query',
|
|
10683
|
+
'paging_token',
|
|
10684
|
+
'count'
|
|
10535
10685
|
]
|
|
10536
10686
|
all_params.extend(
|
|
10537
10687
|
[
|
|
@@ -10555,11 +10705,19 @@ class DefaultApi(object):
|
|
|
10555
10705
|
local_var_params['aggregated_usage_query'] is None): # noqa: E501
|
|
10556
10706
|
raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post`") # noqa: E501
|
|
10557
10707
|
|
|
10708
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
|
10709
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post`, must be a value less than or equal to `50`") # noqa: E501
|
|
10710
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
|
10711
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post`, must be a value greater than or equal to `0`") # noqa: E501
|
|
10558
10712
|
collection_formats = {}
|
|
10559
10713
|
|
|
10560
10714
|
path_params = {}
|
|
10561
10715
|
|
|
10562
10716
|
query_params = []
|
|
10717
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
|
10718
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
|
10719
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
|
10720
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
|
10563
10721
|
|
|
10564
10722
|
header_params = {}
|
|
10565
10723
|
|
|
@@ -10606,6 +10764,8 @@ class DefaultApi(object):
|
|
|
10606
10764
|
|
|
10607
10765
|
:param async_req bool: execute request asynchronously
|
|
10608
10766
|
:param AggregatedUsageQuery aggregated_usage_query: (required)
|
|
10767
|
+
:param str paging_token:
|
|
10768
|
+
:param int count:
|
|
10609
10769
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
10610
10770
|
be returned without reading/decoding response
|
|
10611
10771
|
data. Default is True.
|
|
@@ -10630,6 +10790,8 @@ class DefaultApi(object):
|
|
|
10630
10790
|
|
|
10631
10791
|
:param async_req bool: execute request asynchronously
|
|
10632
10792
|
:param AggregatedUsageQuery aggregated_usage_query: (required)
|
|
10793
|
+
:param str paging_token:
|
|
10794
|
+
:param int count:
|
|
10633
10795
|
:param _return_http_data_only: response data without head status code
|
|
10634
10796
|
and headers
|
|
10635
10797
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
@@ -10647,7 +10809,9 @@ class DefaultApi(object):
|
|
|
10647
10809
|
local_var_params = locals()
|
|
10648
10810
|
|
|
10649
10811
|
all_params = [
|
|
10650
|
-
'aggregated_usage_query'
|
|
10812
|
+
'aggregated_usage_query',
|
|
10813
|
+
'paging_token',
|
|
10814
|
+
'count'
|
|
10651
10815
|
]
|
|
10652
10816
|
all_params.extend(
|
|
10653
10817
|
[
|
|
@@ -10671,11 +10835,19 @@ class DefaultApi(object):
|
|
|
10671
10835
|
local_var_params['aggregated_usage_query'] is None): # noqa: E501
|
|
10672
10836
|
raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post`") # noqa: E501
|
|
10673
10837
|
|
|
10838
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
|
10839
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post`, must be a value less than or equal to `50`") # noqa: E501
|
|
10840
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
|
10841
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post`, must be a value greater than or equal to `0`") # noqa: E501
|
|
10674
10842
|
collection_formats = {}
|
|
10675
10843
|
|
|
10676
10844
|
path_params = {}
|
|
10677
10845
|
|
|
10678
10846
|
query_params = []
|
|
10847
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
|
10848
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
|
10849
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
|
10850
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
|
10679
10851
|
|
|
10680
10852
|
header_params = {}
|
|
10681
10853
|
|
|
@@ -10722,6 +10894,8 @@ class DefaultApi(object):
|
|
|
10722
10894
|
|
|
10723
10895
|
:param async_req bool: execute request asynchronously
|
|
10724
10896
|
:param AggregatedUsageQuery aggregated_usage_query: (required)
|
|
10897
|
+
:param str paging_token:
|
|
10898
|
+
:param int count:
|
|
10725
10899
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
10726
10900
|
be returned without reading/decoding response
|
|
10727
10901
|
data. Default is True.
|
|
@@ -10746,6 +10920,8 @@ class DefaultApi(object):
|
|
|
10746
10920
|
|
|
10747
10921
|
:param async_req bool: execute request asynchronously
|
|
10748
10922
|
:param AggregatedUsageQuery aggregated_usage_query: (required)
|
|
10923
|
+
:param str paging_token:
|
|
10924
|
+
:param int count:
|
|
10749
10925
|
:param _return_http_data_only: response data without head status code
|
|
10750
10926
|
and headers
|
|
10751
10927
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
@@ -10763,7 +10939,9 @@ class DefaultApi(object):
|
|
|
10763
10939
|
local_var_params = locals()
|
|
10764
10940
|
|
|
10765
10941
|
all_params = [
|
|
10766
|
-
'aggregated_usage_query'
|
|
10942
|
+
'aggregated_usage_query',
|
|
10943
|
+
'paging_token',
|
|
10944
|
+
'count'
|
|
10767
10945
|
]
|
|
10768
10946
|
all_params.extend(
|
|
10769
10947
|
[
|
|
@@ -10787,11 +10965,19 @@ class DefaultApi(object):
|
|
|
10787
10965
|
local_var_params['aggregated_usage_query'] is None): # noqa: E501
|
|
10788
10966
|
raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post`") # noqa: E501
|
|
10789
10967
|
|
|
10968
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
|
10969
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post`, must be a value less than or equal to `50`") # noqa: E501
|
|
10970
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
|
10971
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post`, must be a value greater than or equal to `0`") # noqa: E501
|
|
10790
10972
|
collection_formats = {}
|
|
10791
10973
|
|
|
10792
10974
|
path_params = {}
|
|
10793
10975
|
|
|
10794
10976
|
query_params = []
|
|
10977
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
|
10978
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
|
10979
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
|
10980
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
|
10795
10981
|
|
|
10796
10982
|
header_params = {}
|
|
10797
10983
|
|
|
@@ -17,6 +17,9 @@ from __future__ import absolute_import
|
|
|
17
17
|
from openapi_client.models.aws_credentials import AWSCredentials
|
|
18
18
|
from openapi_client.models.aws_memory_db_cluster_config import AWSMemoryDBClusterConfig
|
|
19
19
|
from openapi_client.models.access_config import AccessConfig
|
|
20
|
+
from openapi_client.models.admin_create_user import AdminCreateUser
|
|
21
|
+
from openapi_client.models.admin_created_user import AdminCreatedUser
|
|
22
|
+
from openapi_client.models.admincreateduser_list_response import AdmincreateduserListResponse
|
|
20
23
|
from openapi_client.models.aggregated_instance_usage_csv import AggregatedInstanceUsageCSV
|
|
21
24
|
from openapi_client.models.aggregated_usage import AggregatedUsage
|
|
22
25
|
from openapi_client.models.aggregated_usage_query import AggregatedUsageQuery
|
|
@@ -450,7 +453,6 @@ from openapi_client.models.organizationprojectcollaborator_list_response import
|
|
|
450
453
|
from openapi_client.models.organizationpublicidentifier_response import OrganizationpublicidentifierResponse
|
|
451
454
|
from openapi_client.models.organizationusagealert_list_response import OrganizationusagealertListResponse
|
|
452
455
|
from openapi_client.models.page_query import PageQuery
|
|
453
|
-
from openapi_client.models.paging_context import PagingContext
|
|
454
456
|
from openapi_client.models.pause_schedule import PauseSchedule
|
|
455
457
|
from openapi_client.models.permission_level import PermissionLevel
|
|
456
458
|
from openapi_client.models.platform_fine_tuning_job import PlatformFineTuningJob
|