lightning-sdk 2025.8.28__py3-none-any.whl → 2025.9.2__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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/teamspace_api.py +2 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +11 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +283 -0
- lightning_sdk/lightning_cloud/openapi/api/auth_service_api.py +97 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +11 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_aggregated_pod_metrics.py +799 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cancel_running_cloud_space_instance_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +3 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_model_metrics.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_latest_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_total_usage_metrics_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_request.py +177 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_user.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_list_aggregated_pod_metrics_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_model_metrics.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +29 -3
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.2.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.2.dist-info}/RECORD +34 -23
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.2.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.2.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.2.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.2.dist-info}/top_level.txt +0 -0
lightning_sdk/__init__.py
CHANGED
|
@@ -250,6 +250,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_agent_job import V1AgentJob
|
|
|
250
250
|
from lightning_sdk.lightning_cloud.openapi.models.v1_agent_job_artifact import V1AgentJobArtifact
|
|
251
251
|
from lightning_sdk.lightning_cloud.openapi.models.v1_agent_upload_multipart_url import V1AgentUploadMultipartUrl
|
|
252
252
|
from lightning_sdk.lightning_cloud.openapi.models.v1_agent_upload_part_response import V1AgentUploadPartResponse
|
|
253
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_aggregated_pod_metrics import V1AggregatedPodMetrics
|
|
253
254
|
from lightning_sdk.lightning_cloud.openapi.models.v1_ai_pod_v1 import V1AiPodV1
|
|
254
255
|
from lightning_sdk.lightning_cloud.openapi.models.v1_alert_method import V1AlertMethod
|
|
255
256
|
from lightning_sdk.lightning_cloud.openapi.models.v1_alerts_config import V1AlertsConfig
|
|
@@ -280,6 +281,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_body import V1Body
|
|
|
280
281
|
from lightning_sdk.lightning_cloud.openapi.models.v1_build_spec import V1BuildSpec
|
|
281
282
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cpu_system_metrics import V1CPUSystemMetrics
|
|
282
283
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cancel_cloud_space_instance_switch_response import V1CancelCloudSpaceInstanceSwitchResponse
|
|
284
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_cancel_running_cloud_space_instance_transfer_response import V1CancelRunningCloudSpaceInstanceTransferResponse
|
|
283
285
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cancellation_metadata import V1CancellationMetadata
|
|
284
286
|
from lightning_sdk.lightning_cloud.openapi.models.v1_capacity_block_offering import V1CapacityBlockOffering
|
|
285
287
|
from lightning_sdk.lightning_cloud.openapi.models.v1_check_cluster_name_availability_request import V1CheckClusterNameAvailabilityRequest
|
|
@@ -395,6 +397,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_create_snowflake_connection
|
|
|
395
397
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_subscription_checkout_session_request import V1CreateSubscriptionCheckoutSessionRequest
|
|
396
398
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_subscription_checkout_session_response import V1CreateSubscriptionCheckoutSessionResponse
|
|
397
399
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_user_secret_request import V1CreateUserSecretRequest
|
|
400
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_daily_model_metrics import V1DailyModelMetrics
|
|
398
401
|
from lightning_sdk.lightning_cloud.openapi.models.v1_daily_usage import V1DailyUsage
|
|
399
402
|
from lightning_sdk.lightning_cloud.openapi.models.v1_data_connection import V1DataConnection
|
|
400
403
|
from lightning_sdk.lightning_cloud.openapi.models.v1_data_connection_artifact import V1DataConnectionArtifact
|
|
@@ -548,6 +551,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_cold_start_
|
|
|
548
551
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_open_ports_response import V1GetCloudSpaceInstanceOpenPortsResponse
|
|
549
552
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_status_response import V1GetCloudSpaceInstanceStatusResponse
|
|
550
553
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_system_metrics_aggregate_response import V1GetCloudSpaceInstanceSystemMetricsAggregateResponse
|
|
554
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_required_balance_status_response import V1GetCloudSpaceRequiredBalanceStatusResponse
|
|
551
555
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_size_response import V1GetCloudSpaceSizeResponse
|
|
552
556
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cluster_accelerator_demand_response import V1GetClusterAcceleratorDemandResponse
|
|
553
557
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cluster_credentials_response import V1GetClusterCredentialsResponse
|
|
@@ -558,6 +562,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_deployment_routing_tele
|
|
|
558
562
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_folder_index_response import V1GetFolderIndexResponse
|
|
559
563
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_job_stats_response import V1GetJobStatsResponse
|
|
560
564
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_job_system_metrics_response import V1GetJobSystemMetricsResponse
|
|
565
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_latest_model_metrics_response import V1GetLatestModelMetricsResponse
|
|
561
566
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_lightning_run_source_code_download_url_response import V1GetLightningRunSourceCodeDownloadUrlResponse
|
|
562
567
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_lightningapp_instance_open_ports_response import V1GetLightningappInstanceOpenPortsResponse
|
|
563
568
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_lightningapp_instance_system_metrics_response import V1GetLightningappInstanceSystemMetricsResponse
|
|
@@ -570,6 +575,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_file_upload_urls_
|
|
|
570
575
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_file_url_response import V1GetModelFileUrlResponse
|
|
571
576
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_files_response import V1GetModelFilesResponse
|
|
572
577
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_files_url_response import V1GetModelFilesUrlResponse
|
|
578
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_metrics_response import V1GetModelMetricsResponse
|
|
579
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_total_usage_metrics_response import V1GetModelTotalUsageMetricsResponse
|
|
573
580
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_organization_storage_metadata_response import V1GetOrganizationStorageMetadataResponse
|
|
574
581
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_artifact_response import V1GetProjectArtifactResponse
|
|
575
582
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_balance_response import V1GetProjectBalanceResponse
|
|
@@ -586,6 +593,9 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_volume_response import
|
|
|
586
593
|
from lightning_sdk.lightning_cloud.openapi.models.v1_git_credentials import V1GitCredentials
|
|
587
594
|
from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1 import V1GoogleCloudDirectV1
|
|
588
595
|
from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1_status import V1GoogleCloudDirectV1Status
|
|
596
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_login_request import V1GuestLoginRequest
|
|
597
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_login_response import V1GuestLoginResponse
|
|
598
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_user import V1GuestUser
|
|
589
599
|
from lightning_sdk.lightning_cloud.openapi.models.v1_header import V1Header
|
|
590
600
|
from lightning_sdk.lightning_cloud.openapi.models.v1_health_check_exec import V1HealthCheckExec
|
|
591
601
|
from lightning_sdk.lightning_cloud.openapi.models.v1_health_check_http_get import V1HealthCheckHttpGet
|
|
@@ -779,6 +789,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_metrics_tags import V1Metri
|
|
|
779
789
|
from lightning_sdk.lightning_cloud.openapi.models.v1_metrics_tracker import V1MetricsTracker
|
|
780
790
|
from lightning_sdk.lightning_cloud.openapi.models.v1_model import V1Model
|
|
781
791
|
from lightning_sdk.lightning_cloud.openapi.models.v1_model_file import V1ModelFile
|
|
792
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_model_metrics import V1ModelMetrics
|
|
782
793
|
from lightning_sdk.lightning_cloud.openapi.models.v1_model_version_archive import V1ModelVersionArchive
|
|
783
794
|
from lightning_sdk.lightning_cloud.openapi.models.v1_modify_filesystem_volume_response import V1ModifyFilesystemVolumeResponse
|
|
784
795
|
from lightning_sdk.lightning_cloud.openapi.models.v1_mount_target import V1MountTarget
|
|
@@ -952,6 +952,95 @@ class AssistantsServiceApi(object):
|
|
|
952
952
|
_request_timeout=params.get('_request_timeout'),
|
|
953
953
|
collection_formats=collection_formats)
|
|
954
954
|
|
|
955
|
+
def assistants_service_get_latest_model_metrics(self, **kwargs) -> 'V1GetLatestModelMetricsResponse': # noqa: E501
|
|
956
|
+
"""assistants_service_get_latest_model_metrics # noqa: E501
|
|
957
|
+
|
|
958
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
959
|
+
asynchronous HTTP request, please pass async_req=True
|
|
960
|
+
>>> thread = api.assistants_service_get_latest_model_metrics(async_req=True)
|
|
961
|
+
>>> result = thread.get()
|
|
962
|
+
|
|
963
|
+
:param async_req bool
|
|
964
|
+
:param str model_id:
|
|
965
|
+
:return: V1GetLatestModelMetricsResponse
|
|
966
|
+
If the method is called asynchronously,
|
|
967
|
+
returns the request thread.
|
|
968
|
+
"""
|
|
969
|
+
kwargs['_return_http_data_only'] = True
|
|
970
|
+
if kwargs.get('async_req'):
|
|
971
|
+
return self.assistants_service_get_latest_model_metrics_with_http_info(**kwargs) # noqa: E501
|
|
972
|
+
else:
|
|
973
|
+
(data) = self.assistants_service_get_latest_model_metrics_with_http_info(**kwargs) # noqa: E501
|
|
974
|
+
return data
|
|
975
|
+
|
|
976
|
+
def assistants_service_get_latest_model_metrics_with_http_info(self, **kwargs) -> 'V1GetLatestModelMetricsResponse': # noqa: E501
|
|
977
|
+
"""assistants_service_get_latest_model_metrics # noqa: E501
|
|
978
|
+
|
|
979
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
980
|
+
asynchronous HTTP request, please pass async_req=True
|
|
981
|
+
>>> thread = api.assistants_service_get_latest_model_metrics_with_http_info(async_req=True)
|
|
982
|
+
>>> result = thread.get()
|
|
983
|
+
|
|
984
|
+
:param async_req bool
|
|
985
|
+
:param str model_id:
|
|
986
|
+
:return: V1GetLatestModelMetricsResponse
|
|
987
|
+
If the method is called asynchronously,
|
|
988
|
+
returns the request thread.
|
|
989
|
+
"""
|
|
990
|
+
|
|
991
|
+
all_params = ['model_id'] # noqa: E501
|
|
992
|
+
all_params.append('async_req')
|
|
993
|
+
all_params.append('_return_http_data_only')
|
|
994
|
+
all_params.append('_preload_content')
|
|
995
|
+
all_params.append('_request_timeout')
|
|
996
|
+
|
|
997
|
+
params = locals()
|
|
998
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
999
|
+
if key not in all_params:
|
|
1000
|
+
raise TypeError(
|
|
1001
|
+
"Got an unexpected keyword argument '%s'"
|
|
1002
|
+
" to method assistants_service_get_latest_model_metrics" % key
|
|
1003
|
+
)
|
|
1004
|
+
params[key] = val
|
|
1005
|
+
del params['kwargs']
|
|
1006
|
+
|
|
1007
|
+
collection_formats = {}
|
|
1008
|
+
|
|
1009
|
+
path_params = {}
|
|
1010
|
+
|
|
1011
|
+
query_params = []
|
|
1012
|
+
if 'model_id' in params:
|
|
1013
|
+
query_params.append(('modelId', params['model_id'])) # noqa: E501
|
|
1014
|
+
|
|
1015
|
+
header_params = {}
|
|
1016
|
+
|
|
1017
|
+
form_params = []
|
|
1018
|
+
local_var_files = {}
|
|
1019
|
+
|
|
1020
|
+
body_params = None
|
|
1021
|
+
# HTTP header `Accept`
|
|
1022
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1023
|
+
['application/json']) # noqa: E501
|
|
1024
|
+
|
|
1025
|
+
# Authentication setting
|
|
1026
|
+
auth_settings = [] # noqa: E501
|
|
1027
|
+
|
|
1028
|
+
return self.api_client.call_api(
|
|
1029
|
+
'/v1/agents/latest-metrics', 'GET',
|
|
1030
|
+
path_params,
|
|
1031
|
+
query_params,
|
|
1032
|
+
header_params,
|
|
1033
|
+
body=body_params,
|
|
1034
|
+
post_params=form_params,
|
|
1035
|
+
files=local_var_files,
|
|
1036
|
+
response_type='V1GetLatestModelMetricsResponse', # noqa: E501
|
|
1037
|
+
auth_settings=auth_settings,
|
|
1038
|
+
async_req=params.get('async_req'),
|
|
1039
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1040
|
+
_preload_content=params.get('_preload_content', True),
|
|
1041
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1042
|
+
collection_formats=collection_formats)
|
|
1043
|
+
|
|
955
1044
|
def assistants_service_get_managed_model_assistant(self, model_name: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
|
|
956
1045
|
"""Each managed model has a dedicated assistant for direct interaction. By using user_name, org_name, or model_provider as query parameters, this endpoint retrieves that specific assistant only—excluding any other assistants that may use the same model. # noqa: E501
|
|
957
1046
|
|
|
@@ -1275,6 +1364,200 @@ class AssistantsServiceApi(object):
|
|
|
1275
1364
|
_request_timeout=params.get('_request_timeout'),
|
|
1276
1365
|
collection_formats=collection_formats)
|
|
1277
1366
|
|
|
1367
|
+
def assistants_service_get_model_metrics(self, model_id: 'str', **kwargs) -> 'V1GetModelMetricsResponse': # noqa: E501
|
|
1368
|
+
"""assistants_service_get_model_metrics # noqa: E501
|
|
1369
|
+
|
|
1370
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1371
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1372
|
+
>>> thread = api.assistants_service_get_model_metrics(model_id, async_req=True)
|
|
1373
|
+
>>> result = thread.get()
|
|
1374
|
+
|
|
1375
|
+
:param async_req bool
|
|
1376
|
+
:param str model_id: (required)
|
|
1377
|
+
:param datetime _from:
|
|
1378
|
+
:param datetime to:
|
|
1379
|
+
:return: V1GetModelMetricsResponse
|
|
1380
|
+
If the method is called asynchronously,
|
|
1381
|
+
returns the request thread.
|
|
1382
|
+
"""
|
|
1383
|
+
kwargs['_return_http_data_only'] = True
|
|
1384
|
+
if kwargs.get('async_req'):
|
|
1385
|
+
return self.assistants_service_get_model_metrics_with_http_info(model_id, **kwargs) # noqa: E501
|
|
1386
|
+
else:
|
|
1387
|
+
(data) = self.assistants_service_get_model_metrics_with_http_info(model_id, **kwargs) # noqa: E501
|
|
1388
|
+
return data
|
|
1389
|
+
|
|
1390
|
+
def assistants_service_get_model_metrics_with_http_info(self, model_id: 'str', **kwargs) -> 'V1GetModelMetricsResponse': # noqa: E501
|
|
1391
|
+
"""assistants_service_get_model_metrics # noqa: E501
|
|
1392
|
+
|
|
1393
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1394
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1395
|
+
>>> thread = api.assistants_service_get_model_metrics_with_http_info(model_id, async_req=True)
|
|
1396
|
+
>>> result = thread.get()
|
|
1397
|
+
|
|
1398
|
+
:param async_req bool
|
|
1399
|
+
:param str model_id: (required)
|
|
1400
|
+
:param datetime _from:
|
|
1401
|
+
:param datetime to:
|
|
1402
|
+
:return: V1GetModelMetricsResponse
|
|
1403
|
+
If the method is called asynchronously,
|
|
1404
|
+
returns the request thread.
|
|
1405
|
+
"""
|
|
1406
|
+
|
|
1407
|
+
all_params = ['model_id', '_from', 'to'] # noqa: E501
|
|
1408
|
+
all_params.append('async_req')
|
|
1409
|
+
all_params.append('_return_http_data_only')
|
|
1410
|
+
all_params.append('_preload_content')
|
|
1411
|
+
all_params.append('_request_timeout')
|
|
1412
|
+
|
|
1413
|
+
params = locals()
|
|
1414
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1415
|
+
if key not in all_params:
|
|
1416
|
+
raise TypeError(
|
|
1417
|
+
"Got an unexpected keyword argument '%s'"
|
|
1418
|
+
" to method assistants_service_get_model_metrics" % key
|
|
1419
|
+
)
|
|
1420
|
+
params[key] = val
|
|
1421
|
+
del params['kwargs']
|
|
1422
|
+
# verify the required parameter 'model_id' is set
|
|
1423
|
+
if ('model_id' not in params or
|
|
1424
|
+
params['model_id'] is None):
|
|
1425
|
+
raise ValueError("Missing the required parameter `model_id` when calling `assistants_service_get_model_metrics`") # noqa: E501
|
|
1426
|
+
|
|
1427
|
+
collection_formats = {}
|
|
1428
|
+
|
|
1429
|
+
path_params = {}
|
|
1430
|
+
if 'model_id' in params:
|
|
1431
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
1432
|
+
|
|
1433
|
+
query_params = []
|
|
1434
|
+
if '_from' in params:
|
|
1435
|
+
query_params.append(('from', params['_from'])) # noqa: E501
|
|
1436
|
+
if 'to' in params:
|
|
1437
|
+
query_params.append(('to', params['to'])) # noqa: E501
|
|
1438
|
+
|
|
1439
|
+
header_params = {}
|
|
1440
|
+
|
|
1441
|
+
form_params = []
|
|
1442
|
+
local_var_files = {}
|
|
1443
|
+
|
|
1444
|
+
body_params = None
|
|
1445
|
+
# HTTP header `Accept`
|
|
1446
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1447
|
+
['application/json']) # noqa: E501
|
|
1448
|
+
|
|
1449
|
+
# Authentication setting
|
|
1450
|
+
auth_settings = [] # noqa: E501
|
|
1451
|
+
|
|
1452
|
+
return self.api_client.call_api(
|
|
1453
|
+
'/v1/agents/metrics/models/{modelId}', 'GET',
|
|
1454
|
+
path_params,
|
|
1455
|
+
query_params,
|
|
1456
|
+
header_params,
|
|
1457
|
+
body=body_params,
|
|
1458
|
+
post_params=form_params,
|
|
1459
|
+
files=local_var_files,
|
|
1460
|
+
response_type='V1GetModelMetricsResponse', # noqa: E501
|
|
1461
|
+
auth_settings=auth_settings,
|
|
1462
|
+
async_req=params.get('async_req'),
|
|
1463
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1464
|
+
_preload_content=params.get('_preload_content', True),
|
|
1465
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1466
|
+
collection_formats=collection_formats)
|
|
1467
|
+
|
|
1468
|
+
def assistants_service_get_model_total_usage_metrics(self, model_id: 'str', **kwargs) -> 'V1GetModelTotalUsageMetricsResponse': # noqa: E501
|
|
1469
|
+
"""model metrics # noqa: E501
|
|
1470
|
+
|
|
1471
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1472
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1473
|
+
>>> thread = api.assistants_service_get_model_total_usage_metrics(model_id, async_req=True)
|
|
1474
|
+
>>> result = thread.get()
|
|
1475
|
+
|
|
1476
|
+
:param async_req bool
|
|
1477
|
+
:param str model_id: (required)
|
|
1478
|
+
:return: V1GetModelTotalUsageMetricsResponse
|
|
1479
|
+
If the method is called asynchronously,
|
|
1480
|
+
returns the request thread.
|
|
1481
|
+
"""
|
|
1482
|
+
kwargs['_return_http_data_only'] = True
|
|
1483
|
+
if kwargs.get('async_req'):
|
|
1484
|
+
return self.assistants_service_get_model_total_usage_metrics_with_http_info(model_id, **kwargs) # noqa: E501
|
|
1485
|
+
else:
|
|
1486
|
+
(data) = self.assistants_service_get_model_total_usage_metrics_with_http_info(model_id, **kwargs) # noqa: E501
|
|
1487
|
+
return data
|
|
1488
|
+
|
|
1489
|
+
def assistants_service_get_model_total_usage_metrics_with_http_info(self, model_id: 'str', **kwargs) -> 'V1GetModelTotalUsageMetricsResponse': # noqa: E501
|
|
1490
|
+
"""model metrics # noqa: E501
|
|
1491
|
+
|
|
1492
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1493
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1494
|
+
>>> thread = api.assistants_service_get_model_total_usage_metrics_with_http_info(model_id, async_req=True)
|
|
1495
|
+
>>> result = thread.get()
|
|
1496
|
+
|
|
1497
|
+
:param async_req bool
|
|
1498
|
+
:param str model_id: (required)
|
|
1499
|
+
:return: V1GetModelTotalUsageMetricsResponse
|
|
1500
|
+
If the method is called asynchronously,
|
|
1501
|
+
returns the request thread.
|
|
1502
|
+
"""
|
|
1503
|
+
|
|
1504
|
+
all_params = ['model_id'] # noqa: E501
|
|
1505
|
+
all_params.append('async_req')
|
|
1506
|
+
all_params.append('_return_http_data_only')
|
|
1507
|
+
all_params.append('_preload_content')
|
|
1508
|
+
all_params.append('_request_timeout')
|
|
1509
|
+
|
|
1510
|
+
params = locals()
|
|
1511
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1512
|
+
if key not in all_params:
|
|
1513
|
+
raise TypeError(
|
|
1514
|
+
"Got an unexpected keyword argument '%s'"
|
|
1515
|
+
" to method assistants_service_get_model_total_usage_metrics" % key
|
|
1516
|
+
)
|
|
1517
|
+
params[key] = val
|
|
1518
|
+
del params['kwargs']
|
|
1519
|
+
# verify the required parameter 'model_id' is set
|
|
1520
|
+
if ('model_id' not in params or
|
|
1521
|
+
params['model_id'] is None):
|
|
1522
|
+
raise ValueError("Missing the required parameter `model_id` when calling `assistants_service_get_model_total_usage_metrics`") # noqa: E501
|
|
1523
|
+
|
|
1524
|
+
collection_formats = {}
|
|
1525
|
+
|
|
1526
|
+
path_params = {}
|
|
1527
|
+
if 'model_id' in params:
|
|
1528
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
1529
|
+
|
|
1530
|
+
query_params = []
|
|
1531
|
+
|
|
1532
|
+
header_params = {}
|
|
1533
|
+
|
|
1534
|
+
form_params = []
|
|
1535
|
+
local_var_files = {}
|
|
1536
|
+
|
|
1537
|
+
body_params = None
|
|
1538
|
+
# HTTP header `Accept`
|
|
1539
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1540
|
+
['application/json']) # noqa: E501
|
|
1541
|
+
|
|
1542
|
+
# Authentication setting
|
|
1543
|
+
auth_settings = [] # noqa: E501
|
|
1544
|
+
|
|
1545
|
+
return self.api_client.call_api(
|
|
1546
|
+
'/v1/agents/{modelId}/total-usage', 'GET',
|
|
1547
|
+
path_params,
|
|
1548
|
+
query_params,
|
|
1549
|
+
header_params,
|
|
1550
|
+
body=body_params,
|
|
1551
|
+
post_params=form_params,
|
|
1552
|
+
files=local_var_files,
|
|
1553
|
+
response_type='V1GetModelTotalUsageMetricsResponse', # noqa: E501
|
|
1554
|
+
auth_settings=auth_settings,
|
|
1555
|
+
async_req=params.get('async_req'),
|
|
1556
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1557
|
+
_preload_content=params.get('_preload_content', True),
|
|
1558
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1559
|
+
collection_formats=collection_formats)
|
|
1560
|
+
|
|
1278
1561
|
def assistants_service_get_published_managed_endpoint_by_model_id(self, id: 'str', **kwargs) -> 'V1ManagedEndpoint': # noqa: E501
|
|
1279
1562
|
"""GetPublishedManagedEndpointModel returns a managed endpoint with a single specific managed endpoint model included in modelsMetadata # noqa: E501
|
|
1280
1563
|
|
|
@@ -213,6 +213,103 @@ class AuthServiceApi(object):
|
|
|
213
213
|
_request_timeout=params.get('_request_timeout'),
|
|
214
214
|
collection_formats=collection_formats)
|
|
215
215
|
|
|
216
|
+
def auth_service_guest_login(self, body: 'V1GuestLoginRequest', **kwargs) -> 'V1GuestLoginResponse': # noqa: E501
|
|
217
|
+
"""auth_service_guest_login # noqa: E501
|
|
218
|
+
|
|
219
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
220
|
+
asynchronous HTTP request, please pass async_req=True
|
|
221
|
+
>>> thread = api.auth_service_guest_login(body, async_req=True)
|
|
222
|
+
>>> result = thread.get()
|
|
223
|
+
|
|
224
|
+
:param async_req bool
|
|
225
|
+
:param V1GuestLoginRequest body: (required)
|
|
226
|
+
:return: V1GuestLoginResponse
|
|
227
|
+
If the method is called asynchronously,
|
|
228
|
+
returns the request thread.
|
|
229
|
+
"""
|
|
230
|
+
kwargs['_return_http_data_only'] = True
|
|
231
|
+
if kwargs.get('async_req'):
|
|
232
|
+
return self.auth_service_guest_login_with_http_info(body, **kwargs) # noqa: E501
|
|
233
|
+
else:
|
|
234
|
+
(data) = self.auth_service_guest_login_with_http_info(body, **kwargs) # noqa: E501
|
|
235
|
+
return data
|
|
236
|
+
|
|
237
|
+
def auth_service_guest_login_with_http_info(self, body: 'V1GuestLoginRequest', **kwargs) -> 'V1GuestLoginResponse': # noqa: E501
|
|
238
|
+
"""auth_service_guest_login # noqa: E501
|
|
239
|
+
|
|
240
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
241
|
+
asynchronous HTTP request, please pass async_req=True
|
|
242
|
+
>>> thread = api.auth_service_guest_login_with_http_info(body, async_req=True)
|
|
243
|
+
>>> result = thread.get()
|
|
244
|
+
|
|
245
|
+
:param async_req bool
|
|
246
|
+
:param V1GuestLoginRequest body: (required)
|
|
247
|
+
:return: V1GuestLoginResponse
|
|
248
|
+
If the method is called asynchronously,
|
|
249
|
+
returns the request thread.
|
|
250
|
+
"""
|
|
251
|
+
|
|
252
|
+
all_params = ['body'] # noqa: E501
|
|
253
|
+
all_params.append('async_req')
|
|
254
|
+
all_params.append('_return_http_data_only')
|
|
255
|
+
all_params.append('_preload_content')
|
|
256
|
+
all_params.append('_request_timeout')
|
|
257
|
+
|
|
258
|
+
params = locals()
|
|
259
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
260
|
+
if key not in all_params:
|
|
261
|
+
raise TypeError(
|
|
262
|
+
"Got an unexpected keyword argument '%s'"
|
|
263
|
+
" to method auth_service_guest_login" % key
|
|
264
|
+
)
|
|
265
|
+
params[key] = val
|
|
266
|
+
del params['kwargs']
|
|
267
|
+
# verify the required parameter 'body' is set
|
|
268
|
+
if ('body' not in params or
|
|
269
|
+
params['body'] is None):
|
|
270
|
+
raise ValueError("Missing the required parameter `body` when calling `auth_service_guest_login`") # noqa: E501
|
|
271
|
+
|
|
272
|
+
collection_formats = {}
|
|
273
|
+
|
|
274
|
+
path_params = {}
|
|
275
|
+
|
|
276
|
+
query_params = []
|
|
277
|
+
|
|
278
|
+
header_params = {}
|
|
279
|
+
|
|
280
|
+
form_params = []
|
|
281
|
+
local_var_files = {}
|
|
282
|
+
|
|
283
|
+
body_params = None
|
|
284
|
+
if 'body' in params:
|
|
285
|
+
body_params = params['body']
|
|
286
|
+
# HTTP header `Accept`
|
|
287
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
288
|
+
['application/json']) # noqa: E501
|
|
289
|
+
|
|
290
|
+
# HTTP header `Content-Type`
|
|
291
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
292
|
+
['application/json']) # noqa: E501
|
|
293
|
+
|
|
294
|
+
# Authentication setting
|
|
295
|
+
auth_settings = [] # noqa: E501
|
|
296
|
+
|
|
297
|
+
return self.api_client.call_api(
|
|
298
|
+
'/v1/auth/guest-login', 'POST',
|
|
299
|
+
path_params,
|
|
300
|
+
query_params,
|
|
301
|
+
header_params,
|
|
302
|
+
body=body_params,
|
|
303
|
+
post_params=form_params,
|
|
304
|
+
files=local_var_files,
|
|
305
|
+
response_type='V1GuestLoginResponse', # noqa: E501
|
|
306
|
+
auth_settings=auth_settings,
|
|
307
|
+
async_req=params.get('async_req'),
|
|
308
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
309
|
+
_preload_content=params.get('_preload_content', True),
|
|
310
|
+
_request_timeout=params.get('_request_timeout'),
|
|
311
|
+
collection_formats=collection_formats)
|
|
312
|
+
|
|
216
313
|
def auth_service_login(self, body: 'V1LoginRequest', **kwargs) -> 'V1LoginResponse': # noqa: E501
|
|
217
314
|
"""auth_service_login # noqa: E501
|
|
218
315
|
|