lightning-sdk 0.2.3__py3-none-any.whl → 0.2.5__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 (110) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/ai_hub.py +10 -17
  3. lightning_sdk/api/ai_hub_api.py +20 -3
  4. lightning_sdk/api/studio_api.py +0 -8
  5. lightning_sdk/cli/serve.py +139 -22
  6. lightning_sdk/deployment/deployment.py +32 -4
  7. lightning_sdk/lightning_cloud/openapi/__init__.py +49 -1
  8. lightning_sdk/lightning_cloud/openapi/api/__init__.py +4 -0
  9. lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +537 -0
  10. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +10 -6
  11. lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
  12. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +5 -1
  13. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +20 -20
  14. lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
  15. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +5 -1
  16. lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +573 -0
  17. lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
  18. lightning_sdk/lightning_cloud/openapi/models/__init__.py +45 -1
  19. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
  20. lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
  21. lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
  22. lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
  23. lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +227 -0
  24. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +69 -69
  25. lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
  26. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +69 -17
  28. lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
  29. lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
  30. lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +17 -17
  31. lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +201 -0
  32. lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +383 -0
  33. lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +15 -15
  34. lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
  35. lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +124 -20
  37. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +2 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  40. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +253 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +149 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
  49. lightning_sdk/lightning_cloud/openapi/models/{v1_pipeline_schedule.py → v1_delete_cloud_space_environment_template_response.py} +32 -32
  50. lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
  54. lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_file_upload_urls_response.py +123 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +79 -27
  58. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  59. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_file.py +175 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +27 -1
  68. lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
  70. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +107 -3
  71. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
  72. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +69 -17
  73. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
  74. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
  75. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
  76. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
  77. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
  78. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
  79. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
  80. lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +435 -0
  81. lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +103 -0
  82. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
  83. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +58 -6
  84. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
  85. lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
  86. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  87. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -105
  88. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
  89. lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +203 -0
  90. lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
  91. lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
  92. lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
  93. lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
  94. lightning_sdk/lightning_cloud/rest_client.py +2 -0
  95. lightning_sdk/lit_container.py +8 -1
  96. lightning_sdk/mmt/mmt.py +1 -18
  97. lightning_sdk/mmt/v1.py +1 -28
  98. lightning_sdk/models.py +15 -6
  99. lightning_sdk/pipeline/pipeline.py +2 -2
  100. lightning_sdk/pipeline/types.py +28 -2
  101. lightning_sdk/pipeline/utils.py +1 -1
  102. lightning_sdk/plugin.py +0 -6
  103. lightning_sdk/serve.py +55 -22
  104. lightning_sdk/utils/resolve.py +1 -0
  105. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/METADATA +1 -1
  106. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/RECORD +110 -62
  107. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/WHEEL +1 -1
  108. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/LICENSE +0 -0
  109. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/entry_points.txt +0 -0
  110. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/top_level.txt +0 -0
@@ -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 EnvironmenttemplatesIdBody(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
+ 'created_at': 'datetime',
45
+ 'name': 'str',
46
+ 'org_id': 'str',
47
+ 'updated_at': 'datetime',
48
+ 'user_id': 'str'
49
+ }
50
+
51
+ attribute_map = {
52
+ 'created_at': 'createdAt',
53
+ 'name': 'name',
54
+ 'org_id': 'orgId',
55
+ 'updated_at': 'updatedAt',
56
+ 'user_id': 'userId'
57
+ }
58
+
59
+ def __init__(self, created_at: 'datetime' =None, name: 'str' =None, org_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
60
+ """EnvironmenttemplatesIdBody - a model defined in Swagger""" # noqa: E501
61
+ self._created_at = None
62
+ self._name = None
63
+ self._org_id = None
64
+ self._updated_at = None
65
+ self._user_id = None
66
+ self.discriminator = None
67
+ if created_at is not None:
68
+ self.created_at = created_at
69
+ if name is not None:
70
+ self.name = name
71
+ if org_id is not None:
72
+ self.org_id = org_id
73
+ if updated_at is not None:
74
+ self.updated_at = updated_at
75
+ if user_id is not None:
76
+ self.user_id = user_id
77
+
78
+ @property
79
+ def created_at(self) -> 'datetime':
80
+ """Gets the created_at of this EnvironmenttemplatesIdBody. # noqa: E501
81
+
82
+
83
+ :return: The created_at of this EnvironmenttemplatesIdBody. # noqa: E501
84
+ :rtype: datetime
85
+ """
86
+ return self._created_at
87
+
88
+ @created_at.setter
89
+ def created_at(self, created_at: 'datetime'):
90
+ """Sets the created_at of this EnvironmenttemplatesIdBody.
91
+
92
+
93
+ :param created_at: The created_at of this EnvironmenttemplatesIdBody. # noqa: E501
94
+ :type: datetime
95
+ """
96
+
97
+ self._created_at = created_at
98
+
99
+ @property
100
+ def name(self) -> 'str':
101
+ """Gets the name of this EnvironmenttemplatesIdBody. # noqa: E501
102
+
103
+
104
+ :return: The name of this EnvironmenttemplatesIdBody. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._name
108
+
109
+ @name.setter
110
+ def name(self, name: 'str'):
111
+ """Sets the name of this EnvironmenttemplatesIdBody.
112
+
113
+
114
+ :param name: The name of this EnvironmenttemplatesIdBody. # noqa: E501
115
+ :type: str
116
+ """
117
+
118
+ self._name = name
119
+
120
+ @property
121
+ def org_id(self) -> 'str':
122
+ """Gets the org_id of this EnvironmenttemplatesIdBody. # noqa: E501
123
+
124
+
125
+ :return: The org_id of this EnvironmenttemplatesIdBody. # noqa: E501
126
+ :rtype: str
127
+ """
128
+ return self._org_id
129
+
130
+ @org_id.setter
131
+ def org_id(self, org_id: 'str'):
132
+ """Sets the org_id of this EnvironmenttemplatesIdBody.
133
+
134
+
135
+ :param org_id: The org_id of this EnvironmenttemplatesIdBody. # noqa: E501
136
+ :type: str
137
+ """
138
+
139
+ self._org_id = org_id
140
+
141
+ @property
142
+ def updated_at(self) -> 'datetime':
143
+ """Gets the updated_at of this EnvironmenttemplatesIdBody. # noqa: E501
144
+
145
+
146
+ :return: The updated_at of this EnvironmenttemplatesIdBody. # noqa: E501
147
+ :rtype: datetime
148
+ """
149
+ return self._updated_at
150
+
151
+ @updated_at.setter
152
+ def updated_at(self, updated_at: 'datetime'):
153
+ """Sets the updated_at of this EnvironmenttemplatesIdBody.
154
+
155
+
156
+ :param updated_at: The updated_at of this EnvironmenttemplatesIdBody. # noqa: E501
157
+ :type: datetime
158
+ """
159
+
160
+ self._updated_at = updated_at
161
+
162
+ @property
163
+ def user_id(self) -> 'str':
164
+ """Gets the user_id of this EnvironmenttemplatesIdBody. # noqa: E501
165
+
166
+
167
+ :return: The user_id of this EnvironmenttemplatesIdBody. # noqa: E501
168
+ :rtype: str
169
+ """
170
+ return self._user_id
171
+
172
+ @user_id.setter
173
+ def user_id(self, user_id: 'str'):
174
+ """Sets the user_id of this EnvironmenttemplatesIdBody.
175
+
176
+
177
+ :param user_id: The user_id of this EnvironmenttemplatesIdBody. # noqa: E501
178
+ :type: str
179
+ """
180
+
181
+ self._user_id = user_id
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(EnvironmenttemplatesIdBody, 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: 'EnvironmenttemplatesIdBody') -> bool:
219
+ """Returns true if both objects are equal"""
220
+ if not isinstance(other, EnvironmenttemplatesIdBody):
221
+ return False
222
+
223
+ return self.__dict__ == other.__dict__
224
+
225
+ def __ne__(self, other: 'EnvironmenttemplatesIdBody') -> bool:
226
+ """Returns true if both objects are not equal"""
227
+ return not self == other
@@ -42,11 +42,13 @@ class Externalv1CloudSpaceInstanceStatus(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'app_url': 'str',
45
+ 'bytes_to_sync': 'str',
45
46
  'cloud_space_id': 'str',
46
47
  'cloud_space_instance_id': 'str',
47
48
  'compute_config': 'V1UserRequestedComputeConfig',
48
49
  'creation_timestamp': 'datetime',
49
50
  'data_connection_mounts': 'list[V1DataConnectionMount]',
51
+ 'files_to_sync': 'str',
50
52
  'free': 'bool',
51
53
  'ide': 'str',
52
54
  'instance_id': 'str',
@@ -65,20 +67,20 @@ class Externalv1CloudSpaceInstanceStatus(object):
65
67
  'startup_status': 'V1CloudSpaceInstanceStartupStatus',
66
68
  'status_message': 'str',
67
69
  'switched_at': 'datetime',
68
- 'sync_eta_seconds': 'str',
69
- 'sync_in_progress': 'bool',
70
- 'sync_percentage': 'str',
70
+ 'sync_last_updated': 'datetime',
71
71
  'termination_time': 'datetime',
72
72
  'vscode_url': 'str'
73
73
  }
74
74
 
75
75
  attribute_map = {
76
76
  'app_url': 'appUrl',
77
+ 'bytes_to_sync': 'bytesToSync',
77
78
  'cloud_space_id': 'cloudSpaceId',
78
79
  'cloud_space_instance_id': 'cloudSpaceInstanceId',
79
80
  'compute_config': 'computeConfig',
80
81
  'creation_timestamp': 'creationTimestamp',
81
82
  'data_connection_mounts': 'dataConnectionMounts',
83
+ 'files_to_sync': 'filesToSync',
82
84
  'free': 'free',
83
85
  'ide': 'ide',
84
86
  'instance_id': 'instanceId',
@@ -97,21 +99,21 @@ class Externalv1CloudSpaceInstanceStatus(object):
97
99
  'startup_status': 'startupStatus',
98
100
  'status_message': 'statusMessage',
99
101
  'switched_at': 'switchedAt',
100
- 'sync_eta_seconds': 'syncEtaSeconds',
101
- 'sync_in_progress': 'syncInProgress',
102
- 'sync_percentage': 'syncPercentage',
102
+ 'sync_last_updated': 'syncLastUpdated',
103
103
  'termination_time': 'terminationTime',
104
104
  'vscode_url': 'vscodeUrl'
105
105
  }
106
106
 
107
- def __init__(self, app_url: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =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, 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_eta_seconds: 'str' =None, sync_in_progress: 'bool' =None, sync_percentage: 'str' =None, termination_time: 'datetime' =None, vscode_url: 'str' =None): # noqa: E501
107
+ def __init__(self, app_url: 'str' =None, bytes_to_sync: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_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, 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, vscode_url: 'str' =None): # noqa: E501
108
108
  """Externalv1CloudSpaceInstanceStatus - a model defined in Swagger""" # noqa: E501
109
109
  self._app_url = None
110
+ self._bytes_to_sync = None
110
111
  self._cloud_space_id = None
111
112
  self._cloud_space_instance_id = None
112
113
  self._compute_config = None
113
114
  self._creation_timestamp = None
114
115
  self._data_connection_mounts = None
116
+ self._files_to_sync = None
115
117
  self._free = None
116
118
  self._ide = None
117
119
  self._instance_id = None
@@ -130,14 +132,14 @@ class Externalv1CloudSpaceInstanceStatus(object):
130
132
  self._startup_status = None
131
133
  self._status_message = None
132
134
  self._switched_at = None
133
- self._sync_eta_seconds = None
134
- self._sync_in_progress = None
135
- self._sync_percentage = None
135
+ self._sync_last_updated = None
136
136
  self._termination_time = None
137
137
  self._vscode_url = None
138
138
  self.discriminator = None
139
139
  if app_url is not None:
140
140
  self.app_url = app_url
141
+ if bytes_to_sync is not None:
142
+ self.bytes_to_sync = bytes_to_sync
141
143
  if cloud_space_id is not None:
142
144
  self.cloud_space_id = cloud_space_id
143
145
  if cloud_space_instance_id is not None:
@@ -148,6 +150,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
148
150
  self.creation_timestamp = creation_timestamp
149
151
  if data_connection_mounts is not None:
150
152
  self.data_connection_mounts = data_connection_mounts
153
+ if files_to_sync is not None:
154
+ self.files_to_sync = files_to_sync
151
155
  if free is not None:
152
156
  self.free = free
153
157
  if ide is not None:
@@ -184,12 +188,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
184
188
  self.status_message = status_message
185
189
  if switched_at is not None:
186
190
  self.switched_at = switched_at
187
- if sync_eta_seconds is not None:
188
- self.sync_eta_seconds = sync_eta_seconds
189
- if sync_in_progress is not None:
190
- self.sync_in_progress = sync_in_progress
191
- if sync_percentage is not None:
192
- self.sync_percentage = sync_percentage
191
+ if sync_last_updated is not None:
192
+ self.sync_last_updated = sync_last_updated
193
193
  if termination_time is not None:
194
194
  self.termination_time = termination_time
195
195
  if vscode_url is not None:
@@ -216,6 +216,27 @@ class Externalv1CloudSpaceInstanceStatus(object):
216
216
 
217
217
  self._app_url = app_url
218
218
 
219
+ @property
220
+ def bytes_to_sync(self) -> 'str':
221
+ """Gets the bytes_to_sync of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
222
+
223
+
224
+ :return: The bytes_to_sync of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
225
+ :rtype: str
226
+ """
227
+ return self._bytes_to_sync
228
+
229
+ @bytes_to_sync.setter
230
+ def bytes_to_sync(self, bytes_to_sync: 'str'):
231
+ """Sets the bytes_to_sync of this Externalv1CloudSpaceInstanceStatus.
232
+
233
+
234
+ :param bytes_to_sync: The bytes_to_sync of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
235
+ :type: str
236
+ """
237
+
238
+ self._bytes_to_sync = bytes_to_sync
239
+
219
240
  @property
220
241
  def cloud_space_id(self) -> 'str':
221
242
  """Gets the cloud_space_id of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
@@ -321,6 +342,27 @@ class Externalv1CloudSpaceInstanceStatus(object):
321
342
 
322
343
  self._data_connection_mounts = data_connection_mounts
323
344
 
345
+ @property
346
+ def files_to_sync(self) -> 'str':
347
+ """Gets the files_to_sync of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
348
+
349
+
350
+ :return: The files_to_sync of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
351
+ :rtype: str
352
+ """
353
+ return self._files_to_sync
354
+
355
+ @files_to_sync.setter
356
+ def files_to_sync(self, files_to_sync: 'str'):
357
+ """Sets the files_to_sync of this Externalv1CloudSpaceInstanceStatus.
358
+
359
+
360
+ :param files_to_sync: The files_to_sync of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
361
+ :type: str
362
+ """
363
+
364
+ self._files_to_sync = files_to_sync
365
+
324
366
  @property
325
367
  def free(self) -> 'bool':
326
368
  """Gets the free of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
@@ -702,67 +744,25 @@ class Externalv1CloudSpaceInstanceStatus(object):
702
744
  self._switched_at = switched_at
703
745
 
704
746
  @property
705
- def sync_eta_seconds(self) -> 'str':
706
- """Gets the sync_eta_seconds of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
707
-
708
-
709
- :return: The sync_eta_seconds of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
710
- :rtype: str
711
- """
712
- return self._sync_eta_seconds
713
-
714
- @sync_eta_seconds.setter
715
- def sync_eta_seconds(self, sync_eta_seconds: 'str'):
716
- """Sets the sync_eta_seconds of this Externalv1CloudSpaceInstanceStatus.
717
-
718
-
719
- :param sync_eta_seconds: The sync_eta_seconds of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
720
- :type: str
721
- """
722
-
723
- self._sync_eta_seconds = sync_eta_seconds
724
-
725
- @property
726
- def sync_in_progress(self) -> 'bool':
727
- """Gets the sync_in_progress of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
728
-
729
-
730
- :return: The sync_in_progress of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
731
- :rtype: bool
732
- """
733
- return self._sync_in_progress
734
-
735
- @sync_in_progress.setter
736
- def sync_in_progress(self, sync_in_progress: 'bool'):
737
- """Sets the sync_in_progress of this Externalv1CloudSpaceInstanceStatus.
738
-
739
-
740
- :param sync_in_progress: The sync_in_progress of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
741
- :type: bool
742
- """
743
-
744
- self._sync_in_progress = sync_in_progress
745
-
746
- @property
747
- def sync_percentage(self) -> 'str':
748
- """Gets the sync_percentage of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
747
+ def sync_last_updated(self) -> 'datetime':
748
+ """Gets the sync_last_updated of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
749
749
 
750
750
 
751
- :return: The sync_percentage of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
752
- :rtype: str
751
+ :return: The sync_last_updated of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
752
+ :rtype: datetime
753
753
  """
754
- return self._sync_percentage
754
+ return self._sync_last_updated
755
755
 
756
- @sync_percentage.setter
757
- def sync_percentage(self, sync_percentage: 'str'):
758
- """Sets the sync_percentage of this Externalv1CloudSpaceInstanceStatus.
756
+ @sync_last_updated.setter
757
+ def sync_last_updated(self, sync_last_updated: 'datetime'):
758
+ """Sets the sync_last_updated of this Externalv1CloudSpaceInstanceStatus.
759
759
 
760
760
 
761
- :param sync_percentage: The sync_percentage of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
762
- :type: str
761
+ :param sync_last_updated: The sync_last_updated of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
762
+ :type: datetime
763
763
  """
764
764
 
765
- self._sync_percentage = sync_percentage
765
+ self._sync_last_updated = sync_last_updated
766
766
 
767
767
  @property
768
768
  def termination_time(self) -> 'datetime':
@@ -0,0 +1,149 @@
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 LitdatasetsDatasetIdBody(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
+ 'metadata': 'dict(str, str)',
45
+ 'name': 'str'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'metadata': 'metadata',
50
+ 'name': 'name'
51
+ }
52
+
53
+ def __init__(self, metadata: 'dict(str, str)' =None, name: 'str' =None): # noqa: E501
54
+ """LitdatasetsDatasetIdBody - a model defined in Swagger""" # noqa: E501
55
+ self._metadata = None
56
+ self._name = None
57
+ self.discriminator = None
58
+ if metadata is not None:
59
+ self.metadata = metadata
60
+ if name is not None:
61
+ self.name = name
62
+
63
+ @property
64
+ def metadata(self) -> 'dict(str, str)':
65
+ """Gets the metadata of this LitdatasetsDatasetIdBody. # noqa: E501
66
+
67
+
68
+ :return: The metadata of this LitdatasetsDatasetIdBody. # noqa: E501
69
+ :rtype: dict(str, str)
70
+ """
71
+ return self._metadata
72
+
73
+ @metadata.setter
74
+ def metadata(self, metadata: 'dict(str, str)'):
75
+ """Sets the metadata of this LitdatasetsDatasetIdBody.
76
+
77
+
78
+ :param metadata: The metadata of this LitdatasetsDatasetIdBody. # noqa: E501
79
+ :type: dict(str, str)
80
+ """
81
+
82
+ self._metadata = metadata
83
+
84
+ @property
85
+ def name(self) -> 'str':
86
+ """Gets the name of this LitdatasetsDatasetIdBody. # noqa: E501
87
+
88
+
89
+ :return: The name of this LitdatasetsDatasetIdBody. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._name
93
+
94
+ @name.setter
95
+ def name(self, name: 'str'):
96
+ """Sets the name of this LitdatasetsDatasetIdBody.
97
+
98
+
99
+ :param name: The name of this LitdatasetsDatasetIdBody. # noqa: E501
100
+ :type: str
101
+ """
102
+
103
+ self._name = name
104
+
105
+ def to_dict(self) -> dict:
106
+ """Returns the model properties as a dict"""
107
+ result = {}
108
+
109
+ for attr, _ in six.iteritems(self.swagger_types):
110
+ value = getattr(self, attr)
111
+ if isinstance(value, list):
112
+ result[attr] = list(map(
113
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114
+ value
115
+ ))
116
+ elif hasattr(value, "to_dict"):
117
+ result[attr] = value.to_dict()
118
+ elif isinstance(value, dict):
119
+ result[attr] = dict(map(
120
+ lambda item: (item[0], item[1].to_dict())
121
+ if hasattr(item[1], "to_dict") else item,
122
+ value.items()
123
+ ))
124
+ else:
125
+ result[attr] = value
126
+ if issubclass(LitdatasetsDatasetIdBody, dict):
127
+ for key, value in self.items():
128
+ result[key] = value
129
+
130
+ return result
131
+
132
+ def to_str(self) -> str:
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self) -> str:
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other: 'LitdatasetsDatasetIdBody') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, LitdatasetsDatasetIdBody):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'LitdatasetsDatasetIdBody') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other
@@ -45,6 +45,7 @@ class OrgsIdBody(object):
45
45
  'allow_gcp_saas': 'bool',
46
46
  'allow_guest': 'bool',
47
47
  'allow_lambda_saas': 'bool',
48
+ 'allow_marketplace': 'bool',
48
49
  'allow_member_invitations': 'bool',
49
50
  'allow_member_teamspace_creation': 'bool',
50
51
  'allow_vultr_saas': 'bool',
@@ -69,6 +70,7 @@ class OrgsIdBody(object):
69
70
  'allow_gcp_saas': 'allowGcpSaas',
70
71
  'allow_guest': 'allowGuest',
71
72
  'allow_lambda_saas': 'allowLambdaSaas',
73
+ 'allow_marketplace': 'allowMarketplace',
72
74
  'allow_member_invitations': 'allowMemberInvitations',
73
75
  'allow_member_teamspace_creation': 'allowMemberTeamspaceCreation',
74
76
  'allow_vultr_saas': 'allowVultrSaas',
@@ -88,12 +90,13 @@ class OrgsIdBody(object):
88
90
  'twitter_username': 'twitterUsername'
89
91
  }
90
92
 
91
- def __init__(self, allow_aws_saas: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_guest: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, allow_vultr_saas: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domains: 'list[str]' =None, description: 'str' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, location: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None): # noqa: E501
93
+ def __init__(self, allow_aws_saas: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_guest: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, allow_vultr_saas: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domains: 'list[str]' =None, description: 'str' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, location: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None): # noqa: E501
92
94
  """OrgsIdBody - a model defined in Swagger""" # noqa: E501
93
95
  self._allow_aws_saas = None
94
96
  self._allow_gcp_saas = None
95
97
  self._allow_guest = None
96
98
  self._allow_lambda_saas = None
99
+ self._allow_marketplace = None
97
100
  self._allow_member_invitations = None
98
101
  self._allow_member_teamspace_creation = None
99
102
  self._allow_vultr_saas = None
@@ -120,6 +123,8 @@ class OrgsIdBody(object):
120
123
  self.allow_guest = allow_guest
121
124
  if allow_lambda_saas is not None:
122
125
  self.allow_lambda_saas = allow_lambda_saas
126
+ if allow_marketplace is not None:
127
+ self.allow_marketplace = allow_marketplace
123
128
  if allow_member_invitations is not None:
124
129
  self.allow_member_invitations = allow_member_invitations
125
130
  if allow_member_teamspace_creation is not None:
@@ -239,6 +244,27 @@ class OrgsIdBody(object):
239
244
 
240
245
  self._allow_lambda_saas = allow_lambda_saas
241
246
 
247
+ @property
248
+ def allow_marketplace(self) -> 'bool':
249
+ """Gets the allow_marketplace of this OrgsIdBody. # noqa: E501
250
+
251
+
252
+ :return: The allow_marketplace of this OrgsIdBody. # noqa: E501
253
+ :rtype: bool
254
+ """
255
+ return self._allow_marketplace
256
+
257
+ @allow_marketplace.setter
258
+ def allow_marketplace(self, allow_marketplace: 'bool'):
259
+ """Sets the allow_marketplace of this OrgsIdBody.
260
+
261
+
262
+ :param allow_marketplace: The allow_marketplace of this OrgsIdBody. # noqa: E501
263
+ :type: bool
264
+ """
265
+
266
+ self._allow_marketplace = allow_marketplace
267
+
242
268
  @property
243
269
  def allow_member_invitations(self) -> 'bool':
244
270
  """Gets the allow_member_invitations of this OrgsIdBody. # noqa: E501