lightning-sdk 0.2.22__py3-none-any.whl → 0.2.24rc0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/base_studio_api.py +9 -2
  3. lightning_sdk/api/deployment_api.py +9 -9
  4. lightning_sdk/api/license_api.py +2 -2
  5. lightning_sdk/api/llm_api.py +7 -11
  6. lightning_sdk/api/pipeline_api.py +31 -10
  7. lightning_sdk/api/studio_api.py +6 -0
  8. lightning_sdk/base_studio.py +22 -6
  9. lightning_sdk/cli/entrypoint.py +15 -13
  10. lightning_sdk/cli/start.py +5 -2
  11. lightning_sdk/deployment/deployment.py +17 -7
  12. lightning_sdk/lightning_cloud/openapi/__init__.py +20 -0
  13. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  14. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +114 -1
  15. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +206 -0
  16. lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +129 -0
  17. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +97 -0
  18. lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +105 -0
  19. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +118 -1
  20. lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +105 -0
  21. lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
  22. lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
  23. lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +81 -3
  25. lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +123 -0
  26. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body.py +175 -0
  28. lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body1.py +175 -0
  29. lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +79 -1
  30. lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
  32. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +27 -1
  33. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body1.py +123 -0
  34. lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +53 -1
  36. lightning_sdk/lightning_cloud/openapi/models/update.py +29 -3
  37. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_request.py +123 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_response.py +123 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +2 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +29 -3
  43. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +29 -3
  44. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_session.py +29 -3
  46. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +104 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_expert.py +279 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +79 -1
  49. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
  50. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +105 -1
  52. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +27 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
  54. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +29 -3
  55. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +79 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +47 -21
  58. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster.py +253 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +853 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +29 -27
  63. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +123 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1_status.py +149 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +53 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloudy_experts_response.py +123 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_list_clusters_response.py +6 -6
  68. lightning_sdk/lightning_cloud/openapi/models/v1_list_project_clusters_response.py +6 -6
  69. lightning_sdk/lightning_cloud/openapi/models/v1_lite_published_cloud_space_response.py +513 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_login_request.py +27 -1
  71. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +29 -3
  72. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
  73. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
  74. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
  75. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +27 -1
  76. lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +131 -1
  77. lightning_sdk/lightning_cloud/openapi/models/v1_token_usage.py +175 -0
  78. lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_visibility_response.py +97 -0
  79. lightning_sdk/lightning_cloud/openapi/models/v1_update_organization_credits_auto_replenish_response.py +97 -0
  80. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_credits_auto_replenish_response.py +97 -0
  81. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  82. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +234 -104
  83. lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +78 -104
  84. lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +104 -0
  85. lightning_sdk/llm/llm.py +113 -115
  86. lightning_sdk/llm/public_assistants.json +8 -0
  87. lightning_sdk/pipeline/__init__.py +11 -2
  88. lightning_sdk/pipeline/pipeline.py +54 -14
  89. lightning_sdk/pipeline/printer.py +36 -16
  90. lightning_sdk/pipeline/schedule.py +2 -1
  91. lightning_sdk/pipeline/{types.py → steps.py} +77 -56
  92. lightning_sdk/pipeline/utils.py +65 -3
  93. lightning_sdk/sandbox.py +157 -0
  94. lightning_sdk/services/license.py +12 -6
  95. lightning_sdk/studio.py +10 -1
  96. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/METADATA +1 -1
  97. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/RECORD +101 -79
  98. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/LICENSE +0 -0
  99. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/WHEEL +0 -0
  100. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/entry_points.txt +0 -0
  101. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/top_level.txt +0 -0
@@ -41,6 +41,8 @@ class V1GetJobStatsResponse(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'queued_deployments': 'int',
45
+ 'queued_jobs': 'int',
44
46
  'running_deployments': 'int',
45
47
  'running_jobs': 'int',
46
48
  'running_pipelines': 'int',
@@ -48,19 +50,27 @@ class V1GetJobStatsResponse(object):
48
50
  }
49
51
 
50
52
  attribute_map = {
53
+ 'queued_deployments': 'queuedDeployments',
54
+ 'queued_jobs': 'queuedJobs',
51
55
  'running_deployments': 'runningDeployments',
52
56
  'running_jobs': 'runningJobs',
53
57
  'running_pipelines': 'runningPipelines',
54
58
  'total_jobs': 'totalJobs'
55
59
  }
56
60
 
57
- def __init__(self, running_deployments: 'int' =None, running_jobs: 'int' =None, running_pipelines: 'int' =None, total_jobs: 'int' =None): # noqa: E501
61
+ def __init__(self, queued_deployments: 'int' =None, queued_jobs: 'int' =None, running_deployments: 'int' =None, running_jobs: 'int' =None, running_pipelines: 'int' =None, total_jobs: 'int' =None): # noqa: E501
58
62
  """V1GetJobStatsResponse - a model defined in Swagger""" # noqa: E501
63
+ self._queued_deployments = None
64
+ self._queued_jobs = None
59
65
  self._running_deployments = None
60
66
  self._running_jobs = None
61
67
  self._running_pipelines = None
62
68
  self._total_jobs = None
63
69
  self.discriminator = None
70
+ if queued_deployments is not None:
71
+ self.queued_deployments = queued_deployments
72
+ if queued_jobs is not None:
73
+ self.queued_jobs = queued_jobs
64
74
  if running_deployments is not None:
65
75
  self.running_deployments = running_deployments
66
76
  if running_jobs is not None:
@@ -70,6 +80,48 @@ class V1GetJobStatsResponse(object):
70
80
  if total_jobs is not None:
71
81
  self.total_jobs = total_jobs
72
82
 
83
+ @property
84
+ def queued_deployments(self) -> 'int':
85
+ """Gets the queued_deployments of this V1GetJobStatsResponse. # noqa: E501
86
+
87
+
88
+ :return: The queued_deployments of this V1GetJobStatsResponse. # noqa: E501
89
+ :rtype: int
90
+ """
91
+ return self._queued_deployments
92
+
93
+ @queued_deployments.setter
94
+ def queued_deployments(self, queued_deployments: 'int'):
95
+ """Sets the queued_deployments of this V1GetJobStatsResponse.
96
+
97
+
98
+ :param queued_deployments: The queued_deployments of this V1GetJobStatsResponse. # noqa: E501
99
+ :type: int
100
+ """
101
+
102
+ self._queued_deployments = queued_deployments
103
+
104
+ @property
105
+ def queued_jobs(self) -> 'int':
106
+ """Gets the queued_jobs of this V1GetJobStatsResponse. # noqa: E501
107
+
108
+
109
+ :return: The queued_jobs of this V1GetJobStatsResponse. # noqa: E501
110
+ :rtype: int
111
+ """
112
+ return self._queued_jobs
113
+
114
+ @queued_jobs.setter
115
+ def queued_jobs(self, queued_jobs: 'int'):
116
+ """Sets the queued_jobs of this V1GetJobStatsResponse.
117
+
118
+
119
+ :param queued_jobs: The queued_jobs of this V1GetJobStatsResponse. # noqa: E501
120
+ :type: int
121
+ """
122
+
123
+ self._queued_jobs = queued_jobs
124
+
73
125
  @property
74
126
  def running_deployments(self) -> 'int':
75
127
  """Gets the running_deployments of this V1GetJobStatsResponse. # noqa: E501
@@ -75,6 +75,7 @@ class V1GetUserResponse(object):
75
75
  'sb': 'bool',
76
76
  'status': 'Externalv1UserStatus',
77
77
  'storage_bytes': 'str',
78
+ 'storage_overuse_deletion_at': 'datetime',
78
79
  'user_metadata': 'str',
79
80
  'username': 'str',
80
81
  'waitlisted': 'bool',
@@ -116,13 +117,14 @@ class V1GetUserResponse(object):
116
117
  'sb': 'sb',
117
118
  'status': 'status',
118
119
  'storage_bytes': 'storageBytes',
120
+ 'storage_overuse_deletion_at': 'storageOveruseDeletionAt',
119
121
  'user_metadata': 'userMetadata',
120
122
  'username': 'username',
121
123
  'waitlisted': 'waitlisted',
122
124
  'website': 'website'
123
125
  }
124
126
 
125
- def __init__(self, agree_to_terms_and_conditions: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, api_key: 'str' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
127
+ def __init__(self, agree_to_terms_and_conditions: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, api_key: 'str' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, storage_overuse_deletion_at: 'datetime' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
126
128
  """V1GetUserResponse - a model defined in Swagger""" # noqa: E501
127
129
  self._agree_to_terms_and_conditions = None
128
130
  self._allow_credits_auto_replenish = None
@@ -158,6 +160,7 @@ class V1GetUserResponse(object):
158
160
  self._sb = None
159
161
  self._status = None
160
162
  self._storage_bytes = None
163
+ self._storage_overuse_deletion_at = None
161
164
  self._user_metadata = None
162
165
  self._username = None
163
166
  self._waitlisted = None
@@ -231,6 +234,8 @@ class V1GetUserResponse(object):
231
234
  self.status = status
232
235
  if storage_bytes is not None:
233
236
  self.storage_bytes = storage_bytes
237
+ if storage_overuse_deletion_at is not None:
238
+ self.storage_overuse_deletion_at = storage_overuse_deletion_at
234
239
  if user_metadata is not None:
235
240
  self.user_metadata = user_metadata
236
241
  if username is not None:
@@ -954,6 +959,27 @@ class V1GetUserResponse(object):
954
959
 
955
960
  self._storage_bytes = storage_bytes
956
961
 
962
+ @property
963
+ def storage_overuse_deletion_at(self) -> 'datetime':
964
+ """Gets the storage_overuse_deletion_at of this V1GetUserResponse. # noqa: E501
965
+
966
+
967
+ :return: The storage_overuse_deletion_at of this V1GetUserResponse. # noqa: E501
968
+ :rtype: datetime
969
+ """
970
+ return self._storage_overuse_deletion_at
971
+
972
+ @storage_overuse_deletion_at.setter
973
+ def storage_overuse_deletion_at(self, storage_overuse_deletion_at: 'datetime'):
974
+ """Sets the storage_overuse_deletion_at of this V1GetUserResponse.
975
+
976
+
977
+ :param storage_overuse_deletion_at: The storage_overuse_deletion_at of this V1GetUserResponse. # noqa: E501
978
+ :type: datetime
979
+ """
980
+
981
+ self._storage_overuse_deletion_at = storage_overuse_deletion_at
982
+
957
983
  @property
958
984
  def user_metadata(self) -> 'str':
959
985
  """Gets the user_metadata of this V1GetUserResponse. # noqa: E501
@@ -43,45 +43,45 @@ class V1InstanceOverprovisioningSpec(object):
43
43
  swagger_types = {
44
44
  'instance_type': 'str',
45
45
  'is_spot': 'bool',
46
+ 'machine_image_version': 'str',
46
47
  'maximum_count': 'int',
47
48
  'minimum_count': 'int',
48
49
  'region': 'str',
49
- 'resource_type': 'str',
50
50
  'volume_size': 'int'
51
51
  }
52
52
 
53
53
  attribute_map = {
54
54
  'instance_type': 'instanceType',
55
55
  'is_spot': 'isSpot',
56
+ 'machine_image_version': 'machineImageVersion',
56
57
  'maximum_count': 'maximumCount',
57
58
  'minimum_count': 'minimumCount',
58
59
  'region': 'region',
59
- 'resource_type': 'resourceType',
60
60
  'volume_size': 'volumeSize'
61
61
  }
62
62
 
63
- def __init__(self, instance_type: 'str' =None, is_spot: 'bool' =None, maximum_count: 'int' =None, minimum_count: 'int' =None, region: 'str' =None, resource_type: 'str' =None, volume_size: 'int' =None): # noqa: E501
63
+ def __init__(self, instance_type: 'str' =None, is_spot: 'bool' =None, machine_image_version: 'str' =None, maximum_count: 'int' =None, minimum_count: 'int' =None, region: 'str' =None, volume_size: 'int' =None): # noqa: E501
64
64
  """V1InstanceOverprovisioningSpec - a model defined in Swagger""" # noqa: E501
65
65
  self._instance_type = None
66
66
  self._is_spot = None
67
+ self._machine_image_version = None
67
68
  self._maximum_count = None
68
69
  self._minimum_count = None
69
70
  self._region = None
70
- self._resource_type = None
71
71
  self._volume_size = None
72
72
  self.discriminator = None
73
73
  if instance_type is not None:
74
74
  self.instance_type = instance_type
75
75
  if is_spot is not None:
76
76
  self.is_spot = is_spot
77
+ if machine_image_version is not None:
78
+ self.machine_image_version = machine_image_version
77
79
  if maximum_count is not None:
78
80
  self.maximum_count = maximum_count
79
81
  if minimum_count is not None:
80
82
  self.minimum_count = minimum_count
81
83
  if region is not None:
82
84
  self.region = region
83
- if resource_type is not None:
84
- self.resource_type = resource_type
85
85
  if volume_size is not None:
86
86
  self.volume_size = volume_size
87
87
 
@@ -127,6 +127,29 @@ class V1InstanceOverprovisioningSpec(object):
127
127
 
128
128
  self._is_spot = is_spot
129
129
 
130
+ @property
131
+ def machine_image_version(self) -> 'str':
132
+ """Gets the machine_image_version of this V1InstanceOverprovisioningSpec. # noqa: E501
133
+
134
+ Version of the images, Ubuntu 20.04, etc. # noqa: E501
135
+
136
+ :return: The machine_image_version of this V1InstanceOverprovisioningSpec. # noqa: E501
137
+ :rtype: str
138
+ """
139
+ return self._machine_image_version
140
+
141
+ @machine_image_version.setter
142
+ def machine_image_version(self, machine_image_version: 'str'):
143
+ """Sets the machine_image_version of this V1InstanceOverprovisioningSpec.
144
+
145
+ Version of the images, Ubuntu 20.04, etc. # noqa: E501
146
+
147
+ :param machine_image_version: The machine_image_version of this V1InstanceOverprovisioningSpec. # noqa: E501
148
+ :type: str
149
+ """
150
+
151
+ self._machine_image_version = machine_image_version
152
+
130
153
  @property
131
154
  def maximum_count(self) -> 'int':
132
155
  """Gets the maximum_count of this V1InstanceOverprovisioningSpec. # noqa: E501
@@ -190,27 +213,6 @@ class V1InstanceOverprovisioningSpec(object):
190
213
 
191
214
  self._region = region
192
215
 
193
- @property
194
- def resource_type(self) -> 'str':
195
- """Gets the resource_type of this V1InstanceOverprovisioningSpec. # noqa: E501
196
-
197
-
198
- :return: The resource_type of this V1InstanceOverprovisioningSpec. # noqa: E501
199
- :rtype: str
200
- """
201
- return self._resource_type
202
-
203
- @resource_type.setter
204
- def resource_type(self, resource_type: 'str'):
205
- """Sets the resource_type of this V1InstanceOverprovisioningSpec.
206
-
207
-
208
- :param resource_type: The resource_type of this V1InstanceOverprovisioningSpec. # noqa: E501
209
- :type: str
210
- """
211
-
212
- self._resource_type = resource_type
213
-
214
216
  @property
215
217
  def volume_size(self) -> 'int':
216
218
  """Gets the volume_size of this V1InstanceOverprovisioningSpec. # 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 V1KubernetesDirectV1(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
+ 'kubeconfig': 'str'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'kubeconfig': 'kubeconfig'
49
+ }
50
+
51
+ def __init__(self, kubeconfig: 'str' =None): # noqa: E501
52
+ """V1KubernetesDirectV1 - a model defined in Swagger""" # noqa: E501
53
+ self._kubeconfig = None
54
+ self.discriminator = None
55
+ if kubeconfig is not None:
56
+ self.kubeconfig = kubeconfig
57
+
58
+ @property
59
+ def kubeconfig(self) -> 'str':
60
+ """Gets the kubeconfig of this V1KubernetesDirectV1. # noqa: E501
61
+
62
+
63
+ :return: The kubeconfig of this V1KubernetesDirectV1. # noqa: E501
64
+ :rtype: str
65
+ """
66
+ return self._kubeconfig
67
+
68
+ @kubeconfig.setter
69
+ def kubeconfig(self, kubeconfig: 'str'):
70
+ """Sets the kubeconfig of this V1KubernetesDirectV1.
71
+
72
+
73
+ :param kubeconfig: The kubeconfig of this V1KubernetesDirectV1. # noqa: E501
74
+ :type: str
75
+ """
76
+
77
+ self._kubeconfig = kubeconfig
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(V1KubernetesDirectV1, 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: 'V1KubernetesDirectV1') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1KubernetesDirectV1):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1KubernetesDirectV1') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -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 V1KubernetesDirectV1Status(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
+ 'reason': 'str',
45
+ 'state': 'V1RegionState'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'reason': 'reason',
50
+ 'state': 'state'
51
+ }
52
+
53
+ def __init__(self, reason: 'str' =None, state: 'V1RegionState' =None): # noqa: E501
54
+ """V1KubernetesDirectV1Status - a model defined in Swagger""" # noqa: E501
55
+ self._reason = None
56
+ self._state = None
57
+ self.discriminator = None
58
+ if reason is not None:
59
+ self.reason = reason
60
+ if state is not None:
61
+ self.state = state
62
+
63
+ @property
64
+ def reason(self) -> 'str':
65
+ """Gets the reason of this V1KubernetesDirectV1Status. # noqa: E501
66
+
67
+
68
+ :return: The reason of this V1KubernetesDirectV1Status. # noqa: E501
69
+ :rtype: str
70
+ """
71
+ return self._reason
72
+
73
+ @reason.setter
74
+ def reason(self, reason: 'str'):
75
+ """Sets the reason of this V1KubernetesDirectV1Status.
76
+
77
+
78
+ :param reason: The reason of this V1KubernetesDirectV1Status. # noqa: E501
79
+ :type: str
80
+ """
81
+
82
+ self._reason = reason
83
+
84
+ @property
85
+ def state(self) -> 'V1RegionState':
86
+ """Gets the state of this V1KubernetesDirectV1Status. # noqa: E501
87
+
88
+
89
+ :return: The state of this V1KubernetesDirectV1Status. # noqa: E501
90
+ :rtype: V1RegionState
91
+ """
92
+ return self._state
93
+
94
+ @state.setter
95
+ def state(self, state: 'V1RegionState'):
96
+ """Sets the state of this V1KubernetesDirectV1Status.
97
+
98
+
99
+ :param state: The state of this V1KubernetesDirectV1Status. # noqa: E501
100
+ :type: V1RegionState
101
+ """
102
+
103
+ self._state = state
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(V1KubernetesDirectV1Status, 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: 'V1KubernetesDirectV1Status') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, V1KubernetesDirectV1Status):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'V1KubernetesDirectV1Status') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other
@@ -56,12 +56,14 @@ class V1LightningRun(object):
56
56
  'is_headless': 'bool',
57
57
  'is_published': 'bool',
58
58
  'network_config': 'list[V1NetworkConfig]',
59
+ 'number_of_files': 'str',
59
60
  'parent_id': 'str',
60
61
  'project_id': 'str',
61
62
  'published_at': 'datetime',
62
63
  'should_mount_cloudspace_content': 'bool',
63
64
  'source_code_url': 'str',
64
65
  'source_upload_url': 'str',
66
+ 'total_size_bytes': 'str',
65
67
  'unique_id': 'str',
66
68
  'user_id': 'str',
67
69
  'user_requested_flow_compute_config': 'V1UserRequestedFlowComputeConfig',
@@ -85,12 +87,14 @@ class V1LightningRun(object):
85
87
  'is_headless': 'isHeadless',
86
88
  'is_published': 'isPublished',
87
89
  'network_config': 'networkConfig',
90
+ 'number_of_files': 'numberOfFiles',
88
91
  'parent_id': 'parentId',
89
92
  'project_id': 'projectId',
90
93
  'published_at': 'publishedAt',
91
94
  'should_mount_cloudspace_content': 'shouldMountCloudspaceContent',
92
95
  'source_code_url': 'sourceCodeUrl',
93
96
  'source_upload_url': 'sourceUploadUrl',
97
+ 'total_size_bytes': 'totalSizeBytes',
94
98
  'unique_id': 'uniqueId',
95
99
  'user_id': 'userId',
96
100
  'user_requested_flow_compute_config': 'userRequestedFlowComputeConfig',
@@ -98,7 +102,7 @@ class V1LightningRun(object):
98
102
  'works': 'works'
99
103
  }
100
104
 
101
- def __init__(self, app_entrypoint_file: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, dependency_cache_key: 'str' =None, description: 'str' =None, enable_app_server: 'bool' =None, env: 'list[V1EnvVar]' =None, flow_servers: 'list[V1Flowserver]' =None, id: 'str' =None, image_id: 'str' =None, image_spec: 'V1ImageSpec' =None, is_headless: 'bool' =None, is_published: 'bool' =None, network_config: 'list[V1NetworkConfig]' =None, parent_id: 'str' =None, project_id: 'str' =None, published_at: 'datetime' =None, should_mount_cloudspace_content: 'bool' =None, source_code_url: 'str' =None, source_upload_url: 'str' =None, unique_id: 'str' =None, user_id: 'str' =None, user_requested_flow_compute_config: 'V1UserRequestedFlowComputeConfig' =None, version: 'str' =None, works: 'list[V1Work]' =None): # noqa: E501
105
+ def __init__(self, app_entrypoint_file: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, dependency_cache_key: 'str' =None, description: 'str' =None, enable_app_server: 'bool' =None, env: 'list[V1EnvVar]' =None, flow_servers: 'list[V1Flowserver]' =None, id: 'str' =None, image_id: 'str' =None, image_spec: 'V1ImageSpec' =None, is_headless: 'bool' =None, is_published: 'bool' =None, network_config: 'list[V1NetworkConfig]' =None, number_of_files: 'str' =None, parent_id: 'str' =None, project_id: 'str' =None, published_at: 'datetime' =None, should_mount_cloudspace_content: 'bool' =None, source_code_url: 'str' =None, source_upload_url: 'str' =None, total_size_bytes: 'str' =None, unique_id: 'str' =None, user_id: 'str' =None, user_requested_flow_compute_config: 'V1UserRequestedFlowComputeConfig' =None, version: 'str' =None, works: 'list[V1Work]' =None): # noqa: E501
102
106
  """V1LightningRun - a model defined in Swagger""" # noqa: E501
103
107
  self._app_entrypoint_file = None
104
108
  self._cloudspace_id = None
@@ -115,12 +119,14 @@ class V1LightningRun(object):
115
119
  self._is_headless = None
116
120
  self._is_published = None
117
121
  self._network_config = None
122
+ self._number_of_files = None
118
123
  self._parent_id = None
119
124
  self._project_id = None
120
125
  self._published_at = None
121
126
  self._should_mount_cloudspace_content = None
122
127
  self._source_code_url = None
123
128
  self._source_upload_url = None
129
+ self._total_size_bytes = None
124
130
  self._unique_id = None
125
131
  self._user_id = None
126
132
  self._user_requested_flow_compute_config = None
@@ -157,6 +163,8 @@ class V1LightningRun(object):
157
163
  self.is_published = is_published
158
164
  if network_config is not None:
159
165
  self.network_config = network_config
166
+ if number_of_files is not None:
167
+ self.number_of_files = number_of_files
160
168
  if parent_id is not None:
161
169
  self.parent_id = parent_id
162
170
  if project_id is not None:
@@ -169,6 +177,8 @@ class V1LightningRun(object):
169
177
  self.source_code_url = source_code_url
170
178
  if source_upload_url is not None:
171
179
  self.source_upload_url = source_upload_url
180
+ if total_size_bytes is not None:
181
+ self.total_size_bytes = total_size_bytes
172
182
  if unique_id is not None:
173
183
  self.unique_id = unique_id
174
184
  if user_id is not None:
@@ -495,6 +505,27 @@ class V1LightningRun(object):
495
505
 
496
506
  self._network_config = network_config
497
507
 
508
+ @property
509
+ def number_of_files(self) -> 'str':
510
+ """Gets the number_of_files of this V1LightningRun. # noqa: E501
511
+
512
+
513
+ :return: The number_of_files of this V1LightningRun. # noqa: E501
514
+ :rtype: str
515
+ """
516
+ return self._number_of_files
517
+
518
+ @number_of_files.setter
519
+ def number_of_files(self, number_of_files: 'str'):
520
+ """Sets the number_of_files of this V1LightningRun.
521
+
522
+
523
+ :param number_of_files: The number_of_files of this V1LightningRun. # noqa: E501
524
+ :type: str
525
+ """
526
+
527
+ self._number_of_files = number_of_files
528
+
498
529
  @property
499
530
  def parent_id(self) -> 'str':
500
531
  """Gets the parent_id of this V1LightningRun. # noqa: E501
@@ -623,6 +654,27 @@ class V1LightningRun(object):
623
654
 
624
655
  self._source_upload_url = source_upload_url
625
656
 
657
+ @property
658
+ def total_size_bytes(self) -> 'str':
659
+ """Gets the total_size_bytes of this V1LightningRun. # noqa: E501
660
+
661
+
662
+ :return: The total_size_bytes of this V1LightningRun. # noqa: E501
663
+ :rtype: str
664
+ """
665
+ return self._total_size_bytes
666
+
667
+ @total_size_bytes.setter
668
+ def total_size_bytes(self, total_size_bytes: 'str'):
669
+ """Sets the total_size_bytes of this V1LightningRun.
670
+
671
+
672
+ :param total_size_bytes: The total_size_bytes of this V1LightningRun. # noqa: E501
673
+ :type: str
674
+ """
675
+
676
+ self._total_size_bytes = total_size_bytes
677
+
626
678
  @property
627
679
  def unique_id(self) -> 'str':
628
680
  """Gets the unique_id of this V1LightningRun. # noqa: E501