lightning-sdk 0.1.47__py3-none-any.whl → 0.1.49__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 (47) hide show
  1. lightning_sdk/__init__.py +3 -1
  2. lightning_sdk/api/job_api.py +19 -1
  3. lightning_sdk/api/lit_container_api.py +42 -0
  4. lightning_sdk/api/mmt_api.py +6 -0
  5. lightning_sdk/api/utils.py +8 -1
  6. lightning_sdk/cli/delete.py +58 -0
  7. lightning_sdk/cli/entrypoint.py +17 -0
  8. lightning_sdk/cli/inspect.py +31 -0
  9. lightning_sdk/cli/job_and_mmt_action.py +37 -0
  10. lightning_sdk/cli/jobs_menu.py +57 -0
  11. lightning_sdk/cli/list.py +62 -4
  12. lightning_sdk/cli/mmts_menu.py +57 -0
  13. lightning_sdk/cli/run.py +22 -3
  14. lightning_sdk/cli/stop.py +37 -0
  15. lightning_sdk/cli/upload.py +32 -1
  16. lightning_sdk/job/base.py +24 -1
  17. lightning_sdk/job/job.py +34 -9
  18. lightning_sdk/job/v1.py +1 -1
  19. lightning_sdk/job/v2.py +16 -11
  20. lightning_sdk/lightning_cloud/openapi/__init__.py +3 -1
  21. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +124 -23
  22. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +250 -8
  23. lightning_sdk/lightning_cloud/openapi/models/__init__.py +3 -1
  24. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +27 -1
  25. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +1 -29
  26. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_container_response.py → v1_delete_lit_repository_response.py} +6 -6
  27. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +29 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +31 -3
  29. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +27 -1
  30. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -53
  31. lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +81 -3
  32. lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +149 -0
  33. lightning_sdk/lightning_cloud/openapi/models/versions_version_body.py +123 -0
  34. lightning_sdk/lightning_cloud/utils/data_connection.py +1 -0
  35. lightning_sdk/lit_container.py +78 -0
  36. lightning_sdk/mmt/base.py +18 -1
  37. lightning_sdk/mmt/mmt.py +35 -14
  38. lightning_sdk/mmt/v1.py +8 -2
  39. lightning_sdk/mmt/v2.py +12 -10
  40. {lightning_sdk-0.1.47.dist-info → lightning_sdk-0.1.49.dist-info}/METADATA +1 -1
  41. {lightning_sdk-0.1.47.dist-info → lightning_sdk-0.1.49.dist-info}/RECORD +45 -37
  42. lightning_sdk/api/lit_registry_api.py +0 -12
  43. lightning_sdk/lit_registry.py +0 -39
  44. {lightning_sdk-0.1.47.dist-info → lightning_sdk-0.1.49.dist-info}/LICENSE +0 -0
  45. {lightning_sdk-0.1.47.dist-info → lightning_sdk-0.1.49.dist-info}/WHEEL +0 -0
  46. {lightning_sdk-0.1.47.dist-info → lightning_sdk-0.1.49.dist-info}/entry_points.txt +0 -0
  47. {lightning_sdk-0.1.47.dist-info → lightning_sdk-0.1.49.dist-info}/top_level.txt +0 -0
@@ -43,6 +43,7 @@ class V1Model(object):
43
43
  swagger_types = {
44
44
  'categories': 'list[str]',
45
45
  'created_at': 'datetime',
46
+ 'default_version': 'V1ModelVersionArchive',
46
47
  'description': 'str',
47
48
  'downloads': 'str',
48
49
  'id': 'str',
@@ -61,6 +62,7 @@ class V1Model(object):
61
62
  attribute_map = {
62
63
  'categories': 'categories',
63
64
  'created_at': 'createdAt',
65
+ 'default_version': 'defaultVersion',
64
66
  'description': 'description',
65
67
  'downloads': 'downloads',
66
68
  'id': 'id',
@@ -76,10 +78,11 @@ class V1Model(object):
76
78
  'visibility': 'visibility'
77
79
  }
78
80
 
79
- def __init__(self, categories: 'list[str]' =None, created_at: 'datetime' =None, description: 'str' =None, downloads: 'str' =None, id: 'str' =None, latest_version: 'V1ModelVersionArchive' =None, license: 'str' =None, model_metadata: 'dict(str, str)' =None, name: 'str' =None, private: 'bool' =None, project_id: 'str' =None, tags: 'list[str]' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
81
+ def __init__(self, categories: 'list[str]' =None, created_at: 'datetime' =None, default_version: 'V1ModelVersionArchive' =None, description: 'str' =None, downloads: 'str' =None, id: 'str' =None, latest_version: 'V1ModelVersionArchive' =None, license: 'str' =None, model_metadata: 'dict(str, str)' =None, name: 'str' =None, private: 'bool' =None, project_id: 'str' =None, tags: 'list[str]' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
80
82
  """V1Model - a model defined in Swagger""" # noqa: E501
81
83
  self._categories = None
82
84
  self._created_at = None
85
+ self._default_version = None
83
86
  self._description = None
84
87
  self._downloads = None
85
88
  self._id = None
@@ -98,6 +101,8 @@ class V1Model(object):
98
101
  self.categories = categories
99
102
  if created_at is not None:
100
103
  self.created_at = created_at
104
+ if default_version is not None:
105
+ self.default_version = default_version
101
106
  if description is not None:
102
107
  self.description = description
103
108
  if downloads is not None:
@@ -167,6 +172,27 @@ class V1Model(object):
167
172
 
168
173
  self._created_at = created_at
169
174
 
175
+ @property
176
+ def default_version(self) -> 'V1ModelVersionArchive':
177
+ """Gets the default_version of this V1Model. # noqa: E501
178
+
179
+
180
+ :return: The default_version of this V1Model. # noqa: E501
181
+ :rtype: V1ModelVersionArchive
182
+ """
183
+ return self._default_version
184
+
185
+ @default_version.setter
186
+ def default_version(self, default_version: 'V1ModelVersionArchive'):
187
+ """Sets the default_version of this V1Model.
188
+
189
+
190
+ :param default_version: The default_version of this V1Model. # noqa: E501
191
+ :type: V1ModelVersionArchive
192
+ """
193
+
194
+ self._default_version = default_version
195
+
170
196
  @property
171
197
  def description(self) -> 'str':
172
198
  """Gets the description of this V1Model. # noqa: E501
@@ -52,7 +52,6 @@ class V1UserFeatures(object):
52
52
  'cap_drop': 'list[str]',
53
53
  'capacity_reservation_byoc': 'bool',
54
54
  'capacity_reservation_dry_run': 'bool',
55
- 'cluster_proxy': 'bool',
56
55
  'code_tab': 'bool',
57
56
  'collab_screen_sharing': 'bool',
58
57
  'cost_attribution_settings': 'bool',
@@ -66,7 +65,6 @@ class V1UserFeatures(object):
66
65
  'deployment_version_visibility': 'bool',
67
66
  'docs_agent': 'bool',
68
67
  'drive_v2': 'bool',
69
- 'dynamic_workload_scheduling': 'bool',
70
68
  'enable_crypto_crackdown': 'bool',
71
69
  'enable_efs': 'bool',
72
70
  'enable_storage_limits': 'bool',
@@ -122,6 +120,7 @@ class V1UserFeatures(object):
122
120
  'teamspace_storage_tab': 'bool',
123
121
  'trainium2': 'bool',
124
122
  'use_rclone_mounts_only': 'bool',
123
+ 'vultr': 'bool',
125
124
  'writable_data_connections': 'bool'
126
125
  }
127
126
 
@@ -137,7 +136,6 @@ class V1UserFeatures(object):
137
136
  'cap_drop': 'capDrop',
138
137
  'capacity_reservation_byoc': 'capacityReservationByoc',
139
138
  'capacity_reservation_dry_run': 'capacityReservationDryRun',
140
- 'cluster_proxy': 'clusterProxy',
141
139
  'code_tab': 'codeTab',
142
140
  'collab_screen_sharing': 'collabScreenSharing',
143
141
  'cost_attribution_settings': 'costAttributionSettings',
@@ -151,7 +149,6 @@ class V1UserFeatures(object):
151
149
  'deployment_version_visibility': 'deploymentVersionVisibility',
152
150
  'docs_agent': 'docsAgent',
153
151
  'drive_v2': 'driveV2',
154
- 'dynamic_workload_scheduling': 'dynamicWorkloadScheduling',
155
152
  'enable_crypto_crackdown': 'enableCryptoCrackdown',
156
153
  'enable_efs': 'enableEfs',
157
154
  'enable_storage_limits': 'enableStorageLimits',
@@ -207,10 +204,11 @@ class V1UserFeatures(object):
207
204
  'teamspace_storage_tab': 'teamspaceStorageTab',
208
205
  'trainium2': 'trainium2',
209
206
  'use_rclone_mounts_only': 'useRcloneMountsOnly',
207
+ 'vultr': 'vultr',
210
208
  'writable_data_connections': 'writableDataConnections'
211
209
  }
212
210
 
213
- def __init__(self, advanced_deployment_autoscaling: 'bool' =None, affiliate_links: 'bool' =None, agents_v2: 'bool' =None, ai_hub_monetization: 'bool' =None, auto_fast_load: 'bool' =None, auto_join_orgs: 'bool' =None, b2c_experience: 'bool' =None, cap_add: 'list[str]' =None, cap_drop: 'list[str]' =None, capacity_reservation_byoc: 'bool' =None, capacity_reservation_dry_run: 'bool' =None, cluster_proxy: 'bool' =None, code_tab: 'bool' =None, collab_screen_sharing: 'bool' =None, cost_attribution_settings: 'bool' =None, custom_app_domain: 'bool' =None, custom_instance_types: 'bool' =None, default_one_cluster: 'bool' =None, deployment_customize_api: 'bool' =None, deployment_data_path: 'bool' =None, deployment_gallery: 'bool' =None, deployment_persistent_disk: 'bool' =None, deployment_version_visibility: 'bool' =None, docs_agent: 'bool' =None, drive_v2: 'bool' =None, dynamic_workload_scheduling: 'bool' =None, enable_crypto_crackdown: 'bool' =None, enable_efs: 'bool' =None, enable_storage_limits: 'bool' =None, featured_studios_admin: 'bool' =None, filesystem_optimisation: 'bool' =None, gcp: 'bool' =None, inference_job_deployment_plugin: 'bool' =None, instant_capacity_reservation: 'bool' =None, jobs_init: 'bool' =None, jobs_v2: 'bool' =None, landing_studios: 'bool' =None, lightning_registry: 'bool' =None, lit_logger: 'bool' =None, lit_logger_storage_v2: 'bool' =None, mmt_fault_tolerance: 'bool' =None, mmt_strategy_selector: 'bool' =None, mmt_v2: 'bool' =None, model_store: 'bool' =None, multiple_deployment_versions: 'bool' =None, multiple_studio_versions: 'bool' =None, org_level_member_permissions: 'bool' =None, pipelines: 'bool' =None, plugin_biz_chat: 'bool' =None, plugin_distributed: 'bool' =None, plugin_fiftyone: 'bool' =None, plugin_inference: 'bool' =None, plugin_label_studio: 'bool' =None, plugin_langflow: 'bool' =None, plugin_lightning_apps: 'bool' =None, plugin_lightning_apps_distributed: 'bool' =None, plugin_mage_ai: 'bool' =None, plugin_milvus: 'bool' =None, plugin_python_profiler: 'bool' =None, plugin_react: 'bool' =None, plugin_service: 'bool' =None, plugin_sweeps: 'bool' =None, plugin_weviate: 'bool' =None, pricing_updates: 'bool' =None, product_generator: 'bool' =None, project_selector: 'bool' =None, restart_ide_on_hang: 'bool' =None, restartable_jobs: 'bool' =None, runnable_public_studio_page: 'bool' =None, show_dev_admin: 'bool' =None, slurm: 'bool' =None, slurm_machine_selector: 'bool' =None, snapshotter_service: 'bool' =None, snowflake_connection: 'bool' =None, spot_v2: 'bool' =None, studio_config: 'bool' =None, studio_on_stop: 'bool' =None, studio_version_visibility: 'bool' =None, teamspace_storage_tab: 'bool' =None, trainium2: 'bool' =None, use_rclone_mounts_only: 'bool' =None, writable_data_connections: 'bool' =None): # noqa: E501
211
+ def __init__(self, advanced_deployment_autoscaling: 'bool' =None, affiliate_links: 'bool' =None, agents_v2: 'bool' =None, ai_hub_monetization: 'bool' =None, auto_fast_load: 'bool' =None, auto_join_orgs: 'bool' =None, b2c_experience: 'bool' =None, cap_add: 'list[str]' =None, cap_drop: 'list[str]' =None, capacity_reservation_byoc: 'bool' =None, capacity_reservation_dry_run: 'bool' =None, code_tab: 'bool' =None, collab_screen_sharing: 'bool' =None, cost_attribution_settings: 'bool' =None, custom_app_domain: 'bool' =None, custom_instance_types: 'bool' =None, default_one_cluster: 'bool' =None, deployment_customize_api: 'bool' =None, deployment_data_path: 'bool' =None, deployment_gallery: 'bool' =None, deployment_persistent_disk: 'bool' =None, deployment_version_visibility: 'bool' =None, docs_agent: 'bool' =None, drive_v2: 'bool' =None, enable_crypto_crackdown: 'bool' =None, enable_efs: 'bool' =None, enable_storage_limits: 'bool' =None, featured_studios_admin: 'bool' =None, filesystem_optimisation: 'bool' =None, gcp: 'bool' =None, inference_job_deployment_plugin: 'bool' =None, instant_capacity_reservation: 'bool' =None, jobs_init: 'bool' =None, jobs_v2: 'bool' =None, landing_studios: 'bool' =None, lightning_registry: 'bool' =None, lit_logger: 'bool' =None, lit_logger_storage_v2: 'bool' =None, mmt_fault_tolerance: 'bool' =None, mmt_strategy_selector: 'bool' =None, mmt_v2: 'bool' =None, model_store: 'bool' =None, multiple_deployment_versions: 'bool' =None, multiple_studio_versions: 'bool' =None, org_level_member_permissions: 'bool' =None, pipelines: 'bool' =None, plugin_biz_chat: 'bool' =None, plugin_distributed: 'bool' =None, plugin_fiftyone: 'bool' =None, plugin_inference: 'bool' =None, plugin_label_studio: 'bool' =None, plugin_langflow: 'bool' =None, plugin_lightning_apps: 'bool' =None, plugin_lightning_apps_distributed: 'bool' =None, plugin_mage_ai: 'bool' =None, plugin_milvus: 'bool' =None, plugin_python_profiler: 'bool' =None, plugin_react: 'bool' =None, plugin_service: 'bool' =None, plugin_sweeps: 'bool' =None, plugin_weviate: 'bool' =None, pricing_updates: 'bool' =None, product_generator: 'bool' =None, project_selector: 'bool' =None, restart_ide_on_hang: 'bool' =None, restartable_jobs: 'bool' =None, runnable_public_studio_page: 'bool' =None, show_dev_admin: 'bool' =None, slurm: 'bool' =None, slurm_machine_selector: 'bool' =None, snapshotter_service: 'bool' =None, snowflake_connection: 'bool' =None, spot_v2: 'bool' =None, studio_config: 'bool' =None, studio_on_stop: 'bool' =None, studio_version_visibility: 'bool' =None, teamspace_storage_tab: 'bool' =None, trainium2: 'bool' =None, use_rclone_mounts_only: 'bool' =None, vultr: 'bool' =None, writable_data_connections: 'bool' =None): # noqa: E501
214
212
  """V1UserFeatures - a model defined in Swagger""" # noqa: E501
215
213
  self._advanced_deployment_autoscaling = None
216
214
  self._affiliate_links = None
@@ -223,7 +221,6 @@ class V1UserFeatures(object):
223
221
  self._cap_drop = None
224
222
  self._capacity_reservation_byoc = None
225
223
  self._capacity_reservation_dry_run = None
226
- self._cluster_proxy = None
227
224
  self._code_tab = None
228
225
  self._collab_screen_sharing = None
229
226
  self._cost_attribution_settings = None
@@ -237,7 +234,6 @@ class V1UserFeatures(object):
237
234
  self._deployment_version_visibility = None
238
235
  self._docs_agent = None
239
236
  self._drive_v2 = None
240
- self._dynamic_workload_scheduling = None
241
237
  self._enable_crypto_crackdown = None
242
238
  self._enable_efs = None
243
239
  self._enable_storage_limits = None
@@ -293,6 +289,7 @@ class V1UserFeatures(object):
293
289
  self._teamspace_storage_tab = None
294
290
  self._trainium2 = None
295
291
  self._use_rclone_mounts_only = None
292
+ self._vultr = None
296
293
  self._writable_data_connections = None
297
294
  self.discriminator = None
298
295
  if advanced_deployment_autoscaling is not None:
@@ -317,8 +314,6 @@ class V1UserFeatures(object):
317
314
  self.capacity_reservation_byoc = capacity_reservation_byoc
318
315
  if capacity_reservation_dry_run is not None:
319
316
  self.capacity_reservation_dry_run = capacity_reservation_dry_run
320
- if cluster_proxy is not None:
321
- self.cluster_proxy = cluster_proxy
322
317
  if code_tab is not None:
323
318
  self.code_tab = code_tab
324
319
  if collab_screen_sharing is not None:
@@ -345,8 +340,6 @@ class V1UserFeatures(object):
345
340
  self.docs_agent = docs_agent
346
341
  if drive_v2 is not None:
347
342
  self.drive_v2 = drive_v2
348
- if dynamic_workload_scheduling is not None:
349
- self.dynamic_workload_scheduling = dynamic_workload_scheduling
350
343
  if enable_crypto_crackdown is not None:
351
344
  self.enable_crypto_crackdown = enable_crypto_crackdown
352
345
  if enable_efs is not None:
@@ -457,6 +450,8 @@ class V1UserFeatures(object):
457
450
  self.trainium2 = trainium2
458
451
  if use_rclone_mounts_only is not None:
459
452
  self.use_rclone_mounts_only = use_rclone_mounts_only
453
+ if vultr is not None:
454
+ self.vultr = vultr
460
455
  if writable_data_connections is not None:
461
456
  self.writable_data_connections = writable_data_connections
462
457
 
@@ -691,27 +686,6 @@ class V1UserFeatures(object):
691
686
 
692
687
  self._capacity_reservation_dry_run = capacity_reservation_dry_run
693
688
 
694
- @property
695
- def cluster_proxy(self) -> 'bool':
696
- """Gets the cluster_proxy of this V1UserFeatures. # noqa: E501
697
-
698
-
699
- :return: The cluster_proxy of this V1UserFeatures. # noqa: E501
700
- :rtype: bool
701
- """
702
- return self._cluster_proxy
703
-
704
- @cluster_proxy.setter
705
- def cluster_proxy(self, cluster_proxy: 'bool'):
706
- """Sets the cluster_proxy of this V1UserFeatures.
707
-
708
-
709
- :param cluster_proxy: The cluster_proxy of this V1UserFeatures. # noqa: E501
710
- :type: bool
711
- """
712
-
713
- self._cluster_proxy = cluster_proxy
714
-
715
689
  @property
716
690
  def code_tab(self) -> 'bool':
717
691
  """Gets the code_tab of this V1UserFeatures. # noqa: E501
@@ -985,27 +959,6 @@ class V1UserFeatures(object):
985
959
 
986
960
  self._drive_v2 = drive_v2
987
961
 
988
- @property
989
- def dynamic_workload_scheduling(self) -> 'bool':
990
- """Gets the dynamic_workload_scheduling of this V1UserFeatures. # noqa: E501
991
-
992
-
993
- :return: The dynamic_workload_scheduling of this V1UserFeatures. # noqa: E501
994
- :rtype: bool
995
- """
996
- return self._dynamic_workload_scheduling
997
-
998
- @dynamic_workload_scheduling.setter
999
- def dynamic_workload_scheduling(self, dynamic_workload_scheduling: 'bool'):
1000
- """Sets the dynamic_workload_scheduling of this V1UserFeatures.
1001
-
1002
-
1003
- :param dynamic_workload_scheduling: The dynamic_workload_scheduling of this V1UserFeatures. # noqa: E501
1004
- :type: bool
1005
- """
1006
-
1007
- self._dynamic_workload_scheduling = dynamic_workload_scheduling
1008
-
1009
962
  @property
1010
963
  def enable_crypto_crackdown(self) -> 'bool':
1011
964
  """Gets the enable_crypto_crackdown of this V1UserFeatures. # noqa: E501
@@ -2161,6 +2114,27 @@ class V1UserFeatures(object):
2161
2114
 
2162
2115
  self._use_rclone_mounts_only = use_rclone_mounts_only
2163
2116
 
2117
+ @property
2118
+ def vultr(self) -> 'bool':
2119
+ """Gets the vultr of this V1UserFeatures. # noqa: E501
2120
+
2121
+
2122
+ :return: The vultr of this V1UserFeatures. # noqa: E501
2123
+ :rtype: bool
2124
+ """
2125
+ return self._vultr
2126
+
2127
+ @vultr.setter
2128
+ def vultr(self, vultr: 'bool'):
2129
+ """Sets the vultr of this V1UserFeatures.
2130
+
2131
+
2132
+ :param vultr: The vultr of this V1UserFeatures. # noqa: E501
2133
+ :type: bool
2134
+ """
2135
+
2136
+ self._vultr = vultr
2137
+
2164
2138
  @property
2165
2139
  def writable_data_connections(self) -> 'bool':
2166
2140
  """Gets the writable_data_connections of this V1UserFeatures. # noqa: E501
@@ -41,19 +41,34 @@ class V1VultrDirectV1(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'credentials_secret_id': 'str'
44
+ 'credentials_secret_id': 'str',
45
+ 'parent_cluster_id': 'str',
46
+ 'primary_region': 'str',
47
+ 'regions': 'list[str]'
45
48
  }
46
49
 
47
50
  attribute_map = {
48
- 'credentials_secret_id': 'credentialsSecretId'
51
+ 'credentials_secret_id': 'credentialsSecretId',
52
+ 'parent_cluster_id': 'parentClusterId',
53
+ 'primary_region': 'primaryRegion',
54
+ 'regions': 'regions'
49
55
  }
50
56
 
51
- def __init__(self, credentials_secret_id: 'str' =None): # noqa: E501
57
+ def __init__(self, credentials_secret_id: 'str' =None, parent_cluster_id: 'str' =None, primary_region: 'str' =None, regions: 'list[str]' =None): # noqa: E501
52
58
  """V1VultrDirectV1 - a model defined in Swagger""" # noqa: E501
53
59
  self._credentials_secret_id = None
60
+ self._parent_cluster_id = None
61
+ self._primary_region = None
62
+ self._regions = None
54
63
  self.discriminator = None
55
64
  if credentials_secret_id is not None:
56
65
  self.credentials_secret_id = credentials_secret_id
66
+ if parent_cluster_id is not None:
67
+ self.parent_cluster_id = parent_cluster_id
68
+ if primary_region is not None:
69
+ self.primary_region = primary_region
70
+ if regions is not None:
71
+ self.regions = regions
57
72
 
58
73
  @property
59
74
  def credentials_secret_id(self) -> 'str':
@@ -78,6 +93,69 @@ class V1VultrDirectV1(object):
78
93
 
79
94
  self._credentials_secret_id = credentials_secret_id
80
95
 
96
+ @property
97
+ def parent_cluster_id(self) -> 'str':
98
+ """Gets the parent_cluster_id of this V1VultrDirectV1. # noqa: E501
99
+
100
+
101
+ :return: The parent_cluster_id of this V1VultrDirectV1. # noqa: E501
102
+ :rtype: str
103
+ """
104
+ return self._parent_cluster_id
105
+
106
+ @parent_cluster_id.setter
107
+ def parent_cluster_id(self, parent_cluster_id: 'str'):
108
+ """Sets the parent_cluster_id of this V1VultrDirectV1.
109
+
110
+
111
+ :param parent_cluster_id: The parent_cluster_id of this V1VultrDirectV1. # noqa: E501
112
+ :type: str
113
+ """
114
+
115
+ self._parent_cluster_id = parent_cluster_id
116
+
117
+ @property
118
+ def primary_region(self) -> 'str':
119
+ """Gets the primary_region of this V1VultrDirectV1. # noqa: E501
120
+
121
+
122
+ :return: The primary_region of this V1VultrDirectV1. # noqa: E501
123
+ :rtype: str
124
+ """
125
+ return self._primary_region
126
+
127
+ @primary_region.setter
128
+ def primary_region(self, primary_region: 'str'):
129
+ """Sets the primary_region of this V1VultrDirectV1.
130
+
131
+
132
+ :param primary_region: The primary_region of this V1VultrDirectV1. # noqa: E501
133
+ :type: str
134
+ """
135
+
136
+ self._primary_region = primary_region
137
+
138
+ @property
139
+ def regions(self) -> 'list[str]':
140
+ """Gets the regions of this V1VultrDirectV1. # noqa: E501
141
+
142
+
143
+ :return: The regions of this V1VultrDirectV1. # noqa: E501
144
+ :rtype: list[str]
145
+ """
146
+ return self._regions
147
+
148
+ @regions.setter
149
+ def regions(self, regions: 'list[str]'):
150
+ """Sets the regions of this V1VultrDirectV1.
151
+
152
+
153
+ :param regions: The regions of this V1VultrDirectV1. # noqa: E501
154
+ :type: list[str]
155
+ """
156
+
157
+ self._regions = regions
158
+
81
159
  def to_dict(self) -> dict:
82
160
  """Returns the model properties as a dict"""
83
161
  result = {}
@@ -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 VersionDefaultBody(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
+ 'index': 'int',
45
+ 'model_name': 'str'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'index': 'index',
50
+ 'model_name': 'modelName'
51
+ }
52
+
53
+ def __init__(self, index: 'int' =None, model_name: 'str' =None): # noqa: E501
54
+ """VersionDefaultBody - a model defined in Swagger""" # noqa: E501
55
+ self._index = None
56
+ self._model_name = None
57
+ self.discriminator = None
58
+ if index is not None:
59
+ self.index = index
60
+ if model_name is not None:
61
+ self.model_name = model_name
62
+
63
+ @property
64
+ def index(self) -> 'int':
65
+ """Gets the index of this VersionDefaultBody. # noqa: E501
66
+
67
+
68
+ :return: The index of this VersionDefaultBody. # noqa: E501
69
+ :rtype: int
70
+ """
71
+ return self._index
72
+
73
+ @index.setter
74
+ def index(self, index: 'int'):
75
+ """Sets the index of this VersionDefaultBody.
76
+
77
+
78
+ :param index: The index of this VersionDefaultBody. # noqa: E501
79
+ :type: int
80
+ """
81
+
82
+ self._index = index
83
+
84
+ @property
85
+ def model_name(self) -> 'str':
86
+ """Gets the model_name of this VersionDefaultBody. # noqa: E501
87
+
88
+
89
+ :return: The model_name of this VersionDefaultBody. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._model_name
93
+
94
+ @model_name.setter
95
+ def model_name(self, model_name: 'str'):
96
+ """Sets the model_name of this VersionDefaultBody.
97
+
98
+
99
+ :param model_name: The model_name of this VersionDefaultBody. # noqa: E501
100
+ :type: str
101
+ """
102
+
103
+ self._model_name = model_name
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(VersionDefaultBody, 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: 'VersionDefaultBody') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, VersionDefaultBody):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'VersionDefaultBody') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ 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 VersionsVersionBody(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
+ 'name': 'str'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'name': 'name'
49
+ }
50
+
51
+ def __init__(self, name: 'str' =None): # noqa: E501
52
+ """VersionsVersionBody - a model defined in Swagger""" # noqa: E501
53
+ self._name = None
54
+ self.discriminator = None
55
+ if name is not None:
56
+ self.name = name
57
+
58
+ @property
59
+ def name(self) -> 'str':
60
+ """Gets the name of this VersionsVersionBody. # noqa: E501
61
+
62
+
63
+ :return: The name of this VersionsVersionBody. # noqa: E501
64
+ :rtype: str
65
+ """
66
+ return self._name
67
+
68
+ @name.setter
69
+ def name(self, name: 'str'):
70
+ """Sets the name of this VersionsVersionBody.
71
+
72
+
73
+ :param name: The name of this VersionsVersionBody. # noqa: E501
74
+ :type: str
75
+ """
76
+
77
+ self._name = name
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(VersionsVersionBody, 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: 'VersionsVersionBody') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, VersionsVersionBody):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'VersionsVersionBody') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -133,6 +133,7 @@ def create_efs_folder(folder_name: str, region: str) -> None:
133
133
  cluster_id=cluster_id,
134
134
  access_cluster_ids=[cluster_id],
135
135
  force=True,
136
+ writable=True,
136
137
  efs=V1EfsConfig(region=region),
137
138
  )
138
139
  try: