lightning-sdk 2025.9.4__py3-none-any.whl → 2025.9.11__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/llm_api.py +19 -0
- lightning_sdk/api/studio_api.py +25 -4
- lightning_sdk/lightning_cloud/login.py +60 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +17 -0
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +744 -13
- lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +17 -0
- lightning_sdk/lightning_cloud/openapi/models/id_render_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_kubernetestemplates_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/project_tab_management_messages.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_ai_pod_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_kubernetes_template_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_firewall_rule.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_event.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_severity.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_indexes.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template_property.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_tab.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_annual_upsell_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_render_kubernetes_template_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_project_tab_order_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +154 -102
- lightning_sdk/llm/llm.py +91 -7
- lightning_sdk/llm/public_assistants.py +2 -2
- lightning_sdk/studio.py +30 -3
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.11.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.11.dist-info}/RECORD +43 -26
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.11.dist-info}/entry_points.txt +1 -0
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.11.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.11.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.11.dist-info}/top_level.txt +0 -0
|
@@ -1965,3 +1965,108 @@ class ProjectsServiceApi(object):
|
|
|
1965
1965
|
_preload_content=params.get('_preload_content', True),
|
|
1966
1966
|
_request_timeout=params.get('_request_timeout'),
|
|
1967
1967
|
collection_formats=collection_formats)
|
|
1968
|
+
|
|
1969
|
+
def projects_service_update_project_tab_order(self, body: 'ProjectTabManagementMessages', project_id: 'str', **kwargs) -> 'V1UpdateProjectTabOrderResponse': # noqa: E501
|
|
1970
|
+
"""Project tab management # noqa: E501
|
|
1971
|
+
|
|
1972
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1973
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1974
|
+
>>> thread = api.projects_service_update_project_tab_order(body, project_id, async_req=True)
|
|
1975
|
+
>>> result = thread.get()
|
|
1976
|
+
|
|
1977
|
+
:param async_req bool
|
|
1978
|
+
:param ProjectTabManagementMessages body: (required)
|
|
1979
|
+
:param str project_id: (required)
|
|
1980
|
+
:return: V1UpdateProjectTabOrderResponse
|
|
1981
|
+
If the method is called asynchronously,
|
|
1982
|
+
returns the request thread.
|
|
1983
|
+
"""
|
|
1984
|
+
kwargs['_return_http_data_only'] = True
|
|
1985
|
+
if kwargs.get('async_req'):
|
|
1986
|
+
return self.projects_service_update_project_tab_order_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
1987
|
+
else:
|
|
1988
|
+
(data) = self.projects_service_update_project_tab_order_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
1989
|
+
return data
|
|
1990
|
+
|
|
1991
|
+
def projects_service_update_project_tab_order_with_http_info(self, body: 'ProjectTabManagementMessages', project_id: 'str', **kwargs) -> 'V1UpdateProjectTabOrderResponse': # noqa: E501
|
|
1992
|
+
"""Project tab management # noqa: E501
|
|
1993
|
+
|
|
1994
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1995
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1996
|
+
>>> thread = api.projects_service_update_project_tab_order_with_http_info(body, project_id, async_req=True)
|
|
1997
|
+
>>> result = thread.get()
|
|
1998
|
+
|
|
1999
|
+
:param async_req bool
|
|
2000
|
+
:param ProjectTabManagementMessages body: (required)
|
|
2001
|
+
:param str project_id: (required)
|
|
2002
|
+
:return: V1UpdateProjectTabOrderResponse
|
|
2003
|
+
If the method is called asynchronously,
|
|
2004
|
+
returns the request thread.
|
|
2005
|
+
"""
|
|
2006
|
+
|
|
2007
|
+
all_params = ['body', 'project_id'] # noqa: E501
|
|
2008
|
+
all_params.append('async_req')
|
|
2009
|
+
all_params.append('_return_http_data_only')
|
|
2010
|
+
all_params.append('_preload_content')
|
|
2011
|
+
all_params.append('_request_timeout')
|
|
2012
|
+
|
|
2013
|
+
params = locals()
|
|
2014
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2015
|
+
if key not in all_params:
|
|
2016
|
+
raise TypeError(
|
|
2017
|
+
"Got an unexpected keyword argument '%s'"
|
|
2018
|
+
" to method projects_service_update_project_tab_order" % key
|
|
2019
|
+
)
|
|
2020
|
+
params[key] = val
|
|
2021
|
+
del params['kwargs']
|
|
2022
|
+
# verify the required parameter 'body' is set
|
|
2023
|
+
if ('body' not in params or
|
|
2024
|
+
params['body'] is None):
|
|
2025
|
+
raise ValueError("Missing the required parameter `body` when calling `projects_service_update_project_tab_order`") # noqa: E501
|
|
2026
|
+
# verify the required parameter 'project_id' is set
|
|
2027
|
+
if ('project_id' not in params or
|
|
2028
|
+
params['project_id'] is None):
|
|
2029
|
+
raise ValueError("Missing the required parameter `project_id` when calling `projects_service_update_project_tab_order`") # noqa: E501
|
|
2030
|
+
|
|
2031
|
+
collection_formats = {}
|
|
2032
|
+
|
|
2033
|
+
path_params = {}
|
|
2034
|
+
if 'project_id' in params:
|
|
2035
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2036
|
+
|
|
2037
|
+
query_params = []
|
|
2038
|
+
|
|
2039
|
+
header_params = {}
|
|
2040
|
+
|
|
2041
|
+
form_params = []
|
|
2042
|
+
local_var_files = {}
|
|
2043
|
+
|
|
2044
|
+
body_params = None
|
|
2045
|
+
if 'body' in params:
|
|
2046
|
+
body_params = params['body']
|
|
2047
|
+
# HTTP header `Accept`
|
|
2048
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2049
|
+
['application/json']) # noqa: E501
|
|
2050
|
+
|
|
2051
|
+
# HTTP header `Content-Type`
|
|
2052
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2053
|
+
['application/json']) # noqa: E501
|
|
2054
|
+
|
|
2055
|
+
# Authentication setting
|
|
2056
|
+
auth_settings = [] # noqa: E501
|
|
2057
|
+
|
|
2058
|
+
return self.api_client.call_api(
|
|
2059
|
+
'/v1/projects/{projectId}/tab-order', 'PUT',
|
|
2060
|
+
path_params,
|
|
2061
|
+
query_params,
|
|
2062
|
+
header_params,
|
|
2063
|
+
body=body_params,
|
|
2064
|
+
post_params=form_params,
|
|
2065
|
+
files=local_var_files,
|
|
2066
|
+
response_type='V1UpdateProjectTabOrderResponse', # noqa: E501
|
|
2067
|
+
auth_settings=auth_settings,
|
|
2068
|
+
async_req=params.get('async_req'),
|
|
2069
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2070
|
+
_preload_content=params.get('_preload_content', True),
|
|
2071
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2072
|
+
collection_formats=collection_formats)
|
|
@@ -98,6 +98,7 @@ from lightning_sdk.lightning_cloud.openapi.models.id_output_body import IdOutput
|
|
|
98
98
|
from lightning_sdk.lightning_cloud.openapi.models.id_publications_body import IdPublicationsBody
|
|
99
99
|
from lightning_sdk.lightning_cloud.openapi.models.id_publications_body1 import IdPublicationsBody1
|
|
100
100
|
from lightning_sdk.lightning_cloud.openapi.models.id_release_body import IdReleaseBody
|
|
101
|
+
from lightning_sdk.lightning_cloud.openapi.models.id_render_body import IdRenderBody
|
|
101
102
|
from lightning_sdk.lightning_cloud.openapi.models.id_reportlogsactivity_body import IdReportlogsactivityBody
|
|
102
103
|
from lightning_sdk.lightning_cloud.openapi.models.id_reportrestarttimings_body import IdReportrestarttimingsBody
|
|
103
104
|
from lightning_sdk.lightning_cloud.openapi.models.id_sleepconfig_body import IdSleepconfigBody
|
|
@@ -111,6 +112,7 @@ from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body import JobsIdBody
|
|
|
111
112
|
from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body1 import JobsIdBody1
|
|
112
113
|
from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body2 import JobsIdBody2
|
|
113
114
|
from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body3 import JobsIdBody3
|
|
115
|
+
from lightning_sdk.lightning_cloud.openapi.models.kubernetestemplates_id_body import KubernetestemplatesIdBody
|
|
114
116
|
from lightning_sdk.lightning_cloud.openapi.models.litdatasets_dataset_id_body import LitdatasetsDatasetIdBody
|
|
115
117
|
from lightning_sdk.lightning_cloud.openapi.models.litloggermetrics_id_body import LitloggermetricsIdBody
|
|
116
118
|
from lightning_sdk.lightning_cloud.openapi.models.litpages_id_body import LitpagesIdBody
|
|
@@ -145,6 +147,7 @@ from lightning_sdk.lightning_cloud.openapi.models.project_id_endpoints_body impo
|
|
|
145
147
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_getapp_body import ProjectIdGetappBody
|
|
146
148
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_invite_body import ProjectIdInviteBody
|
|
147
149
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_jobs_body import ProjectIdJobsBody
|
|
150
|
+
from lightning_sdk.lightning_cloud.openapi.models.project_id_kubernetestemplates_body import ProjectIdKubernetestemplatesBody
|
|
148
151
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_litdatasets_body import ProjectIdLitdatasetsBody
|
|
149
152
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_litregistry_body import ProjectIdLitregistryBody
|
|
150
153
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_memberships_body import ProjectIdMembershipsBody
|
|
@@ -156,6 +159,7 @@ from lightning_sdk.lightning_cloud.openapi.models.project_id_schedules_body impo
|
|
|
156
159
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_secrets_body import ProjectIdSecretsBody
|
|
157
160
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_snowflake_body import ProjectIdSnowflakeBody
|
|
158
161
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_storage_body import ProjectIdStorageBody
|
|
162
|
+
from lightning_sdk.lightning_cloud.openapi.models.project_tab_management_messages import ProjectTabManagementMessages
|
|
159
163
|
from lightning_sdk.lightning_cloud.openapi.models.projects_id_body import ProjectsIdBody
|
|
160
164
|
from lightning_sdk.lightning_cloud.openapi.models.projects_project_id_body import ProjectsProjectIdBody
|
|
161
165
|
from lightning_sdk.lightning_cloud.openapi.models.protobuf_any import ProtobufAny
|
|
@@ -385,6 +389,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_delete_endpoint_response im
|
|
|
385
389
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_git_credentials_response import V1DeleteGitCredentialsResponse
|
|
386
390
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_index_response import V1DeleteIndexResponse
|
|
387
391
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_job_response import V1DeleteJobResponse
|
|
392
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_kubernetes_template_response import V1DeleteKubernetesTemplateResponse
|
|
388
393
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lightning_run_response import V1DeleteLightningRunResponse
|
|
389
394
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lightningapp_instance_artifact_response import V1DeleteLightningappInstanceArtifactResponse
|
|
390
395
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lightningapp_instance_response import V1DeleteLightningappInstanceResponse
|
|
@@ -483,6 +488,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_slurm_job import
|
|
|
483
488
|
from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_snowflake_connection import V1FilesystemSnowflakeConnection
|
|
484
489
|
from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_work import V1FilesystemWork
|
|
485
490
|
from lightning_sdk.lightning_cloud.openapi.models.v1_find_capacity_block_offering_response import V1FindCapacityBlockOfferingResponse
|
|
491
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_firewall_rule import V1FirewallRule
|
|
486
492
|
from lightning_sdk.lightning_cloud.openapi.models.v1_flowserver import V1Flowserver
|
|
487
493
|
from lightning_sdk.lightning_cloud.openapi.models.v1_folder_index_status import V1FolderIndexStatus
|
|
488
494
|
from lightning_sdk.lightning_cloud.openapi.models.v1_function_call import V1FunctionCall
|
|
@@ -558,6 +564,9 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_health_check_http_get impor
|
|
|
558
564
|
from lightning_sdk.lightning_cloud.openapi.models.v1_ids_logger_metrics import V1IdsLoggerMetrics
|
|
559
565
|
from lightning_sdk.lightning_cloud.openapi.models.v1_image_spec import V1ImageSpec
|
|
560
566
|
from lightning_sdk.lightning_cloud.openapi.models.v1_image_state import V1ImageState
|
|
567
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_incident_event import V1IncidentEvent
|
|
568
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_incident_severity import V1IncidentSeverity
|
|
569
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_incident_type import V1IncidentType
|
|
561
570
|
from lightning_sdk.lightning_cloud.openapi.models.v1_index import V1Index
|
|
562
571
|
from lightning_sdk.lightning_cloud.openapi.models.v1_input import V1Input
|
|
563
572
|
from lightning_sdk.lightning_cloud.openapi.models.v1_instance_overprovisioning_spec import V1InstanceOverprovisioningSpec
|
|
@@ -577,10 +586,13 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_job_spec import V1JobSpec
|
|
|
577
586
|
from lightning_sdk.lightning_cloud.openapi.models.v1_job_timing import V1JobTiming
|
|
578
587
|
from lightning_sdk.lightning_cloud.openapi.models.v1_job_type import V1JobType
|
|
579
588
|
from lightning_sdk.lightning_cloud.openapi.models.v1_joinable_organization import V1JoinableOrganization
|
|
589
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_k8s_incident_indexes import V1K8sIncidentIndexes
|
|
580
590
|
from lightning_sdk.lightning_cloud.openapi.models.v1_keep_alive_cloud_space_instance_response import V1KeepAliveCloudSpaceInstanceResponse
|
|
581
591
|
from lightning_sdk.lightning_cloud.openapi.models.v1_knowledge_configuration import V1KnowledgeConfiguration
|
|
582
592
|
from lightning_sdk.lightning_cloud.openapi.models.v1_kubernetes_direct_v1 import V1KubernetesDirectV1
|
|
583
593
|
from lightning_sdk.lightning_cloud.openapi.models.v1_kubernetes_direct_v1_status import V1KubernetesDirectV1Status
|
|
594
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_kubernetes_template import V1KubernetesTemplate
|
|
595
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_kubernetes_template_property import V1KubernetesTemplateProperty
|
|
584
596
|
from lightning_sdk.lightning_cloud.openapi.models.v1_lambda_labs_direct_v1 import V1LambdaLabsDirectV1
|
|
585
597
|
from lightning_sdk.lightning_cloud.openapi.models.v1_lightning_app_user import V1LightningAppUser
|
|
586
598
|
from lightning_sdk.lightning_cloud.openapi.models.v1_lightning_auth import V1LightningAuth
|
|
@@ -654,10 +666,12 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_filesystem_snowflake_r
|
|
|
654
666
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_gallery_components_response import V1ListGalleryComponentsResponse
|
|
655
667
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_gallery_lightningapps_response import V1ListGalleryLightningappsResponse
|
|
656
668
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_git_credentials_response import V1ListGitCredentialsResponse
|
|
669
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_incident_events_response import V1ListIncidentEventsResponse
|
|
657
670
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_job_files_response import V1ListJobFilesResponse
|
|
658
671
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_job_resources_response import V1ListJobResourcesResponse
|
|
659
672
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_jobs_response import V1ListJobsResponse
|
|
660
673
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_joinable_organizations_response import V1ListJoinableOrganizationsResponse
|
|
674
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_kubernetes_templates_response import V1ListKubernetesTemplatesResponse
|
|
661
675
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_lightning_run_response import V1ListLightningRunResponse
|
|
662
676
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_lightningapp_instance_artifacts_response import V1ListLightningappInstanceArtifactsResponse
|
|
663
677
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_lightningapp_instance_events_response import V1ListLightningappInstanceEventsResponse
|
|
@@ -809,6 +823,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_project_membership_invite i
|
|
|
809
823
|
from lightning_sdk.lightning_cloud.openapi.models.v1_project_membership_role_binding import V1ProjectMembershipRoleBinding
|
|
810
824
|
from lightning_sdk.lightning_cloud.openapi.models.v1_project_settings import V1ProjectSettings
|
|
811
825
|
from lightning_sdk.lightning_cloud.openapi.models.v1_project_storage import V1ProjectStorage
|
|
826
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_project_tab import V1ProjectTab
|
|
812
827
|
from lightning_sdk.lightning_cloud.openapi.models.v1_prompt_suggestion import V1PromptSuggestion
|
|
813
828
|
from lightning_sdk.lightning_cloud.openapi.models.v1_publish_cloud_space_response import V1PublishCloudSpaceResponse
|
|
814
829
|
from lightning_sdk.lightning_cloud.openapi.models.v1_published_cloud_space_response import V1PublishedCloudSpaceResponse
|
|
@@ -831,6 +846,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_refresh_request import V1Re
|
|
|
831
846
|
from lightning_sdk.lightning_cloud.openapi.models.v1_refresh_response import V1RefreshResponse
|
|
832
847
|
from lightning_sdk.lightning_cloud.openapi.models.v1_region_state import V1RegionState
|
|
833
848
|
from lightning_sdk.lightning_cloud.openapi.models.v1_regional_load_balancer import V1RegionalLoadBalancer
|
|
849
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_render_kubernetes_template_response import V1RenderKubernetesTemplateResponse
|
|
834
850
|
from lightning_sdk.lightning_cloud.openapi.models.v1_report_cloud_space_instance_stop_at_response import V1ReportCloudSpaceInstanceStopAtResponse
|
|
835
851
|
from lightning_sdk.lightning_cloud.openapi.models.v1_report_cloud_space_instance_system_metrics_response import V1ReportCloudSpaceInstanceSystemMetricsResponse
|
|
836
852
|
from lightning_sdk.lightning_cloud.openapi.models.v1_report_k8s_cluster_metrics_response import V1ReportK8sClusterMetricsResponse
|
|
@@ -940,6 +956,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_update_metrics_stream_visib
|
|
|
940
956
|
from lightning_sdk.lightning_cloud.openapi.models.v1_update_model_visibility_response import V1UpdateModelVisibilityResponse
|
|
941
957
|
from lightning_sdk.lightning_cloud.openapi.models.v1_update_organization_credits_auto_replenish_response import V1UpdateOrganizationCreditsAutoReplenishResponse
|
|
942
958
|
from lightning_sdk.lightning_cloud.openapi.models.v1_update_project_cluster_accelerators_response import V1UpdateProjectClusterAcceleratorsResponse
|
|
959
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_update_project_tab_order_response import V1UpdateProjectTabOrderResponse
|
|
943
960
|
from lightning_sdk.lightning_cloud.openapi.models.v1_update_shared_metrics_stream_response import V1UpdateSharedMetricsStreamResponse
|
|
944
961
|
from lightning_sdk.lightning_cloud.openapi.models.v1_update_snowflake_query_response import V1UpdateSnowflakeQueryResponse
|
|
945
962
|
from lightning_sdk.lightning_cloud.openapi.models.v1_update_user_credits_auto_replenish_response import V1UpdateUserCreditsAutoReplenishResponse
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class IdRenderBody(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
"""
|
|
37
|
+
Attributes:
|
|
38
|
+
swagger_types (dict): The key is attribute name
|
|
39
|
+
and the value is attribute type.
|
|
40
|
+
attribute_map (dict): The key is attribute name
|
|
41
|
+
and the value is json key in definition.
|
|
42
|
+
"""
|
|
43
|
+
swagger_types = {
|
|
44
|
+
'variables': 'dict(str, str)'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'variables': 'variables'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, variables: 'dict(str, str)' =None): # noqa: E501
|
|
52
|
+
"""IdRenderBody - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._variables = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if variables is not None:
|
|
56
|
+
self.variables = variables
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def variables(self) -> 'dict(str, str)':
|
|
60
|
+
"""Gets the variables of this IdRenderBody. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The variables of this IdRenderBody. # noqa: E501
|
|
64
|
+
:rtype: dict(str, str)
|
|
65
|
+
"""
|
|
66
|
+
return self._variables
|
|
67
|
+
|
|
68
|
+
@variables.setter
|
|
69
|
+
def variables(self, variables: 'dict(str, str)'):
|
|
70
|
+
"""Sets the variables of this IdRenderBody.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param variables: The variables of this IdRenderBody. # noqa: E501
|
|
74
|
+
:type: dict(str, str)
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._variables = variables
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(IdRenderBody, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'IdRenderBody') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, IdRenderBody):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'IdRenderBody') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -0,0 +1,227 @@
|
|
|
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
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class KubernetestemplatesIdBody(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
"""
|
|
37
|
+
Attributes:
|
|
38
|
+
swagger_types (dict): The key is attribute name
|
|
39
|
+
and the value is attribute type.
|
|
40
|
+
attribute_map (dict): The key is attribute name
|
|
41
|
+
and the value is json key in definition.
|
|
42
|
+
"""
|
|
43
|
+
swagger_types = {
|
|
44
|
+
'cluster_id': 'str',
|
|
45
|
+
'description': 'str',
|
|
46
|
+
'name': 'str',
|
|
47
|
+
'properties': 'list[V1KubernetesTemplateProperty]',
|
|
48
|
+
'spec': 'str'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
'cluster_id': 'clusterId',
|
|
53
|
+
'description': 'description',
|
|
54
|
+
'name': 'name',
|
|
55
|
+
'properties': 'properties',
|
|
56
|
+
'spec': 'spec'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, cluster_id: 'str' =None, description: 'str' =None, name: 'str' =None, properties: 'list[V1KubernetesTemplateProperty]' =None, spec: 'str' =None): # noqa: E501
|
|
60
|
+
"""KubernetestemplatesIdBody - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._cluster_id = None
|
|
62
|
+
self._description = None
|
|
63
|
+
self._name = None
|
|
64
|
+
self._properties = None
|
|
65
|
+
self._spec = None
|
|
66
|
+
self.discriminator = None
|
|
67
|
+
if cluster_id is not None:
|
|
68
|
+
self.cluster_id = cluster_id
|
|
69
|
+
if description is not None:
|
|
70
|
+
self.description = description
|
|
71
|
+
if name is not None:
|
|
72
|
+
self.name = name
|
|
73
|
+
if properties is not None:
|
|
74
|
+
self.properties = properties
|
|
75
|
+
if spec is not None:
|
|
76
|
+
self.spec = spec
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def cluster_id(self) -> 'str':
|
|
80
|
+
"""Gets the cluster_id of this KubernetestemplatesIdBody. # noqa: E501
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The cluster_id of this KubernetestemplatesIdBody. # noqa: E501
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._cluster_id
|
|
87
|
+
|
|
88
|
+
@cluster_id.setter
|
|
89
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
90
|
+
"""Sets the cluster_id of this KubernetestemplatesIdBody.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param cluster_id: The cluster_id of this KubernetestemplatesIdBody. # noqa: E501
|
|
94
|
+
:type: str
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._cluster_id = cluster_id
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def description(self) -> 'str':
|
|
101
|
+
"""Gets the description of this KubernetestemplatesIdBody. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The description of this KubernetestemplatesIdBody. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._description
|
|
108
|
+
|
|
109
|
+
@description.setter
|
|
110
|
+
def description(self, description: 'str'):
|
|
111
|
+
"""Sets the description of this KubernetestemplatesIdBody.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param description: The description of this KubernetestemplatesIdBody. # noqa: E501
|
|
115
|
+
:type: str
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._description = description
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def name(self) -> 'str':
|
|
122
|
+
"""Gets the name of this KubernetestemplatesIdBody. # noqa: E501
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:return: The name of this KubernetestemplatesIdBody. # noqa: E501
|
|
126
|
+
:rtype: str
|
|
127
|
+
"""
|
|
128
|
+
return self._name
|
|
129
|
+
|
|
130
|
+
@name.setter
|
|
131
|
+
def name(self, name: 'str'):
|
|
132
|
+
"""Sets the name of this KubernetestemplatesIdBody.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:param name: The name of this KubernetestemplatesIdBody. # noqa: E501
|
|
136
|
+
:type: str
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
self._name = name
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def properties(self) -> 'list[V1KubernetesTemplateProperty]':
|
|
143
|
+
"""Gets the properties of this KubernetestemplatesIdBody. # noqa: E501
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:return: The properties of this KubernetestemplatesIdBody. # noqa: E501
|
|
147
|
+
:rtype: list[V1KubernetesTemplateProperty]
|
|
148
|
+
"""
|
|
149
|
+
return self._properties
|
|
150
|
+
|
|
151
|
+
@properties.setter
|
|
152
|
+
def properties(self, properties: 'list[V1KubernetesTemplateProperty]'):
|
|
153
|
+
"""Sets the properties of this KubernetestemplatesIdBody.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param properties: The properties of this KubernetestemplatesIdBody. # noqa: E501
|
|
157
|
+
:type: list[V1KubernetesTemplateProperty]
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._properties = properties
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
def spec(self) -> 'str':
|
|
164
|
+
"""Gets the spec of this KubernetestemplatesIdBody. # noqa: E501
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:return: The spec of this KubernetestemplatesIdBody. # noqa: E501
|
|
168
|
+
:rtype: str
|
|
169
|
+
"""
|
|
170
|
+
return self._spec
|
|
171
|
+
|
|
172
|
+
@spec.setter
|
|
173
|
+
def spec(self, spec: 'str'):
|
|
174
|
+
"""Sets the spec of this KubernetestemplatesIdBody.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:param spec: The spec of this KubernetestemplatesIdBody. # noqa: E501
|
|
178
|
+
:type: str
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._spec = spec
|
|
182
|
+
|
|
183
|
+
def to_dict(self) -> dict:
|
|
184
|
+
"""Returns the model properties as a dict"""
|
|
185
|
+
result = {}
|
|
186
|
+
|
|
187
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
188
|
+
value = getattr(self, attr)
|
|
189
|
+
if isinstance(value, list):
|
|
190
|
+
result[attr] = list(map(
|
|
191
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
192
|
+
value
|
|
193
|
+
))
|
|
194
|
+
elif hasattr(value, "to_dict"):
|
|
195
|
+
result[attr] = value.to_dict()
|
|
196
|
+
elif isinstance(value, dict):
|
|
197
|
+
result[attr] = dict(map(
|
|
198
|
+
lambda item: (item[0], item[1].to_dict())
|
|
199
|
+
if hasattr(item[1], "to_dict") else item,
|
|
200
|
+
value.items()
|
|
201
|
+
))
|
|
202
|
+
else:
|
|
203
|
+
result[attr] = value
|
|
204
|
+
if issubclass(KubernetestemplatesIdBody, dict):
|
|
205
|
+
for key, value in self.items():
|
|
206
|
+
result[key] = value
|
|
207
|
+
|
|
208
|
+
return result
|
|
209
|
+
|
|
210
|
+
def to_str(self) -> str:
|
|
211
|
+
"""Returns the string representation of the model"""
|
|
212
|
+
return pprint.pformat(self.to_dict())
|
|
213
|
+
|
|
214
|
+
def __repr__(self) -> str:
|
|
215
|
+
"""For `print` and `pprint`"""
|
|
216
|
+
return self.to_str()
|
|
217
|
+
|
|
218
|
+
def __eq__(self, other: 'KubernetestemplatesIdBody') -> bool:
|
|
219
|
+
"""Returns true if both objects are equal"""
|
|
220
|
+
if not isinstance(other, KubernetestemplatesIdBody):
|
|
221
|
+
return False
|
|
222
|
+
|
|
223
|
+
return self.__dict__ == other.__dict__
|
|
224
|
+
|
|
225
|
+
def __ne__(self, other: 'KubernetestemplatesIdBody') -> bool:
|
|
226
|
+
"""Returns true if both objects are not equal"""
|
|
227
|
+
return not self == other
|
|
@@ -45,6 +45,7 @@ class MetricsstreamCreateBody(object):
|
|
|
45
45
|
'cloudspace_id': 'str',
|
|
46
46
|
'dark_color': 'str',
|
|
47
47
|
'experiment_project_name': 'str',
|
|
48
|
+
'guest': 'bool',
|
|
48
49
|
'job_id': 'str',
|
|
49
50
|
'light_color': 'str',
|
|
50
51
|
'name': 'str',
|
|
@@ -61,6 +62,7 @@ class MetricsstreamCreateBody(object):
|
|
|
61
62
|
'cloudspace_id': 'cloudspaceId',
|
|
62
63
|
'dark_color': 'darkColor',
|
|
63
64
|
'experiment_project_name': 'experimentProjectName',
|
|
65
|
+
'guest': 'guest',
|
|
64
66
|
'job_id': 'jobId',
|
|
65
67
|
'light_color': 'lightColor',
|
|
66
68
|
'name': 'name',
|
|
@@ -72,12 +74,13 @@ class MetricsstreamCreateBody(object):
|
|
|
72
74
|
'work_id': 'workId'
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
def __init__(self, app_id: 'str' =None, cloudspace_id: 'str' =None, dark_color: 'str' =None, experiment_project_name: 'str' =None, job_id: 'str' =None, light_color: 'str' =None, name: 'str' =None, store_created_at: 'bool' =None, store_step: 'bool' =None, system_info: 'V1SystemInfo' =None, tags: 'list[V1MetricsTags]' =None, version: 'datetime' =None, work_id: 'str' =None): # noqa: E501
|
|
77
|
+
def __init__(self, app_id: 'str' =None, cloudspace_id: 'str' =None, dark_color: 'str' =None, experiment_project_name: 'str' =None, guest: 'bool' =None, job_id: 'str' =None, light_color: 'str' =None, name: 'str' =None, store_created_at: 'bool' =None, store_step: 'bool' =None, system_info: 'V1SystemInfo' =None, tags: 'list[V1MetricsTags]' =None, version: 'datetime' =None, work_id: 'str' =None): # noqa: E501
|
|
76
78
|
"""MetricsstreamCreateBody - a model defined in Swagger""" # noqa: E501
|
|
77
79
|
self._app_id = None
|
|
78
80
|
self._cloudspace_id = None
|
|
79
81
|
self._dark_color = None
|
|
80
82
|
self._experiment_project_name = None
|
|
83
|
+
self._guest = None
|
|
81
84
|
self._job_id = None
|
|
82
85
|
self._light_color = None
|
|
83
86
|
self._name = None
|
|
@@ -96,6 +99,8 @@ class MetricsstreamCreateBody(object):
|
|
|
96
99
|
self.dark_color = dark_color
|
|
97
100
|
if experiment_project_name is not None:
|
|
98
101
|
self.experiment_project_name = experiment_project_name
|
|
102
|
+
if guest is not None:
|
|
103
|
+
self.guest = guest
|
|
99
104
|
if job_id is not None:
|
|
100
105
|
self.job_id = job_id
|
|
101
106
|
if light_color is not None:
|
|
@@ -199,6 +204,27 @@ class MetricsstreamCreateBody(object):
|
|
|
199
204
|
|
|
200
205
|
self._experiment_project_name = experiment_project_name
|
|
201
206
|
|
|
207
|
+
@property
|
|
208
|
+
def guest(self) -> 'bool':
|
|
209
|
+
"""Gets the guest of this MetricsstreamCreateBody. # noqa: E501
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
:return: The guest of this MetricsstreamCreateBody. # noqa: E501
|
|
213
|
+
:rtype: bool
|
|
214
|
+
"""
|
|
215
|
+
return self._guest
|
|
216
|
+
|
|
217
|
+
@guest.setter
|
|
218
|
+
def guest(self, guest: 'bool'):
|
|
219
|
+
"""Sets the guest of this MetricsstreamCreateBody.
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
:param guest: The guest of this MetricsstreamCreateBody. # noqa: E501
|
|
223
|
+
:type: bool
|
|
224
|
+
"""
|
|
225
|
+
|
|
226
|
+
self._guest = guest
|
|
227
|
+
|
|
202
228
|
@property
|
|
203
229
|
def job_id(self) -> 'str':
|
|
204
230
|
"""Gets the job_id of this MetricsstreamCreateBody. # noqa: E501
|