lightning-sdk 2025.12.17__py3-none-any.whl → 2026.1.27__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 (130) hide show
  1. lightning_sdk/__version__.py +1 -1
  2. lightning_sdk/api/k8s_api.py +75 -29
  3. lightning_sdk/api/studio_api.py +192 -37
  4. lightning_sdk/api/teamspace_api.py +180 -54
  5. lightning_sdk/api/utils.py +8 -0
  6. lightning_sdk/cli/cp/__init__.py +67 -0
  7. lightning_sdk/cli/cp/teamspace_uploads.py +93 -0
  8. lightning_sdk/cli/entrypoint.py +2 -0
  9. lightning_sdk/cli/groups.py +22 -0
  10. lightning_sdk/cli/legacy/clusters_menu.py +2 -2
  11. lightning_sdk/cli/legacy/deploy/_auth.py +7 -6
  12. lightning_sdk/cli/legacy/download.py +29 -98
  13. lightning_sdk/cli/legacy/run.py +13 -2
  14. lightning_sdk/cli/legacy/upload.py +24 -31
  15. lightning_sdk/cli/studio/__init__.py +4 -0
  16. lightning_sdk/cli/studio/cp.py +24 -65
  17. lightning_sdk/cli/studio/ls.py +57 -0
  18. lightning_sdk/cli/studio/rm.py +71 -0
  19. lightning_sdk/cli/utils/filesystem.py +103 -0
  20. lightning_sdk/cli/utils/logging.py +2 -1
  21. lightning_sdk/cli/utils/teamspace_selection.py +5 -0
  22. lightning_sdk/exceptions.py +31 -0
  23. lightning_sdk/job/base.py +1 -1
  24. lightning_sdk/k8s_cluster.py +9 -10
  25. lightning_sdk/lightning_cloud/__version__.py +1 -1
  26. lightning_sdk/lightning_cloud/openapi/__init__.py +43 -23
  27. lightning_sdk/lightning_cloud/openapi/api/__init__.py +2 -1
  28. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +118 -1
  29. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +378 -536
  30. lightning_sdk/lightning_cloud/openapi/api/container_registry_service_api.py +456 -0
  31. lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +5 -1
  32. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +11 -11
  33. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +113 -0
  34. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +246 -19
  35. lightning_sdk/lightning_cloud/openapi/api/lightningwork_service_api.py +116 -11
  36. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +588 -2
  37. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +9 -1
  38. lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +113 -0
  39. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
  40. lightning_sdk/lightning_cloud/openapi/api/{kubernetes_virtual_machine_service_api.py → virtual_machine_service_api.py} +82 -82
  41. lightning_sdk/lightning_cloud/openapi/models/__init__.py +41 -22
  42. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_cluster_capacity_reservation_body.py +53 -1
  43. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_machine_body.py +53 -1
  44. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_org_cluster_capacity_reservation_body.py +409 -0
  45. lightning_sdk/lightning_cloud/openapi/models/{v1_add_container_registry_response.py → cluster_service_report_machine_system_metrics_body.py} +23 -23
  46. lightning_sdk/lightning_cloud/openapi/models/container_registry_config_ecr.py +149 -0
  47. lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_status.py → container_registry_provider.py} +14 -10
  48. lightning_sdk/lightning_cloud/openapi/models/container_registry_service_create_container_registry_body.py +201 -0
  49. lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config_input.py → container_registry_service_refresh_container_registry_credentials_body.py} +21 -21
  50. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config.py → jobs_service_duplicate_deployment_body.py} +51 -51
  52. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_create_lit_logger_media_body.py +305 -0
  53. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_lit_logger_media_body.py +149 -0
  54. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_metrics_stream_body.py +53 -1
  55. lightning_sdk/lightning_cloud/openapi/models/organizations_service_update_org_role_body.py +175 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_capacity_reservation_used_by.py +227 -0
  57. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +2 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +53 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +79 -27
  62. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry.py +63 -89
  64. lightning_sdk/lightning_cloud/openapi/models/{cluster_service_add_container_registry_body.py → v1_container_registry_config.py} +16 -16
  65. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_scopes.py +149 -0
  66. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_kubernetes_virtual_machine_response.py → v1_create_container_registry_response.py} +6 -6
  67. lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_logger_media_response.py +149 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_create_org_cluster_capacity_reservation_response.py +201 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +29 -3
  70. lightning_sdk/lightning_cloud/openapi/models/v1_cudo_direct_v1.py +175 -0
  71. lightning_sdk/lightning_cloud/openapi/models/{cluster_service_refresh_container_registry_credentials_body.py → v1_delete_lit_logger_media_response.py} +6 -6
  72. lightning_sdk/lightning_cloud/openapi/models/{kubernetes_virtual_machine_service_update_kubernetes_virtual_machine_body.py → v1_delete_org_cluster_capacity_reservation_response.py} +6 -6
  73. lightning_sdk/lightning_cloud/openapi/models/v1_delete_virtual_machine_response.py +97 -0
  74. lightning_sdk/lightning_cloud/openapi/models/v1_describe_org_cluster_capacity_reservation_response.py +201 -0
  75. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -27
  76. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  77. lightning_sdk/lightning_cloud/openapi/models/v1_generic_job_spec.py +79 -1
  78. lightning_sdk/lightning_cloud/openapi/models/{v1_validate_container_registry_response.py → v1_get_kubernetes_pod_logs_response.py} +37 -37
  79. lightning_sdk/lightning_cloud/openapi/models/{v1_get_machine_response.py → v1_get_kubernetes_pod_response.py} +23 -23
  80. lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
  81. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  82. lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +27 -1
  83. lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_integration.py → v1_k8s_incident_setting.py} +49 -23
  84. lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_type.py +108 -0
  85. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +53 -1
  86. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +53 -27
  87. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod.py +27 -1
  88. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod_logs_page.py +227 -0
  89. lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_config.py +53 -1
  90. lightning_sdk/lightning_cloud/openapi/models/v1_list_container_registries_response.py +6 -6
  91. lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_response.py +43 -17
  92. lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_sort_order.py +104 -0
  93. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_logger_media_response.py +149 -0
  94. lightning_sdk/lightning_cloud/openapi/models/v1_list_models_response.py +55 -3
  95. lightning_sdk/lightning_cloud/openapi/models/{v1_list_kubernetes_virtual_machines_response.py → v1_list_virtual_machines_response.py} +16 -16
  96. lightning_sdk/lightning_cloud/openapi/models/v1_lit_logger_media.py +513 -0
  97. lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +27 -53
  98. lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +107 -3
  99. lightning_sdk/lightning_cloud/openapi/models/v1_media_type.py +104 -0
  100. lightning_sdk/lightning_cloud/openapi/models/{v1_ai_pod_v1.py → v1_mithril_direct_v1.py} +51 -51
  101. lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
  102. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
  103. lightning_sdk/lightning_cloud/openapi/models/v1_refresh_container_registry_credentials_response.py +1 -27
  104. lightning_sdk/lightning_cloud/openapi/models/{cluster_service_validate_container_registry_body.py → v1_report_cloud_space_instance_idle_state_response.py} +6 -6
  105. lightning_sdk/lightning_cloud/openapi/models/v1_report_machine_system_metrics_response.py +97 -0
  106. lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_details.py → v1_tenant_credentials.py} +53 -53
  107. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +183 -157
  108. lightning_sdk/lightning_cloud/openapi/models/{v1_kubernetes_virtual_machine.py → v1_virtual_machine.py} +94 -68
  109. lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_vm_configuration.py → v1_vm_configuration.py} +20 -20
  110. lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_provider_configuration.py → v1_vm_provider_configuration.py} +32 -32
  111. lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_create_virtual_machine_body.py +565 -0
  112. lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_update_virtual_machine_body.py +97 -0
  113. lightning_sdk/lightning_cloud/openapi/rest.py +2 -2
  114. lightning_sdk/lightning_cloud/rest_client.py +0 -2
  115. lightning_sdk/machine.py +3 -3
  116. lightning_sdk/studio.py +14 -4
  117. lightning_sdk/teamspace.py +28 -7
  118. lightning_sdk/utils/logging.py +2 -1
  119. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/METADATA +1 -5
  120. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/RECORD +125 -102
  121. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/WHEEL +1 -1
  122. lightning_sdk/lightning_cloud/cli/__main__.py +0 -29
  123. lightning_sdk/lightning_cloud/openapi/models/kubernetes_virtual_machine_service_create_kubernetes_virtual_machine_body.py +0 -513
  124. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_info.py +0 -281
  125. lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_vm_resources.py +0 -201
  126. lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +0 -103
  127. /lightning_sdk/lightning_cloud/openapi/models/{v1_list_filesystem_mmts_response.py → v1_list_filesystem_mm_ts_response.py} +0 -0
  128. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/LICENSE +0 -0
  129. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/entry_points.txt +0 -0
  130. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/top_level.txt +0 -0
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
28
28
  from datetime import datetime
29
29
  from lightning_sdk.lightning_cloud.openapi.models import *
30
30
 
31
- class V1ContainerRegistryStatus(object):
31
+ class ContainerRegistryProvider(object):
32
32
  """NOTE: This class is auto generated by the swagger code generator program.
33
33
 
34
34
  Do not edit the class manually.
@@ -37,10 +37,14 @@ class V1ContainerRegistryStatus(object):
37
37
  """
38
38
  allowed enum values
39
39
  """
40
- UNSPECIFIED = "CONTAINER_REGISTRY_STATUS_UNSPECIFIED"
41
- PENDING = "CONTAINER_REGISTRY_STATUS_PENDING"
42
- VALIDATED = "CONTAINER_REGISTRY_STATUS_VALIDATED"
43
- ERROR = "CONTAINER_REGISTRY_STATUS_ERROR"
40
+ UNSPECIFIED = "Unspecified"
41
+ ECR = "ECR"
42
+ LITCR = "LitCR"
43
+ GHCR = "GHCR"
44
+ DOCKERHUB = "DockerHub"
45
+ GCR = "GCR"
46
+ GAR = "GAR"
47
+ ACR = "ACR"
44
48
  """
45
49
  Attributes:
46
50
  swagger_types (dict): The key is attribute name
@@ -55,7 +59,7 @@ class V1ContainerRegistryStatus(object):
55
59
  }
56
60
 
57
61
  def __init__(self): # noqa: E501
58
- """V1ContainerRegistryStatus - a model defined in Swagger""" # noqa: E501
62
+ """ContainerRegistryProvider - a model defined in Swagger""" # noqa: E501
59
63
  self.discriminator = None
60
64
 
61
65
  def to_dict(self) -> dict:
@@ -79,7 +83,7 @@ class V1ContainerRegistryStatus(object):
79
83
  ))
80
84
  else:
81
85
  result[attr] = value
82
- if issubclass(V1ContainerRegistryStatus, dict):
86
+ if issubclass(ContainerRegistryProvider, dict):
83
87
  for key, value in self.items():
84
88
  result[key] = value
85
89
 
@@ -93,13 +97,13 @@ class V1ContainerRegistryStatus(object):
93
97
  """For `print` and `pprint`"""
94
98
  return self.to_str()
95
99
 
96
- def __eq__(self, other: 'V1ContainerRegistryStatus') -> bool:
100
+ def __eq__(self, other: 'ContainerRegistryProvider') -> bool:
97
101
  """Returns true if both objects are equal"""
98
- if not isinstance(other, V1ContainerRegistryStatus):
102
+ if not isinstance(other, ContainerRegistryProvider):
99
103
  return False
100
104
 
101
105
  return self.__dict__ == other.__dict__
102
106
 
103
- def __ne__(self, other: 'V1ContainerRegistryStatus') -> bool:
107
+ def __ne__(self, other: 'ContainerRegistryProvider') -> bool:
104
108
  """Returns true if both objects are not equal"""
105
109
  return not self == other
@@ -0,0 +1,201 @@
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 ContainerRegistryServiceCreateContainerRegistryBody(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
+ 'org_id': 'str',
45
+ 'provider': 'ContainerRegistryProvider',
46
+ 'scopes': 'V1ContainerRegistryScopes',
47
+ 'url': 'str'
48
+ }
49
+
50
+ attribute_map = {
51
+ 'org_id': 'orgId',
52
+ 'provider': 'provider',
53
+ 'scopes': 'scopes',
54
+ 'url': 'url'
55
+ }
56
+
57
+ def __init__(self, org_id: 'str' =None, provider: 'ContainerRegistryProvider' =None, scopes: 'V1ContainerRegistryScopes' =None, url: 'str' =None): # noqa: E501
58
+ """ContainerRegistryServiceCreateContainerRegistryBody - a model defined in Swagger""" # noqa: E501
59
+ self._org_id = None
60
+ self._provider = None
61
+ self._scopes = None
62
+ self._url = None
63
+ self.discriminator = None
64
+ if org_id is not None:
65
+ self.org_id = org_id
66
+ if provider is not None:
67
+ self.provider = provider
68
+ if scopes is not None:
69
+ self.scopes = scopes
70
+ if url is not None:
71
+ self.url = url
72
+
73
+ @property
74
+ def org_id(self) -> 'str':
75
+ """Gets the org_id of this ContainerRegistryServiceCreateContainerRegistryBody. # noqa: E501
76
+
77
+
78
+ :return: The org_id of this ContainerRegistryServiceCreateContainerRegistryBody. # noqa: E501
79
+ :rtype: str
80
+ """
81
+ return self._org_id
82
+
83
+ @org_id.setter
84
+ def org_id(self, org_id: 'str'):
85
+ """Sets the org_id of this ContainerRegistryServiceCreateContainerRegistryBody.
86
+
87
+
88
+ :param org_id: The org_id of this ContainerRegistryServiceCreateContainerRegistryBody. # noqa: E501
89
+ :type: str
90
+ """
91
+
92
+ self._org_id = org_id
93
+
94
+ @property
95
+ def provider(self) -> 'ContainerRegistryProvider':
96
+ """Gets the provider of this ContainerRegistryServiceCreateContainerRegistryBody. # noqa: E501
97
+
98
+
99
+ :return: The provider of this ContainerRegistryServiceCreateContainerRegistryBody. # noqa: E501
100
+ :rtype: ContainerRegistryProvider
101
+ """
102
+ return self._provider
103
+
104
+ @provider.setter
105
+ def provider(self, provider: 'ContainerRegistryProvider'):
106
+ """Sets the provider of this ContainerRegistryServiceCreateContainerRegistryBody.
107
+
108
+
109
+ :param provider: The provider of this ContainerRegistryServiceCreateContainerRegistryBody. # noqa: E501
110
+ :type: ContainerRegistryProvider
111
+ """
112
+
113
+ self._provider = provider
114
+
115
+ @property
116
+ def scopes(self) -> 'V1ContainerRegistryScopes':
117
+ """Gets the scopes of this ContainerRegistryServiceCreateContainerRegistryBody. # noqa: E501
118
+
119
+
120
+ :return: The scopes of this ContainerRegistryServiceCreateContainerRegistryBody. # noqa: E501
121
+ :rtype: V1ContainerRegistryScopes
122
+ """
123
+ return self._scopes
124
+
125
+ @scopes.setter
126
+ def scopes(self, scopes: 'V1ContainerRegistryScopes'):
127
+ """Sets the scopes of this ContainerRegistryServiceCreateContainerRegistryBody.
128
+
129
+
130
+ :param scopes: The scopes of this ContainerRegistryServiceCreateContainerRegistryBody. # noqa: E501
131
+ :type: V1ContainerRegistryScopes
132
+ """
133
+
134
+ self._scopes = scopes
135
+
136
+ @property
137
+ def url(self) -> 'str':
138
+ """Gets the url of this ContainerRegistryServiceCreateContainerRegistryBody. # noqa: E501
139
+
140
+
141
+ :return: The url of this ContainerRegistryServiceCreateContainerRegistryBody. # noqa: E501
142
+ :rtype: str
143
+ """
144
+ return self._url
145
+
146
+ @url.setter
147
+ def url(self, url: 'str'):
148
+ """Sets the url of this ContainerRegistryServiceCreateContainerRegistryBody.
149
+
150
+
151
+ :param url: The url of this ContainerRegistryServiceCreateContainerRegistryBody. # noqa: E501
152
+ :type: str
153
+ """
154
+
155
+ self._url = url
156
+
157
+ def to_dict(self) -> dict:
158
+ """Returns the model properties as a dict"""
159
+ result = {}
160
+
161
+ for attr, _ in six.iteritems(self.swagger_types):
162
+ value = getattr(self, attr)
163
+ if isinstance(value, list):
164
+ result[attr] = list(map(
165
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
166
+ value
167
+ ))
168
+ elif hasattr(value, "to_dict"):
169
+ result[attr] = value.to_dict()
170
+ elif isinstance(value, dict):
171
+ result[attr] = dict(map(
172
+ lambda item: (item[0], item[1].to_dict())
173
+ if hasattr(item[1], "to_dict") else item,
174
+ value.items()
175
+ ))
176
+ else:
177
+ result[attr] = value
178
+ if issubclass(ContainerRegistryServiceCreateContainerRegistryBody, dict):
179
+ for key, value in self.items():
180
+ result[key] = value
181
+
182
+ return result
183
+
184
+ def to_str(self) -> str:
185
+ """Returns the string representation of the model"""
186
+ return pprint.pformat(self.to_dict())
187
+
188
+ def __repr__(self) -> str:
189
+ """For `print` and `pprint`"""
190
+ return self.to_str()
191
+
192
+ def __eq__(self, other: 'ContainerRegistryServiceCreateContainerRegistryBody') -> bool:
193
+ """Returns true if both objects are equal"""
194
+ if not isinstance(other, ContainerRegistryServiceCreateContainerRegistryBody):
195
+ return False
196
+
197
+ return self.__dict__ == other.__dict__
198
+
199
+ def __ne__(self, other: 'ContainerRegistryServiceCreateContainerRegistryBody') -> bool:
200
+ """Returns true if both objects are not equal"""
201
+ return not self == other
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
28
28
  from datetime import datetime
29
29
  from lightning_sdk.lightning_cloud.openapi.models import *
30
30
 
31
- class V1ECRRegistryConfigInput(object):
31
+ class ContainerRegistryServiceRefreshContainerRegistryCredentialsBody(object):
32
32
  """NOTE: This class is auto generated by the swagger code generator program.
33
33
 
34
34
  Do not edit the class manually.
@@ -41,40 +41,40 @@ class V1ECRRegistryConfigInput(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'registry_url': 'str'
44
+ 'org_id': 'str'
45
45
  }
46
46
 
47
47
  attribute_map = {
48
- 'registry_url': 'registryUrl'
48
+ 'org_id': 'orgId'
49
49
  }
50
50
 
51
- def __init__(self, registry_url: 'str' =None): # noqa: E501
52
- """V1ECRRegistryConfigInput - a model defined in Swagger""" # noqa: E501
53
- self._registry_url = None
51
+ def __init__(self, org_id: 'str' =None): # noqa: E501
52
+ """ContainerRegistryServiceRefreshContainerRegistryCredentialsBody - a model defined in Swagger""" # noqa: E501
53
+ self._org_id = None
54
54
  self.discriminator = None
55
- if registry_url is not None:
56
- self.registry_url = registry_url
55
+ if org_id is not None:
56
+ self.org_id = org_id
57
57
 
58
58
  @property
59
- def registry_url(self) -> 'str':
60
- """Gets the registry_url of this V1ECRRegistryConfigInput. # noqa: E501
59
+ def org_id(self) -> 'str':
60
+ """Gets the org_id of this ContainerRegistryServiceRefreshContainerRegistryCredentialsBody. # noqa: E501
61
61
 
62
62
 
63
- :return: The registry_url of this V1ECRRegistryConfigInput. # noqa: E501
63
+ :return: The org_id of this ContainerRegistryServiceRefreshContainerRegistryCredentialsBody. # noqa: E501
64
64
  :rtype: str
65
65
  """
66
- return self._registry_url
66
+ return self._org_id
67
67
 
68
- @registry_url.setter
69
- def registry_url(self, registry_url: 'str'):
70
- """Sets the registry_url of this V1ECRRegistryConfigInput.
68
+ @org_id.setter
69
+ def org_id(self, org_id: 'str'):
70
+ """Sets the org_id of this ContainerRegistryServiceRefreshContainerRegistryCredentialsBody.
71
71
 
72
72
 
73
- :param registry_url: The registry_url of this V1ECRRegistryConfigInput. # noqa: E501
73
+ :param org_id: The org_id of this ContainerRegistryServiceRefreshContainerRegistryCredentialsBody. # noqa: E501
74
74
  :type: str
75
75
  """
76
76
 
77
- self._registry_url = registry_url
77
+ self._org_id = org_id
78
78
 
79
79
  def to_dict(self) -> dict:
80
80
  """Returns the model properties as a dict"""
@@ -97,7 +97,7 @@ class V1ECRRegistryConfigInput(object):
97
97
  ))
98
98
  else:
99
99
  result[attr] = value
100
- if issubclass(V1ECRRegistryConfigInput, dict):
100
+ if issubclass(ContainerRegistryServiceRefreshContainerRegistryCredentialsBody, dict):
101
101
  for key, value in self.items():
102
102
  result[key] = value
103
103
 
@@ -111,13 +111,13 @@ class V1ECRRegistryConfigInput(object):
111
111
  """For `print` and `pprint`"""
112
112
  return self.to_str()
113
113
 
114
- def __eq__(self, other: 'V1ECRRegistryConfigInput') -> bool:
114
+ def __eq__(self, other: 'ContainerRegistryServiceRefreshContainerRegistryCredentialsBody') -> bool:
115
115
  """Returns true if both objects are equal"""
116
- if not isinstance(other, V1ECRRegistryConfigInput):
116
+ if not isinstance(other, ContainerRegistryServiceRefreshContainerRegistryCredentialsBody):
117
117
  return False
118
118
 
119
119
  return self.__dict__ == other.__dict__
120
120
 
121
- def __ne__(self, other: 'V1ECRRegistryConfigInput') -> bool:
121
+ def __ne__(self, other: 'ContainerRegistryServiceRefreshContainerRegistryCredentialsBody') -> bool:
122
122
  """Returns true if both objects are not equal"""
123
123
  return not self == other
@@ -44,6 +44,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
44
44
  'alerts': 'list[V1ServerAlert]',
45
45
  'app_url': 'str',
46
46
  'bytes_to_sync': 'str',
47
+ 'capacity_reservation_id': 'str',
47
48
  'cloud_space_id': 'str',
48
49
  'cloud_space_instance_id': 'str',
49
50
  'cluster_id': 'str',
@@ -81,6 +82,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
81
82
  'alerts': 'alerts',
82
83
  'app_url': 'appUrl',
83
84
  'bytes_to_sync': 'bytesToSync',
85
+ 'capacity_reservation_id': 'capacityReservationId',
84
86
  'cloud_space_id': 'cloudSpaceId',
85
87
  'cloud_space_instance_id': 'cloudSpaceInstanceId',
86
88
  'cluster_id': 'clusterId',
@@ -114,11 +116,12 @@ class Externalv1CloudSpaceInstanceStatus(object):
114
116
  'vscode_url': 'vscodeUrl'
115
117
  }
116
118
 
117
- def __init__(self, alerts: 'list[V1ServerAlert]' =None, app_url: 'str' =None, bytes_to_sync: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, cluster_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, files_to_sync: 'str' =None, free: 'bool' =None, ide: 'str' =None, instance_id: 'str' =None, instance_region: 'str' =None, instance_url: 'str' =None, jupyterlab_url: 'str' =None, phase: 'V1CloudSpaceInstanceState' =None, price: 'float' =None, private_ip_address: 'str' =None, public_ip_address: 'str' =None, ssh_host: 'str' =None, ssh_port: 'int' =None, ssh_username: 'str' =None, start_timestamp: 'datetime' =None, startup_eta_seconds: 'str' =None, startup_percentage: 'str' =None, startup_phase: 'str' =None, startup_status: 'V1CloudSpaceInstanceStartupStatus' =None, status_message: 'str' =None, switched_at: 'datetime' =None, sync_last_updated: 'datetime' =None, termination_time: 'datetime' =None, transfer_metadata: 'V1CloudSpaceTransferMetadata' =None, vscode_url: 'str' =None): # noqa: E501
119
+ def __init__(self, alerts: 'list[V1ServerAlert]' =None, app_url: 'str' =None, bytes_to_sync: 'str' =None, capacity_reservation_id: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, cluster_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, files_to_sync: 'str' =None, free: 'bool' =None, ide: 'str' =None, instance_id: 'str' =None, instance_region: 'str' =None, instance_url: 'str' =None, jupyterlab_url: 'str' =None, phase: 'V1CloudSpaceInstanceState' =None, price: 'float' =None, private_ip_address: 'str' =None, public_ip_address: 'str' =None, ssh_host: 'str' =None, ssh_port: 'int' =None, ssh_username: 'str' =None, start_timestamp: 'datetime' =None, startup_eta_seconds: 'str' =None, startup_percentage: 'str' =None, startup_phase: 'str' =None, startup_status: 'V1CloudSpaceInstanceStartupStatus' =None, status_message: 'str' =None, switched_at: 'datetime' =None, sync_last_updated: 'datetime' =None, termination_time: 'datetime' =None, transfer_metadata: 'V1CloudSpaceTransferMetadata' =None, vscode_url: 'str' =None): # noqa: E501
118
120
  """Externalv1CloudSpaceInstanceStatus - a model defined in Swagger""" # noqa: E501
119
121
  self._alerts = None
120
122
  self._app_url = None
121
123
  self._bytes_to_sync = None
124
+ self._capacity_reservation_id = None
122
125
  self._cloud_space_id = None
123
126
  self._cloud_space_instance_id = None
124
127
  self._cluster_id = None
@@ -157,6 +160,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
157
160
  self.app_url = app_url
158
161
  if bytes_to_sync is not None:
159
162
  self.bytes_to_sync = bytes_to_sync
163
+ if capacity_reservation_id is not None:
164
+ self.capacity_reservation_id = capacity_reservation_id
160
165
  if cloud_space_id is not None:
161
166
  self.cloud_space_id = cloud_space_id
162
167
  if cloud_space_instance_id is not None:
@@ -283,6 +288,27 @@ class Externalv1CloudSpaceInstanceStatus(object):
283
288
 
284
289
  self._bytes_to_sync = bytes_to_sync
285
290
 
291
+ @property
292
+ def capacity_reservation_id(self) -> 'str':
293
+ """Gets the capacity_reservation_id of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
294
+
295
+
296
+ :return: The capacity_reservation_id of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
297
+ :rtype: str
298
+ """
299
+ return self._capacity_reservation_id
300
+
301
+ @capacity_reservation_id.setter
302
+ def capacity_reservation_id(self, capacity_reservation_id: 'str'):
303
+ """Sets the capacity_reservation_id of this Externalv1CloudSpaceInstanceStatus.
304
+
305
+
306
+ :param capacity_reservation_id: The capacity_reservation_id of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
307
+ :type: str
308
+ """
309
+
310
+ self._capacity_reservation_id = capacity_reservation_id
311
+
286
312
  @property
287
313
  def cloud_space_id(self) -> 'str':
288
314
  """Gets the cloud_space_id of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
28
28
  from datetime import datetime
29
29
  from lightning_sdk.lightning_cloud.openapi.models import *
30
30
 
31
- class V1ECRRegistryConfig(object):
31
+ class JobsServiceDuplicateDeploymentBody(object):
32
32
  """NOTE: This class is auto generated by the swagger code generator program.
33
33
 
34
34
  Do not edit the class manually.
@@ -41,92 +41,92 @@ class V1ECRRegistryConfig(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'lightning_account_id': 'str',
45
- 'lightning_role': 'str',
46
- 'registry_url': 'str'
44
+ 'cluster_id': 'str',
45
+ 'name': 'str',
46
+ 'recipients': 'V1DeploymentAlertingRecipients'
47
47
  }
48
48
 
49
49
  attribute_map = {
50
- 'lightning_account_id': 'lightningAccountId',
51
- 'lightning_role': 'lightningRole',
52
- 'registry_url': 'registryUrl'
50
+ 'cluster_id': 'clusterId',
51
+ 'name': 'name',
52
+ 'recipients': 'recipients'
53
53
  }
54
54
 
55
- def __init__(self, lightning_account_id: 'str' =None, lightning_role: 'str' =None, registry_url: 'str' =None): # noqa: E501
56
- """V1ECRRegistryConfig - a model defined in Swagger""" # noqa: E501
57
- self._lightning_account_id = None
58
- self._lightning_role = None
59
- self._registry_url = None
55
+ def __init__(self, cluster_id: 'str' =None, name: 'str' =None, recipients: 'V1DeploymentAlertingRecipients' =None): # noqa: E501
56
+ """JobsServiceDuplicateDeploymentBody - a model defined in Swagger""" # noqa: E501
57
+ self._cluster_id = None
58
+ self._name = None
59
+ self._recipients = None
60
60
  self.discriminator = None
61
- if lightning_account_id is not None:
62
- self.lightning_account_id = lightning_account_id
63
- if lightning_role is not None:
64
- self.lightning_role = lightning_role
65
- if registry_url is not None:
66
- self.registry_url = registry_url
61
+ if cluster_id is not None:
62
+ self.cluster_id = cluster_id
63
+ if name is not None:
64
+ self.name = name
65
+ if recipients is not None:
66
+ self.recipients = recipients
67
67
 
68
68
  @property
69
- def lightning_account_id(self) -> 'str':
70
- """Gets the lightning_account_id of this V1ECRRegistryConfig. # noqa: E501
69
+ def cluster_id(self) -> 'str':
70
+ """Gets the cluster_id of this JobsServiceDuplicateDeploymentBody. # noqa: E501
71
71
 
72
72
 
73
- :return: The lightning_account_id of this V1ECRRegistryConfig. # noqa: E501
73
+ :return: The cluster_id of this JobsServiceDuplicateDeploymentBody. # noqa: E501
74
74
  :rtype: str
75
75
  """
76
- return self._lightning_account_id
76
+ return self._cluster_id
77
77
 
78
- @lightning_account_id.setter
79
- def lightning_account_id(self, lightning_account_id: 'str'):
80
- """Sets the lightning_account_id of this V1ECRRegistryConfig.
78
+ @cluster_id.setter
79
+ def cluster_id(self, cluster_id: 'str'):
80
+ """Sets the cluster_id of this JobsServiceDuplicateDeploymentBody.
81
81
 
82
82
 
83
- :param lightning_account_id: The lightning_account_id of this V1ECRRegistryConfig. # noqa: E501
83
+ :param cluster_id: The cluster_id of this JobsServiceDuplicateDeploymentBody. # noqa: E501
84
84
  :type: str
85
85
  """
86
86
 
87
- self._lightning_account_id = lightning_account_id
87
+ self._cluster_id = cluster_id
88
88
 
89
89
  @property
90
- def lightning_role(self) -> 'str':
91
- """Gets the lightning_role of this V1ECRRegistryConfig. # noqa: E501
90
+ def name(self) -> 'str':
91
+ """Gets the name of this JobsServiceDuplicateDeploymentBody. # noqa: E501
92
92
 
93
93
 
94
- :return: The lightning_role of this V1ECRRegistryConfig. # noqa: E501
94
+ :return: The name of this JobsServiceDuplicateDeploymentBody. # noqa: E501
95
95
  :rtype: str
96
96
  """
97
- return self._lightning_role
97
+ return self._name
98
98
 
99
- @lightning_role.setter
100
- def lightning_role(self, lightning_role: 'str'):
101
- """Sets the lightning_role of this V1ECRRegistryConfig.
99
+ @name.setter
100
+ def name(self, name: 'str'):
101
+ """Sets the name of this JobsServiceDuplicateDeploymentBody.
102
102
 
103
103
 
104
- :param lightning_role: The lightning_role of this V1ECRRegistryConfig. # noqa: E501
104
+ :param name: The name of this JobsServiceDuplicateDeploymentBody. # noqa: E501
105
105
  :type: str
106
106
  """
107
107
 
108
- self._lightning_role = lightning_role
108
+ self._name = name
109
109
 
110
110
  @property
111
- def registry_url(self) -> 'str':
112
- """Gets the registry_url of this V1ECRRegistryConfig. # noqa: E501
111
+ def recipients(self) -> 'V1DeploymentAlertingRecipients':
112
+ """Gets the recipients of this JobsServiceDuplicateDeploymentBody. # noqa: E501
113
113
 
114
114
 
115
- :return: The registry_url of this V1ECRRegistryConfig. # noqa: E501
116
- :rtype: str
115
+ :return: The recipients of this JobsServiceDuplicateDeploymentBody. # noqa: E501
116
+ :rtype: V1DeploymentAlertingRecipients
117
117
  """
118
- return self._registry_url
118
+ return self._recipients
119
119
 
120
- @registry_url.setter
121
- def registry_url(self, registry_url: 'str'):
122
- """Sets the registry_url of this V1ECRRegistryConfig.
120
+ @recipients.setter
121
+ def recipients(self, recipients: 'V1DeploymentAlertingRecipients'):
122
+ """Sets the recipients of this JobsServiceDuplicateDeploymentBody.
123
123
 
124
124
 
125
- :param registry_url: The registry_url of this V1ECRRegistryConfig. # noqa: E501
126
- :type: str
125
+ :param recipients: The recipients of this JobsServiceDuplicateDeploymentBody. # noqa: E501
126
+ :type: V1DeploymentAlertingRecipients
127
127
  """
128
128
 
129
- self._registry_url = registry_url
129
+ self._recipients = recipients
130
130
 
131
131
  def to_dict(self) -> dict:
132
132
  """Returns the model properties as a dict"""
@@ -149,7 +149,7 @@ class V1ECRRegistryConfig(object):
149
149
  ))
150
150
  else:
151
151
  result[attr] = value
152
- if issubclass(V1ECRRegistryConfig, dict):
152
+ if issubclass(JobsServiceDuplicateDeploymentBody, dict):
153
153
  for key, value in self.items():
154
154
  result[key] = value
155
155
 
@@ -163,13 +163,13 @@ class V1ECRRegistryConfig(object):
163
163
  """For `print` and `pprint`"""
164
164
  return self.to_str()
165
165
 
166
- def __eq__(self, other: 'V1ECRRegistryConfig') -> bool:
166
+ def __eq__(self, other: 'JobsServiceDuplicateDeploymentBody') -> bool:
167
167
  """Returns true if both objects are equal"""
168
- if not isinstance(other, V1ECRRegistryConfig):
168
+ if not isinstance(other, JobsServiceDuplicateDeploymentBody):
169
169
  return False
170
170
 
171
171
  return self.__dict__ == other.__dict__
172
172
 
173
- def __ne__(self, other: 'V1ECRRegistryConfig') -> bool:
173
+ def __ne__(self, other: 'JobsServiceDuplicateDeploymentBody') -> bool:
174
174
  """Returns true if both objects are not equal"""
175
175
  return not self == other