lightning-sdk 0.1.31__py3-none-any.whl → 0.1.33__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 (71) hide show
  1. lightning_sdk/__init__.py +3 -1
  2. lightning_sdk/ai_hub.py +110 -0
  3. lightning_sdk/api/__init__.py +2 -0
  4. lightning_sdk/api/ai_hub_api.py +61 -0
  5. lightning_sdk/api/studio_api.py +15 -8
  6. lightning_sdk/api/user_api.py +8 -2
  7. lightning_sdk/api/utils.py +8 -1
  8. lightning_sdk/cli/upload.py +10 -6
  9. lightning_sdk/lightning_cloud/openapi/__init__.py +26 -0
  10. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  11. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +101 -0
  12. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
  13. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
  14. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +1 -0
  15. lightning_sdk/lightning_cloud/openapi/models/__init__.py +25 -0
  16. lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
  17. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  18. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  19. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +79 -1
  20. lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
  21. lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
  22. lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +79 -1
  23. lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
  24. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  25. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +79 -1
  26. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
  27. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +175 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_delete_shared_metrics_stream_response.py +97 -0
  31. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +123 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +79 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
  35. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
  37. lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +201 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_app.py +227 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
  42. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
  47. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -1
  49. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +6 -6
  57. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +53 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +81 -3
  63. lightning_sdk/lightning_cloud/openapi/models/validate.py +81 -3
  64. lightning_sdk/lightning_cloud/rest_client.py +2 -0
  65. lightning_sdk/studio.py +6 -5
  66. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/METADATA +1 -1
  67. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/RECORD +71 -43
  68. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/LICENSE +0 -0
  69. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/WHEEL +0 -0
  70. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/entry_points.txt +0 -0
  71. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/top_level.txt +0 -0
@@ -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 V1GCSFolderDataConnection(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
+ 'source': 'str'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'source': 'source'
49
+ }
50
+
51
+ def __init__(self, source: 'str' =None): # noqa: E501
52
+ """V1GCSFolderDataConnection - a model defined in Swagger""" # noqa: E501
53
+ self._source = None
54
+ self.discriminator = None
55
+ if source is not None:
56
+ self.source = source
57
+
58
+ @property
59
+ def source(self) -> 'str':
60
+ """Gets the source of this V1GCSFolderDataConnection. # noqa: E501
61
+
62
+
63
+ :return: The source of this V1GCSFolderDataConnection. # noqa: E501
64
+ :rtype: str
65
+ """
66
+ return self._source
67
+
68
+ @source.setter
69
+ def source(self, source: 'str'):
70
+ """Sets the source of this V1GCSFolderDataConnection.
71
+
72
+
73
+ :param source: The source of this V1GCSFolderDataConnection. # noqa: E501
74
+ :type: str
75
+ """
76
+
77
+ self._source = source
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(V1GCSFolderDataConnection, 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: 'V1GCSFolderDataConnection') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1GCSFolderDataConnection):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1GCSFolderDataConnection') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -41,19 +41,24 @@ class V1Input(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'default_value': 'str'
44
+ 'default_value': 'str',
45
+ 'placeholder': 'str'
45
46
  }
46
47
 
47
48
  attribute_map = {
48
- 'default_value': 'defaultValue'
49
+ 'default_value': 'defaultValue',
50
+ 'placeholder': 'placeholder'
49
51
  }
50
52
 
51
- def __init__(self, default_value: 'str' =None): # noqa: E501
53
+ def __init__(self, default_value: 'str' =None, placeholder: 'str' =None): # noqa: E501
52
54
  """V1Input - a model defined in Swagger""" # noqa: E501
53
55
  self._default_value = None
56
+ self._placeholder = None
54
57
  self.discriminator = None
55
58
  if default_value is not None:
56
59
  self.default_value = default_value
60
+ if placeholder is not None:
61
+ self.placeholder = placeholder
57
62
 
58
63
  @property
59
64
  def default_value(self) -> 'str':
@@ -76,6 +81,27 @@ class V1Input(object):
76
81
 
77
82
  self._default_value = default_value
78
83
 
84
+ @property
85
+ def placeholder(self) -> 'str':
86
+ """Gets the placeholder of this V1Input. # noqa: E501
87
+
88
+
89
+ :return: The placeholder of this V1Input. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._placeholder
93
+
94
+ @placeholder.setter
95
+ def placeholder(self, placeholder: 'str'):
96
+ """Sets the placeholder of this V1Input.
97
+
98
+
99
+ :param placeholder: The placeholder of this V1Input. # noqa: E501
100
+ :type: str
101
+ """
102
+
103
+ self._placeholder = placeholder
104
+
79
105
  def to_dict(self) -> dict:
80
106
  """Returns the model properties as a dict"""
81
107
  result = {}
@@ -45,6 +45,7 @@ class V1JobSpec(object):
45
45
  'cluster_id': 'str',
46
46
  'command': 'str',
47
47
  'created_symlinks': 'bool',
48
+ 'data_paths': 'list[V1DataPath]',
48
49
  'entrypoint': 'str',
49
50
  'env': 'list[V1EnvVar]',
50
51
  'image': 'str',
@@ -69,6 +70,7 @@ class V1JobSpec(object):
69
70
  'cluster_id': 'clusterId',
70
71
  'command': 'command',
71
72
  'created_symlinks': 'createdSymlinks',
73
+ 'data_paths': 'dataPaths',
72
74
  'entrypoint': 'entrypoint',
73
75
  'env': 'env',
74
76
  'image': 'image',
@@ -88,12 +90,13 @@ class V1JobSpec(object):
88
90
  'volumes': 'volumes'
89
91
  }
90
92
 
91
- def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, created_symlinks: 'bool' =None, entrypoint: 'str' =None, env: 'list[V1EnvVar]' =None, image: 'str' =None, image_cluster_credentials: 'bool' =None, image_secret_ref: 'str' =None, include_credentials: 'bool' =None, instance_name: 'str' =None, instance_type: 'str' =None, modified_volume: 'bool' =None, readiness_probe: 'V1JobHealthCheckConfig' =None, resources: 'V1Resources' =None, restart_policy: 'str' =None, run_id: 'str' =None, skip_data_connections_setup: 'bool' =None, skip_filesystem_setup: 'bool' =None, spot: 'bool' =None, volumes: 'list[V1Volume]' =None): # noqa: E501
93
+ def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, created_symlinks: 'bool' =None, data_paths: 'list[V1DataPath]' =None, entrypoint: 'str' =None, env: 'list[V1EnvVar]' =None, image: 'str' =None, image_cluster_credentials: 'bool' =None, image_secret_ref: 'str' =None, include_credentials: 'bool' =None, instance_name: 'str' =None, instance_type: 'str' =None, modified_volume: 'bool' =None, readiness_probe: 'V1JobHealthCheckConfig' =None, resources: 'V1Resources' =None, restart_policy: 'str' =None, run_id: 'str' =None, skip_data_connections_setup: 'bool' =None, skip_filesystem_setup: 'bool' =None, spot: 'bool' =None, volumes: 'list[V1Volume]' =None): # noqa: E501
92
94
  """V1JobSpec - a model defined in Swagger""" # noqa: E501
93
95
  self._cloudspace_id = None
94
96
  self._cluster_id = None
95
97
  self._command = None
96
98
  self._created_symlinks = None
99
+ self._data_paths = None
97
100
  self._entrypoint = None
98
101
  self._env = None
99
102
  self._image = None
@@ -120,6 +123,8 @@ class V1JobSpec(object):
120
123
  self.command = command
121
124
  if created_symlinks is not None:
122
125
  self.created_symlinks = created_symlinks
126
+ if data_paths is not None:
127
+ self.data_paths = data_paths
123
128
  if entrypoint is not None:
124
129
  self.entrypoint = entrypoint
125
130
  if env is not None:
@@ -239,6 +244,27 @@ class V1JobSpec(object):
239
244
 
240
245
  self._created_symlinks = created_symlinks
241
246
 
247
+ @property
248
+ def data_paths(self) -> 'list[V1DataPath]':
249
+ """Gets the data_paths of this V1JobSpec. # noqa: E501
250
+
251
+
252
+ :return: The data_paths of this V1JobSpec. # noqa: E501
253
+ :rtype: list[V1DataPath]
254
+ """
255
+ return self._data_paths
256
+
257
+ @data_paths.setter
258
+ def data_paths(self, data_paths: 'list[V1DataPath]'):
259
+ """Sets the data_paths of this V1JobSpec.
260
+
261
+
262
+ :param data_paths: The data_paths of this V1JobSpec. # noqa: E501
263
+ :type: list[V1DataPath]
264
+ """
265
+
266
+ self._data_paths = data_paths
267
+
242
268
  @property
243
269
  def entrypoint(self) -> 'str':
244
270
  """Gets the entrypoint of this V1JobSpec. # noqa: E501
@@ -51,6 +51,7 @@ class V1LightningworkSpec(object):
51
51
  'drives': 'list[V1LightningworkDrives]',
52
52
  'env': 'list[V1EnvVar]',
53
53
  'lightningapp_instance_id': 'str',
54
+ 'locked_region': 'str',
54
55
  'network_config': 'list[V1NetworkConfig]',
55
56
  'pause_automation': 'bool',
56
57
  'restart_policy': 'V1LightningappRestartPolicy',
@@ -69,6 +70,7 @@ class V1LightningworkSpec(object):
69
70
  'drives': 'drives',
70
71
  'env': 'env',
71
72
  'lightningapp_instance_id': 'lightningappInstanceId',
73
+ 'locked_region': 'lockedRegion',
72
74
  'network_config': 'networkConfig',
73
75
  'pause_automation': 'pauseAutomation',
74
76
  'restart_policy': 'restartPolicy',
@@ -76,7 +78,7 @@ class V1LightningworkSpec(object):
76
78
  'user_requested_compute_config': 'userRequestedComputeConfig'
77
79
  }
78
80
 
79
- def __init__(self, build_spec: 'V1BuildSpec' =None, cloud_space_id: 'str' =None, cluster_id: 'str' =None, compute_config: 'V1ComputeConfig' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, data_connections: 'list[V1DataConnection]' =None, desired_state: 'V1LightningworkState' =None, drives: 'list[V1LightningworkDrives]' =None, env: 'list[V1EnvVar]' =None, lightningapp_instance_id: 'str' =None, network_config: 'list[V1NetworkConfig]' =None, pause_automation: 'bool' =None, restart_policy: 'V1LightningappRestartPolicy' =None, user_id: 'str' =None, user_requested_compute_config: 'V1UserRequestedComputeConfig' =None): # noqa: E501
81
+ def __init__(self, build_spec: 'V1BuildSpec' =None, cloud_space_id: 'str' =None, cluster_id: 'str' =None, compute_config: 'V1ComputeConfig' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, data_connections: 'list[V1DataConnection]' =None, desired_state: 'V1LightningworkState' =None, drives: 'list[V1LightningworkDrives]' =None, env: 'list[V1EnvVar]' =None, lightningapp_instance_id: 'str' =None, locked_region: 'str' =None, network_config: 'list[V1NetworkConfig]' =None, pause_automation: 'bool' =None, restart_policy: 'V1LightningappRestartPolicy' =None, user_id: 'str' =None, user_requested_compute_config: 'V1UserRequestedComputeConfig' =None): # noqa: E501
80
82
  """V1LightningworkSpec - a model defined in Swagger""" # noqa: E501
81
83
  self._build_spec = None
82
84
  self._cloud_space_id = None
@@ -88,6 +90,7 @@ class V1LightningworkSpec(object):
88
90
  self._drives = None
89
91
  self._env = None
90
92
  self._lightningapp_instance_id = None
93
+ self._locked_region = None
91
94
  self._network_config = None
92
95
  self._pause_automation = None
93
96
  self._restart_policy = None
@@ -114,6 +117,8 @@ class V1LightningworkSpec(object):
114
117
  self.env = env
115
118
  if lightningapp_instance_id is not None:
116
119
  self.lightningapp_instance_id = lightningapp_instance_id
120
+ if locked_region is not None:
121
+ self.locked_region = locked_region
117
122
  if network_config is not None:
118
123
  self.network_config = network_config
119
124
  if pause_automation is not None:
@@ -335,6 +340,27 @@ class V1LightningworkSpec(object):
335
340
 
336
341
  self._lightningapp_instance_id = lightningapp_instance_id
337
342
 
343
+ @property
344
+ def locked_region(self) -> 'str':
345
+ """Gets the locked_region of this V1LightningworkSpec. # noqa: E501
346
+
347
+
348
+ :return: The locked_region of this V1LightningworkSpec. # noqa: E501
349
+ :rtype: str
350
+ """
351
+ return self._locked_region
352
+
353
+ @locked_region.setter
354
+ def locked_region(self, locked_region: 'str'):
355
+ """Sets the locked_region of this V1LightningworkSpec.
356
+
357
+
358
+ :param locked_region: The locked_region of this V1LightningworkSpec. # noqa: E501
359
+ :type: str
360
+ """
361
+
362
+ self._locked_region = locked_region
363
+
338
364
  @property
339
365
  def network_config(self) -> 'list[V1NetworkConfig]':
340
366
  """Gets the network_config of this V1LightningworkSpec. # 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 V1ListCloudSpacePythonVersionsResponse(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
+ 'versions': 'list[str]'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'versions': 'versions'
49
+ }
50
+
51
+ def __init__(self, versions: 'list[str]' =None): # noqa: E501
52
+ """V1ListCloudSpacePythonVersionsResponse - a model defined in Swagger""" # noqa: E501
53
+ self._versions = None
54
+ self.discriminator = None
55
+ if versions is not None:
56
+ self.versions = versions
57
+
58
+ @property
59
+ def versions(self) -> 'list[str]':
60
+ """Gets the versions of this V1ListCloudSpacePythonVersionsResponse. # noqa: E501
61
+
62
+
63
+ :return: The versions of this V1ListCloudSpacePythonVersionsResponse. # noqa: E501
64
+ :rtype: list[str]
65
+ """
66
+ return self._versions
67
+
68
+ @versions.setter
69
+ def versions(self, versions: 'list[str]'):
70
+ """Sets the versions of this V1ListCloudSpacePythonVersionsResponse.
71
+
72
+
73
+ :param versions: The versions of this V1ListCloudSpacePythonVersionsResponse. # noqa: E501
74
+ :type: list[str]
75
+ """
76
+
77
+ self._versions = versions
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(V1ListCloudSpacePythonVersionsResponse, 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: 'V1ListCloudSpacePythonVersionsResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1ListCloudSpacePythonVersionsResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1ListCloudSpacePythonVersionsResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -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 V1ListFilesystemAppsResponse(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
+ 'apps': 'list[V1FilesystemApp]'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'apps': 'apps'
49
+ }
50
+
51
+ def __init__(self, apps: 'list[V1FilesystemApp]' =None): # noqa: E501
52
+ """V1ListFilesystemAppsResponse - a model defined in Swagger""" # noqa: E501
53
+ self._apps = None
54
+ self.discriminator = None
55
+ if apps is not None:
56
+ self.apps = apps
57
+
58
+ @property
59
+ def apps(self) -> 'list[V1FilesystemApp]':
60
+ """Gets the apps of this V1ListFilesystemAppsResponse. # noqa: E501
61
+
62
+
63
+ :return: The apps of this V1ListFilesystemAppsResponse. # noqa: E501
64
+ :rtype: list[V1FilesystemApp]
65
+ """
66
+ return self._apps
67
+
68
+ @apps.setter
69
+ def apps(self, apps: 'list[V1FilesystemApp]'):
70
+ """Sets the apps of this V1ListFilesystemAppsResponse.
71
+
72
+
73
+ :param apps: The apps of this V1ListFilesystemAppsResponse. # noqa: E501
74
+ :type: list[V1FilesystemApp]
75
+ """
76
+
77
+ self._apps = apps
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(V1ListFilesystemAppsResponse, 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: 'V1ListFilesystemAppsResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1ListFilesystemAppsResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1ListFilesystemAppsResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -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 V1ListFilesystemCloudSpacesResponse(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
+ 'cloudspaces': 'list[V1FilesystemCloudSpace]'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'cloudspaces': 'cloudspaces'
49
+ }
50
+
51
+ def __init__(self, cloudspaces: 'list[V1FilesystemCloudSpace]' =None): # noqa: E501
52
+ """V1ListFilesystemCloudSpacesResponse - a model defined in Swagger""" # noqa: E501
53
+ self._cloudspaces = None
54
+ self.discriminator = None
55
+ if cloudspaces is not None:
56
+ self.cloudspaces = cloudspaces
57
+
58
+ @property
59
+ def cloudspaces(self) -> 'list[V1FilesystemCloudSpace]':
60
+ """Gets the cloudspaces of this V1ListFilesystemCloudSpacesResponse. # noqa: E501
61
+
62
+
63
+ :return: The cloudspaces of this V1ListFilesystemCloudSpacesResponse. # noqa: E501
64
+ :rtype: list[V1FilesystemCloudSpace]
65
+ """
66
+ return self._cloudspaces
67
+
68
+ @cloudspaces.setter
69
+ def cloudspaces(self, cloudspaces: 'list[V1FilesystemCloudSpace]'):
70
+ """Sets the cloudspaces of this V1ListFilesystemCloudSpacesResponse.
71
+
72
+
73
+ :param cloudspaces: The cloudspaces of this V1ListFilesystemCloudSpacesResponse. # noqa: E501
74
+ :type: list[V1FilesystemCloudSpace]
75
+ """
76
+
77
+ self._cloudspaces = cloudspaces
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(V1ListFilesystemCloudSpacesResponse, 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: 'V1ListFilesystemCloudSpacesResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1ListFilesystemCloudSpacesResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1ListFilesystemCloudSpacesResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other