lightning-sdk 0.2.22__py3-none-any.whl → 0.2.24rc0__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/base_studio_api.py +9 -2
- lightning_sdk/api/deployment_api.py +9 -9
- lightning_sdk/api/license_api.py +2 -2
- lightning_sdk/api/llm_api.py +7 -11
- lightning_sdk/api/pipeline_api.py +31 -10
- lightning_sdk/api/studio_api.py +6 -0
- lightning_sdk/base_studio.py +22 -6
- lightning_sdk/cli/entrypoint.py +15 -13
- lightning_sdk/cli/start.py +5 -2
- lightning_sdk/deployment/deployment.py +17 -7
- lightning_sdk/lightning_cloud/openapi/__init__.py +20 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +114 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +206 -0
- lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +129 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +97 -0
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +118 -1
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_session.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_expert.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +47 -21
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +853 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +29 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1_status.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloudy_experts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_project_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_lite_published_cloud_space_response.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_login_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_token_usage.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_organization_credits_auto_replenish_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_credits_auto_replenish_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +234 -104
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +78 -104
- lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +104 -0
- lightning_sdk/llm/llm.py +113 -115
- lightning_sdk/llm/public_assistants.json +8 -0
- lightning_sdk/pipeline/__init__.py +11 -2
- lightning_sdk/pipeline/pipeline.py +54 -14
- lightning_sdk/pipeline/printer.py +36 -16
- lightning_sdk/pipeline/schedule.py +2 -1
- lightning_sdk/pipeline/{types.py → steps.py} +77 -56
- lightning_sdk/pipeline/utils.py +65 -3
- lightning_sdk/sandbox.py +157 -0
- lightning_sdk/services/license.py +12 -6
- lightning_sdk/studio.py +10 -1
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/RECORD +101 -79
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/top_level.txt +0 -0
|
@@ -952,6 +952,111 @@ class AssistantsServiceApi(object):
|
|
|
952
952
|
_request_timeout=params.get('_request_timeout'),
|
|
953
953
|
collection_formats=collection_formats)
|
|
954
954
|
|
|
955
|
+
def assistants_service_get_managed_model_assistant(self, model_name: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
|
|
956
|
+
"""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
|
+
|
|
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_managed_model_assistant(model_name, async_req=True)
|
|
961
|
+
>>> result = thread.get()
|
|
962
|
+
|
|
963
|
+
:param async_req bool
|
|
964
|
+
:param str model_name: (required)
|
|
965
|
+
:param str user_name:
|
|
966
|
+
:param str org_name:
|
|
967
|
+
:param str model_provider:
|
|
968
|
+
:return: V1Assistant
|
|
969
|
+
If the method is called asynchronously,
|
|
970
|
+
returns the request thread.
|
|
971
|
+
"""
|
|
972
|
+
kwargs['_return_http_data_only'] = True
|
|
973
|
+
if kwargs.get('async_req'):
|
|
974
|
+
return self.assistants_service_get_managed_model_assistant_with_http_info(model_name, **kwargs) # noqa: E501
|
|
975
|
+
else:
|
|
976
|
+
(data) = self.assistants_service_get_managed_model_assistant_with_http_info(model_name, **kwargs) # noqa: E501
|
|
977
|
+
return data
|
|
978
|
+
|
|
979
|
+
def assistants_service_get_managed_model_assistant_with_http_info(self, model_name: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
|
|
980
|
+
"""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
|
|
981
|
+
|
|
982
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
983
|
+
asynchronous HTTP request, please pass async_req=True
|
|
984
|
+
>>> thread = api.assistants_service_get_managed_model_assistant_with_http_info(model_name, async_req=True)
|
|
985
|
+
>>> result = thread.get()
|
|
986
|
+
|
|
987
|
+
:param async_req bool
|
|
988
|
+
:param str model_name: (required)
|
|
989
|
+
:param str user_name:
|
|
990
|
+
:param str org_name:
|
|
991
|
+
:param str model_provider:
|
|
992
|
+
:return: V1Assistant
|
|
993
|
+
If the method is called asynchronously,
|
|
994
|
+
returns the request thread.
|
|
995
|
+
"""
|
|
996
|
+
|
|
997
|
+
all_params = ['model_name', 'user_name', 'org_name', 'model_provider'] # noqa: E501
|
|
998
|
+
all_params.append('async_req')
|
|
999
|
+
all_params.append('_return_http_data_only')
|
|
1000
|
+
all_params.append('_preload_content')
|
|
1001
|
+
all_params.append('_request_timeout')
|
|
1002
|
+
|
|
1003
|
+
params = locals()
|
|
1004
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1005
|
+
if key not in all_params:
|
|
1006
|
+
raise TypeError(
|
|
1007
|
+
"Got an unexpected keyword argument '%s'"
|
|
1008
|
+
" to method assistants_service_get_managed_model_assistant" % key
|
|
1009
|
+
)
|
|
1010
|
+
params[key] = val
|
|
1011
|
+
del params['kwargs']
|
|
1012
|
+
# verify the required parameter 'model_name' is set
|
|
1013
|
+
if ('model_name' not in params or
|
|
1014
|
+
params['model_name'] is None):
|
|
1015
|
+
raise ValueError("Missing the required parameter `model_name` when calling `assistants_service_get_managed_model_assistant`") # noqa: E501
|
|
1016
|
+
|
|
1017
|
+
collection_formats = {}
|
|
1018
|
+
|
|
1019
|
+
path_params = {}
|
|
1020
|
+
if 'model_name' in params:
|
|
1021
|
+
path_params['modelName'] = params['model_name'] # noqa: E501
|
|
1022
|
+
|
|
1023
|
+
query_params = []
|
|
1024
|
+
if 'user_name' in params:
|
|
1025
|
+
query_params.append(('userName', params['user_name'])) # noqa: E501
|
|
1026
|
+
if 'org_name' in params:
|
|
1027
|
+
query_params.append(('orgName', params['org_name'])) # noqa: E501
|
|
1028
|
+
if 'model_provider' in params:
|
|
1029
|
+
query_params.append(('modelProvider', params['model_provider'])) # noqa: E501
|
|
1030
|
+
|
|
1031
|
+
header_params = {}
|
|
1032
|
+
|
|
1033
|
+
form_params = []
|
|
1034
|
+
local_var_files = {}
|
|
1035
|
+
|
|
1036
|
+
body_params = None
|
|
1037
|
+
# HTTP header `Accept`
|
|
1038
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1039
|
+
['application/json']) # noqa: E501
|
|
1040
|
+
|
|
1041
|
+
# Authentication setting
|
|
1042
|
+
auth_settings = [] # noqa: E501
|
|
1043
|
+
|
|
1044
|
+
return self.api_client.call_api(
|
|
1045
|
+
'/v1/agents/managed-model/{modelName}', 'GET',
|
|
1046
|
+
path_params,
|
|
1047
|
+
query_params,
|
|
1048
|
+
header_params,
|
|
1049
|
+
body=body_params,
|
|
1050
|
+
post_params=form_params,
|
|
1051
|
+
files=local_var_files,
|
|
1052
|
+
response_type='V1Assistant', # noqa: E501
|
|
1053
|
+
auth_settings=auth_settings,
|
|
1054
|
+
async_req=params.get('async_req'),
|
|
1055
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1056
|
+
_preload_content=params.get('_preload_content', True),
|
|
1057
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1058
|
+
collection_formats=collection_formats)
|
|
1059
|
+
|
|
955
1060
|
def assistants_service_get_managed_model_by_name(self, project_id: 'str', managed_endpoint_id: 'str', name: 'str', **kwargs) -> 'V1ManagedModel': # noqa: E501
|
|
956
1061
|
"""assistants_service_get_managed_model_by_name # noqa: E501
|
|
957
1062
|
|
|
@@ -1169,6 +1274,8 @@ class AssistantsServiceApi(object):
|
|
|
1169
1274
|
:param bool published:
|
|
1170
1275
|
:param str internal_name:
|
|
1171
1276
|
:param str user_id:
|
|
1277
|
+
:param bool cloudy_compatible:
|
|
1278
|
+
:param bool model_assistants_only:
|
|
1172
1279
|
:return: V1ListAssistantsResponse
|
|
1173
1280
|
If the method is called asynchronously,
|
|
1174
1281
|
returns the request thread.
|
|
@@ -1195,12 +1302,14 @@ class AssistantsServiceApi(object):
|
|
|
1195
1302
|
:param bool published:
|
|
1196
1303
|
:param str internal_name:
|
|
1197
1304
|
:param str user_id:
|
|
1305
|
+
:param bool cloudy_compatible:
|
|
1306
|
+
:param bool model_assistants_only:
|
|
1198
1307
|
:return: V1ListAssistantsResponse
|
|
1199
1308
|
If the method is called asynchronously,
|
|
1200
1309
|
returns the request thread.
|
|
1201
1310
|
"""
|
|
1202
1311
|
|
|
1203
|
-
all_params = ['org_id', 'project_id', 'cloudspace_id', 'published', 'internal_name', 'user_id'] # noqa: E501
|
|
1312
|
+
all_params = ['org_id', 'project_id', 'cloudspace_id', 'published', 'internal_name', 'user_id', 'cloudy_compatible', 'model_assistants_only'] # noqa: E501
|
|
1204
1313
|
all_params.append('async_req')
|
|
1205
1314
|
all_params.append('_return_http_data_only')
|
|
1206
1315
|
all_params.append('_preload_content')
|
|
@@ -1233,6 +1342,10 @@ class AssistantsServiceApi(object):
|
|
|
1233
1342
|
query_params.append(('internalName', params['internal_name'])) # noqa: E501
|
|
1234
1343
|
if 'user_id' in params:
|
|
1235
1344
|
query_params.append(('userId', params['user_id'])) # noqa: E501
|
|
1345
|
+
if 'cloudy_compatible' in params:
|
|
1346
|
+
query_params.append(('cloudyCompatible', params['cloudy_compatible'])) # noqa: E501
|
|
1347
|
+
if 'model_assistants_only' in params:
|
|
1348
|
+
query_params.append(('modelAssistantsOnly', params['model_assistants_only'])) # noqa: E501
|
|
1236
1349
|
|
|
1237
1350
|
header_params = {}
|
|
1238
1351
|
|
|
@@ -4785,6 +4785,99 @@ class CloudSpaceServiceApi(object):
|
|
|
4785
4785
|
_request_timeout=params.get('_request_timeout'),
|
|
4786
4786
|
collection_formats=collection_formats)
|
|
4787
4787
|
|
|
4788
|
+
def cloud_space_service_get_public_cloud_space_by_id(self, id: 'str', **kwargs) -> 'V1LitePublishedCloudSpaceResponse': # noqa: E501
|
|
4789
|
+
"""cloud_space_service_get_public_cloud_space_by_id # noqa: E501
|
|
4790
|
+
|
|
4791
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4792
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4793
|
+
>>> thread = api.cloud_space_service_get_public_cloud_space_by_id(id, async_req=True)
|
|
4794
|
+
>>> result = thread.get()
|
|
4795
|
+
|
|
4796
|
+
:param async_req bool
|
|
4797
|
+
:param str id: (required)
|
|
4798
|
+
:return: V1LitePublishedCloudSpaceResponse
|
|
4799
|
+
If the method is called asynchronously,
|
|
4800
|
+
returns the request thread.
|
|
4801
|
+
"""
|
|
4802
|
+
kwargs['_return_http_data_only'] = True
|
|
4803
|
+
if kwargs.get('async_req'):
|
|
4804
|
+
return self.cloud_space_service_get_public_cloud_space_by_id_with_http_info(id, **kwargs) # noqa: E501
|
|
4805
|
+
else:
|
|
4806
|
+
(data) = self.cloud_space_service_get_public_cloud_space_by_id_with_http_info(id, **kwargs) # noqa: E501
|
|
4807
|
+
return data
|
|
4808
|
+
|
|
4809
|
+
def cloud_space_service_get_public_cloud_space_by_id_with_http_info(self, id: 'str', **kwargs) -> 'V1LitePublishedCloudSpaceResponse': # noqa: E501
|
|
4810
|
+
"""cloud_space_service_get_public_cloud_space_by_id # noqa: E501
|
|
4811
|
+
|
|
4812
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4813
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4814
|
+
>>> thread = api.cloud_space_service_get_public_cloud_space_by_id_with_http_info(id, async_req=True)
|
|
4815
|
+
>>> result = thread.get()
|
|
4816
|
+
|
|
4817
|
+
:param async_req bool
|
|
4818
|
+
:param str id: (required)
|
|
4819
|
+
:return: V1LitePublishedCloudSpaceResponse
|
|
4820
|
+
If the method is called asynchronously,
|
|
4821
|
+
returns the request thread.
|
|
4822
|
+
"""
|
|
4823
|
+
|
|
4824
|
+
all_params = ['id'] # noqa: E501
|
|
4825
|
+
all_params.append('async_req')
|
|
4826
|
+
all_params.append('_return_http_data_only')
|
|
4827
|
+
all_params.append('_preload_content')
|
|
4828
|
+
all_params.append('_request_timeout')
|
|
4829
|
+
|
|
4830
|
+
params = locals()
|
|
4831
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
4832
|
+
if key not in all_params:
|
|
4833
|
+
raise TypeError(
|
|
4834
|
+
"Got an unexpected keyword argument '%s'"
|
|
4835
|
+
" to method cloud_space_service_get_public_cloud_space_by_id" % key
|
|
4836
|
+
)
|
|
4837
|
+
params[key] = val
|
|
4838
|
+
del params['kwargs']
|
|
4839
|
+
# verify the required parameter 'id' is set
|
|
4840
|
+
if ('id' not in params or
|
|
4841
|
+
params['id'] is None):
|
|
4842
|
+
raise ValueError("Missing the required parameter `id` when calling `cloud_space_service_get_public_cloud_space_by_id`") # noqa: E501
|
|
4843
|
+
|
|
4844
|
+
collection_formats = {}
|
|
4845
|
+
|
|
4846
|
+
path_params = {}
|
|
4847
|
+
if 'id' in params:
|
|
4848
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
4849
|
+
|
|
4850
|
+
query_params = []
|
|
4851
|
+
|
|
4852
|
+
header_params = {}
|
|
4853
|
+
|
|
4854
|
+
form_params = []
|
|
4855
|
+
local_var_files = {}
|
|
4856
|
+
|
|
4857
|
+
body_params = None
|
|
4858
|
+
# HTTP header `Accept`
|
|
4859
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
4860
|
+
['application/json']) # noqa: E501
|
|
4861
|
+
|
|
4862
|
+
# Authentication setting
|
|
4863
|
+
auth_settings = [] # noqa: E501
|
|
4864
|
+
|
|
4865
|
+
return self.api_client.call_api(
|
|
4866
|
+
'/v1/cloudspaces/public/{id}', 'GET',
|
|
4867
|
+
path_params,
|
|
4868
|
+
query_params,
|
|
4869
|
+
header_params,
|
|
4870
|
+
body=body_params,
|
|
4871
|
+
post_params=form_params,
|
|
4872
|
+
files=local_var_files,
|
|
4873
|
+
response_type='V1LitePublishedCloudSpaceResponse', # noqa: E501
|
|
4874
|
+
auth_settings=auth_settings,
|
|
4875
|
+
async_req=params.get('async_req'),
|
|
4876
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
4877
|
+
_preload_content=params.get('_preload_content', True),
|
|
4878
|
+
_request_timeout=params.get('_request_timeout'),
|
|
4879
|
+
collection_formats=collection_formats)
|
|
4880
|
+
|
|
4788
4881
|
def cloud_space_service_install_plugin(self, project_id: 'str', id: 'str', plugin_id: 'str', **kwargs) -> 'V1Plugin': # noqa: E501
|
|
4789
4882
|
"""cloud_space_service_install_plugin # noqa: E501
|
|
4790
4883
|
|
|
@@ -8979,3 +9072,116 @@ class CloudSpaceServiceApi(object):
|
|
|
8979
9072
|
_preload_content=params.get('_preload_content', True),
|
|
8980
9073
|
_request_timeout=params.get('_request_timeout'),
|
|
8981
9074
|
collection_formats=collection_formats)
|
|
9075
|
+
|
|
9076
|
+
def cloud_space_service_update_cloud_space_visibility(self, body: 'CloudspaceIdVisibilityBody', project_id: 'str', cloudspace_id: 'str', **kwargs) -> 'V1UpdateCloudSpaceVisibilityResponse': # noqa: E501
|
|
9077
|
+
"""UpdateJobVisibility updates the jobs visibility, mainly switch between public and private # noqa: E501
|
|
9078
|
+
|
|
9079
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
9080
|
+
asynchronous HTTP request, please pass async_req=True
|
|
9081
|
+
>>> thread = api.cloud_space_service_update_cloud_space_visibility(body, project_id, cloudspace_id, async_req=True)
|
|
9082
|
+
>>> result = thread.get()
|
|
9083
|
+
|
|
9084
|
+
:param async_req bool
|
|
9085
|
+
:param CloudspaceIdVisibilityBody body: (required)
|
|
9086
|
+
:param str project_id: (required)
|
|
9087
|
+
:param str cloudspace_id: (required)
|
|
9088
|
+
:return: V1UpdateCloudSpaceVisibilityResponse
|
|
9089
|
+
If the method is called asynchronously,
|
|
9090
|
+
returns the request thread.
|
|
9091
|
+
"""
|
|
9092
|
+
kwargs['_return_http_data_only'] = True
|
|
9093
|
+
if kwargs.get('async_req'):
|
|
9094
|
+
return self.cloud_space_service_update_cloud_space_visibility_with_http_info(body, project_id, cloudspace_id, **kwargs) # noqa: E501
|
|
9095
|
+
else:
|
|
9096
|
+
(data) = self.cloud_space_service_update_cloud_space_visibility_with_http_info(body, project_id, cloudspace_id, **kwargs) # noqa: E501
|
|
9097
|
+
return data
|
|
9098
|
+
|
|
9099
|
+
def cloud_space_service_update_cloud_space_visibility_with_http_info(self, body: 'CloudspaceIdVisibilityBody', project_id: 'str', cloudspace_id: 'str', **kwargs) -> 'V1UpdateCloudSpaceVisibilityResponse': # noqa: E501
|
|
9100
|
+
"""UpdateJobVisibility updates the jobs visibility, mainly switch between public and private # noqa: E501
|
|
9101
|
+
|
|
9102
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
9103
|
+
asynchronous HTTP request, please pass async_req=True
|
|
9104
|
+
>>> thread = api.cloud_space_service_update_cloud_space_visibility_with_http_info(body, project_id, cloudspace_id, async_req=True)
|
|
9105
|
+
>>> result = thread.get()
|
|
9106
|
+
|
|
9107
|
+
:param async_req bool
|
|
9108
|
+
:param CloudspaceIdVisibilityBody body: (required)
|
|
9109
|
+
:param str project_id: (required)
|
|
9110
|
+
:param str cloudspace_id: (required)
|
|
9111
|
+
:return: V1UpdateCloudSpaceVisibilityResponse
|
|
9112
|
+
If the method is called asynchronously,
|
|
9113
|
+
returns the request thread.
|
|
9114
|
+
"""
|
|
9115
|
+
|
|
9116
|
+
all_params = ['body', 'project_id', 'cloudspace_id'] # noqa: E501
|
|
9117
|
+
all_params.append('async_req')
|
|
9118
|
+
all_params.append('_return_http_data_only')
|
|
9119
|
+
all_params.append('_preload_content')
|
|
9120
|
+
all_params.append('_request_timeout')
|
|
9121
|
+
|
|
9122
|
+
params = locals()
|
|
9123
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
9124
|
+
if key not in all_params:
|
|
9125
|
+
raise TypeError(
|
|
9126
|
+
"Got an unexpected keyword argument '%s'"
|
|
9127
|
+
" to method cloud_space_service_update_cloud_space_visibility" % key
|
|
9128
|
+
)
|
|
9129
|
+
params[key] = val
|
|
9130
|
+
del params['kwargs']
|
|
9131
|
+
# verify the required parameter 'body' is set
|
|
9132
|
+
if ('body' not in params or
|
|
9133
|
+
params['body'] is None):
|
|
9134
|
+
raise ValueError("Missing the required parameter `body` when calling `cloud_space_service_update_cloud_space_visibility`") # noqa: E501
|
|
9135
|
+
# verify the required parameter 'project_id' is set
|
|
9136
|
+
if ('project_id' not in params or
|
|
9137
|
+
params['project_id'] is None):
|
|
9138
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cloud_space_service_update_cloud_space_visibility`") # noqa: E501
|
|
9139
|
+
# verify the required parameter 'cloudspace_id' is set
|
|
9140
|
+
if ('cloudspace_id' not in params or
|
|
9141
|
+
params['cloudspace_id'] is None):
|
|
9142
|
+
raise ValueError("Missing the required parameter `cloudspace_id` when calling `cloud_space_service_update_cloud_space_visibility`") # noqa: E501
|
|
9143
|
+
|
|
9144
|
+
collection_formats = {}
|
|
9145
|
+
|
|
9146
|
+
path_params = {}
|
|
9147
|
+
if 'project_id' in params:
|
|
9148
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
9149
|
+
if 'cloudspace_id' in params:
|
|
9150
|
+
path_params['cloudspaceId'] = params['cloudspace_id'] # noqa: E501
|
|
9151
|
+
|
|
9152
|
+
query_params = []
|
|
9153
|
+
|
|
9154
|
+
header_params = {}
|
|
9155
|
+
|
|
9156
|
+
form_params = []
|
|
9157
|
+
local_var_files = {}
|
|
9158
|
+
|
|
9159
|
+
body_params = None
|
|
9160
|
+
if 'body' in params:
|
|
9161
|
+
body_params = params['body']
|
|
9162
|
+
# HTTP header `Accept`
|
|
9163
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
9164
|
+
['application/json']) # noqa: E501
|
|
9165
|
+
|
|
9166
|
+
# HTTP header `Content-Type`
|
|
9167
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
9168
|
+
['application/json']) # noqa: E501
|
|
9169
|
+
|
|
9170
|
+
# Authentication setting
|
|
9171
|
+
auth_settings = [] # noqa: E501
|
|
9172
|
+
|
|
9173
|
+
return self.api_client.call_api(
|
|
9174
|
+
'/v1/projects/{projectId}/cloudspaces/{cloudspaceId}/visibility', 'PUT',
|
|
9175
|
+
path_params,
|
|
9176
|
+
query_params,
|
|
9177
|
+
header_params,
|
|
9178
|
+
body=body_params,
|
|
9179
|
+
post_params=form_params,
|
|
9180
|
+
files=local_var_files,
|
|
9181
|
+
response_type='V1UpdateCloudSpaceVisibilityResponse', # noqa: E501
|
|
9182
|
+
auth_settings=auth_settings,
|
|
9183
|
+
async_req=params.get('async_req'),
|
|
9184
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
9185
|
+
_preload_content=params.get('_preload_content', True),
|
|
9186
|
+
_request_timeout=params.get('_request_timeout'),
|
|
9187
|
+
collection_formats=collection_formats)
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from __future__ import absolute_import
|
|
21
|
+
|
|
22
|
+
import re # noqa: F401
|
|
23
|
+
from typing import TYPE_CHECKING, Any
|
|
24
|
+
|
|
25
|
+
# python 2 and python 3 compatibility library
|
|
26
|
+
import six
|
|
27
|
+
|
|
28
|
+
from lightning_sdk.lightning_cloud.openapi.api_client import ApiClient
|
|
29
|
+
|
|
30
|
+
if TYPE_CHECKING:
|
|
31
|
+
from datetime import datetime
|
|
32
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
33
|
+
|
|
34
|
+
class CloudyServiceApi(object):
|
|
35
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
def __init__(self, api_client=None):
|
|
42
|
+
if api_client is None:
|
|
43
|
+
api_client = ApiClient()
|
|
44
|
+
self.api_client = api_client
|
|
45
|
+
|
|
46
|
+
def cloudy_service_list_cloudy_experts(self, **kwargs) -> 'V1ListCloudyExpertsResponse': # noqa: E501
|
|
47
|
+
"""Lists all available Cloudy Experts This endpoint returns a list of all Cloudy Experts that can be used to generate cloudy responses # noqa: E501
|
|
48
|
+
|
|
49
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
50
|
+
asynchronous HTTP request, please pass async_req=True
|
|
51
|
+
>>> thread = api.cloudy_service_list_cloudy_experts(async_req=True)
|
|
52
|
+
>>> result = thread.get()
|
|
53
|
+
|
|
54
|
+
:param async_req bool
|
|
55
|
+
:return: V1ListCloudyExpertsResponse
|
|
56
|
+
If the method is called asynchronously,
|
|
57
|
+
returns the request thread.
|
|
58
|
+
"""
|
|
59
|
+
kwargs['_return_http_data_only'] = True
|
|
60
|
+
if kwargs.get('async_req'):
|
|
61
|
+
return self.cloudy_service_list_cloudy_experts_with_http_info(**kwargs) # noqa: E501
|
|
62
|
+
else:
|
|
63
|
+
(data) = self.cloudy_service_list_cloudy_experts_with_http_info(**kwargs) # noqa: E501
|
|
64
|
+
return data
|
|
65
|
+
|
|
66
|
+
def cloudy_service_list_cloudy_experts_with_http_info(self, **kwargs) -> 'V1ListCloudyExpertsResponse': # noqa: E501
|
|
67
|
+
"""Lists all available Cloudy Experts This endpoint returns a list of all Cloudy Experts that can be used to generate cloudy responses # noqa: E501
|
|
68
|
+
|
|
69
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
70
|
+
asynchronous HTTP request, please pass async_req=True
|
|
71
|
+
>>> thread = api.cloudy_service_list_cloudy_experts_with_http_info(async_req=True)
|
|
72
|
+
>>> result = thread.get()
|
|
73
|
+
|
|
74
|
+
:param async_req bool
|
|
75
|
+
:return: V1ListCloudyExpertsResponse
|
|
76
|
+
If the method is called asynchronously,
|
|
77
|
+
returns the request thread.
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
all_params = [] # noqa: E501
|
|
81
|
+
all_params.append('async_req')
|
|
82
|
+
all_params.append('_return_http_data_only')
|
|
83
|
+
all_params.append('_preload_content')
|
|
84
|
+
all_params.append('_request_timeout')
|
|
85
|
+
|
|
86
|
+
params = locals()
|
|
87
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
88
|
+
if key not in all_params:
|
|
89
|
+
raise TypeError(
|
|
90
|
+
"Got an unexpected keyword argument '%s'"
|
|
91
|
+
" to method cloudy_service_list_cloudy_experts" % key
|
|
92
|
+
)
|
|
93
|
+
params[key] = val
|
|
94
|
+
del params['kwargs']
|
|
95
|
+
|
|
96
|
+
collection_formats = {}
|
|
97
|
+
|
|
98
|
+
path_params = {}
|
|
99
|
+
|
|
100
|
+
query_params = []
|
|
101
|
+
|
|
102
|
+
header_params = {}
|
|
103
|
+
|
|
104
|
+
form_params = []
|
|
105
|
+
local_var_files = {}
|
|
106
|
+
|
|
107
|
+
body_params = None
|
|
108
|
+
# HTTP header `Accept`
|
|
109
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
110
|
+
['application/json']) # noqa: E501
|
|
111
|
+
|
|
112
|
+
# Authentication setting
|
|
113
|
+
auth_settings = [] # noqa: E501
|
|
114
|
+
|
|
115
|
+
return self.api_client.call_api(
|
|
116
|
+
'/v1/cloudy/experts', 'GET',
|
|
117
|
+
path_params,
|
|
118
|
+
query_params,
|
|
119
|
+
header_params,
|
|
120
|
+
body=body_params,
|
|
121
|
+
post_params=form_params,
|
|
122
|
+
files=local_var_files,
|
|
123
|
+
response_type='V1ListCloudyExpertsResponse', # noqa: E501
|
|
124
|
+
auth_settings=auth_settings,
|
|
125
|
+
async_req=params.get('async_req'),
|
|
126
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
127
|
+
_preload_content=params.get('_preload_content', True),
|
|
128
|
+
_request_timeout=params.get('_request_timeout'),
|
|
129
|
+
collection_formats=collection_formats)
|
|
@@ -43,6 +43,103 @@ class ClusterServiceApi(object):
|
|
|
43
43
|
api_client = ApiClient()
|
|
44
44
|
self.api_client = api_client
|
|
45
45
|
|
|
46
|
+
def cluster_service_check_cluster_name_availability(self, body: 'V1CheckClusterNameAvailabilityRequest', **kwargs) -> 'V1CheckClusterNameAvailabilityResponse': # noqa: E501
|
|
47
|
+
"""cluster_service_check_cluster_name_availability # noqa: E501
|
|
48
|
+
|
|
49
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
50
|
+
asynchronous HTTP request, please pass async_req=True
|
|
51
|
+
>>> thread = api.cluster_service_check_cluster_name_availability(body, async_req=True)
|
|
52
|
+
>>> result = thread.get()
|
|
53
|
+
|
|
54
|
+
:param async_req bool
|
|
55
|
+
:param V1CheckClusterNameAvailabilityRequest body: (required)
|
|
56
|
+
:return: V1CheckClusterNameAvailabilityResponse
|
|
57
|
+
If the method is called asynchronously,
|
|
58
|
+
returns the request thread.
|
|
59
|
+
"""
|
|
60
|
+
kwargs['_return_http_data_only'] = True
|
|
61
|
+
if kwargs.get('async_req'):
|
|
62
|
+
return self.cluster_service_check_cluster_name_availability_with_http_info(body, **kwargs) # noqa: E501
|
|
63
|
+
else:
|
|
64
|
+
(data) = self.cluster_service_check_cluster_name_availability_with_http_info(body, **kwargs) # noqa: E501
|
|
65
|
+
return data
|
|
66
|
+
|
|
67
|
+
def cluster_service_check_cluster_name_availability_with_http_info(self, body: 'V1CheckClusterNameAvailabilityRequest', **kwargs) -> 'V1CheckClusterNameAvailabilityResponse': # noqa: E501
|
|
68
|
+
"""cluster_service_check_cluster_name_availability # noqa: E501
|
|
69
|
+
|
|
70
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
71
|
+
asynchronous HTTP request, please pass async_req=True
|
|
72
|
+
>>> thread = api.cluster_service_check_cluster_name_availability_with_http_info(body, async_req=True)
|
|
73
|
+
>>> result = thread.get()
|
|
74
|
+
|
|
75
|
+
:param async_req bool
|
|
76
|
+
:param V1CheckClusterNameAvailabilityRequest body: (required)
|
|
77
|
+
:return: V1CheckClusterNameAvailabilityResponse
|
|
78
|
+
If the method is called asynchronously,
|
|
79
|
+
returns the request thread.
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
all_params = ['body'] # noqa: E501
|
|
83
|
+
all_params.append('async_req')
|
|
84
|
+
all_params.append('_return_http_data_only')
|
|
85
|
+
all_params.append('_preload_content')
|
|
86
|
+
all_params.append('_request_timeout')
|
|
87
|
+
|
|
88
|
+
params = locals()
|
|
89
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
90
|
+
if key not in all_params:
|
|
91
|
+
raise TypeError(
|
|
92
|
+
"Got an unexpected keyword argument '%s'"
|
|
93
|
+
" to method cluster_service_check_cluster_name_availability" % key
|
|
94
|
+
)
|
|
95
|
+
params[key] = val
|
|
96
|
+
del params['kwargs']
|
|
97
|
+
# verify the required parameter 'body' is set
|
|
98
|
+
if ('body' not in params or
|
|
99
|
+
params['body'] is None):
|
|
100
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_check_cluster_name_availability`") # noqa: E501
|
|
101
|
+
|
|
102
|
+
collection_formats = {}
|
|
103
|
+
|
|
104
|
+
path_params = {}
|
|
105
|
+
|
|
106
|
+
query_params = []
|
|
107
|
+
|
|
108
|
+
header_params = {}
|
|
109
|
+
|
|
110
|
+
form_params = []
|
|
111
|
+
local_var_files = {}
|
|
112
|
+
|
|
113
|
+
body_params = None
|
|
114
|
+
if 'body' in params:
|
|
115
|
+
body_params = params['body']
|
|
116
|
+
# HTTP header `Accept`
|
|
117
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
118
|
+
['application/json']) # noqa: E501
|
|
119
|
+
|
|
120
|
+
# HTTP header `Content-Type`
|
|
121
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
122
|
+
['application/json']) # noqa: E501
|
|
123
|
+
|
|
124
|
+
# Authentication setting
|
|
125
|
+
auth_settings = [] # noqa: E501
|
|
126
|
+
|
|
127
|
+
return self.api_client.call_api(
|
|
128
|
+
'/v1/core/cluster-name-available', 'POST',
|
|
129
|
+
path_params,
|
|
130
|
+
query_params,
|
|
131
|
+
header_params,
|
|
132
|
+
body=body_params,
|
|
133
|
+
post_params=form_params,
|
|
134
|
+
files=local_var_files,
|
|
135
|
+
response_type='V1CheckClusterNameAvailabilityResponse', # noqa: E501
|
|
136
|
+
auth_settings=auth_settings,
|
|
137
|
+
async_req=params.get('async_req'),
|
|
138
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
139
|
+
_preload_content=params.get('_preload_content', True),
|
|
140
|
+
_request_timeout=params.get('_request_timeout'),
|
|
141
|
+
collection_formats=collection_formats)
|
|
142
|
+
|
|
46
143
|
def cluster_service_create_cluster(self, body: 'V1CreateClusterRequest', **kwargs) -> 'V1CreateClusterResponse': # noqa: E501
|
|
47
144
|
"""TODO: delete all non-project related endpoints # noqa: E501
|
|
48
145
|
|