lightning-sdk 0.1.30__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 (80) 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/teamspace_api.py +35 -5
  6. lightning_sdk/api/user_api.py +8 -2
  7. lightning_sdk/cli/upload.py +10 -6
  8. lightning_sdk/lightning_cloud/openapi/__init__.py +30 -0
  9. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  10. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -4
  11. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -5
  12. lightning_sdk/lightning_cloud/openapi/api/deployment_templates_service_api.py +105 -0
  13. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
  14. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +5 -1
  15. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
  16. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -1
  17. lightning_sdk/lightning_cloud/openapi/models/__init__.py +29 -0
  18. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
  19. lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
  20. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  21. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +121 -17
  22. lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
  23. lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
  24. lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
  25. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +123 -0
  26. lightning_sdk/lightning_cloud/openapi/models/project_id_models_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +79 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +95 -17
  32. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
  34. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +175 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_delete_shared_metrics_stream_response.py +97 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +123 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +95 -17
  40. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
  42. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +2 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +201 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_app.py +227 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
  55. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +6 -6
  65. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +79 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +76 -24
  71. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +81 -3
  72. lightning_sdk/lightning_cloud/openapi/models/validate.py +81 -3
  73. lightning_sdk/lightning_cloud/rest_client.py +2 -0
  74. lightning_sdk/teamspace.py +11 -0
  75. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/METADATA +1 -1
  76. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/RECORD +80 -48
  77. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/LICENSE +0 -0
  78. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/WHEEL +0 -0
  79. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/entry_points.txt +0 -0
  80. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.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 ModelIdVersionsBody(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
+ 'cluster_id': 'str'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'cluster_id': 'clusterId'
49
+ }
50
+
51
+ def __init__(self, cluster_id: 'str' =None): # noqa: E501
52
+ """ModelIdVersionsBody - a model defined in Swagger""" # noqa: E501
53
+ self._cluster_id = None
54
+ self.discriminator = None
55
+ if cluster_id is not None:
56
+ self.cluster_id = cluster_id
57
+
58
+ @property
59
+ def cluster_id(self) -> 'str':
60
+ """Gets the cluster_id of this ModelIdVersionsBody. # noqa: E501
61
+
62
+
63
+ :return: The cluster_id of this ModelIdVersionsBody. # noqa: E501
64
+ :rtype: str
65
+ """
66
+ return self._cluster_id
67
+
68
+ @cluster_id.setter
69
+ def cluster_id(self, cluster_id: 'str'):
70
+ """Sets the cluster_id of this ModelIdVersionsBody.
71
+
72
+
73
+ :param cluster_id: The cluster_id of this ModelIdVersionsBody. # noqa: E501
74
+ :type: str
75
+ """
76
+
77
+ self._cluster_id = cluster_id
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(ModelIdVersionsBody, 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: 'ModelIdVersionsBody') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, ModelIdVersionsBody):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'ModelIdVersionsBody') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -41,6 +41,7 @@ class ProjectIdModelsBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'always_create': 'bool',
44
45
  'cluster_id': 'str',
45
46
  'metadata': 'dict(str, str)',
46
47
  'name': 'str',
@@ -48,19 +49,23 @@ class ProjectIdModelsBody(object):
48
49
  }
49
50
 
50
51
  attribute_map = {
52
+ 'always_create': 'alwaysCreate',
51
53
  'cluster_id': 'clusterId',
52
54
  'metadata': 'metadata',
53
55
  'name': 'name',
54
56
  'private': 'private'
55
57
  }
56
58
 
57
- def __init__(self, cluster_id: 'str' =None, metadata: 'dict(str, str)' =None, name: 'str' =None, private: 'bool' =None): # noqa: E501
59
+ def __init__(self, always_create: 'bool' =None, cluster_id: 'str' =None, metadata: 'dict(str, str)' =None, name: 'str' =None, private: 'bool' =None): # noqa: E501
58
60
  """ProjectIdModelsBody - a model defined in Swagger""" # noqa: E501
61
+ self._always_create = None
59
62
  self._cluster_id = None
60
63
  self._metadata = None
61
64
  self._name = None
62
65
  self._private = None
63
66
  self.discriminator = None
67
+ if always_create is not None:
68
+ self.always_create = always_create
64
69
  if cluster_id is not None:
65
70
  self.cluster_id = cluster_id
66
71
  if metadata is not None:
@@ -70,6 +75,27 @@ class ProjectIdModelsBody(object):
70
75
  if private is not None:
71
76
  self.private = private
72
77
 
78
+ @property
79
+ def always_create(self) -> 'bool':
80
+ """Gets the always_create of this ProjectIdModelsBody. # noqa: E501
81
+
82
+
83
+ :return: The always_create of this ProjectIdModelsBody. # noqa: E501
84
+ :rtype: bool
85
+ """
86
+ return self._always_create
87
+
88
+ @always_create.setter
89
+ def always_create(self, always_create: 'bool'):
90
+ """Sets the always_create of this ProjectIdModelsBody.
91
+
92
+
93
+ :param always_create: The always_create of this ProjectIdModelsBody. # noqa: E501
94
+ :type: bool
95
+ """
96
+
97
+ self._always_create = always_create
98
+
73
99
  @property
74
100
  def cluster_id(self) -> 'str':
75
101
  """Gets the cluster_id of this ProjectIdModelsBody. # noqa: E501
@@ -42,39 +42,59 @@ class Update(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'aws': 'V1AwsDataConnection',
45
+ 'efs': 'V1EfsDataConnection',
46
+ 'efs_folder': 'V1EFSFolderDataConnection',
45
47
  'gcp': 'V1GcpDataConnection',
48
+ 'gcs_folder': 'V1GCSFolderDataConnection',
46
49
  'name': 'str',
47
50
  'run_cmds': 'list[str]',
51
+ 's3_folder': 'V1S3FolderDataConnection',
48
52
  'snowflake': 'V1SnowflakeDataConnection',
49
53
  'writable': 'bool'
50
54
  }
51
55
 
52
56
  attribute_map = {
53
57
  'aws': 'aws',
58
+ 'efs': 'efs',
59
+ 'efs_folder': 'efsFolder',
54
60
  'gcp': 'gcp',
61
+ 'gcs_folder': 'gcsFolder',
55
62
  'name': 'name',
56
63
  'run_cmds': 'runCmds',
64
+ 's3_folder': 's3Folder',
57
65
  'snowflake': 'snowflake',
58
66
  'writable': 'writable'
59
67
  }
60
68
 
61
- def __init__(self, aws: 'V1AwsDataConnection' =None, gcp: 'V1GcpDataConnection' =None, name: 'str' =None, run_cmds: 'list[str]' =None, snowflake: 'V1SnowflakeDataConnection' =None, writable: 'bool' =None): # noqa: E501
69
+ def __init__(self, aws: 'V1AwsDataConnection' =None, efs: 'V1EfsDataConnection' =None, efs_folder: 'V1EFSFolderDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, name: 'str' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, writable: 'bool' =None): # noqa: E501
62
70
  """Update - a model defined in Swagger""" # noqa: E501
63
71
  self._aws = None
72
+ self._efs = None
73
+ self._efs_folder = None
64
74
  self._gcp = None
75
+ self._gcs_folder = None
65
76
  self._name = None
66
77
  self._run_cmds = None
78
+ self._s3_folder = None
67
79
  self._snowflake = None
68
80
  self._writable = None
69
81
  self.discriminator = None
70
82
  if aws is not None:
71
83
  self.aws = aws
84
+ if efs is not None:
85
+ self.efs = efs
86
+ if efs_folder is not None:
87
+ self.efs_folder = efs_folder
72
88
  if gcp is not None:
73
89
  self.gcp = gcp
90
+ if gcs_folder is not None:
91
+ self.gcs_folder = gcs_folder
74
92
  if name is not None:
75
93
  self.name = name
76
94
  if run_cmds is not None:
77
95
  self.run_cmds = run_cmds
96
+ if s3_folder is not None:
97
+ self.s3_folder = s3_folder
78
98
  if snowflake is not None:
79
99
  self.snowflake = snowflake
80
100
  if writable is not None:
@@ -101,6 +121,48 @@ class Update(object):
101
121
 
102
122
  self._aws = aws
103
123
 
124
+ @property
125
+ def efs(self) -> 'V1EfsDataConnection':
126
+ """Gets the efs of this Update. # noqa: E501
127
+
128
+
129
+ :return: The efs of this Update. # noqa: E501
130
+ :rtype: V1EfsDataConnection
131
+ """
132
+ return self._efs
133
+
134
+ @efs.setter
135
+ def efs(self, efs: 'V1EfsDataConnection'):
136
+ """Sets the efs of this Update.
137
+
138
+
139
+ :param efs: The efs of this Update. # noqa: E501
140
+ :type: V1EfsDataConnection
141
+ """
142
+
143
+ self._efs = efs
144
+
145
+ @property
146
+ def efs_folder(self) -> 'V1EFSFolderDataConnection':
147
+ """Gets the efs_folder of this Update. # noqa: E501
148
+
149
+
150
+ :return: The efs_folder of this Update. # noqa: E501
151
+ :rtype: V1EFSFolderDataConnection
152
+ """
153
+ return self._efs_folder
154
+
155
+ @efs_folder.setter
156
+ def efs_folder(self, efs_folder: 'V1EFSFolderDataConnection'):
157
+ """Sets the efs_folder of this Update.
158
+
159
+
160
+ :param efs_folder: The efs_folder of this Update. # noqa: E501
161
+ :type: V1EFSFolderDataConnection
162
+ """
163
+
164
+ self._efs_folder = efs_folder
165
+
104
166
  @property
105
167
  def gcp(self) -> 'V1GcpDataConnection':
106
168
  """Gets the gcp of this Update. # noqa: E501
@@ -122,6 +184,27 @@ class Update(object):
122
184
 
123
185
  self._gcp = gcp
124
186
 
187
+ @property
188
+ def gcs_folder(self) -> 'V1GCSFolderDataConnection':
189
+ """Gets the gcs_folder of this Update. # noqa: E501
190
+
191
+
192
+ :return: The gcs_folder of this Update. # noqa: E501
193
+ :rtype: V1GCSFolderDataConnection
194
+ """
195
+ return self._gcs_folder
196
+
197
+ @gcs_folder.setter
198
+ def gcs_folder(self, gcs_folder: 'V1GCSFolderDataConnection'):
199
+ """Sets the gcs_folder of this Update.
200
+
201
+
202
+ :param gcs_folder: The gcs_folder of this Update. # noqa: E501
203
+ :type: V1GCSFolderDataConnection
204
+ """
205
+
206
+ self._gcs_folder = gcs_folder
207
+
125
208
  @property
126
209
  def name(self) -> 'str':
127
210
  """Gets the name of this Update. # noqa: E501
@@ -164,6 +247,27 @@ class Update(object):
164
247
 
165
248
  self._run_cmds = run_cmds
166
249
 
250
+ @property
251
+ def s3_folder(self) -> 'V1S3FolderDataConnection':
252
+ """Gets the s3_folder of this Update. # noqa: E501
253
+
254
+
255
+ :return: The s3_folder of this Update. # noqa: E501
256
+ :rtype: V1S3FolderDataConnection
257
+ """
258
+ return self._s3_folder
259
+
260
+ @s3_folder.setter
261
+ def s3_folder(self, s3_folder: 'V1S3FolderDataConnection'):
262
+ """Sets the s3_folder of this Update.
263
+
264
+
265
+ :param s3_folder: The s3_folder of this Update. # noqa: E501
266
+ :type: V1S3FolderDataConnection
267
+ """
268
+
269
+ self._s3_folder = s3_folder
270
+
167
271
  @property
168
272
  def snowflake(self) -> 'V1SnowflakeDataConnection':
169
273
  """Gets the snowflake of this Update. # noqa: E501
@@ -47,6 +47,9 @@ class V1AffiliateLink(object):
47
47
  'id': 'str',
48
48
  'max_uses': 'int',
49
49
  'name': 'str',
50
+ 'referred_incentives': 'dict(str, str)',
51
+ 'skip_waitlist': 'bool',
52
+ 'type': 'str',
50
53
  'updated_at': 'datetime',
51
54
  'url': 'str',
52
55
  'usage_count': 'int',
@@ -60,13 +63,16 @@ class V1AffiliateLink(object):
60
63
  'id': 'id',
61
64
  'max_uses': 'maxUses',
62
65
  'name': 'name',
66
+ 'referred_incentives': 'referredIncentives',
67
+ 'skip_waitlist': 'skipWaitlist',
68
+ 'type': 'type',
63
69
  'updated_at': 'updatedAt',
64
70
  'url': 'url',
65
71
  'usage_count': 'usageCount',
66
72
  'user_id': 'userId'
67
73
  }
68
74
 
69
- def __init__(self, code: 'str' =None, created_at: 'datetime' =None, expires_at: 'datetime' =None, id: 'str' =None, max_uses: 'int' =None, name: 'str' =None, updated_at: 'datetime' =None, url: 'str' =None, usage_count: 'int' =None, user_id: 'str' =None): # noqa: E501
75
+ def __init__(self, code: 'str' =None, created_at: 'datetime' =None, expires_at: 'datetime' =None, id: 'str' =None, max_uses: 'int' =None, name: 'str' =None, referred_incentives: 'dict(str, str)' =None, skip_waitlist: 'bool' =None, type: 'str' =None, updated_at: 'datetime' =None, url: 'str' =None, usage_count: 'int' =None, user_id: 'str' =None): # noqa: E501
70
76
  """V1AffiliateLink - a model defined in Swagger""" # noqa: E501
71
77
  self._code = None
72
78
  self._created_at = None
@@ -74,6 +80,9 @@ class V1AffiliateLink(object):
74
80
  self._id = None
75
81
  self._max_uses = None
76
82
  self._name = None
83
+ self._referred_incentives = None
84
+ self._skip_waitlist = None
85
+ self._type = None
77
86
  self._updated_at = None
78
87
  self._url = None
79
88
  self._usage_count = None
@@ -91,6 +100,12 @@ class V1AffiliateLink(object):
91
100
  self.max_uses = max_uses
92
101
  if name is not None:
93
102
  self.name = name
103
+ if referred_incentives is not None:
104
+ self.referred_incentives = referred_incentives
105
+ if skip_waitlist is not None:
106
+ self.skip_waitlist = skip_waitlist
107
+ if type is not None:
108
+ self.type = type
94
109
  if updated_at is not None:
95
110
  self.updated_at = updated_at
96
111
  if url is not None:
@@ -226,6 +241,69 @@ class V1AffiliateLink(object):
226
241
 
227
242
  self._name = name
228
243
 
244
+ @property
245
+ def referred_incentives(self) -> 'dict(str, str)':
246
+ """Gets the referred_incentives of this V1AffiliateLink. # noqa: E501
247
+
248
+
249
+ :return: The referred_incentives of this V1AffiliateLink. # noqa: E501
250
+ :rtype: dict(str, str)
251
+ """
252
+ return self._referred_incentives
253
+
254
+ @referred_incentives.setter
255
+ def referred_incentives(self, referred_incentives: 'dict(str, str)'):
256
+ """Sets the referred_incentives of this V1AffiliateLink.
257
+
258
+
259
+ :param referred_incentives: The referred_incentives of this V1AffiliateLink. # noqa: E501
260
+ :type: dict(str, str)
261
+ """
262
+
263
+ self._referred_incentives = referred_incentives
264
+
265
+ @property
266
+ def skip_waitlist(self) -> 'bool':
267
+ """Gets the skip_waitlist of this V1AffiliateLink. # noqa: E501
268
+
269
+
270
+ :return: The skip_waitlist of this V1AffiliateLink. # noqa: E501
271
+ :rtype: bool
272
+ """
273
+ return self._skip_waitlist
274
+
275
+ @skip_waitlist.setter
276
+ def skip_waitlist(self, skip_waitlist: 'bool'):
277
+ """Sets the skip_waitlist of this V1AffiliateLink.
278
+
279
+
280
+ :param skip_waitlist: The skip_waitlist of this V1AffiliateLink. # noqa: E501
281
+ :type: bool
282
+ """
283
+
284
+ self._skip_waitlist = skip_waitlist
285
+
286
+ @property
287
+ def type(self) -> 'str':
288
+ """Gets the type of this V1AffiliateLink. # noqa: E501
289
+
290
+
291
+ :return: The type of this V1AffiliateLink. # noqa: E501
292
+ :rtype: str
293
+ """
294
+ return self._type
295
+
296
+ @type.setter
297
+ def type(self, type: 'str'):
298
+ """Sets the type of this V1AffiliateLink.
299
+
300
+
301
+ :param type: The type of this V1AffiliateLink. # noqa: E501
302
+ :type: str
303
+ """
304
+
305
+ self._type = type
306
+
229
307
  @property
230
308
  def updated_at(self) -> 'datetime':
231
309
  """Gets the updated_at of this V1AffiliateLink. # noqa: E501
@@ -0,0 +1,104 @@
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 V1AppType(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
+ """
38
+ allowed enum values
39
+ """
40
+ JOB = "APP_TYPE_JOB"
41
+ MMT = "APP_TYPE_MMT"
42
+ DATA_PREP = "APP_TYPE_DATA_PREP"
43
+ """
44
+ Attributes:
45
+ swagger_types (dict): The key is attribute name
46
+ and the value is attribute type.
47
+ attribute_map (dict): The key is attribute name
48
+ and the value is json key in definition.
49
+ """
50
+ swagger_types = {
51
+ }
52
+
53
+ attribute_map = {
54
+ }
55
+
56
+ def __init__(self): # noqa: E501
57
+ """V1AppType - a model defined in Swagger""" # noqa: E501
58
+ self.discriminator = None
59
+
60
+ def to_dict(self) -> dict:
61
+ """Returns the model properties as a dict"""
62
+ result = {}
63
+
64
+ for attr, _ in six.iteritems(self.swagger_types):
65
+ value = getattr(self, attr)
66
+ if isinstance(value, list):
67
+ result[attr] = list(map(
68
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
69
+ value
70
+ ))
71
+ elif hasattr(value, "to_dict"):
72
+ result[attr] = value.to_dict()
73
+ elif isinstance(value, dict):
74
+ result[attr] = dict(map(
75
+ lambda item: (item[0], item[1].to_dict())
76
+ if hasattr(item[1], "to_dict") else item,
77
+ value.items()
78
+ ))
79
+ else:
80
+ result[attr] = value
81
+ if issubclass(V1AppType, dict):
82
+ for key, value in self.items():
83
+ result[key] = value
84
+
85
+ return result
86
+
87
+ def to_str(self) -> str:
88
+ """Returns the string representation of the model"""
89
+ return pprint.pformat(self.to_dict())
90
+
91
+ def __repr__(self) -> str:
92
+ """For `print` and `pprint`"""
93
+ return self.to_str()
94
+
95
+ def __eq__(self, other: 'V1AppType') -> bool:
96
+ """Returns true if both objects are equal"""
97
+ if not isinstance(other, V1AppType):
98
+ return False
99
+
100
+ return self.__dict__ == other.__dict__
101
+
102
+ def __ne__(self, other: 'V1AppType') -> bool:
103
+ """Returns true if both objects are not equal"""
104
+ return not self == other
@@ -63,6 +63,7 @@ class V1ClusterAccelerator(object):
63
63
  'is_tier_restricted': 'bool',
64
64
  'local_disk_size': 'str',
65
65
  'local_disk_supported': 'bool',
66
+ 'max_available_quota': 'str',
66
67
  'non_spot': 'bool',
67
68
  'quota_checked_at': 'datetime',
68
69
  'quota_code': 'str',
@@ -101,6 +102,7 @@ class V1ClusterAccelerator(object):
101
102
  'is_tier_restricted': 'isTierRestricted',
102
103
  'local_disk_size': 'localDiskSize',
103
104
  'local_disk_supported': 'localDiskSupported',
105
+ 'max_available_quota': 'maxAvailableQuota',
104
106
  'non_spot': 'nonSpot',
105
107
  'quota_checked_at': 'quotaCheckedAt',
106
108
  'quota_code': 'quotaCode',
@@ -116,7 +118,7 @@ class V1ClusterAccelerator(object):
116
118
  'spot_price': 'spotPrice'
117
119
  }
118
120
 
119
- def __init__(self, accelerator_type: 'str' =None, allowed_resources: 'list[str]' =None, available_in_seconds: 'str' =None, available_in_seconds_spot: 'str' =None, available_zones: 'list[str]' =None, byoc_only: 'bool' =None, capacity_block_only: 'bool' =None, capacity_block_price: 'float' =None, capacity_blocks_available: 'list[V1ClusterCapacityReservation]' =None, cluster_id: 'str' =None, cost: 'float' =None, detailed_quotas_info: 'list[V1AcceleratorQuotaInfo]' =None, device_card: 'str' =None, device_info: 'str' =None, display_name: 'str' =None, enabled: 'bool' =None, family: 'str' =None, instance_id: 'str' =None, is_custom: 'bool' =None, is_tier_restricted: 'bool' =None, local_disk_size: 'str' =None, local_disk_supported: 'bool' =None, non_spot: 'bool' =None, quota_checked_at: 'datetime' =None, quota_code: 'str' =None, quota_name: 'str' =None, quota_page_url: 'str' =None, quota_service_code: 'str' =None, quota_utilization: 'str' =None, quota_value: 'str' =None, reservable: 'bool' =None, reservation_available_zones: 'list[str]' =None, resources: 'V1Resources' =None, slug: 'str' =None, spot_price: 'float' =None): # noqa: E501
121
+ def __init__(self, accelerator_type: 'str' =None, allowed_resources: 'list[str]' =None, available_in_seconds: 'str' =None, available_in_seconds_spot: 'str' =None, available_zones: 'list[str]' =None, byoc_only: 'bool' =None, capacity_block_only: 'bool' =None, capacity_block_price: 'float' =None, capacity_blocks_available: 'list[V1ClusterCapacityReservation]' =None, cluster_id: 'str' =None, cost: 'float' =None, detailed_quotas_info: 'list[V1AcceleratorQuotaInfo]' =None, device_card: 'str' =None, device_info: 'str' =None, display_name: 'str' =None, enabled: 'bool' =None, family: 'str' =None, instance_id: 'str' =None, is_custom: 'bool' =None, is_tier_restricted: 'bool' =None, local_disk_size: 'str' =None, local_disk_supported: 'bool' =None, max_available_quota: 'str' =None, non_spot: 'bool' =None, quota_checked_at: 'datetime' =None, quota_code: 'str' =None, quota_name: 'str' =None, quota_page_url: 'str' =None, quota_service_code: 'str' =None, quota_utilization: 'str' =None, quota_value: 'str' =None, reservable: 'bool' =None, reservation_available_zones: 'list[str]' =None, resources: 'V1Resources' =None, slug: 'str' =None, spot_price: 'float' =None): # noqa: E501
120
122
  """V1ClusterAccelerator - a model defined in Swagger""" # noqa: E501
121
123
  self._accelerator_type = None
122
124
  self._allowed_resources = None
@@ -140,6 +142,7 @@ class V1ClusterAccelerator(object):
140
142
  self._is_tier_restricted = None
141
143
  self._local_disk_size = None
142
144
  self._local_disk_supported = None
145
+ self._max_available_quota = None
143
146
  self._non_spot = None
144
147
  self._quota_checked_at = None
145
148
  self._quota_code = None
@@ -198,6 +201,8 @@ class V1ClusterAccelerator(object):
198
201
  self.local_disk_size = local_disk_size
199
202
  if local_disk_supported is not None:
200
203
  self.local_disk_supported = local_disk_supported
204
+ if max_available_quota is not None:
205
+ self.max_available_quota = max_available_quota
201
206
  if non_spot is not None:
202
207
  self.non_spot = non_spot
203
208
  if quota_checked_at is not None:
@@ -687,6 +692,27 @@ class V1ClusterAccelerator(object):
687
692
 
688
693
  self._local_disk_supported = local_disk_supported
689
694
 
695
+ @property
696
+ def max_available_quota(self) -> 'str':
697
+ """Gets the max_available_quota of this V1ClusterAccelerator. # noqa: E501
698
+
699
+
700
+ :return: The max_available_quota of this V1ClusterAccelerator. # noqa: E501
701
+ :rtype: str
702
+ """
703
+ return self._max_available_quota
704
+
705
+ @max_available_quota.setter
706
+ def max_available_quota(self, max_available_quota: 'str'):
707
+ """Sets the max_available_quota of this V1ClusterAccelerator.
708
+
709
+
710
+ :param max_available_quota: The max_available_quota of this V1ClusterAccelerator. # noqa: E501
711
+ :type: str
712
+ """
713
+
714
+ self._max_available_quota = max_available_quota
715
+
690
716
  @property
691
717
  def non_spot(self) -> 'bool':
692
718
  """Gets the non_spot of this V1ClusterAccelerator. # noqa: E501