lightning-sdk 0.1.47__py3-none-any.whl → 0.1.48__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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/job_api.py +12 -1
- lightning_sdk/api/lit_container_api.py +19 -0
- lightning_sdk/api/utils.py +1 -1
- lightning_sdk/cli/delete.py +58 -0
- lightning_sdk/cli/entrypoint.py +6 -0
- lightning_sdk/cli/inspect.py +31 -0
- lightning_sdk/cli/job_and_mmt_action.py +37 -0
- lightning_sdk/cli/jobs_menu.py +57 -0
- lightning_sdk/cli/list.py +2 -2
- lightning_sdk/cli/mmts_menu.py +57 -0
- lightning_sdk/cli/run.py +12 -0
- lightning_sdk/cli/stop.py +37 -0
- lightning_sdk/job/base.py +5 -1
- lightning_sdk/job/job.py +34 -9
- lightning_sdk/job/v2.py +11 -3
- lightning_sdk/lightning_cloud/openapi/__init__.py +3 -1
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +124 -23
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +250 -8
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +3 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_container_response.py → v1_delete_lit_repository_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +29 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +1 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/versions_version_body.py +123 -0
- lightning_sdk/lightning_cloud/utils/data_connection.py +1 -0
- lightning_sdk/{lit_registry.py → lit_container.py} +22 -4
- lightning_sdk/mmt/mmt.py +35 -14
- lightning_sdk/mmt/v1.py +5 -1
- lightning_sdk/mmt/v2.py +3 -2
- {lightning_sdk-0.1.47.dist-info → lightning_sdk-0.1.48.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.47.dist-info → lightning_sdk-0.1.48.dist-info}/RECORD +39 -31
- lightning_sdk/api/lit_registry_api.py +0 -12
- {lightning_sdk-0.1.47.dist-info → lightning_sdk-0.1.48.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.47.dist-info → lightning_sdk-0.1.48.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.47.dist-info → lightning_sdk-0.1.48.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.47.dist-info → lightning_sdk-0.1.48.dist-info}/top_level.txt +0 -0
|
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
|
|
|
28
28
|
from datetime import datetime
|
|
29
29
|
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class V1DeleteLitRepositoryResponse(object):
|
|
32
32
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
33
|
|
|
34
34
|
Do not edit the class manually.
|
|
@@ -47,7 +47,7 @@ class V1DeleteContainerResponse(object):
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
def __init__(self): # noqa: E501
|
|
50
|
-
"""
|
|
50
|
+
"""V1DeleteLitRepositoryResponse - a model defined in Swagger""" # noqa: E501
|
|
51
51
|
self.discriminator = None
|
|
52
52
|
|
|
53
53
|
def to_dict(self) -> dict:
|
|
@@ -71,7 +71,7 @@ class V1DeleteContainerResponse(object):
|
|
|
71
71
|
))
|
|
72
72
|
else:
|
|
73
73
|
result[attr] = value
|
|
74
|
-
if issubclass(
|
|
74
|
+
if issubclass(V1DeleteLitRepositoryResponse, dict):
|
|
75
75
|
for key, value in self.items():
|
|
76
76
|
result[key] = value
|
|
77
77
|
|
|
@@ -85,13 +85,13 @@ class V1DeleteContainerResponse(object):
|
|
|
85
85
|
"""For `print` and `pprint`"""
|
|
86
86
|
return self.to_str()
|
|
87
87
|
|
|
88
|
-
def __eq__(self, other: '
|
|
88
|
+
def __eq__(self, other: 'V1DeleteLitRepositoryResponse') -> bool:
|
|
89
89
|
"""Returns true if both objects are equal"""
|
|
90
|
-
if not isinstance(other,
|
|
90
|
+
if not isinstance(other, V1DeleteLitRepositoryResponse):
|
|
91
91
|
return False
|
|
92
92
|
|
|
93
93
|
return self.__dict__ == other.__dict__
|
|
94
94
|
|
|
95
|
-
def __ne__(self, other: '
|
|
95
|
+
def __ne__(self, other: 'V1DeleteLitRepositoryResponse') -> bool:
|
|
96
96
|
"""Returns true if both objects are not equal"""
|
|
97
97
|
return not self == other
|
|
@@ -47,6 +47,7 @@ class V1GoogleCloudDirectV1(object):
|
|
|
47
47
|
'credentials_service_account_email': 'str',
|
|
48
48
|
'primary_region': 'str',
|
|
49
49
|
'project_id': 'str',
|
|
50
|
+
'project_sa_enabled': 'bool',
|
|
50
51
|
'regions': 'list[str]',
|
|
51
52
|
'service_account_email': 'str',
|
|
52
53
|
'source_cidr_ips': 'list[str]'
|
|
@@ -59,12 +60,13 @@ class V1GoogleCloudDirectV1(object):
|
|
|
59
60
|
'credentials_service_account_email': 'credentialsServiceAccountEmail',
|
|
60
61
|
'primary_region': 'primaryRegion',
|
|
61
62
|
'project_id': 'projectId',
|
|
63
|
+
'project_sa_enabled': 'projectSaEnabled',
|
|
62
64
|
'regions': 'regions',
|
|
63
65
|
'service_account_email': 'serviceAccountEmail',
|
|
64
66
|
'source_cidr_ips': 'sourceCidrIps'
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
def __init__(self, bucket_name: 'str' =None, compute_project_role: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, primary_region: 'str' =None, project_id: 'str' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None): # noqa: E501
|
|
69
|
+
def __init__(self, bucket_name: 'str' =None, compute_project_role: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, primary_region: 'str' =None, project_id: 'str' =None, project_sa_enabled: 'bool' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None): # noqa: E501
|
|
68
70
|
"""V1GoogleCloudDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
69
71
|
self._bucket_name = None
|
|
70
72
|
self._compute_project_role = None
|
|
@@ -72,6 +74,7 @@ class V1GoogleCloudDirectV1(object):
|
|
|
72
74
|
self._credentials_service_account_email = None
|
|
73
75
|
self._primary_region = None
|
|
74
76
|
self._project_id = None
|
|
77
|
+
self._project_sa_enabled = None
|
|
75
78
|
self._regions = None
|
|
76
79
|
self._service_account_email = None
|
|
77
80
|
self._source_cidr_ips = None
|
|
@@ -88,6 +91,8 @@ class V1GoogleCloudDirectV1(object):
|
|
|
88
91
|
self.primary_region = primary_region
|
|
89
92
|
if project_id is not None:
|
|
90
93
|
self.project_id = project_id
|
|
94
|
+
if project_sa_enabled is not None:
|
|
95
|
+
self.project_sa_enabled = project_sa_enabled
|
|
91
96
|
if regions is not None:
|
|
92
97
|
self.regions = regions
|
|
93
98
|
if service_account_email is not None:
|
|
@@ -223,6 +228,29 @@ class V1GoogleCloudDirectV1(object):
|
|
|
223
228
|
|
|
224
229
|
self._project_id = project_id
|
|
225
230
|
|
|
231
|
+
@property
|
|
232
|
+
def project_sa_enabled(self) -> 'bool':
|
|
233
|
+
"""Gets the project_sa_enabled of this V1GoogleCloudDirectV1. # noqa: E501
|
|
234
|
+
|
|
235
|
+
If enabled, we will set up and use (for compute machines) service accounts with fine-graned permissions, to allow access objects under the teamspace prefix only. This flag assumed to be removed once this is dogfooded well ehough. # noqa: E501
|
|
236
|
+
|
|
237
|
+
:return: The project_sa_enabled of this V1GoogleCloudDirectV1. # noqa: E501
|
|
238
|
+
:rtype: bool
|
|
239
|
+
"""
|
|
240
|
+
return self._project_sa_enabled
|
|
241
|
+
|
|
242
|
+
@project_sa_enabled.setter
|
|
243
|
+
def project_sa_enabled(self, project_sa_enabled: 'bool'):
|
|
244
|
+
"""Sets the project_sa_enabled of this V1GoogleCloudDirectV1.
|
|
245
|
+
|
|
246
|
+
If enabled, we will set up and use (for compute machines) service accounts with fine-graned permissions, to allow access objects under the teamspace prefix only. This flag assumed to be removed once this is dogfooded well ehough. # noqa: E501
|
|
247
|
+
|
|
248
|
+
:param project_sa_enabled: The project_sa_enabled of this V1GoogleCloudDirectV1. # noqa: E501
|
|
249
|
+
:type: bool
|
|
250
|
+
"""
|
|
251
|
+
|
|
252
|
+
self._project_sa_enabled = project_sa_enabled
|
|
253
|
+
|
|
226
254
|
@property
|
|
227
255
|
def regions(self) -> 'list[str]':
|
|
228
256
|
"""Gets the regions of this V1GoogleCloudDirectV1. # noqa: E501
|
|
@@ -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',
|
|
@@ -137,7 +135,6 @@ class V1UserFeatures(object):
|
|
|
137
135
|
'cap_drop': 'capDrop',
|
|
138
136
|
'capacity_reservation_byoc': 'capacityReservationByoc',
|
|
139
137
|
'capacity_reservation_dry_run': 'capacityReservationDryRun',
|
|
140
|
-
'cluster_proxy': 'clusterProxy',
|
|
141
138
|
'code_tab': 'codeTab',
|
|
142
139
|
'collab_screen_sharing': 'collabScreenSharing',
|
|
143
140
|
'cost_attribution_settings': 'costAttributionSettings',
|
|
@@ -151,7 +148,6 @@ class V1UserFeatures(object):
|
|
|
151
148
|
'deployment_version_visibility': 'deploymentVersionVisibility',
|
|
152
149
|
'docs_agent': 'docsAgent',
|
|
153
150
|
'drive_v2': 'driveV2',
|
|
154
|
-
'dynamic_workload_scheduling': 'dynamicWorkloadScheduling',
|
|
155
151
|
'enable_crypto_crackdown': 'enableCryptoCrackdown',
|
|
156
152
|
'enable_efs': 'enableEfs',
|
|
157
153
|
'enable_storage_limits': 'enableStorageLimits',
|
|
@@ -210,7 +206,7 @@ class V1UserFeatures(object):
|
|
|
210
206
|
'writable_data_connections': 'writableDataConnections'
|
|
211
207
|
}
|
|
212
208
|
|
|
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,
|
|
209
|
+
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, writable_data_connections: 'bool' =None): # noqa: E501
|
|
214
210
|
"""V1UserFeatures - a model defined in Swagger""" # noqa: E501
|
|
215
211
|
self._advanced_deployment_autoscaling = None
|
|
216
212
|
self._affiliate_links = None
|
|
@@ -223,7 +219,6 @@ class V1UserFeatures(object):
|
|
|
223
219
|
self._cap_drop = None
|
|
224
220
|
self._capacity_reservation_byoc = None
|
|
225
221
|
self._capacity_reservation_dry_run = None
|
|
226
|
-
self._cluster_proxy = None
|
|
227
222
|
self._code_tab = None
|
|
228
223
|
self._collab_screen_sharing = None
|
|
229
224
|
self._cost_attribution_settings = None
|
|
@@ -237,7 +232,6 @@ class V1UserFeatures(object):
|
|
|
237
232
|
self._deployment_version_visibility = None
|
|
238
233
|
self._docs_agent = None
|
|
239
234
|
self._drive_v2 = None
|
|
240
|
-
self._dynamic_workload_scheduling = None
|
|
241
235
|
self._enable_crypto_crackdown = None
|
|
242
236
|
self._enable_efs = None
|
|
243
237
|
self._enable_storage_limits = None
|
|
@@ -317,8 +311,6 @@ class V1UserFeatures(object):
|
|
|
317
311
|
self.capacity_reservation_byoc = capacity_reservation_byoc
|
|
318
312
|
if capacity_reservation_dry_run is not None:
|
|
319
313
|
self.capacity_reservation_dry_run = capacity_reservation_dry_run
|
|
320
|
-
if cluster_proxy is not None:
|
|
321
|
-
self.cluster_proxy = cluster_proxy
|
|
322
314
|
if code_tab is not None:
|
|
323
315
|
self.code_tab = code_tab
|
|
324
316
|
if collab_screen_sharing is not None:
|
|
@@ -345,8 +337,6 @@ class V1UserFeatures(object):
|
|
|
345
337
|
self.docs_agent = docs_agent
|
|
346
338
|
if drive_v2 is not None:
|
|
347
339
|
self.drive_v2 = drive_v2
|
|
348
|
-
if dynamic_workload_scheduling is not None:
|
|
349
|
-
self.dynamic_workload_scheduling = dynamic_workload_scheduling
|
|
350
340
|
if enable_crypto_crackdown is not None:
|
|
351
341
|
self.enable_crypto_crackdown = enable_crypto_crackdown
|
|
352
342
|
if enable_efs is not None:
|
|
@@ -691,27 +681,6 @@ class V1UserFeatures(object):
|
|
|
691
681
|
|
|
692
682
|
self._capacity_reservation_dry_run = capacity_reservation_dry_run
|
|
693
683
|
|
|
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
684
|
@property
|
|
716
685
|
def code_tab(self) -> 'bool':
|
|
717
686
|
"""Gets the code_tab of this V1UserFeatures. # noqa: E501
|
|
@@ -985,27 +954,6 @@ class V1UserFeatures(object):
|
|
|
985
954
|
|
|
986
955
|
self._drive_v2 = drive_v2
|
|
987
956
|
|
|
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
957
|
@property
|
|
1010
958
|
def enable_crypto_crackdown(self) -> 'bool':
|
|
1011
959
|
"""Gets the enable_crypto_crackdown of this V1UserFeatures. # noqa: E501
|
|
@@ -41,19 +41,29 @@ 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
|
+
'primary_region': 'str',
|
|
46
|
+
'regions': 'list[str]'
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
attribute_map = {
|
|
48
|
-
'credentials_secret_id': 'credentialsSecretId'
|
|
50
|
+
'credentials_secret_id': 'credentialsSecretId',
|
|
51
|
+
'primary_region': 'primaryRegion',
|
|
52
|
+
'regions': 'regions'
|
|
49
53
|
}
|
|
50
54
|
|
|
51
|
-
def __init__(self, credentials_secret_id: 'str' =None): # noqa: E501
|
|
55
|
+
def __init__(self, credentials_secret_id: 'str' =None, primary_region: 'str' =None, regions: 'list[str]' =None): # noqa: E501
|
|
52
56
|
"""V1VultrDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
53
57
|
self._credentials_secret_id = None
|
|
58
|
+
self._primary_region = None
|
|
59
|
+
self._regions = None
|
|
54
60
|
self.discriminator = None
|
|
55
61
|
if credentials_secret_id is not None:
|
|
56
62
|
self.credentials_secret_id = credentials_secret_id
|
|
63
|
+
if primary_region is not None:
|
|
64
|
+
self.primary_region = primary_region
|
|
65
|
+
if regions is not None:
|
|
66
|
+
self.regions = regions
|
|
57
67
|
|
|
58
68
|
@property
|
|
59
69
|
def credentials_secret_id(self) -> 'str':
|
|
@@ -78,6 +88,48 @@ class V1VultrDirectV1(object):
|
|
|
78
88
|
|
|
79
89
|
self._credentials_secret_id = credentials_secret_id
|
|
80
90
|
|
|
91
|
+
@property
|
|
92
|
+
def primary_region(self) -> 'str':
|
|
93
|
+
"""Gets the primary_region of this V1VultrDirectV1. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The primary_region of this V1VultrDirectV1. # noqa: E501
|
|
97
|
+
:rtype: str
|
|
98
|
+
"""
|
|
99
|
+
return self._primary_region
|
|
100
|
+
|
|
101
|
+
@primary_region.setter
|
|
102
|
+
def primary_region(self, primary_region: 'str'):
|
|
103
|
+
"""Sets the primary_region of this V1VultrDirectV1.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param primary_region: The primary_region of this V1VultrDirectV1. # noqa: E501
|
|
107
|
+
:type: str
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._primary_region = primary_region
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def regions(self) -> 'list[str]':
|
|
114
|
+
"""Gets the regions of this V1VultrDirectV1. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The regions of this V1VultrDirectV1. # noqa: E501
|
|
118
|
+
:rtype: list[str]
|
|
119
|
+
"""
|
|
120
|
+
return self._regions
|
|
121
|
+
|
|
122
|
+
@regions.setter
|
|
123
|
+
def regions(self, regions: 'list[str]'):
|
|
124
|
+
"""Sets the regions of this V1VultrDirectV1.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param regions: The regions of this V1VultrDirectV1. # noqa: E501
|
|
128
|
+
:type: list[str]
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._regions = regions
|
|
132
|
+
|
|
81
133
|
def to_dict(self) -> dict:
|
|
82
134
|
"""Returns the model properties as a dict"""
|
|
83
135
|
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
|