lightning-sdk 0.2.4__py3-none-any.whl → 0.2.5__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 (103) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/ai_hub.py +3 -1
  3. lightning_sdk/api/ai_hub_api.py +15 -0
  4. lightning_sdk/api/studio_api.py +0 -8
  5. lightning_sdk/deployment/deployment.py +32 -4
  6. lightning_sdk/lightning_cloud/openapi/__init__.py +49 -1
  7. lightning_sdk/lightning_cloud/openapi/api/__init__.py +4 -0
  8. lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +537 -0
  9. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +10 -6
  10. lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
  11. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +5 -1
  12. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +20 -20
  13. lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
  14. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +5 -1
  15. lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +573 -0
  16. lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
  17. lightning_sdk/lightning_cloud/openapi/models/__init__.py +45 -1
  18. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
  19. lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
  20. lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
  21. lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
  22. lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +227 -0
  23. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +69 -69
  24. lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
  25. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
  26. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +69 -17
  27. lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
  28. lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
  29. lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +17 -17
  30. lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +201 -0
  31. lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +383 -0
  32. lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +15 -15
  33. lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
  34. lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +124 -20
  36. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +2 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +253 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  41. lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
  42. lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +149 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/{v1_pipeline_schedule.py → v1_delete_cloud_space_environment_template_response.py} +32 -32
  49. lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_file_upload_urls_response.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +79 -27
  57. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_file.py +175 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +27 -1
  67. lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
  68. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +107 -3
  70. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
  71. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +69 -17
  72. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
  73. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
  74. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
  75. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
  76. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
  77. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
  78. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
  79. lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +435 -0
  80. lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +103 -0
  81. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
  82. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +58 -6
  83. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
  84. lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
  85. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  86. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -105
  87. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
  88. lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +203 -0
  89. lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
  90. lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
  91. lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
  92. lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
  93. lightning_sdk/lightning_cloud/rest_client.py +2 -0
  94. lightning_sdk/pipeline/types.py +28 -2
  95. lightning_sdk/pipeline/utils.py +1 -1
  96. lightning_sdk/plugin.py +0 -6
  97. lightning_sdk/utils/resolve.py +1 -0
  98. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.5.dist-info}/METADATA +1 -1
  99. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.5.dist-info}/RECORD +103 -55
  100. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.5.dist-info}/WHEEL +1 -1
  101. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.5.dist-info}/LICENSE +0 -0
  102. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.5.dist-info}/entry_points.txt +0 -0
  103. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.5.dist-info}/top_level.txt +0 -0
@@ -41,194 +41,60 @@ class V1SlurmNode(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'address': 'str',
45
- 'alloc_cpus': 'int',
46
- 'alloc_memory': 'str',
47
- 'architecture': 'str',
48
- 'cores': 'int',
44
+ 'count': 'int',
49
45
  'cpus': 'int',
50
- 'free_memory': 'str',
51
- 'gpu_type': 'str',
52
46
  'gpus': 'int',
53
- 'hostname': 'str',
54
- 'idle_cpus': 'int',
55
- 'name': 'str',
56
- 'operating_system': 'str',
57
- 'slurmd_version': 'str',
58
- 'state': 'str'
47
+ 'memory_mb': 'int',
48
+ 'name': 'str'
59
49
  }
60
50
 
61
51
  attribute_map = {
62
- 'address': 'address',
63
- 'alloc_cpus': 'allocCpus',
64
- 'alloc_memory': 'allocMemory',
65
- 'architecture': 'architecture',
66
- 'cores': 'cores',
52
+ 'count': 'count',
67
53
  'cpus': 'cpus',
68
- 'free_memory': 'freeMemory',
69
- 'gpu_type': 'gpuType',
70
54
  'gpus': 'gpus',
71
- 'hostname': 'hostname',
72
- 'idle_cpus': 'idleCpus',
73
- 'name': 'name',
74
- 'operating_system': 'operatingSystem',
75
- 'slurmd_version': 'slurmdVersion',
76
- 'state': 'state'
55
+ 'memory_mb': 'memoryMb',
56
+ 'name': 'name'
77
57
  }
78
58
 
79
- def __init__(self, address: 'str' =None, alloc_cpus: 'int' =None, alloc_memory: 'str' =None, architecture: 'str' =None, cores: 'int' =None, cpus: 'int' =None, free_memory: 'str' =None, gpu_type: 'str' =None, gpus: 'int' =None, hostname: 'str' =None, idle_cpus: 'int' =None, name: 'str' =None, operating_system: 'str' =None, slurmd_version: 'str' =None, state: 'str' =None): # noqa: E501
59
+ def __init__(self, count: 'int' =None, cpus: 'int' =None, gpus: 'int' =None, memory_mb: 'int' =None, name: 'str' =None): # noqa: E501
80
60
  """V1SlurmNode - a model defined in Swagger""" # noqa: E501
81
- self._address = None
82
- self._alloc_cpus = None
83
- self._alloc_memory = None
84
- self._architecture = None
85
- self._cores = None
61
+ self._count = None
86
62
  self._cpus = None
87
- self._free_memory = None
88
- self._gpu_type = None
89
63
  self._gpus = None
90
- self._hostname = None
91
- self._idle_cpus = None
64
+ self._memory_mb = None
92
65
  self._name = None
93
- self._operating_system = None
94
- self._slurmd_version = None
95
- self._state = None
96
66
  self.discriminator = None
97
- if address is not None:
98
- self.address = address
99
- if alloc_cpus is not None:
100
- self.alloc_cpus = alloc_cpus
101
- if alloc_memory is not None:
102
- self.alloc_memory = alloc_memory
103
- if architecture is not None:
104
- self.architecture = architecture
105
- if cores is not None:
106
- self.cores = cores
67
+ if count is not None:
68
+ self.count = count
107
69
  if cpus is not None:
108
70
  self.cpus = cpus
109
- if free_memory is not None:
110
- self.free_memory = free_memory
111
- if gpu_type is not None:
112
- self.gpu_type = gpu_type
113
71
  if gpus is not None:
114
72
  self.gpus = gpus
115
- if hostname is not None:
116
- self.hostname = hostname
117
- if idle_cpus is not None:
118
- self.idle_cpus = idle_cpus
73
+ if memory_mb is not None:
74
+ self.memory_mb = memory_mb
119
75
  if name is not None:
120
76
  self.name = name
121
- if operating_system is not None:
122
- self.operating_system = operating_system
123
- if slurmd_version is not None:
124
- self.slurmd_version = slurmd_version
125
- if state is not None:
126
- self.state = state
127
77
 
128
78
  @property
129
- def address(self) -> 'str':
130
- """Gets the address of this V1SlurmNode. # noqa: E501
79
+ def count(self) -> 'int':
80
+ """Gets the count of this V1SlurmNode. # noqa: E501
131
81
 
132
82
 
133
- :return: The address of this V1SlurmNode. # noqa: E501
134
- :rtype: str
135
- """
136
- return self._address
137
-
138
- @address.setter
139
- def address(self, address: 'str'):
140
- """Sets the address of this V1SlurmNode.
141
-
142
-
143
- :param address: The address of this V1SlurmNode. # noqa: E501
144
- :type: str
145
- """
146
-
147
- self._address = address
148
-
149
- @property
150
- def alloc_cpus(self) -> 'int':
151
- """Gets the alloc_cpus of this V1SlurmNode. # noqa: E501
152
-
153
-
154
- :return: The alloc_cpus of this V1SlurmNode. # noqa: E501
155
- :rtype: int
156
- """
157
- return self._alloc_cpus
158
-
159
- @alloc_cpus.setter
160
- def alloc_cpus(self, alloc_cpus: 'int'):
161
- """Sets the alloc_cpus of this V1SlurmNode.
162
-
163
-
164
- :param alloc_cpus: The alloc_cpus of this V1SlurmNode. # noqa: E501
165
- :type: int
166
- """
167
-
168
- self._alloc_cpus = alloc_cpus
169
-
170
- @property
171
- def alloc_memory(self) -> 'str':
172
- """Gets the alloc_memory of this V1SlurmNode. # noqa: E501
173
-
174
-
175
- :return: The alloc_memory of this V1SlurmNode. # noqa: E501
176
- :rtype: str
177
- """
178
- return self._alloc_memory
179
-
180
- @alloc_memory.setter
181
- def alloc_memory(self, alloc_memory: 'str'):
182
- """Sets the alloc_memory of this V1SlurmNode.
183
-
184
-
185
- :param alloc_memory: The alloc_memory of this V1SlurmNode. # noqa: E501
186
- :type: str
187
- """
188
-
189
- self._alloc_memory = alloc_memory
190
-
191
- @property
192
- def architecture(self) -> 'str':
193
- """Gets the architecture of this V1SlurmNode. # noqa: E501
194
-
195
-
196
- :return: The architecture of this V1SlurmNode. # noqa: E501
197
- :rtype: str
198
- """
199
- return self._architecture
200
-
201
- @architecture.setter
202
- def architecture(self, architecture: 'str'):
203
- """Sets the architecture of this V1SlurmNode.
204
-
205
-
206
- :param architecture: The architecture of this V1SlurmNode. # noqa: E501
207
- :type: str
208
- """
209
-
210
- self._architecture = architecture
211
-
212
- @property
213
- def cores(self) -> 'int':
214
- """Gets the cores of this V1SlurmNode. # noqa: E501
215
-
216
-
217
- :return: The cores of this V1SlurmNode. # noqa: E501
83
+ :return: The count of this V1SlurmNode. # noqa: E501
218
84
  :rtype: int
219
85
  """
220
- return self._cores
86
+ return self._count
221
87
 
222
- @cores.setter
223
- def cores(self, cores: 'int'):
224
- """Sets the cores of this V1SlurmNode.
88
+ @count.setter
89
+ def count(self, count: 'int'):
90
+ """Sets the count of this V1SlurmNode.
225
91
 
226
92
 
227
- :param cores: The cores of this V1SlurmNode. # noqa: E501
93
+ :param count: The count of this V1SlurmNode. # noqa: E501
228
94
  :type: int
229
95
  """
230
96
 
231
- self._cores = cores
97
+ self._count = count
232
98
 
233
99
  @property
234
100
  def cpus(self) -> 'int':
@@ -251,48 +117,6 @@ class V1SlurmNode(object):
251
117
 
252
118
  self._cpus = cpus
253
119
 
254
- @property
255
- def free_memory(self) -> 'str':
256
- """Gets the free_memory of this V1SlurmNode. # noqa: E501
257
-
258
-
259
- :return: The free_memory of this V1SlurmNode. # noqa: E501
260
- :rtype: str
261
- """
262
- return self._free_memory
263
-
264
- @free_memory.setter
265
- def free_memory(self, free_memory: 'str'):
266
- """Sets the free_memory of this V1SlurmNode.
267
-
268
-
269
- :param free_memory: The free_memory of this V1SlurmNode. # noqa: E501
270
- :type: str
271
- """
272
-
273
- self._free_memory = free_memory
274
-
275
- @property
276
- def gpu_type(self) -> 'str':
277
- """Gets the gpu_type of this V1SlurmNode. # noqa: E501
278
-
279
-
280
- :return: The gpu_type of this V1SlurmNode. # noqa: E501
281
- :rtype: str
282
- """
283
- return self._gpu_type
284
-
285
- @gpu_type.setter
286
- def gpu_type(self, gpu_type: 'str'):
287
- """Sets the gpu_type of this V1SlurmNode.
288
-
289
-
290
- :param gpu_type: The gpu_type of this V1SlurmNode. # noqa: E501
291
- :type: str
292
- """
293
-
294
- self._gpu_type = gpu_type
295
-
296
120
  @property
297
121
  def gpus(self) -> 'int':
298
122
  """Gets the gpus of this V1SlurmNode. # noqa: E501
@@ -315,46 +139,25 @@ class V1SlurmNode(object):
315
139
  self._gpus = gpus
316
140
 
317
141
  @property
318
- def hostname(self) -> 'str':
319
- """Gets the hostname of this V1SlurmNode. # noqa: E501
320
-
321
-
322
- :return: The hostname of this V1SlurmNode. # noqa: E501
323
- :rtype: str
324
- """
325
- return self._hostname
326
-
327
- @hostname.setter
328
- def hostname(self, hostname: 'str'):
329
- """Sets the hostname of this V1SlurmNode.
330
-
331
-
332
- :param hostname: The hostname of this V1SlurmNode. # noqa: E501
333
- :type: str
334
- """
335
-
336
- self._hostname = hostname
337
-
338
- @property
339
- def idle_cpus(self) -> 'int':
340
- """Gets the idle_cpus of this V1SlurmNode. # noqa: E501
142
+ def memory_mb(self) -> 'int':
143
+ """Gets the memory_mb of this V1SlurmNode. # noqa: E501
341
144
 
342
145
 
343
- :return: The idle_cpus of this V1SlurmNode. # noqa: E501
146
+ :return: The memory_mb of this V1SlurmNode. # noqa: E501
344
147
  :rtype: int
345
148
  """
346
- return self._idle_cpus
149
+ return self._memory_mb
347
150
 
348
- @idle_cpus.setter
349
- def idle_cpus(self, idle_cpus: 'int'):
350
- """Sets the idle_cpus of this V1SlurmNode.
151
+ @memory_mb.setter
152
+ def memory_mb(self, memory_mb: 'int'):
153
+ """Sets the memory_mb of this V1SlurmNode.
351
154
 
352
155
 
353
- :param idle_cpus: The idle_cpus of this V1SlurmNode. # noqa: E501
156
+ :param memory_mb: The memory_mb of this V1SlurmNode. # noqa: E501
354
157
  :type: int
355
158
  """
356
159
 
357
- self._idle_cpus = idle_cpus
160
+ self._memory_mb = memory_mb
358
161
 
359
162
  @property
360
163
  def name(self) -> 'str':
@@ -377,69 +180,6 @@ class V1SlurmNode(object):
377
180
 
378
181
  self._name = name
379
182
 
380
- @property
381
- def operating_system(self) -> 'str':
382
- """Gets the operating_system of this V1SlurmNode. # noqa: E501
383
-
384
-
385
- :return: The operating_system of this V1SlurmNode. # noqa: E501
386
- :rtype: str
387
- """
388
- return self._operating_system
389
-
390
- @operating_system.setter
391
- def operating_system(self, operating_system: 'str'):
392
- """Sets the operating_system of this V1SlurmNode.
393
-
394
-
395
- :param operating_system: The operating_system of this V1SlurmNode. # noqa: E501
396
- :type: str
397
- """
398
-
399
- self._operating_system = operating_system
400
-
401
- @property
402
- def slurmd_version(self) -> 'str':
403
- """Gets the slurmd_version of this V1SlurmNode. # noqa: E501
404
-
405
-
406
- :return: The slurmd_version of this V1SlurmNode. # noqa: E501
407
- :rtype: str
408
- """
409
- return self._slurmd_version
410
-
411
- @slurmd_version.setter
412
- def slurmd_version(self, slurmd_version: 'str'):
413
- """Sets the slurmd_version of this V1SlurmNode.
414
-
415
-
416
- :param slurmd_version: The slurmd_version of this V1SlurmNode. # noqa: E501
417
- :type: str
418
- """
419
-
420
- self._slurmd_version = slurmd_version
421
-
422
- @property
423
- def state(self) -> 'str':
424
- """Gets the state of this V1SlurmNode. # noqa: E501
425
-
426
-
427
- :return: The state of this V1SlurmNode. # noqa: E501
428
- :rtype: str
429
- """
430
- return self._state
431
-
432
- @state.setter
433
- def state(self, state: 'str'):
434
- """Sets the state of this V1SlurmNode.
435
-
436
-
437
- :param state: The state of this V1SlurmNode. # noqa: E501
438
- :type: str
439
- """
440
-
441
- self._state = state
442
-
443
183
  def to_dict(self) -> dict:
444
184
  """Returns the model properties as a dict"""
445
185
  result = {}
@@ -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 V1UpdateLitDatasetVisibilityResponse(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
+ 'visibility': 'V1ResourceVisibility'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'visibility': 'visibility'
49
+ }
50
+
51
+ def __init__(self, visibility: 'V1ResourceVisibility' =None): # noqa: E501
52
+ """V1UpdateLitDatasetVisibilityResponse - a model defined in Swagger""" # noqa: E501
53
+ self._visibility = None
54
+ self.discriminator = None
55
+ if visibility is not None:
56
+ self.visibility = visibility
57
+
58
+ @property
59
+ def visibility(self) -> 'V1ResourceVisibility':
60
+ """Gets the visibility of this V1UpdateLitDatasetVisibilityResponse. # noqa: E501
61
+
62
+
63
+ :return: The visibility of this V1UpdateLitDatasetVisibilityResponse. # noqa: E501
64
+ :rtype: V1ResourceVisibility
65
+ """
66
+ return self._visibility
67
+
68
+ @visibility.setter
69
+ def visibility(self, visibility: 'V1ResourceVisibility'):
70
+ """Sets the visibility of this V1UpdateLitDatasetVisibilityResponse.
71
+
72
+
73
+ :param visibility: The visibility of this V1UpdateLitDatasetVisibilityResponse. # noqa: E501
74
+ :type: V1ResourceVisibility
75
+ """
76
+
77
+ self._visibility = visibility
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(V1UpdateLitDatasetVisibilityResponse, 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: 'V1UpdateLitDatasetVisibilityResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1UpdateLitDatasetVisibilityResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1UpdateLitDatasetVisibilityResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -45,6 +45,7 @@ class V1UpdateUserRequest(object):
45
45
  'complete_sign_up': 'bool',
46
46
  'completed_project_onboarding': 'bool',
47
47
  'country': 'str',
48
+ 'discounted_pro_plan': 'bool',
48
49
  'email': 'str',
49
50
  'experimentation_id': 'str',
50
51
  'first_name': 'str',
@@ -71,6 +72,7 @@ class V1UpdateUserRequest(object):
71
72
  'complete_sign_up': 'completeSignUp',
72
73
  'completed_project_onboarding': 'completedProjectOnboarding',
73
74
  'country': 'country',
75
+ 'discounted_pro_plan': 'discountedProPlan',
74
76
  'email': 'email',
75
77
  'experimentation_id': 'experimentationId',
76
78
  'first_name': 'firstName',
@@ -92,12 +94,13 @@ class V1UpdateUserRequest(object):
92
94
  'website': 'website'
93
95
  }
94
96
 
95
- def __init__(self, agree_to_terms_and_conditions: 'bool' =None, complete_sign_up: 'bool' =None, completed_project_onboarding: 'bool' =None, country: 'str' =None, email: 'str' =None, experimentation_id: 'str' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, user_metadata: 'str' =None, username: 'str' =None, website: 'str' =None): # noqa: E501
97
+ def __init__(self, agree_to_terms_and_conditions: 'bool' =None, complete_sign_up: 'bool' =None, completed_project_onboarding: 'bool' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, user_metadata: 'str' =None, username: 'str' =None, website: 'str' =None): # noqa: E501
96
98
  """V1UpdateUserRequest - a model defined in Swagger""" # noqa: E501
97
99
  self._agree_to_terms_and_conditions = None
98
100
  self._complete_sign_up = None
99
101
  self._completed_project_onboarding = None
100
102
  self._country = None
103
+ self._discounted_pro_plan = None
101
104
  self._email = None
102
105
  self._experimentation_id = None
103
106
  self._first_name = None
@@ -126,6 +129,8 @@ class V1UpdateUserRequest(object):
126
129
  self.completed_project_onboarding = completed_project_onboarding
127
130
  if country is not None:
128
131
  self.country = country
132
+ if discounted_pro_plan is not None:
133
+ self.discounted_pro_plan = discounted_pro_plan
129
134
  if email is not None:
130
135
  self.email = email
131
136
  if experimentation_id is not None:
@@ -249,6 +254,27 @@ class V1UpdateUserRequest(object):
249
254
 
250
255
  self._country = country
251
256
 
257
+ @property
258
+ def discounted_pro_plan(self) -> 'bool':
259
+ """Gets the discounted_pro_plan of this V1UpdateUserRequest. # noqa: E501
260
+
261
+
262
+ :return: The discounted_pro_plan of this V1UpdateUserRequest. # noqa: E501
263
+ :rtype: bool
264
+ """
265
+ return self._discounted_pro_plan
266
+
267
+ @discounted_pro_plan.setter
268
+ def discounted_pro_plan(self, discounted_pro_plan: 'bool'):
269
+ """Sets the discounted_pro_plan of this V1UpdateUserRequest.
270
+
271
+
272
+ :param discounted_pro_plan: The discounted_pro_plan of this V1UpdateUserRequest. # noqa: E501
273
+ :type: bool
274
+ """
275
+
276
+ self._discounted_pro_plan = discounted_pro_plan
277
+
252
278
  @property
253
279
  def email(self) -> 'str':
254
280
  """Gets the email of this V1UpdateUserRequest. # noqa: E501