lightning-sdk 2025.9.2__py3-none-any.whl → 2025.9.10__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.
Files changed (49) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/llm_api.py +19 -0
  3. lightning_sdk/api/studio_api.py +25 -4
  4. lightning_sdk/lightning_cloud/openapi/__init__.py +19 -0
  5. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +105 -0
  6. lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +101 -0
  7. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +744 -13
  8. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +4 -4
  9. lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
  10. lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +27 -1
  11. lightning_sdk/lightning_cloud/openapi/models/id_render_body.py +123 -0
  12. lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +227 -0
  13. lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
  14. lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +109 -31
  15. lightning_sdk/lightning_cloud/openapi/models/models_model_id_body1.py +149 -0
  16. lightning_sdk/lightning_cloud/openapi/models/project_id_kubernetestemplates_body.py +227 -0
  17. lightning_sdk/lightning_cloud/openapi/models/v1_ai_pod_v1.py +53 -1
  18. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  19. lightning_sdk/lightning_cloud/openapi/models/v1_create_model_metrics_response.py +97 -0
  20. lightning_sdk/lightning_cloud/openapi/models/v1_delete_kubernetes_template_response.py +97 -0
  21. lightning_sdk/lightning_cloud/openapi/models/v1_firewall_rule.py +175 -0
  22. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py +6 -6
  23. lightning_sdk/lightning_cloud/openapi/models/v1_get_temp_bucket_credentials_response.py +201 -0
  24. lightning_sdk/lightning_cloud/openapi/models/v1_group_node_metrics.py +1215 -0
  25. lightning_sdk/lightning_cloud/openapi/models/v1_incident_event.py +565 -0
  26. lightning_sdk/lightning_cloud/openapi/models/v1_incident_severity.py +105 -0
  27. lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +105 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_indexes.py +149 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +383 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template_property.py +227 -0
  31. lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_events_response.py +123 -0
  32. lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_templates_response.py +123 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +81 -3
  36. lightning_sdk/lightning_cloud/openapi/models/v1_quote_annual_upsell_response.py +29 -3
  37. lightning_sdk/lightning_cloud/openapi/models/v1_render_kubernetes_template_response.py +123 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_required_balance_reason.py +107 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +154 -128
  41. lightning_sdk/llm/llm.py +82 -7
  42. lightning_sdk/llm/public_assistants.py +2 -2
  43. lightning_sdk/studio.py +30 -3
  44. {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/METADATA +1 -1
  45. {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/RECORD +49 -30
  46. {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/entry_points.txt +1 -0
  47. {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/LICENSE +0 -0
  48. {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/WHEEL +0 -0
  49. {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/top_level.txt +0 -0
@@ -1948,7 +1948,7 @@ class ModelsStoreApi(object):
1948
1948
  _request_timeout=params.get('_request_timeout'),
1949
1949
  collection_formats=collection_formats)
1950
1950
 
1951
- def models_store_update_model(self, body: 'ModelsModelIdBody', project_id: 'str', model_id: 'str', **kwargs) -> 'V1Model': # noqa: E501
1951
+ def models_store_update_model(self, body: 'ModelsModelIdBody1', project_id: 'str', model_id: 'str', **kwargs) -> 'V1Model': # noqa: E501
1952
1952
  """UpdateModel updates the model, in particular the model's name. # noqa: E501
1953
1953
 
1954
1954
  This method makes a synchronous HTTP request by default. To make an
@@ -1957,7 +1957,7 @@ class ModelsStoreApi(object):
1957
1957
  >>> result = thread.get()
1958
1958
 
1959
1959
  :param async_req bool
1960
- :param ModelsModelIdBody body: (required)
1960
+ :param ModelsModelIdBody1 body: (required)
1961
1961
  :param str project_id: (required)
1962
1962
  :param str model_id: (required)
1963
1963
  :return: V1Model
@@ -1971,7 +1971,7 @@ class ModelsStoreApi(object):
1971
1971
  (data) = self.models_store_update_model_with_http_info(body, project_id, model_id, **kwargs) # noqa: E501
1972
1972
  return data
1973
1973
 
1974
- def models_store_update_model_with_http_info(self, body: 'ModelsModelIdBody', project_id: 'str', model_id: 'str', **kwargs) -> 'V1Model': # noqa: E501
1974
+ def models_store_update_model_with_http_info(self, body: 'ModelsModelIdBody1', project_id: 'str', model_id: 'str', **kwargs) -> 'V1Model': # noqa: E501
1975
1975
  """UpdateModel updates the model, in particular the model's name. # noqa: E501
1976
1976
 
1977
1977
  This method makes a synchronous HTTP request by default. To make an
@@ -1980,7 +1980,7 @@ class ModelsStoreApi(object):
1980
1980
  >>> result = thread.get()
1981
1981
 
1982
1982
  :param async_req bool
1983
- :param ModelsModelIdBody body: (required)
1983
+ :param ModelsModelIdBody1 body: (required)
1984
1984
  :param str project_id: (required)
1985
1985
  :param str model_id: (required)
1986
1986
  :return: V1Model
@@ -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
@@ -125,6 +127,7 @@ from lightning_sdk.lightning_cloud.openapi.models.model_id_versions_body import
125
127
  from lightning_sdk.lightning_cloud.openapi.models.model_id_visibility_body import ModelIdVisibilityBody
126
128
  from lightning_sdk.lightning_cloud.openapi.models.models_id_body import ModelsIdBody
127
129
  from lightning_sdk.lightning_cloud.openapi.models.models_model_id_body import ModelsModelIdBody
130
+ from lightning_sdk.lightning_cloud.openapi.models.models_model_id_body1 import ModelsModelIdBody1
128
131
  from lightning_sdk.lightning_cloud.openapi.models.multimachinejobs_id_body import MultimachinejobsIdBody
129
132
  from lightning_sdk.lightning_cloud.openapi.models.multipartuploads_upload_id_body import MultipartuploadsUploadIdBody
130
133
  from lightning_sdk.lightning_cloud.openapi.models.org_id_memberships_body import OrgIdMembershipsBody
@@ -144,6 +147,7 @@ from lightning_sdk.lightning_cloud.openapi.models.project_id_endpoints_body impo
144
147
  from lightning_sdk.lightning_cloud.openapi.models.project_id_getapp_body import ProjectIdGetappBody
145
148
  from lightning_sdk.lightning_cloud.openapi.models.project_id_invite_body import ProjectIdInviteBody
146
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
147
151
  from lightning_sdk.lightning_cloud.openapi.models.project_id_litdatasets_body import ProjectIdLitdatasetsBody
148
152
  from lightning_sdk.lightning_cloud.openapi.models.project_id_litregistry_body import ProjectIdLitregistryBody
149
153
  from lightning_sdk.lightning_cloud.openapi.models.project_id_memberships_body import ProjectIdMembershipsBody
@@ -336,6 +340,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_dataset_multi_pa
336
340
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_page_request import V1CreateLitPageRequest
337
341
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_page_response import V1CreateLitPageResponse
338
342
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_managed_endpoint_response import V1CreateManagedEndpointResponse
343
+ from lightning_sdk.lightning_cloud.openapi.models.v1_create_model_metrics_response import V1CreateModelMetricsResponse
339
344
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_multi_machine_job_request import V1CreateMultiMachineJobRequest
340
345
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_multi_part_upload_response import V1CreateMultiPartUploadResponse
341
346
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_organization_request import V1CreateOrganizationRequest
@@ -383,6 +388,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_delete_endpoint_response im
383
388
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_git_credentials_response import V1DeleteGitCredentialsResponse
384
389
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_index_response import V1DeleteIndexResponse
385
390
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_job_response import V1DeleteJobResponse
391
+ from lightning_sdk.lightning_cloud.openapi.models.v1_delete_kubernetes_template_response import V1DeleteKubernetesTemplateResponse
386
392
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lightning_run_response import V1DeleteLightningRunResponse
387
393
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lightningapp_instance_artifact_response import V1DeleteLightningappInstanceArtifactResponse
388
394
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lightningapp_instance_response import V1DeleteLightningappInstanceResponse
@@ -481,6 +487,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_slurm_job import
481
487
  from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_snowflake_connection import V1FilesystemSnowflakeConnection
482
488
  from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_work import V1FilesystemWork
483
489
  from lightning_sdk.lightning_cloud.openapi.models.v1_find_capacity_block_offering_response import V1FindCapacityBlockOfferingResponse
490
+ from lightning_sdk.lightning_cloud.openapi.models.v1_firewall_rule import V1FirewallRule
484
491
  from lightning_sdk.lightning_cloud.openapi.models.v1_flowserver import V1Flowserver
485
492
  from lightning_sdk.lightning_cloud.openapi.models.v1_folder_index_status import V1FolderIndexStatus
486
493
  from lightning_sdk.lightning_cloud.openapi.models.v1_function_call import V1FunctionCall
@@ -536,6 +543,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_compute_usage_r
536
543
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_storage_metadata_response import V1GetProjectStorageMetadataResponse
537
544
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_settings_response import V1GetSettingsResponse
538
545
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_snowflake_query_response import V1GetSnowflakeQueryResponse
546
+ from lightning_sdk.lightning_cloud.openapi.models.v1_get_temp_bucket_credentials_response import V1GetTempBucketCredentialsResponse
539
547
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_usage_details_response import V1GetUsageDetailsResponse
540
548
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_user_balance_response import V1GetUserBalanceResponse
541
549
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_user_notification_preferences_response import V1GetUserNotificationPreferencesResponse
@@ -545,6 +553,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_volume_response import
545
553
  from lightning_sdk.lightning_cloud.openapi.models.v1_git_credentials import V1GitCredentials
546
554
  from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1 import V1GoogleCloudDirectV1
547
555
  from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1_status import V1GoogleCloudDirectV1Status
556
+ from lightning_sdk.lightning_cloud.openapi.models.v1_group_node_metrics import V1GroupNodeMetrics
548
557
  from lightning_sdk.lightning_cloud.openapi.models.v1_guest_login_request import V1GuestLoginRequest
549
558
  from lightning_sdk.lightning_cloud.openapi.models.v1_guest_login_response import V1GuestLoginResponse
550
559
  from lightning_sdk.lightning_cloud.openapi.models.v1_guest_user import V1GuestUser
@@ -554,6 +563,9 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_health_check_http_get impor
554
563
  from lightning_sdk.lightning_cloud.openapi.models.v1_ids_logger_metrics import V1IdsLoggerMetrics
555
564
  from lightning_sdk.lightning_cloud.openapi.models.v1_image_spec import V1ImageSpec
556
565
  from lightning_sdk.lightning_cloud.openapi.models.v1_image_state import V1ImageState
566
+ from lightning_sdk.lightning_cloud.openapi.models.v1_incident_event import V1IncidentEvent
567
+ from lightning_sdk.lightning_cloud.openapi.models.v1_incident_severity import V1IncidentSeverity
568
+ from lightning_sdk.lightning_cloud.openapi.models.v1_incident_type import V1IncidentType
557
569
  from lightning_sdk.lightning_cloud.openapi.models.v1_index import V1Index
558
570
  from lightning_sdk.lightning_cloud.openapi.models.v1_input import V1Input
559
571
  from lightning_sdk.lightning_cloud.openapi.models.v1_instance_overprovisioning_spec import V1InstanceOverprovisioningSpec
@@ -573,10 +585,13 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_job_spec import V1JobSpec
573
585
  from lightning_sdk.lightning_cloud.openapi.models.v1_job_timing import V1JobTiming
574
586
  from lightning_sdk.lightning_cloud.openapi.models.v1_job_type import V1JobType
575
587
  from lightning_sdk.lightning_cloud.openapi.models.v1_joinable_organization import V1JoinableOrganization
588
+ from lightning_sdk.lightning_cloud.openapi.models.v1_k8s_incident_indexes import V1K8sIncidentIndexes
576
589
  from lightning_sdk.lightning_cloud.openapi.models.v1_keep_alive_cloud_space_instance_response import V1KeepAliveCloudSpaceInstanceResponse
577
590
  from lightning_sdk.lightning_cloud.openapi.models.v1_knowledge_configuration import V1KnowledgeConfiguration
578
591
  from lightning_sdk.lightning_cloud.openapi.models.v1_kubernetes_direct_v1 import V1KubernetesDirectV1
579
592
  from lightning_sdk.lightning_cloud.openapi.models.v1_kubernetes_direct_v1_status import V1KubernetesDirectV1Status
593
+ from lightning_sdk.lightning_cloud.openapi.models.v1_kubernetes_template import V1KubernetesTemplate
594
+ from lightning_sdk.lightning_cloud.openapi.models.v1_kubernetes_template_property import V1KubernetesTemplateProperty
580
595
  from lightning_sdk.lightning_cloud.openapi.models.v1_lambda_labs_direct_v1 import V1LambdaLabsDirectV1
581
596
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightning_app_user import V1LightningAppUser
582
597
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightning_auth import V1LightningAuth
@@ -650,10 +665,12 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_filesystem_snowflake_r
650
665
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_gallery_components_response import V1ListGalleryComponentsResponse
651
666
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_gallery_lightningapps_response import V1ListGalleryLightningappsResponse
652
667
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_git_credentials_response import V1ListGitCredentialsResponse
668
+ from lightning_sdk.lightning_cloud.openapi.models.v1_list_incident_events_response import V1ListIncidentEventsResponse
653
669
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_job_files_response import V1ListJobFilesResponse
654
670
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_job_resources_response import V1ListJobResourcesResponse
655
671
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_jobs_response import V1ListJobsResponse
656
672
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_joinable_organizations_response import V1ListJoinableOrganizationsResponse
673
+ from lightning_sdk.lightning_cloud.openapi.models.v1_list_kubernetes_templates_response import V1ListKubernetesTemplatesResponse
657
674
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_lightning_run_response import V1ListLightningRunResponse
658
675
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_lightningapp_instance_artifacts_response import V1ListLightningappInstanceArtifactsResponse
659
676
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_lightningapp_instance_events_response import V1ListLightningappInstanceEventsResponse
@@ -827,6 +844,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_refresh_request import V1Re
827
844
  from lightning_sdk.lightning_cloud.openapi.models.v1_refresh_response import V1RefreshResponse
828
845
  from lightning_sdk.lightning_cloud.openapi.models.v1_region_state import V1RegionState
829
846
  from lightning_sdk.lightning_cloud.openapi.models.v1_regional_load_balancer import V1RegionalLoadBalancer
847
+ from lightning_sdk.lightning_cloud.openapi.models.v1_render_kubernetes_template_response import V1RenderKubernetesTemplateResponse
830
848
  from lightning_sdk.lightning_cloud.openapi.models.v1_report_cloud_space_instance_stop_at_response import V1ReportCloudSpaceInstanceStopAtResponse
831
849
  from lightning_sdk.lightning_cloud.openapi.models.v1_report_cloud_space_instance_system_metrics_response import V1ReportCloudSpaceInstanceSystemMetricsResponse
832
850
  from lightning_sdk.lightning_cloud.openapi.models.v1_report_k8s_cluster_metrics_response import V1ReportK8sClusterMetricsResponse
@@ -836,6 +854,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_request_cloud_space_access_
836
854
  from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_request import V1RequestClusterAccessRequest
837
855
  from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_response import V1RequestClusterAccessResponse
838
856
  from lightning_sdk.lightning_cloud.openapi.models.v1_request_verification_code_response import V1RequestVerificationCodeResponse
857
+ from lightning_sdk.lightning_cloud.openapi.models.v1_required_balance_reason import V1RequiredBalanceReason
839
858
  from lightning_sdk.lightning_cloud.openapi.models.v1_reservation_details import V1ReservationDetails
840
859
  from lightning_sdk.lightning_cloud.openapi.models.v1_resource_tag import V1ResourceTag
841
860
  from lightning_sdk.lightning_cloud.openapi.models.v1_resource_visibility import V1ResourceVisibility
@@ -43,6 +43,7 @@ class ClusterIdMetricsBody(object):
43
43
  swagger_types = {
44
44
  'cluster_metrics': 'V1ClusterMetrics',
45
45
  'container_metrics': 'list[V1ContainerMetrics]',
46
+ 'group_node_metrics': 'list[V1GroupNodeMetrics]',
46
47
  'namespace_metrics': 'list[V1NamespaceMetrics]',
47
48
  'node_metrics': 'list[V1NodeMetrics]',
48
49
  'pod_metrics': 'list[V1PodMetrics]'
@@ -51,15 +52,17 @@ class ClusterIdMetricsBody(object):
51
52
  attribute_map = {
52
53
  'cluster_metrics': 'clusterMetrics',
53
54
  'container_metrics': 'containerMetrics',
55
+ 'group_node_metrics': 'groupNodeMetrics',
54
56
  'namespace_metrics': 'namespaceMetrics',
55
57
  'node_metrics': 'nodeMetrics',
56
58
  'pod_metrics': 'podMetrics'
57
59
  }
58
60
 
59
- def __init__(self, cluster_metrics: 'V1ClusterMetrics' =None, container_metrics: 'list[V1ContainerMetrics]' =None, namespace_metrics: 'list[V1NamespaceMetrics]' =None, node_metrics: 'list[V1NodeMetrics]' =None, pod_metrics: 'list[V1PodMetrics]' =None): # noqa: E501
61
+ def __init__(self, cluster_metrics: 'V1ClusterMetrics' =None, container_metrics: 'list[V1ContainerMetrics]' =None, group_node_metrics: 'list[V1GroupNodeMetrics]' =None, namespace_metrics: 'list[V1NamespaceMetrics]' =None, node_metrics: 'list[V1NodeMetrics]' =None, pod_metrics: 'list[V1PodMetrics]' =None): # noqa: E501
60
62
  """ClusterIdMetricsBody - a model defined in Swagger""" # noqa: E501
61
63
  self._cluster_metrics = None
62
64
  self._container_metrics = None
65
+ self._group_node_metrics = None
63
66
  self._namespace_metrics = None
64
67
  self._node_metrics = None
65
68
  self._pod_metrics = None
@@ -68,6 +71,8 @@ class ClusterIdMetricsBody(object):
68
71
  self.cluster_metrics = cluster_metrics
69
72
  if container_metrics is not None:
70
73
  self.container_metrics = container_metrics
74
+ if group_node_metrics is not None:
75
+ self.group_node_metrics = group_node_metrics
71
76
  if namespace_metrics is not None:
72
77
  self.namespace_metrics = namespace_metrics
73
78
  if node_metrics is not None:
@@ -117,6 +122,27 @@ class ClusterIdMetricsBody(object):
117
122
 
118
123
  self._container_metrics = container_metrics
119
124
 
125
+ @property
126
+ def group_node_metrics(self) -> 'list[V1GroupNodeMetrics]':
127
+ """Gets the group_node_metrics of this ClusterIdMetricsBody. # noqa: E501
128
+
129
+
130
+ :return: The group_node_metrics of this ClusterIdMetricsBody. # noqa: E501
131
+ :rtype: list[V1GroupNodeMetrics]
132
+ """
133
+ return self._group_node_metrics
134
+
135
+ @group_node_metrics.setter
136
+ def group_node_metrics(self, group_node_metrics: 'list[V1GroupNodeMetrics]'):
137
+ """Sets the group_node_metrics of this ClusterIdMetricsBody.
138
+
139
+
140
+ :param group_node_metrics: The group_node_metrics of this ClusterIdMetricsBody. # noqa: E501
141
+ :type: list[V1GroupNodeMetrics]
142
+ """
143
+
144
+ self._group_node_metrics = group_node_metrics
145
+
120
146
  @property
121
147
  def namespace_metrics(self) -> 'list[V1NamespaceMetrics]':
122
148
  """Gets the namespace_metrics of this ClusterIdMetricsBody. # noqa: E501
@@ -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