lightning-sdk 0.1.31__py3-none-any.whl → 0.1.32__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 (65) hide show
  1. lightning_sdk/__init__.py +3 -1
  2. lightning_sdk/ai_hub.py +29 -0
  3. lightning_sdk/api/__init__.py +2 -0
  4. lightning_sdk/api/ai_hub_api.py +15 -0
  5. lightning_sdk/api/user_api.py +8 -2
  6. lightning_sdk/cli/upload.py +10 -6
  7. lightning_sdk/lightning_cloud/openapi/__init__.py +26 -0
  8. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  9. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +101 -0
  10. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
  11. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
  12. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +1 -0
  13. lightning_sdk/lightning_cloud/openapi/models/__init__.py +25 -0
  14. lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
  15. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +79 -1
  16. lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
  17. lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
  18. lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +79 -1
  19. lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
  20. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  21. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +79 -1
  22. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
  23. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
  24. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
  25. lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +175 -0
  26. lightning_sdk/lightning_cloud/openapi/models/v1_delete_shared_metrics_stream_response.py +97 -0
  27. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +123 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +79 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
  30. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
  31. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +201 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_app.py +227 -0
  34. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
  42. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +6 -6
  52. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +53 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
  55. lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +81 -3
  58. lightning_sdk/lightning_cloud/openapi/models/validate.py +81 -3
  59. lightning_sdk/lightning_cloud/rest_client.py +2 -0
  60. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/METADATA +1 -1
  61. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/RECORD +65 -37
  62. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/LICENSE +0 -0
  63. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/WHEEL +0 -0
  64. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/entry_points.txt +0 -0
  65. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/top_level.txt +0 -0
@@ -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
@@ -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 V1ListFilesystemDatasetsResponse(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
+ 'datasets': 'list[V1FilesystemDataset]'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'datasets': 'datasets'
49
+ }
50
+
51
+ def __init__(self, datasets: 'list[V1FilesystemDataset]' =None): # noqa: E501
52
+ """V1ListFilesystemDatasetsResponse - a model defined in Swagger""" # noqa: E501
53
+ self._datasets = None
54
+ self.discriminator = None
55
+ if datasets is not None:
56
+ self.datasets = datasets
57
+
58
+ @property
59
+ def datasets(self) -> 'list[V1FilesystemDataset]':
60
+ """Gets the datasets of this V1ListFilesystemDatasetsResponse. # noqa: E501
61
+
62
+
63
+ :return: The datasets of this V1ListFilesystemDatasetsResponse. # noqa: E501
64
+ :rtype: list[V1FilesystemDataset]
65
+ """
66
+ return self._datasets
67
+
68
+ @datasets.setter
69
+ def datasets(self, datasets: 'list[V1FilesystemDataset]'):
70
+ """Sets the datasets of this V1ListFilesystemDatasetsResponse.
71
+
72
+
73
+ :param datasets: The datasets of this V1ListFilesystemDatasetsResponse. # noqa: E501
74
+ :type: list[V1FilesystemDataset]
75
+ """
76
+
77
+ self._datasets = datasets
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(V1ListFilesystemDatasetsResponse, 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: 'V1ListFilesystemDatasetsResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1ListFilesystemDatasetsResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1ListFilesystemDatasetsResponse') -> 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 V1ListFilesystemJobsResponse(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
+ 'jobs': 'list[V1FilesystemJob]'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'jobs': 'jobs'
49
+ }
50
+
51
+ def __init__(self, jobs: 'list[V1FilesystemJob]' =None): # noqa: E501
52
+ """V1ListFilesystemJobsResponse - a model defined in Swagger""" # noqa: E501
53
+ self._jobs = None
54
+ self.discriminator = None
55
+ if jobs is not None:
56
+ self.jobs = jobs
57
+
58
+ @property
59
+ def jobs(self) -> 'list[V1FilesystemJob]':
60
+ """Gets the jobs of this V1ListFilesystemJobsResponse. # noqa: E501
61
+
62
+
63
+ :return: The jobs of this V1ListFilesystemJobsResponse. # noqa: E501
64
+ :rtype: list[V1FilesystemJob]
65
+ """
66
+ return self._jobs
67
+
68
+ @jobs.setter
69
+ def jobs(self, jobs: 'list[V1FilesystemJob]'):
70
+ """Sets the jobs of this V1ListFilesystemJobsResponse.
71
+
72
+
73
+ :param jobs: The jobs of this V1ListFilesystemJobsResponse. # noqa: E501
74
+ :type: list[V1FilesystemJob]
75
+ """
76
+
77
+ self._jobs = jobs
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(V1ListFilesystemJobsResponse, 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: 'V1ListFilesystemJobsResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1ListFilesystemJobsResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1ListFilesystemJobsResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other