lightning-sdk 0.1.58__py3-none-any.whl → 0.2.0__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 (118) hide show
  1. lightning_sdk/__init__.py +5 -3
  2. lightning_sdk/api/deployment_api.py +23 -11
  3. lightning_sdk/api/job_api.py +42 -7
  4. lightning_sdk/api/lit_container_api.py +7 -3
  5. lightning_sdk/api/mmt_api.py +46 -8
  6. lightning_sdk/api/pipeline_api.py +50 -0
  7. lightning_sdk/api/teamspace_api.py +2 -2
  8. lightning_sdk/api/utils.py +15 -5
  9. lightning_sdk/cli/ai_hub.py +30 -65
  10. lightning_sdk/cli/coloring.py +60 -0
  11. lightning_sdk/cli/configure.py +25 -40
  12. lightning_sdk/cli/connect.py +7 -20
  13. lightning_sdk/cli/create.py +83 -0
  14. lightning_sdk/cli/delete.py +72 -75
  15. lightning_sdk/cli/docker.py +77 -0
  16. lightning_sdk/cli/download.py +71 -111
  17. lightning_sdk/cli/entrypoint.py +44 -65
  18. lightning_sdk/cli/generate.py +28 -43
  19. lightning_sdk/cli/inspect.py +22 -50
  20. lightning_sdk/cli/list.py +281 -222
  21. lightning_sdk/cli/mmts_menu.py +1 -1
  22. lightning_sdk/cli/open.py +62 -0
  23. lightning_sdk/cli/run.py +430 -263
  24. lightning_sdk/cli/serve.py +162 -189
  25. lightning_sdk/cli/start.py +55 -36
  26. lightning_sdk/cli/stop.py +97 -55
  27. lightning_sdk/cli/switch.py +53 -36
  28. lightning_sdk/cli/upload.py +318 -255
  29. lightning_sdk/deployment/__init__.py +2 -0
  30. lightning_sdk/deployment/deployment.py +33 -8
  31. lightning_sdk/lightning_cloud/openapi/__init__.py +21 -0
  32. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  33. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +10 -6
  34. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +355 -4
  35. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +4 -4
  36. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +14 -2
  37. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +670 -0
  38. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +303 -4
  39. lightning_sdk/lightning_cloud/openapi/models/__init__.py +20 -0
  40. lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +17 -69
  41. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/create.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +53 -1
  44. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +105 -1
  45. lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +1 -27
  46. lightning_sdk/lightning_cloud/openapi/models/id_visibility_body2.py +149 -0
  47. lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +157 -1
  49. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +435 -0
  50. lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +201 -0
  51. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +157 -1
  52. lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +79 -1
  53. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body.py +1 -27
  54. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +175 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +79 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +17 -69
  57. lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +27 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +1 -1
  59. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +131 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +79 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload_temporary_artifact_request.py +175 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +461 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +27 -1
  65. lightning_sdk/lightning_cloud/openapi/models/v1_create_job_request.py +201 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_create_managed_endpoint_response.py +149 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_machine_job_request.py +253 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_delete_pipeline_response.py +149 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +105 -1
  71. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_details.py +175 -0
  72. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +53 -1
  73. lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +201 -0
  74. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +27 -1
  75. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +27 -1
  76. lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +29 -3
  77. lightning_sdk/lightning_cloud/openapi/models/v1_job.py +133 -3
  78. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +53 -1
  79. lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +27 -1
  80. lightning_sdk/lightning_cloud/openapi/models/v1_list_pipelines_response.py +123 -0
  81. lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_artifact.py +27 -1
  82. lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +29 -1
  83. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
  84. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
  85. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +2 -0
  86. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +157 -1
  87. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +487 -0
  88. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step.py +253 -0
  89. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_status.py +331 -0
  90. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_type.py +104 -0
  91. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +157 -1
  92. lightning_sdk/lightning_cloud/openapi/models/v1_restart_timing.py +27 -1
  93. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
  94. lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +201 -0
  95. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +27 -1
  96. lightning_sdk/lightning_cloud/openapi/models/v1_update_job_visibility_response.py +97 -0
  97. lightning_sdk/lightning_cloud/openapi/models/v1_upload_temporary_artifact_request.py +123 -0
  98. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +95 -355
  99. lightning_sdk/lightning_cloud/openapi/models/validate.py +27 -1
  100. lightning_sdk/lightning_cloud/rest_client.py +4 -2
  101. lightning_sdk/machine.py +25 -1
  102. lightning_sdk/models.py +18 -12
  103. lightning_sdk/pipeline/__init__.py +4 -0
  104. lightning_sdk/pipeline/pipeline.py +109 -0
  105. lightning_sdk/pipeline/types.py +268 -0
  106. lightning_sdk/pipeline/utils.py +69 -0
  107. lightning_sdk/plugin.py +9 -10
  108. lightning_sdk/services/utilities.py +2 -2
  109. lightning_sdk/studio.py +5 -1
  110. lightning_sdk/teamspace.py +1 -1
  111. lightning_sdk/utils/resolve.py +12 -1
  112. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/METADATA +6 -8
  113. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/RECORD +117 -88
  114. lightning_sdk/cli/legacy.py +0 -135
  115. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/LICENSE +0 -0
  116. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/WHEEL +0 -0
  117. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/entry_points.txt +0 -0
  118. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/top_level.txt +0 -0
@@ -41,30 +41,144 @@ class V1ProjectSettings(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'allow_aws_saas': 'bool',
45
+ 'allow_gcp_saas': 'bool',
46
+ 'allow_lambda_saas': 'bool',
47
+ 'allow_vultr_saas': 'bool',
44
48
  'preferred_cluster': 'str',
49
+ 'preferred_deployment_provider': 'str',
50
+ 'preferred_studio_provider': 'str',
45
51
  'same_compute_on_resume': 'bool',
46
52
  'start_studio_on_spot_instance': 'bool'
47
53
  }
48
54
 
49
55
  attribute_map = {
56
+ 'allow_aws_saas': 'allowAwsSaas',
57
+ 'allow_gcp_saas': 'allowGcpSaas',
58
+ 'allow_lambda_saas': 'allowLambdaSaas',
59
+ 'allow_vultr_saas': 'allowVultrSaas',
50
60
  'preferred_cluster': 'preferredCluster',
61
+ 'preferred_deployment_provider': 'preferredDeploymentProvider',
62
+ 'preferred_studio_provider': 'preferredStudioProvider',
51
63
  'same_compute_on_resume': 'sameComputeOnResume',
52
64
  'start_studio_on_spot_instance': 'startStudioOnSpotInstance'
53
65
  }
54
66
 
55
- def __init__(self, preferred_cluster: 'str' =None, same_compute_on_resume: 'bool' =None, start_studio_on_spot_instance: 'bool' =None): # noqa: E501
67
+ def __init__(self, allow_aws_saas: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_vultr_saas: 'bool' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, same_compute_on_resume: 'bool' =None, start_studio_on_spot_instance: 'bool' =None): # noqa: E501
56
68
  """V1ProjectSettings - a model defined in Swagger""" # noqa: E501
69
+ self._allow_aws_saas = None
70
+ self._allow_gcp_saas = None
71
+ self._allow_lambda_saas = None
72
+ self._allow_vultr_saas = None
57
73
  self._preferred_cluster = None
74
+ self._preferred_deployment_provider = None
75
+ self._preferred_studio_provider = None
58
76
  self._same_compute_on_resume = None
59
77
  self._start_studio_on_spot_instance = None
60
78
  self.discriminator = None
79
+ if allow_aws_saas is not None:
80
+ self.allow_aws_saas = allow_aws_saas
81
+ if allow_gcp_saas is not None:
82
+ self.allow_gcp_saas = allow_gcp_saas
83
+ if allow_lambda_saas is not None:
84
+ self.allow_lambda_saas = allow_lambda_saas
85
+ if allow_vultr_saas is not None:
86
+ self.allow_vultr_saas = allow_vultr_saas
61
87
  if preferred_cluster is not None:
62
88
  self.preferred_cluster = preferred_cluster
89
+ if preferred_deployment_provider is not None:
90
+ self.preferred_deployment_provider = preferred_deployment_provider
91
+ if preferred_studio_provider is not None:
92
+ self.preferred_studio_provider = preferred_studio_provider
63
93
  if same_compute_on_resume is not None:
64
94
  self.same_compute_on_resume = same_compute_on_resume
65
95
  if start_studio_on_spot_instance is not None:
66
96
  self.start_studio_on_spot_instance = start_studio_on_spot_instance
67
97
 
98
+ @property
99
+ def allow_aws_saas(self) -> 'bool':
100
+ """Gets the allow_aws_saas of this V1ProjectSettings. # noqa: E501
101
+
102
+
103
+ :return: The allow_aws_saas of this V1ProjectSettings. # noqa: E501
104
+ :rtype: bool
105
+ """
106
+ return self._allow_aws_saas
107
+
108
+ @allow_aws_saas.setter
109
+ def allow_aws_saas(self, allow_aws_saas: 'bool'):
110
+ """Sets the allow_aws_saas of this V1ProjectSettings.
111
+
112
+
113
+ :param allow_aws_saas: The allow_aws_saas of this V1ProjectSettings. # noqa: E501
114
+ :type: bool
115
+ """
116
+
117
+ self._allow_aws_saas = allow_aws_saas
118
+
119
+ @property
120
+ def allow_gcp_saas(self) -> 'bool':
121
+ """Gets the allow_gcp_saas of this V1ProjectSettings. # noqa: E501
122
+
123
+
124
+ :return: The allow_gcp_saas of this V1ProjectSettings. # noqa: E501
125
+ :rtype: bool
126
+ """
127
+ return self._allow_gcp_saas
128
+
129
+ @allow_gcp_saas.setter
130
+ def allow_gcp_saas(self, allow_gcp_saas: 'bool'):
131
+ """Sets the allow_gcp_saas of this V1ProjectSettings.
132
+
133
+
134
+ :param allow_gcp_saas: The allow_gcp_saas of this V1ProjectSettings. # noqa: E501
135
+ :type: bool
136
+ """
137
+
138
+ self._allow_gcp_saas = allow_gcp_saas
139
+
140
+ @property
141
+ def allow_lambda_saas(self) -> 'bool':
142
+ """Gets the allow_lambda_saas of this V1ProjectSettings. # noqa: E501
143
+
144
+
145
+ :return: The allow_lambda_saas of this V1ProjectSettings. # noqa: E501
146
+ :rtype: bool
147
+ """
148
+ return self._allow_lambda_saas
149
+
150
+ @allow_lambda_saas.setter
151
+ def allow_lambda_saas(self, allow_lambda_saas: 'bool'):
152
+ """Sets the allow_lambda_saas of this V1ProjectSettings.
153
+
154
+
155
+ :param allow_lambda_saas: The allow_lambda_saas of this V1ProjectSettings. # noqa: E501
156
+ :type: bool
157
+ """
158
+
159
+ self._allow_lambda_saas = allow_lambda_saas
160
+
161
+ @property
162
+ def allow_vultr_saas(self) -> 'bool':
163
+ """Gets the allow_vultr_saas of this V1ProjectSettings. # noqa: E501
164
+
165
+
166
+ :return: The allow_vultr_saas of this V1ProjectSettings. # noqa: E501
167
+ :rtype: bool
168
+ """
169
+ return self._allow_vultr_saas
170
+
171
+ @allow_vultr_saas.setter
172
+ def allow_vultr_saas(self, allow_vultr_saas: 'bool'):
173
+ """Sets the allow_vultr_saas of this V1ProjectSettings.
174
+
175
+
176
+ :param allow_vultr_saas: The allow_vultr_saas of this V1ProjectSettings. # noqa: E501
177
+ :type: bool
178
+ """
179
+
180
+ self._allow_vultr_saas = allow_vultr_saas
181
+
68
182
  @property
69
183
  def preferred_cluster(self) -> 'str':
70
184
  """Gets the preferred_cluster of this V1ProjectSettings. # noqa: E501
@@ -86,6 +200,48 @@ class V1ProjectSettings(object):
86
200
 
87
201
  self._preferred_cluster = preferred_cluster
88
202
 
203
+ @property
204
+ def preferred_deployment_provider(self) -> 'str':
205
+ """Gets the preferred_deployment_provider of this V1ProjectSettings. # noqa: E501
206
+
207
+
208
+ :return: The preferred_deployment_provider of this V1ProjectSettings. # noqa: E501
209
+ :rtype: str
210
+ """
211
+ return self._preferred_deployment_provider
212
+
213
+ @preferred_deployment_provider.setter
214
+ def preferred_deployment_provider(self, preferred_deployment_provider: 'str'):
215
+ """Sets the preferred_deployment_provider of this V1ProjectSettings.
216
+
217
+
218
+ :param preferred_deployment_provider: The preferred_deployment_provider of this V1ProjectSettings. # noqa: E501
219
+ :type: str
220
+ """
221
+
222
+ self._preferred_deployment_provider = preferred_deployment_provider
223
+
224
+ @property
225
+ def preferred_studio_provider(self) -> 'str':
226
+ """Gets the preferred_studio_provider of this V1ProjectSettings. # noqa: E501
227
+
228
+
229
+ :return: The preferred_studio_provider of this V1ProjectSettings. # noqa: E501
230
+ :rtype: str
231
+ """
232
+ return self._preferred_studio_provider
233
+
234
+ @preferred_studio_provider.setter
235
+ def preferred_studio_provider(self, preferred_studio_provider: 'str'):
236
+ """Sets the preferred_studio_provider of this V1ProjectSettings.
237
+
238
+
239
+ :param preferred_studio_provider: The preferred_studio_provider of this V1ProjectSettings. # noqa: E501
240
+ :type: str
241
+ """
242
+
243
+ self._preferred_studio_provider = preferred_studio_provider
244
+
89
245
  @property
90
246
  def same_compute_on_resume(self) -> 'bool':
91
247
  """Gets the same_compute_on_resume of this V1ProjectSettings. # noqa: E501
@@ -43,25 +43,30 @@ class V1RestartTiming(object):
43
43
  swagger_types = {
44
44
  'counter': 'int',
45
45
  'end': 'datetime',
46
+ 'rank': 'int',
46
47
  'start': 'datetime'
47
48
  }
48
49
 
49
50
  attribute_map = {
50
51
  'counter': 'counter',
51
52
  'end': 'end',
53
+ 'rank': 'rank',
52
54
  'start': 'start'
53
55
  }
54
56
 
55
- def __init__(self, counter: 'int' =None, end: 'datetime' =None, start: 'datetime' =None): # noqa: E501
57
+ def __init__(self, counter: 'int' =None, end: 'datetime' =None, rank: 'int' =None, start: 'datetime' =None): # noqa: E501
56
58
  """V1RestartTiming - a model defined in Swagger""" # noqa: E501
57
59
  self._counter = None
58
60
  self._end = None
61
+ self._rank = None
59
62
  self._start = None
60
63
  self.discriminator = None
61
64
  if counter is not None:
62
65
  self.counter = counter
63
66
  if end is not None:
64
67
  self.end = end
68
+ if rank is not None:
69
+ self.rank = rank
65
70
  if start is not None:
66
71
  self.start = start
67
72
 
@@ -107,6 +112,27 @@ class V1RestartTiming(object):
107
112
 
108
113
  self._end = end
109
114
 
115
+ @property
116
+ def rank(self) -> 'int':
117
+ """Gets the rank of this V1RestartTiming. # noqa: E501
118
+
119
+
120
+ :return: The rank of this V1RestartTiming. # noqa: E501
121
+ :rtype: int
122
+ """
123
+ return self._rank
124
+
125
+ @rank.setter
126
+ def rank(self, rank: 'int'):
127
+ """Sets the rank of this V1RestartTiming.
128
+
129
+
130
+ :param rank: The rank of this V1RestartTiming. # noqa: E501
131
+ :type: int
132
+ """
133
+
134
+ self._rank = rank
135
+
110
136
  @property
111
137
  def start(self) -> 'datetime':
112
138
  """Gets the start of this V1RestartTiming. # noqa: E501
@@ -74,6 +74,7 @@ class V1RuleResource(object):
74
74
  SLURMJOB = "slurmJob"
75
75
  MULTIMACHINEJOB = "multiMachineJob"
76
76
  LITLOGGER = "litLogger"
77
+ PIPELINE = "pipeline"
77
78
  """
78
79
  Attributes:
79
80
  swagger_types (dict): The key is attribute name
@@ -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 V1SharedFilesystem(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
+ 'enabled': 'bool',
45
+ 'resource_id': 'str',
46
+ 'resource_name': 'str',
47
+ 'state': 'str'
48
+ }
49
+
50
+ attribute_map = {
51
+ 'enabled': 'enabled',
52
+ 'resource_id': 'resourceId',
53
+ 'resource_name': 'resourceName',
54
+ 'state': 'state'
55
+ }
56
+
57
+ def __init__(self, enabled: 'bool' =None, resource_id: 'str' =None, resource_name: 'str' =None, state: 'str' =None): # noqa: E501
58
+ """V1SharedFilesystem - a model defined in Swagger""" # noqa: E501
59
+ self._enabled = None
60
+ self._resource_id = None
61
+ self._resource_name = None
62
+ self._state = None
63
+ self.discriminator = None
64
+ if enabled is not None:
65
+ self.enabled = enabled
66
+ if resource_id is not None:
67
+ self.resource_id = resource_id
68
+ if resource_name is not None:
69
+ self.resource_name = resource_name
70
+ if state is not None:
71
+ self.state = state
72
+
73
+ @property
74
+ def enabled(self) -> 'bool':
75
+ """Gets the enabled of this V1SharedFilesystem. # noqa: E501
76
+
77
+
78
+ :return: The enabled of this V1SharedFilesystem. # noqa: E501
79
+ :rtype: bool
80
+ """
81
+ return self._enabled
82
+
83
+ @enabled.setter
84
+ def enabled(self, enabled: 'bool'):
85
+ """Sets the enabled of this V1SharedFilesystem.
86
+
87
+
88
+ :param enabled: The enabled of this V1SharedFilesystem. # noqa: E501
89
+ :type: bool
90
+ """
91
+
92
+ self._enabled = enabled
93
+
94
+ @property
95
+ def resource_id(self) -> 'str':
96
+ """Gets the resource_id of this V1SharedFilesystem. # noqa: E501
97
+
98
+
99
+ :return: The resource_id of this V1SharedFilesystem. # noqa: E501
100
+ :rtype: str
101
+ """
102
+ return self._resource_id
103
+
104
+ @resource_id.setter
105
+ def resource_id(self, resource_id: 'str'):
106
+ """Sets the resource_id of this V1SharedFilesystem.
107
+
108
+
109
+ :param resource_id: The resource_id of this V1SharedFilesystem. # noqa: E501
110
+ :type: str
111
+ """
112
+
113
+ self._resource_id = resource_id
114
+
115
+ @property
116
+ def resource_name(self) -> 'str':
117
+ """Gets the resource_name of this V1SharedFilesystem. # noqa: E501
118
+
119
+
120
+ :return: The resource_name of this V1SharedFilesystem. # noqa: E501
121
+ :rtype: str
122
+ """
123
+ return self._resource_name
124
+
125
+ @resource_name.setter
126
+ def resource_name(self, resource_name: 'str'):
127
+ """Sets the resource_name of this V1SharedFilesystem.
128
+
129
+
130
+ :param resource_name: The resource_name of this V1SharedFilesystem. # noqa: E501
131
+ :type: str
132
+ """
133
+
134
+ self._resource_name = resource_name
135
+
136
+ @property
137
+ def state(self) -> 'str':
138
+ """Gets the state of this V1SharedFilesystem. # noqa: E501
139
+
140
+
141
+ :return: The state of this V1SharedFilesystem. # noqa: E501
142
+ :rtype: str
143
+ """
144
+ return self._state
145
+
146
+ @state.setter
147
+ def state(self, state: 'str'):
148
+ """Sets the state of this V1SharedFilesystem.
149
+
150
+
151
+ :param state: The state of this V1SharedFilesystem. # noqa: E501
152
+ :type: str
153
+ """
154
+
155
+ self._state = state
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(V1SharedFilesystem, 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: 'V1SharedFilesystem') -> bool:
193
+ """Returns true if both objects are equal"""
194
+ if not isinstance(other, V1SharedFilesystem):
195
+ return False
196
+
197
+ return self.__dict__ == other.__dict__
198
+
199
+ def __ne__(self, other: 'V1SharedFilesystem') -> bool:
200
+ """Returns true if both objects are not equal"""
201
+ return not self == other
@@ -47,6 +47,7 @@ class V1SLURMJob(object):
47
47
  'command': 'str',
48
48
  'created_at': 'datetime',
49
49
  'id': 'str',
50
+ 'image': 'str',
50
51
  'linked_project_id': 'str',
51
52
  'linked_user_id': 'str',
52
53
  'message': 'str',
@@ -72,6 +73,7 @@ class V1SLURMJob(object):
72
73
  'command': 'command',
73
74
  'created_at': 'createdAt',
74
75
  'id': 'id',
76
+ 'image': 'image',
75
77
  'linked_project_id': 'linkedProjectId',
76
78
  'linked_user_id': 'linkedUserId',
77
79
  'message': 'message',
@@ -90,7 +92,7 @@ class V1SLURMJob(object):
90
92
  'work_dir': 'workDir'
91
93
  }
92
94
 
93
- def __init__(self, cache_id: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, created_at: 'datetime' =None, id: 'str' =None, linked_project_id: 'str' =None, linked_user_id: 'str' =None, message: 'str' =None, name: 'str' =None, num_gpus: 'str' =None, project_id: 'str' =None, run_id: 'str' =None, service_id: 'str' =None, slurm_v1_status: 'V1SlurmV1JobStatus' =None, state: 'str' =None, updated_at: 'datetime' =None, upload_eta_seconds: 'str' =None, upload_in_progress: 'bool' =None, upload_percentage: 'str' =None, user_id: 'str' =None, work_dir: 'str' =None): # noqa: E501
95
+ def __init__(self, cache_id: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, created_at: 'datetime' =None, id: 'str' =None, image: 'str' =None, linked_project_id: 'str' =None, linked_user_id: 'str' =None, message: 'str' =None, name: 'str' =None, num_gpus: 'str' =None, project_id: 'str' =None, run_id: 'str' =None, service_id: 'str' =None, slurm_v1_status: 'V1SlurmV1JobStatus' =None, state: 'str' =None, updated_at: 'datetime' =None, upload_eta_seconds: 'str' =None, upload_in_progress: 'bool' =None, upload_percentage: 'str' =None, user_id: 'str' =None, work_dir: 'str' =None): # noqa: E501
94
96
  """V1SLURMJob - a model defined in Swagger""" # noqa: E501
95
97
  self._cache_id = None
96
98
  self._cloudspace_id = None
@@ -98,6 +100,7 @@ class V1SLURMJob(object):
98
100
  self._command = None
99
101
  self._created_at = None
100
102
  self._id = None
103
+ self._image = None
101
104
  self._linked_project_id = None
102
105
  self._linked_user_id = None
103
106
  self._message = None
@@ -127,6 +130,8 @@ class V1SLURMJob(object):
127
130
  self.created_at = created_at
128
131
  if id is not None:
129
132
  self.id = id
133
+ if image is not None:
134
+ self.image = image
130
135
  if linked_project_id is not None:
131
136
  self.linked_project_id = linked_project_id
132
137
  if linked_user_id is not None:
@@ -286,6 +291,27 @@ class V1SLURMJob(object):
286
291
 
287
292
  self._id = id
288
293
 
294
+ @property
295
+ def image(self) -> 'str':
296
+ """Gets the image of this V1SLURMJob. # noqa: E501
297
+
298
+
299
+ :return: The image of this V1SLURMJob. # noqa: E501
300
+ :rtype: str
301
+ """
302
+ return self._image
303
+
304
+ @image.setter
305
+ def image(self, image: 'str'):
306
+ """Sets the image of this V1SLURMJob.
307
+
308
+
309
+ :param image: The image of this V1SLURMJob. # noqa: E501
310
+ :type: str
311
+ """
312
+
313
+ self._image = image
314
+
289
315
  @property
290
316
  def linked_project_id(self) -> 'str':
291
317
  """Gets the linked_project_id of this V1SLURMJob. # noqa: E501
@@ -0,0 +1,97 @@
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 V1UpdateJobVisibilityResponse(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
+ }
45
+
46
+ attribute_map = {
47
+ }
48
+
49
+ def __init__(self): # noqa: E501
50
+ """V1UpdateJobVisibilityResponse - a model defined in Swagger""" # noqa: E501
51
+ self.discriminator = None
52
+
53
+ def to_dict(self) -> dict:
54
+ """Returns the model properties as a dict"""
55
+ result = {}
56
+
57
+ for attr, _ in six.iteritems(self.swagger_types):
58
+ value = getattr(self, attr)
59
+ if isinstance(value, list):
60
+ result[attr] = list(map(
61
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
62
+ value
63
+ ))
64
+ elif hasattr(value, "to_dict"):
65
+ result[attr] = value.to_dict()
66
+ elif isinstance(value, dict):
67
+ result[attr] = dict(map(
68
+ lambda item: (item[0], item[1].to_dict())
69
+ if hasattr(item[1], "to_dict") else item,
70
+ value.items()
71
+ ))
72
+ else:
73
+ result[attr] = value
74
+ if issubclass(V1UpdateJobVisibilityResponse, dict):
75
+ for key, value in self.items():
76
+ result[key] = value
77
+
78
+ return result
79
+
80
+ def to_str(self) -> str:
81
+ """Returns the string representation of the model"""
82
+ return pprint.pformat(self.to_dict())
83
+
84
+ def __repr__(self) -> str:
85
+ """For `print` and `pprint`"""
86
+ return self.to_str()
87
+
88
+ def __eq__(self, other: 'V1UpdateJobVisibilityResponse') -> bool:
89
+ """Returns true if both objects are equal"""
90
+ if not isinstance(other, V1UpdateJobVisibilityResponse):
91
+ return False
92
+
93
+ return self.__dict__ == other.__dict__
94
+
95
+ def __ne__(self, other: 'V1UpdateJobVisibilityResponse') -> bool:
96
+ """Returns true if both objects are not equal"""
97
+ return not self == other