lightning-sdk 0.1.36__py3-none-any.whl → 0.1.38__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 +1 -1
  2. lightning_sdk/ai_hub.py +38 -31
  3. lightning_sdk/api/ai_hub_api.py +29 -4
  4. lightning_sdk/api/job_api.py +6 -2
  5. lightning_sdk/api/teamspace_api.py +18 -14
  6. lightning_sdk/api/utils.py +19 -0
  7. lightning_sdk/cli/ai_hub.py +1 -1
  8. lightning_sdk/cli/entrypoint.py +2 -2
  9. lightning_sdk/cli/models.py +45 -15
  10. lightning_sdk/cli/run.py +80 -0
  11. lightning_sdk/job/base.py +61 -20
  12. lightning_sdk/job/job.py +29 -11
  13. lightning_sdk/job/v1.py +14 -10
  14. lightning_sdk/job/v2.py +10 -6
  15. lightning_sdk/lightning_cloud/openapi/__init__.py +13 -2
  16. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -1
  17. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +680 -62
  18. lightning_sdk/lightning_cloud/openapi/models/__init__.py +13 -2
  19. lightning_sdk/lightning_cloud/openapi/models/create.py +6 -32
  20. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  21. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  22. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +32 -6
  23. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/multimachinejobs_id_body.py +123 -0
  25. lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +53 -1
  26. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/project_id_multimachinejobs_body.py +201 -0
  28. lightning_sdk/lightning_cloud/openapi/models/update.py +6 -32
  29. lightning_sdk/lightning_cloud/openapi/models/v1_api_pricing_spec.py +149 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_checkbox.py +29 -3
  31. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +32 -6
  33. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +6 -32
  34. lightning_sdk/lightning_cloud/openapi/models/v1_delete_multi_machine_job_response.py +97 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  36. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +43 -17
  37. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_performance.py +305 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +32 -6
  39. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +27 -1
  40. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/{v1_efs_data_connection.py → v1_efs_config.py} +22 -22
  43. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +53 -27
  45. lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
  46. lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +125 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_jobs_response.py +123 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_machines_selector.py +149 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_message.py +6 -6
  51. lightning_sdk/lightning_cloud/openapi/models/v1_message_content.py +6 -6
  52. lightning_sdk/lightning_cloud/openapi/models/v1_message_content_type.py +103 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +53 -1
  54. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +383 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +108 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_status.py +279 -0
  57. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +2 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_select.py +29 -3
  59. lightning_sdk/lightning_cloud/openapi/models/v1_system_info.py +27 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +131 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +6 -32
  63. lightning_sdk/lightning_cloud/openapi/models/validate.py +6 -32
  64. lightning_sdk/teamspace.py +5 -0
  65. {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.38.dist-info}/METADATA +1 -1
  66. {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.38.dist-info}/RECORD +70 -58
  67. lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +0 -201
  68. {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.38.dist-info}/LICENSE +0 -0
  69. {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.38.dist-info}/WHEEL +0 -0
  70. {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.38.dist-info}/entry_points.txt +0 -0
  71. {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.38.dist-info}/top_level.txt +0 -0
@@ -50,10 +50,12 @@ class ProjectIdAgentsBody(object):
50
50
  'knowledge': 'str',
51
51
  'knowledge_configuration': 'V1KnowledgeConfiguration',
52
52
  'model': 'str',
53
+ 'model_provider': 'str',
53
54
  'name': 'str',
54
55
  'org_id': 'str',
55
56
  'prompt_suggestions': 'list[V1PromptSuggestion]',
56
57
  'prompt_template': 'str',
58
+ 'publish_status': 'str',
57
59
  'thumbnail_url': 'str'
58
60
  }
59
61
 
@@ -67,14 +69,16 @@ class ProjectIdAgentsBody(object):
67
69
  'knowledge': 'knowledge',
68
70
  'knowledge_configuration': 'knowledgeConfiguration',
69
71
  'model': 'model',
72
+ 'model_provider': 'modelProvider',
70
73
  'name': 'name',
71
74
  'org_id': 'orgId',
72
75
  'prompt_suggestions': 'promptSuggestions',
73
76
  'prompt_template': 'promptTemplate',
77
+ 'publish_status': 'publishStatus',
74
78
  'thumbnail_url': 'thumbnailUrl'
75
79
  }
76
80
 
77
- def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, description: 'str' =None, endpoint: 'V1Endpoint' =None, file_uploads_enabled: 'bool' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, model: 'str' =None, name: 'str' =None, org_id: 'str' =None, prompt_suggestions: 'list[V1PromptSuggestion]' =None, prompt_template: 'str' =None, thumbnail_url: 'str' =None): # noqa: E501
81
+ def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, description: 'str' =None, endpoint: 'V1Endpoint' =None, file_uploads_enabled: 'bool' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, model: 'str' =None, model_provider: 'str' =None, name: 'str' =None, org_id: 'str' =None, prompt_suggestions: 'list[V1PromptSuggestion]' =None, prompt_template: 'str' =None, publish_status: 'str' =None, thumbnail_url: 'str' =None): # noqa: E501
78
82
  """ProjectIdAgentsBody - a model defined in Swagger""" # noqa: E501
79
83
  self._cloudspace_id = None
80
84
  self._cluster_id = None
@@ -85,10 +89,12 @@ class ProjectIdAgentsBody(object):
85
89
  self._knowledge = None
86
90
  self._knowledge_configuration = None
87
91
  self._model = None
92
+ self._model_provider = None
88
93
  self._name = None
89
94
  self._org_id = None
90
95
  self._prompt_suggestions = None
91
96
  self._prompt_template = None
97
+ self._publish_status = None
92
98
  self._thumbnail_url = None
93
99
  self.discriminator = None
94
100
  if cloudspace_id is not None:
@@ -109,6 +115,8 @@ class ProjectIdAgentsBody(object):
109
115
  self.knowledge_configuration = knowledge_configuration
110
116
  if model is not None:
111
117
  self.model = model
118
+ if model_provider is not None:
119
+ self.model_provider = model_provider
112
120
  if name is not None:
113
121
  self.name = name
114
122
  if org_id is not None:
@@ -117,6 +125,8 @@ class ProjectIdAgentsBody(object):
117
125
  self.prompt_suggestions = prompt_suggestions
118
126
  if prompt_template is not None:
119
127
  self.prompt_template = prompt_template
128
+ if publish_status is not None:
129
+ self.publish_status = publish_status
120
130
  if thumbnail_url is not None:
121
131
  self.thumbnail_url = thumbnail_url
122
132
 
@@ -309,6 +319,27 @@ class ProjectIdAgentsBody(object):
309
319
 
310
320
  self._model = model
311
321
 
322
+ @property
323
+ def model_provider(self) -> 'str':
324
+ """Gets the model_provider of this ProjectIdAgentsBody. # noqa: E501
325
+
326
+
327
+ :return: The model_provider of this ProjectIdAgentsBody. # noqa: E501
328
+ :rtype: str
329
+ """
330
+ return self._model_provider
331
+
332
+ @model_provider.setter
333
+ def model_provider(self, model_provider: 'str'):
334
+ """Sets the model_provider of this ProjectIdAgentsBody.
335
+
336
+
337
+ :param model_provider: The model_provider of this ProjectIdAgentsBody. # noqa: E501
338
+ :type: str
339
+ """
340
+
341
+ self._model_provider = model_provider
342
+
312
343
  @property
313
344
  def name(self) -> 'str':
314
345
  """Gets the name of this ProjectIdAgentsBody. # noqa: E501
@@ -393,6 +424,27 @@ class ProjectIdAgentsBody(object):
393
424
 
394
425
  self._prompt_template = prompt_template
395
426
 
427
+ @property
428
+ def publish_status(self) -> 'str':
429
+ """Gets the publish_status of this ProjectIdAgentsBody. # noqa: E501
430
+
431
+
432
+ :return: The publish_status of this ProjectIdAgentsBody. # noqa: E501
433
+ :rtype: str
434
+ """
435
+ return self._publish_status
436
+
437
+ @publish_status.setter
438
+ def publish_status(self, publish_status: 'str'):
439
+ """Sets the publish_status of this ProjectIdAgentsBody.
440
+
441
+
442
+ :param publish_status: The publish_status of this ProjectIdAgentsBody. # noqa: E501
443
+ :type: str
444
+ """
445
+
446
+ self._publish_status = publish_status
447
+
396
448
  @property
397
449
  def thumbnail_url(self) -> 'str':
398
450
  """Gets the thumbnail_url of this ProjectIdAgentsBody. # noqa: E501
@@ -50,6 +50,7 @@ class ProjectIdCloudspacesBody(object):
50
50
  'disk_size': 'str',
51
51
  'display_name': 'str',
52
52
  'name': 'str',
53
+ 'requested_run_duration_seconds': 'str',
53
54
  'seed_files': 'list[V1CloudSpaceSeedFile]',
54
55
  'spot': 'bool'
55
56
  }
@@ -64,11 +65,12 @@ class ProjectIdCloudspacesBody(object):
64
65
  'disk_size': 'diskSize',
65
66
  'display_name': 'displayName',
66
67
  'name': 'name',
68
+ 'requested_run_duration_seconds': 'requestedRunDurationSeconds',
67
69
  'seed_files': 'seedFiles',
68
70
  'spot': 'spot'
69
71
  }
70
72
 
71
- def __init__(self, can_download_source_code: 'bool' =None, cloud_space_instance_cpu_image_override: 'str' =None, cloud_space_instance_gpu_image_override: 'str' =None, cluster_id: 'str' =None, compute_name: 'str' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, disk_size: 'str' =None, display_name: 'str' =None, name: 'str' =None, seed_files: 'list[V1CloudSpaceSeedFile]' =None, spot: 'bool' =None): # noqa: E501
73
+ def __init__(self, can_download_source_code: 'bool' =None, cloud_space_instance_cpu_image_override: 'str' =None, cloud_space_instance_gpu_image_override: 'str' =None, cluster_id: 'str' =None, compute_name: 'str' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, disk_size: 'str' =None, display_name: 'str' =None, name: 'str' =None, requested_run_duration_seconds: 'str' =None, seed_files: 'list[V1CloudSpaceSeedFile]' =None, spot: 'bool' =None): # noqa: E501
72
74
  """ProjectIdCloudspacesBody - a model defined in Swagger""" # noqa: E501
73
75
  self._can_download_source_code = None
74
76
  self._cloud_space_instance_cpu_image_override = None
@@ -79,6 +81,7 @@ class ProjectIdCloudspacesBody(object):
79
81
  self._disk_size = None
80
82
  self._display_name = None
81
83
  self._name = None
84
+ self._requested_run_duration_seconds = None
82
85
  self._seed_files = None
83
86
  self._spot = None
84
87
  self.discriminator = None
@@ -100,6 +103,8 @@ class ProjectIdCloudspacesBody(object):
100
103
  self.display_name = display_name
101
104
  if name is not None:
102
105
  self.name = name
106
+ if requested_run_duration_seconds is not None:
107
+ self.requested_run_duration_seconds = requested_run_duration_seconds
103
108
  if seed_files is not None:
104
109
  self.seed_files = seed_files
105
110
  if spot is not None:
@@ -294,6 +299,27 @@ class ProjectIdCloudspacesBody(object):
294
299
 
295
300
  self._name = name
296
301
 
302
+ @property
303
+ def requested_run_duration_seconds(self) -> 'str':
304
+ """Gets the requested_run_duration_seconds of this ProjectIdCloudspacesBody. # noqa: E501
305
+
306
+
307
+ :return: The requested_run_duration_seconds of this ProjectIdCloudspacesBody. # noqa: E501
308
+ :rtype: str
309
+ """
310
+ return self._requested_run_duration_seconds
311
+
312
+ @requested_run_duration_seconds.setter
313
+ def requested_run_duration_seconds(self, requested_run_duration_seconds: 'str'):
314
+ """Sets the requested_run_duration_seconds of this ProjectIdCloudspacesBody.
315
+
316
+
317
+ :param requested_run_duration_seconds: The requested_run_duration_seconds of this ProjectIdCloudspacesBody. # noqa: E501
318
+ :type: str
319
+ """
320
+
321
+ self._requested_run_duration_seconds = requested_run_duration_seconds
322
+
297
323
  @property
298
324
  def seed_files(self) -> 'list[V1CloudSpaceSeedFile]':
299
325
  """Gets the seed_files of this ProjectIdCloudspacesBody. # noqa: E501
@@ -0,0 +1,201 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class ProjectIdMultimachinejobsBody(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
+ 'machines': 'int',
46
+ 'name': 'str',
47
+ 'spec': 'V1JobSpec'
48
+ }
49
+
50
+ attribute_map = {
51
+ 'cluster_id': 'clusterId',
52
+ 'machines': 'machines',
53
+ 'name': 'name',
54
+ 'spec': 'spec'
55
+ }
56
+
57
+ def __init__(self, cluster_id: 'str' =None, machines: 'int' =None, name: 'str' =None, spec: 'V1JobSpec' =None): # noqa: E501
58
+ """ProjectIdMultimachinejobsBody - a model defined in Swagger""" # noqa: E501
59
+ self._cluster_id = None
60
+ self._machines = None
61
+ self._name = None
62
+ self._spec = None
63
+ self.discriminator = None
64
+ if cluster_id is not None:
65
+ self.cluster_id = cluster_id
66
+ if machines is not None:
67
+ self.machines = machines
68
+ if name is not None:
69
+ self.name = name
70
+ if spec is not None:
71
+ self.spec = spec
72
+
73
+ @property
74
+ def cluster_id(self) -> 'str':
75
+ """Gets the cluster_id of this ProjectIdMultimachinejobsBody. # noqa: E501
76
+
77
+
78
+ :return: The cluster_id of this ProjectIdMultimachinejobsBody. # noqa: E501
79
+ :rtype: str
80
+ """
81
+ return self._cluster_id
82
+
83
+ @cluster_id.setter
84
+ def cluster_id(self, cluster_id: 'str'):
85
+ """Sets the cluster_id of this ProjectIdMultimachinejobsBody.
86
+
87
+
88
+ :param cluster_id: The cluster_id of this ProjectIdMultimachinejobsBody. # noqa: E501
89
+ :type: str
90
+ """
91
+
92
+ self._cluster_id = cluster_id
93
+
94
+ @property
95
+ def machines(self) -> 'int':
96
+ """Gets the machines of this ProjectIdMultimachinejobsBody. # noqa: E501
97
+
98
+
99
+ :return: The machines of this ProjectIdMultimachinejobsBody. # noqa: E501
100
+ :rtype: int
101
+ """
102
+ return self._machines
103
+
104
+ @machines.setter
105
+ def machines(self, machines: 'int'):
106
+ """Sets the machines of this ProjectIdMultimachinejobsBody.
107
+
108
+
109
+ :param machines: The machines of this ProjectIdMultimachinejobsBody. # noqa: E501
110
+ :type: int
111
+ """
112
+
113
+ self._machines = machines
114
+
115
+ @property
116
+ def name(self) -> 'str':
117
+ """Gets the name of this ProjectIdMultimachinejobsBody. # noqa: E501
118
+
119
+
120
+ :return: The name of this ProjectIdMultimachinejobsBody. # noqa: E501
121
+ :rtype: str
122
+ """
123
+ return self._name
124
+
125
+ @name.setter
126
+ def name(self, name: 'str'):
127
+ """Sets the name of this ProjectIdMultimachinejobsBody.
128
+
129
+
130
+ :param name: The name of this ProjectIdMultimachinejobsBody. # noqa: E501
131
+ :type: str
132
+ """
133
+
134
+ self._name = name
135
+
136
+ @property
137
+ def spec(self) -> 'V1JobSpec':
138
+ """Gets the spec of this ProjectIdMultimachinejobsBody. # noqa: E501
139
+
140
+
141
+ :return: The spec of this ProjectIdMultimachinejobsBody. # noqa: E501
142
+ :rtype: V1JobSpec
143
+ """
144
+ return self._spec
145
+
146
+ @spec.setter
147
+ def spec(self, spec: 'V1JobSpec'):
148
+ """Sets the spec of this ProjectIdMultimachinejobsBody.
149
+
150
+
151
+ :param spec: The spec of this ProjectIdMultimachinejobsBody. # noqa: E501
152
+ :type: V1JobSpec
153
+ """
154
+
155
+ self._spec = spec
156
+
157
+ def to_dict(self) -> dict:
158
+ """Returns the model properties as a dict"""
159
+ result = {}
160
+
161
+ for attr, _ in six.iteritems(self.swagger_types):
162
+ value = getattr(self, attr)
163
+ if isinstance(value, list):
164
+ result[attr] = list(map(
165
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
166
+ value
167
+ ))
168
+ elif hasattr(value, "to_dict"):
169
+ result[attr] = value.to_dict()
170
+ elif isinstance(value, dict):
171
+ result[attr] = dict(map(
172
+ lambda item: (item[0], item[1].to_dict())
173
+ if hasattr(item[1], "to_dict") else item,
174
+ value.items()
175
+ ))
176
+ else:
177
+ result[attr] = value
178
+ if issubclass(ProjectIdMultimachinejobsBody, dict):
179
+ for key, value in self.items():
180
+ result[key] = value
181
+
182
+ return result
183
+
184
+ def to_str(self) -> str:
185
+ """Returns the string representation of the model"""
186
+ return pprint.pformat(self.to_dict())
187
+
188
+ def __repr__(self) -> str:
189
+ """For `print` and `pprint`"""
190
+ return self.to_str()
191
+
192
+ def __eq__(self, other: 'ProjectIdMultimachinejobsBody') -> bool:
193
+ """Returns true if both objects are equal"""
194
+ if not isinstance(other, ProjectIdMultimachinejobsBody):
195
+ return False
196
+
197
+ return self.__dict__ == other.__dict__
198
+
199
+ def __ne__(self, other: 'ProjectIdMultimachinejobsBody') -> bool:
200
+ """Returns true if both objects are not equal"""
201
+ return not self == other
@@ -42,8 +42,7 @@ class Update(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'aws': 'V1AwsDataConnection',
45
- 'efs': 'V1EfsDataConnection',
46
- 'efs_folder': 'V1EFSFolderDataConnection',
45
+ 'efs': 'V1EfsConfig',
47
46
  'gcp': 'V1GcpDataConnection',
48
47
  'gcs_folder': 'V1GCSFolderDataConnection',
49
48
  'name': 'str',
@@ -56,7 +55,6 @@ class Update(object):
56
55
  attribute_map = {
57
56
  'aws': 'aws',
58
57
  'efs': 'efs',
59
- 'efs_folder': 'efsFolder',
60
58
  'gcp': 'gcp',
61
59
  'gcs_folder': 'gcsFolder',
62
60
  'name': 'name',
@@ -66,11 +64,10 @@ class Update(object):
66
64
  'writable': 'writable'
67
65
  }
68
66
 
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
67
+ def __init__(self, aws: 'V1AwsDataConnection' =None, efs: 'V1EfsConfig' =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
70
68
  """Update - a model defined in Swagger""" # noqa: E501
71
69
  self._aws = None
72
70
  self._efs = None
73
- self._efs_folder = None
74
71
  self._gcp = None
75
72
  self._gcs_folder = None
76
73
  self._name = None
@@ -83,8 +80,6 @@ class Update(object):
83
80
  self.aws = aws
84
81
  if efs is not None:
85
82
  self.efs = efs
86
- if efs_folder is not None:
87
- self.efs_folder = efs_folder
88
83
  if gcp is not None:
89
84
  self.gcp = gcp
90
85
  if gcs_folder is not None:
@@ -122,47 +117,26 @@ class Update(object):
122
117
  self._aws = aws
123
118
 
124
119
  @property
125
- def efs(self) -> 'V1EfsDataConnection':
120
+ def efs(self) -> 'V1EfsConfig':
126
121
  """Gets the efs of this Update. # noqa: E501
127
122
 
128
123
 
129
124
  :return: The efs of this Update. # noqa: E501
130
- :rtype: V1EfsDataConnection
125
+ :rtype: V1EfsConfig
131
126
  """
132
127
  return self._efs
133
128
 
134
129
  @efs.setter
135
- def efs(self, efs: 'V1EfsDataConnection'):
130
+ def efs(self, efs: 'V1EfsConfig'):
136
131
  """Sets the efs of this Update.
137
132
 
138
133
 
139
134
  :param efs: The efs of this Update. # noqa: E501
140
- :type: V1EfsDataConnection
135
+ :type: V1EfsConfig
141
136
  """
142
137
 
143
138
  self._efs = efs
144
139
 
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
-
166
140
  @property
167
141
  def gcp(self) -> 'V1GcpDataConnection':
168
142
  """Gets the gcp of this Update. # noqa: E501
@@ -0,0 +1,149 @@
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 V1ApiPricingSpec(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
+ 'cost_per_hour': 'float',
45
+ 'cost_per_request': 'float'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'cost_per_hour': 'costPerHour',
50
+ 'cost_per_request': 'costPerRequest'
51
+ }
52
+
53
+ def __init__(self, cost_per_hour: 'float' =None, cost_per_request: 'float' =None): # noqa: E501
54
+ """V1ApiPricingSpec - a model defined in Swagger""" # noqa: E501
55
+ self._cost_per_hour = None
56
+ self._cost_per_request = None
57
+ self.discriminator = None
58
+ if cost_per_hour is not None:
59
+ self.cost_per_hour = cost_per_hour
60
+ if cost_per_request is not None:
61
+ self.cost_per_request = cost_per_request
62
+
63
+ @property
64
+ def cost_per_hour(self) -> 'float':
65
+ """Gets the cost_per_hour of this V1ApiPricingSpec. # noqa: E501
66
+
67
+
68
+ :return: The cost_per_hour of this V1ApiPricingSpec. # noqa: E501
69
+ :rtype: float
70
+ """
71
+ return self._cost_per_hour
72
+
73
+ @cost_per_hour.setter
74
+ def cost_per_hour(self, cost_per_hour: 'float'):
75
+ """Sets the cost_per_hour of this V1ApiPricingSpec.
76
+
77
+
78
+ :param cost_per_hour: The cost_per_hour of this V1ApiPricingSpec. # noqa: E501
79
+ :type: float
80
+ """
81
+
82
+ self._cost_per_hour = cost_per_hour
83
+
84
+ @property
85
+ def cost_per_request(self) -> 'float':
86
+ """Gets the cost_per_request of this V1ApiPricingSpec. # noqa: E501
87
+
88
+
89
+ :return: The cost_per_request of this V1ApiPricingSpec. # noqa: E501
90
+ :rtype: float
91
+ """
92
+ return self._cost_per_request
93
+
94
+ @cost_per_request.setter
95
+ def cost_per_request(self, cost_per_request: 'float'):
96
+ """Sets the cost_per_request of this V1ApiPricingSpec.
97
+
98
+
99
+ :param cost_per_request: The cost_per_request of this V1ApiPricingSpec. # noqa: E501
100
+ :type: float
101
+ """
102
+
103
+ self._cost_per_request = cost_per_request
104
+
105
+ def to_dict(self) -> dict:
106
+ """Returns the model properties as a dict"""
107
+ result = {}
108
+
109
+ for attr, _ in six.iteritems(self.swagger_types):
110
+ value = getattr(self, attr)
111
+ if isinstance(value, list):
112
+ result[attr] = list(map(
113
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114
+ value
115
+ ))
116
+ elif hasattr(value, "to_dict"):
117
+ result[attr] = value.to_dict()
118
+ elif isinstance(value, dict):
119
+ result[attr] = dict(map(
120
+ lambda item: (item[0], item[1].to_dict())
121
+ if hasattr(item[1], "to_dict") else item,
122
+ value.items()
123
+ ))
124
+ else:
125
+ result[attr] = value
126
+ if issubclass(V1ApiPricingSpec, dict):
127
+ for key, value in self.items():
128
+ result[key] = value
129
+
130
+ return result
131
+
132
+ def to_str(self) -> str:
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self) -> str:
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other: 'V1ApiPricingSpec') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, V1ApiPricingSpec):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'V1ApiPricingSpec') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other
@@ -43,20 +43,23 @@ class V1Checkbox(object):
43
43
  swagger_types = {
44
44
  'false_value': 'str',
45
45
  'is_checked': 'bool',
46
- 'true_value': 'str'
46
+ 'true_value': 'str',
47
+ 'value': 'bool'
47
48
  }
48
49
 
49
50
  attribute_map = {
50
51
  'false_value': 'falseValue',
51
52
  'is_checked': 'isChecked',
52
- 'true_value': 'trueValue'
53
+ 'true_value': 'trueValue',
54
+ 'value': 'value'
53
55
  }
54
56
 
55
- def __init__(self, false_value: 'str' =None, is_checked: 'bool' =None, true_value: 'str' =None): # noqa: E501
57
+ def __init__(self, false_value: 'str' =None, is_checked: 'bool' =None, true_value: 'str' =None, value: 'bool' =None): # noqa: E501
56
58
  """V1Checkbox - a model defined in Swagger""" # noqa: E501
57
59
  self._false_value = None
58
60
  self._is_checked = None
59
61
  self._true_value = None
62
+ self._value = None
60
63
  self.discriminator = None
61
64
  if false_value is not None:
62
65
  self.false_value = false_value
@@ -64,6 +67,8 @@ class V1Checkbox(object):
64
67
  self.is_checked = is_checked
65
68
  if true_value is not None:
66
69
  self.true_value = true_value
70
+ if value is not None:
71
+ self.value = value
67
72
 
68
73
  @property
69
74
  def false_value(self) -> 'str':
@@ -128,6 +133,27 @@ class V1Checkbox(object):
128
133
 
129
134
  self._true_value = true_value
130
135
 
136
+ @property
137
+ def value(self) -> 'bool':
138
+ """Gets the value of this V1Checkbox. # noqa: E501
139
+
140
+
141
+ :return: The value of this V1Checkbox. # noqa: E501
142
+ :rtype: bool
143
+ """
144
+ return self._value
145
+
146
+ @value.setter
147
+ def value(self, value: 'bool'):
148
+ """Sets the value of this V1Checkbox.
149
+
150
+
151
+ :param value: The value of this V1Checkbox. # noqa: E501
152
+ :type: bool
153
+ """
154
+
155
+ self._value = value
156
+
131
157
  def to_dict(self) -> dict:
132
158
  """Returns the model properties as a dict"""
133
159
  result = {}