lightning-sdk 0.2.4__py3-none-any.whl → 0.2.6__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/ai_hub.py +3 -1
- lightning_sdk/api/ai_hub_api.py +15 -0
- lightning_sdk/api/studio_api.py +0 -8
- lightning_sdk/cli/serve.py +29 -9
- lightning_sdk/deployment/deployment.py +32 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +57 -1
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +4 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +537 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +115 -6
- lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +20 -4
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +20 -20
- lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +573 -0
- lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +95 -69
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cluster.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +124 -20
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_server_alert_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_pipeline_schedule.py → v1_delete_cloud_space_environment_template_response.py} +32 -32
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_file_upload_urls_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +79 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +1 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_registry_repository_image_artifact_versions_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_file.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_details.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_severity.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +58 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
- lightning_sdk/lightning_cloud/openapi/models/v1_subnet_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +223 -171
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +203 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
- lightning_sdk/lightning_cloud/rest_client.py +44 -40
- lightning_sdk/pipeline/types.py +28 -2
- lightning_sdk/pipeline/utils.py +1 -1
- lightning_sdk/plugin.py +0 -6
- lightning_sdk/serve.py +5 -3
- lightning_sdk/utils/resolve.py +1 -0
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/RECORD +123 -67
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/WHEEL +1 -1
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class V1CloudSpaceEnvironmentTemplateConfig(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
|
+
'machine_image_version': 'str'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'machine_image_version': 'machineImageVersion'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, machine_image_version: 'str' =None): # noqa: E501
|
|
52
|
+
"""V1CloudSpaceEnvironmentTemplateConfig - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._machine_image_version = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if machine_image_version is not None:
|
|
56
|
+
self.machine_image_version = machine_image_version
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def machine_image_version(self) -> 'str':
|
|
60
|
+
"""Gets the machine_image_version of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The machine_image_version of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._machine_image_version
|
|
67
|
+
|
|
68
|
+
@machine_image_version.setter
|
|
69
|
+
def machine_image_version(self, machine_image_version: 'str'):
|
|
70
|
+
"""Sets the machine_image_version of this V1CloudSpaceEnvironmentTemplateConfig.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param machine_image_version: The machine_image_version of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
74
|
+
:type: str
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._machine_image_version = machine_image_version
|
|
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(V1CloudSpaceEnvironmentTemplateConfig, 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: 'V1CloudSpaceEnvironmentTemplateConfig') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1CloudSpaceEnvironmentTemplateConfig):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1CloudSpaceEnvironmentTemplateConfig') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -46,6 +46,7 @@ class V1ClusterSecurityOptions(object):
|
|
|
46
46
|
'disable_public_ip': 'bool',
|
|
47
47
|
'encrypt_cluster_bucket': 'bool',
|
|
48
48
|
'encrypt_instance_volumes': 'bool',
|
|
49
|
+
'extra_firewall_cidr_ranges': 'list[str]',
|
|
49
50
|
'extra_policy': 'str',
|
|
50
51
|
'kms_key_id': 'str',
|
|
51
52
|
'protect_instance_metadata': 'bool',
|
|
@@ -60,6 +61,7 @@ class V1ClusterSecurityOptions(object):
|
|
|
60
61
|
'disable_public_ip': 'disablePublicIp',
|
|
61
62
|
'encrypt_cluster_bucket': 'encryptClusterBucket',
|
|
62
63
|
'encrypt_instance_volumes': 'encryptInstanceVolumes',
|
|
64
|
+
'extra_firewall_cidr_ranges': 'extraFirewallCidrRanges',
|
|
63
65
|
'extra_policy': 'extraPolicy',
|
|
64
66
|
'kms_key_id': 'kmsKeyId',
|
|
65
67
|
'protect_instance_metadata': 'protectInstanceMetadata',
|
|
@@ -68,13 +70,14 @@ class V1ClusterSecurityOptions(object):
|
|
|
68
70
|
'ssh_disabled': 'sshDisabled'
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
def __init__(self, bucket_kms_key: 'str' =None, containers_non_privileged: 'bool' =None, disable_public_ip: 'bool' =None, encrypt_cluster_bucket: 'bool' =None, encrypt_instance_volumes: 'bool' =None, extra_policy: 'str' =None, kms_key_id: 'str' =None, protect_instance_metadata: 'bool' =None, rootless_docker: 'bool' =None, setup_network_load_balancer: 'bool' =None, ssh_disabled: 'bool' =None): # noqa: E501
|
|
73
|
+
def __init__(self, bucket_kms_key: 'str' =None, containers_non_privileged: 'bool' =None, disable_public_ip: 'bool' =None, encrypt_cluster_bucket: 'bool' =None, encrypt_instance_volumes: 'bool' =None, extra_firewall_cidr_ranges: 'list[str]' =None, extra_policy: 'str' =None, kms_key_id: 'str' =None, protect_instance_metadata: 'bool' =None, rootless_docker: 'bool' =None, setup_network_load_balancer: 'bool' =None, ssh_disabled: 'bool' =None): # noqa: E501
|
|
72
74
|
"""V1ClusterSecurityOptions - a model defined in Swagger""" # noqa: E501
|
|
73
75
|
self._bucket_kms_key = None
|
|
74
76
|
self._containers_non_privileged = None
|
|
75
77
|
self._disable_public_ip = None
|
|
76
78
|
self._encrypt_cluster_bucket = None
|
|
77
79
|
self._encrypt_instance_volumes = None
|
|
80
|
+
self._extra_firewall_cidr_ranges = None
|
|
78
81
|
self._extra_policy = None
|
|
79
82
|
self._kms_key_id = None
|
|
80
83
|
self._protect_instance_metadata = None
|
|
@@ -92,6 +95,8 @@ class V1ClusterSecurityOptions(object):
|
|
|
92
95
|
self.encrypt_cluster_bucket = encrypt_cluster_bucket
|
|
93
96
|
if encrypt_instance_volumes is not None:
|
|
94
97
|
self.encrypt_instance_volumes = encrypt_instance_volumes
|
|
98
|
+
if extra_firewall_cidr_ranges is not None:
|
|
99
|
+
self.extra_firewall_cidr_ranges = extra_firewall_cidr_ranges
|
|
95
100
|
if extra_policy is not None:
|
|
96
101
|
self.extra_policy = extra_policy
|
|
97
102
|
if kms_key_id is not None:
|
|
@@ -210,6 +215,27 @@ class V1ClusterSecurityOptions(object):
|
|
|
210
215
|
|
|
211
216
|
self._encrypt_instance_volumes = encrypt_instance_volumes
|
|
212
217
|
|
|
218
|
+
@property
|
|
219
|
+
def extra_firewall_cidr_ranges(self) -> 'list[str]':
|
|
220
|
+
"""Gets the extra_firewall_cidr_ranges of this V1ClusterSecurityOptions. # noqa: E501
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
:return: The extra_firewall_cidr_ranges of this V1ClusterSecurityOptions. # noqa: E501
|
|
224
|
+
:rtype: list[str]
|
|
225
|
+
"""
|
|
226
|
+
return self._extra_firewall_cidr_ranges
|
|
227
|
+
|
|
228
|
+
@extra_firewall_cidr_ranges.setter
|
|
229
|
+
def extra_firewall_cidr_ranges(self, extra_firewall_cidr_ranges: 'list[str]'):
|
|
230
|
+
"""Sets the extra_firewall_cidr_ranges of this V1ClusterSecurityOptions.
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
:param extra_firewall_cidr_ranges: The extra_firewall_cidr_ranges of this V1ClusterSecurityOptions. # noqa: E501
|
|
234
|
+
:type: list[str]
|
|
235
|
+
"""
|
|
236
|
+
|
|
237
|
+
self._extra_firewall_cidr_ranges = extra_firewall_cidr_ranges
|
|
238
|
+
|
|
213
239
|
@property
|
|
214
240
|
def extra_policy(self) -> 'str':
|
|
215
241
|
"""Gets the extra_policy of this V1ClusterSecurityOptions. # noqa: E501
|
|
@@ -42,6 +42,7 @@ class V1ClusterSpec(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'auth_token': 'str',
|
|
45
|
+
'available_accelerators': 'list[str]',
|
|
45
46
|
'aws_v1': 'V1AWSDirectV1',
|
|
46
47
|
'cluster_type': 'V1ClusterType',
|
|
47
48
|
'deletion_options': 'V1ClusterDeletionOptions',
|
|
@@ -51,18 +52,24 @@ class V1ClusterSpec(object):
|
|
|
51
52
|
'google_cloud_v1': 'V1GoogleCloudDirectV1',
|
|
52
53
|
'insurer_disabled': 'bool',
|
|
53
54
|
'lambda_labs_v1': 'V1LambdaLabsDirectV1',
|
|
55
|
+
'locked_zones': 'list[str]',
|
|
54
56
|
'monitor_deletion_disabled': 'bool',
|
|
55
57
|
'overprovisioning': 'list[V1InstanceOverprovisioningSpec]',
|
|
58
|
+
'parent_cluster_id': 'str',
|
|
56
59
|
'pause_automation': 'bool',
|
|
60
|
+
'reservation_details': 'V1ReservationDetails',
|
|
61
|
+
'reserved_capacity_provider': 'bool',
|
|
57
62
|
'security_options': 'V1ClusterSecurityOptions',
|
|
58
63
|
'slurm_v1': 'V1SlurmV1',
|
|
59
64
|
'tagging_options': 'V1ClusterTaggingOptions',
|
|
60
65
|
'user_id': 'str',
|
|
66
|
+
'voltage_park_v1': 'V1VoltageParkDirectV1',
|
|
61
67
|
'vultr_v1': 'V1VultrDirectV1'
|
|
62
68
|
}
|
|
63
69
|
|
|
64
70
|
attribute_map = {
|
|
65
71
|
'auth_token': 'authToken',
|
|
72
|
+
'available_accelerators': 'availableAccelerators',
|
|
66
73
|
'aws_v1': 'awsV1',
|
|
67
74
|
'cluster_type': 'clusterType',
|
|
68
75
|
'deletion_options': 'deletionOptions',
|
|
@@ -72,19 +79,25 @@ class V1ClusterSpec(object):
|
|
|
72
79
|
'google_cloud_v1': 'googleCloudV1',
|
|
73
80
|
'insurer_disabled': 'insurerDisabled',
|
|
74
81
|
'lambda_labs_v1': 'lambdaLabsV1',
|
|
82
|
+
'locked_zones': 'lockedZones',
|
|
75
83
|
'monitor_deletion_disabled': 'monitorDeletionDisabled',
|
|
76
84
|
'overprovisioning': 'overprovisioning',
|
|
85
|
+
'parent_cluster_id': 'parentClusterId',
|
|
77
86
|
'pause_automation': 'pauseAutomation',
|
|
87
|
+
'reservation_details': 'reservationDetails',
|
|
88
|
+
'reserved_capacity_provider': 'reservedCapacityProvider',
|
|
78
89
|
'security_options': 'securityOptions',
|
|
79
90
|
'slurm_v1': 'slurmV1',
|
|
80
91
|
'tagging_options': 'taggingOptions',
|
|
81
92
|
'user_id': 'userId',
|
|
93
|
+
'voltage_park_v1': 'voltageParkV1',
|
|
82
94
|
'vultr_v1': 'vultrV1'
|
|
83
95
|
}
|
|
84
96
|
|
|
85
|
-
def __init__(self, auth_token: 'str' =None, aws_v1: 'V1AWSDirectV1' =None, cluster_type: 'V1ClusterType' =None, deletion_options: 'V1ClusterDeletionOptions' =None, desired_state: 'V1ClusterState' =None, domain: 'str' =None, freeze_accelerators: 'bool' =None, google_cloud_v1: 'V1GoogleCloudDirectV1' =None, insurer_disabled: 'bool' =None, lambda_labs_v1: 'V1LambdaLabsDirectV1' =None, monitor_deletion_disabled: 'bool' =None, overprovisioning: 'list[V1InstanceOverprovisioningSpec]' =None, pause_automation: 'bool' =None, security_options: 'V1ClusterSecurityOptions' =None, slurm_v1: 'V1SlurmV1' =None, tagging_options: 'V1ClusterTaggingOptions' =None, user_id: 'str' =None, vultr_v1: 'V1VultrDirectV1' =None): # noqa: E501
|
|
97
|
+
def __init__(self, auth_token: 'str' =None, available_accelerators: 'list[str]' =None, aws_v1: 'V1AWSDirectV1' =None, cluster_type: 'V1ClusterType' =None, deletion_options: 'V1ClusterDeletionOptions' =None, desired_state: 'V1ClusterState' =None, domain: 'str' =None, freeze_accelerators: 'bool' =None, google_cloud_v1: 'V1GoogleCloudDirectV1' =None, insurer_disabled: 'bool' =None, lambda_labs_v1: 'V1LambdaLabsDirectV1' =None, locked_zones: 'list[str]' =None, monitor_deletion_disabled: 'bool' =None, overprovisioning: 'list[V1InstanceOverprovisioningSpec]' =None, parent_cluster_id: 'str' =None, pause_automation: 'bool' =None, reservation_details: 'V1ReservationDetails' =None, reserved_capacity_provider: 'bool' =None, security_options: 'V1ClusterSecurityOptions' =None, slurm_v1: 'V1SlurmV1' =None, tagging_options: 'V1ClusterTaggingOptions' =None, user_id: 'str' =None, voltage_park_v1: 'V1VoltageParkDirectV1' =None, vultr_v1: 'V1VultrDirectV1' =None): # noqa: E501
|
|
86
98
|
"""V1ClusterSpec - a model defined in Swagger""" # noqa: E501
|
|
87
99
|
self._auth_token = None
|
|
100
|
+
self._available_accelerators = None
|
|
88
101
|
self._aws_v1 = None
|
|
89
102
|
self._cluster_type = None
|
|
90
103
|
self._deletion_options = None
|
|
@@ -94,17 +107,24 @@ class V1ClusterSpec(object):
|
|
|
94
107
|
self._google_cloud_v1 = None
|
|
95
108
|
self._insurer_disabled = None
|
|
96
109
|
self._lambda_labs_v1 = None
|
|
110
|
+
self._locked_zones = None
|
|
97
111
|
self._monitor_deletion_disabled = None
|
|
98
112
|
self._overprovisioning = None
|
|
113
|
+
self._parent_cluster_id = None
|
|
99
114
|
self._pause_automation = None
|
|
115
|
+
self._reservation_details = None
|
|
116
|
+
self._reserved_capacity_provider = None
|
|
100
117
|
self._security_options = None
|
|
101
118
|
self._slurm_v1 = None
|
|
102
119
|
self._tagging_options = None
|
|
103
120
|
self._user_id = None
|
|
121
|
+
self._voltage_park_v1 = None
|
|
104
122
|
self._vultr_v1 = None
|
|
105
123
|
self.discriminator = None
|
|
106
124
|
if auth_token is not None:
|
|
107
125
|
self.auth_token = auth_token
|
|
126
|
+
if available_accelerators is not None:
|
|
127
|
+
self.available_accelerators = available_accelerators
|
|
108
128
|
if aws_v1 is not None:
|
|
109
129
|
self.aws_v1 = aws_v1
|
|
110
130
|
if cluster_type is not None:
|
|
@@ -123,12 +143,20 @@ class V1ClusterSpec(object):
|
|
|
123
143
|
self.insurer_disabled = insurer_disabled
|
|
124
144
|
if lambda_labs_v1 is not None:
|
|
125
145
|
self.lambda_labs_v1 = lambda_labs_v1
|
|
146
|
+
if locked_zones is not None:
|
|
147
|
+
self.locked_zones = locked_zones
|
|
126
148
|
if monitor_deletion_disabled is not None:
|
|
127
149
|
self.monitor_deletion_disabled = monitor_deletion_disabled
|
|
128
150
|
if overprovisioning is not None:
|
|
129
151
|
self.overprovisioning = overprovisioning
|
|
152
|
+
if parent_cluster_id is not None:
|
|
153
|
+
self.parent_cluster_id = parent_cluster_id
|
|
130
154
|
if pause_automation is not None:
|
|
131
155
|
self.pause_automation = pause_automation
|
|
156
|
+
if reservation_details is not None:
|
|
157
|
+
self.reservation_details = reservation_details
|
|
158
|
+
if reserved_capacity_provider is not None:
|
|
159
|
+
self.reserved_capacity_provider = reserved_capacity_provider
|
|
132
160
|
if security_options is not None:
|
|
133
161
|
self.security_options = security_options
|
|
134
162
|
if slurm_v1 is not None:
|
|
@@ -137,6 +165,8 @@ class V1ClusterSpec(object):
|
|
|
137
165
|
self.tagging_options = tagging_options
|
|
138
166
|
if user_id is not None:
|
|
139
167
|
self.user_id = user_id
|
|
168
|
+
if voltage_park_v1 is not None:
|
|
169
|
+
self.voltage_park_v1 = voltage_park_v1
|
|
140
170
|
if vultr_v1 is not None:
|
|
141
171
|
self.vultr_v1 = vultr_v1
|
|
142
172
|
|
|
@@ -161,6 +191,27 @@ class V1ClusterSpec(object):
|
|
|
161
191
|
|
|
162
192
|
self._auth_token = auth_token
|
|
163
193
|
|
|
194
|
+
@property
|
|
195
|
+
def available_accelerators(self) -> 'list[str]':
|
|
196
|
+
"""Gets the available_accelerators of this V1ClusterSpec. # noqa: E501
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
:return: The available_accelerators of this V1ClusterSpec. # noqa: E501
|
|
200
|
+
:rtype: list[str]
|
|
201
|
+
"""
|
|
202
|
+
return self._available_accelerators
|
|
203
|
+
|
|
204
|
+
@available_accelerators.setter
|
|
205
|
+
def available_accelerators(self, available_accelerators: 'list[str]'):
|
|
206
|
+
"""Sets the available_accelerators of this V1ClusterSpec.
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
:param available_accelerators: The available_accelerators of this V1ClusterSpec. # noqa: E501
|
|
210
|
+
:type: list[str]
|
|
211
|
+
"""
|
|
212
|
+
|
|
213
|
+
self._available_accelerators = available_accelerators
|
|
214
|
+
|
|
164
215
|
@property
|
|
165
216
|
def aws_v1(self) -> 'V1AWSDirectV1':
|
|
166
217
|
"""Gets the aws_v1 of this V1ClusterSpec. # noqa: E501
|
|
@@ -352,6 +403,27 @@ class V1ClusterSpec(object):
|
|
|
352
403
|
|
|
353
404
|
self._lambda_labs_v1 = lambda_labs_v1
|
|
354
405
|
|
|
406
|
+
@property
|
|
407
|
+
def locked_zones(self) -> 'list[str]':
|
|
408
|
+
"""Gets the locked_zones of this V1ClusterSpec. # noqa: E501
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
:return: The locked_zones of this V1ClusterSpec. # noqa: E501
|
|
412
|
+
:rtype: list[str]
|
|
413
|
+
"""
|
|
414
|
+
return self._locked_zones
|
|
415
|
+
|
|
416
|
+
@locked_zones.setter
|
|
417
|
+
def locked_zones(self, locked_zones: 'list[str]'):
|
|
418
|
+
"""Sets the locked_zones of this V1ClusterSpec.
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
:param locked_zones: The locked_zones of this V1ClusterSpec. # noqa: E501
|
|
422
|
+
:type: list[str]
|
|
423
|
+
"""
|
|
424
|
+
|
|
425
|
+
self._locked_zones = locked_zones
|
|
426
|
+
|
|
355
427
|
@property
|
|
356
428
|
def monitor_deletion_disabled(self) -> 'bool':
|
|
357
429
|
"""Gets the monitor_deletion_disabled of this V1ClusterSpec. # noqa: E501
|
|
@@ -394,6 +466,27 @@ class V1ClusterSpec(object):
|
|
|
394
466
|
|
|
395
467
|
self._overprovisioning = overprovisioning
|
|
396
468
|
|
|
469
|
+
@property
|
|
470
|
+
def parent_cluster_id(self) -> 'str':
|
|
471
|
+
"""Gets the parent_cluster_id of this V1ClusterSpec. # noqa: E501
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
:return: The parent_cluster_id of this V1ClusterSpec. # noqa: E501
|
|
475
|
+
:rtype: str
|
|
476
|
+
"""
|
|
477
|
+
return self._parent_cluster_id
|
|
478
|
+
|
|
479
|
+
@parent_cluster_id.setter
|
|
480
|
+
def parent_cluster_id(self, parent_cluster_id: 'str'):
|
|
481
|
+
"""Sets the parent_cluster_id of this V1ClusterSpec.
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
:param parent_cluster_id: The parent_cluster_id of this V1ClusterSpec. # noqa: E501
|
|
485
|
+
:type: str
|
|
486
|
+
"""
|
|
487
|
+
|
|
488
|
+
self._parent_cluster_id = parent_cluster_id
|
|
489
|
+
|
|
397
490
|
@property
|
|
398
491
|
def pause_automation(self) -> 'bool':
|
|
399
492
|
"""Gets the pause_automation of this V1ClusterSpec. # noqa: E501
|
|
@@ -415,6 +508,48 @@ class V1ClusterSpec(object):
|
|
|
415
508
|
|
|
416
509
|
self._pause_automation = pause_automation
|
|
417
510
|
|
|
511
|
+
@property
|
|
512
|
+
def reservation_details(self) -> 'V1ReservationDetails':
|
|
513
|
+
"""Gets the reservation_details of this V1ClusterSpec. # noqa: E501
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
:return: The reservation_details of this V1ClusterSpec. # noqa: E501
|
|
517
|
+
:rtype: V1ReservationDetails
|
|
518
|
+
"""
|
|
519
|
+
return self._reservation_details
|
|
520
|
+
|
|
521
|
+
@reservation_details.setter
|
|
522
|
+
def reservation_details(self, reservation_details: 'V1ReservationDetails'):
|
|
523
|
+
"""Sets the reservation_details of this V1ClusterSpec.
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
:param reservation_details: The reservation_details of this V1ClusterSpec. # noqa: E501
|
|
527
|
+
:type: V1ReservationDetails
|
|
528
|
+
"""
|
|
529
|
+
|
|
530
|
+
self._reservation_details = reservation_details
|
|
531
|
+
|
|
532
|
+
@property
|
|
533
|
+
def reserved_capacity_provider(self) -> 'bool':
|
|
534
|
+
"""Gets the reserved_capacity_provider of this V1ClusterSpec. # noqa: E501
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
:return: The reserved_capacity_provider of this V1ClusterSpec. # noqa: E501
|
|
538
|
+
:rtype: bool
|
|
539
|
+
"""
|
|
540
|
+
return self._reserved_capacity_provider
|
|
541
|
+
|
|
542
|
+
@reserved_capacity_provider.setter
|
|
543
|
+
def reserved_capacity_provider(self, reserved_capacity_provider: 'bool'):
|
|
544
|
+
"""Sets the reserved_capacity_provider of this V1ClusterSpec.
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
:param reserved_capacity_provider: The reserved_capacity_provider of this V1ClusterSpec. # noqa: E501
|
|
548
|
+
:type: bool
|
|
549
|
+
"""
|
|
550
|
+
|
|
551
|
+
self._reserved_capacity_provider = reserved_capacity_provider
|
|
552
|
+
|
|
418
553
|
@property
|
|
419
554
|
def security_options(self) -> 'V1ClusterSecurityOptions':
|
|
420
555
|
"""Gets the security_options of this V1ClusterSpec. # noqa: E501
|
|
@@ -499,6 +634,27 @@ class V1ClusterSpec(object):
|
|
|
499
634
|
|
|
500
635
|
self._user_id = user_id
|
|
501
636
|
|
|
637
|
+
@property
|
|
638
|
+
def voltage_park_v1(self) -> 'V1VoltageParkDirectV1':
|
|
639
|
+
"""Gets the voltage_park_v1 of this V1ClusterSpec. # noqa: E501
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
:return: The voltage_park_v1 of this V1ClusterSpec. # noqa: E501
|
|
643
|
+
:rtype: V1VoltageParkDirectV1
|
|
644
|
+
"""
|
|
645
|
+
return self._voltage_park_v1
|
|
646
|
+
|
|
647
|
+
@voltage_park_v1.setter
|
|
648
|
+
def voltage_park_v1(self, voltage_park_v1: 'V1VoltageParkDirectV1'):
|
|
649
|
+
"""Sets the voltage_park_v1 of this V1ClusterSpec.
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
:param voltage_park_v1: The voltage_park_v1 of this V1ClusterSpec. # noqa: E501
|
|
653
|
+
:type: V1VoltageParkDirectV1
|
|
654
|
+
"""
|
|
655
|
+
|
|
656
|
+
self._voltage_park_v1 = voltage_park_v1
|
|
657
|
+
|
|
502
658
|
@property
|
|
503
659
|
def vultr_v1(self) -> 'V1VultrDirectV1':
|
|
504
660
|
"""Gets the vultr_v1 of this V1ClusterSpec. # noqa: E501
|
lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
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 V1CompleteLitDatasetMultiPartUploadResponse(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
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self): # noqa: E501
|
|
50
|
+
"""V1CompleteLitDatasetMultiPartUploadResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> dict:
|
|
54
|
+
"""Returns the model properties as a dict"""
|
|
55
|
+
result = {}
|
|
56
|
+
|
|
57
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
58
|
+
value = getattr(self, attr)
|
|
59
|
+
if isinstance(value, list):
|
|
60
|
+
result[attr] = list(map(
|
|
61
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
62
|
+
value
|
|
63
|
+
))
|
|
64
|
+
elif hasattr(value, "to_dict"):
|
|
65
|
+
result[attr] = value.to_dict()
|
|
66
|
+
elif isinstance(value, dict):
|
|
67
|
+
result[attr] = dict(map(
|
|
68
|
+
lambda item: (item[0], item[1].to_dict())
|
|
69
|
+
if hasattr(item[1], "to_dict") else item,
|
|
70
|
+
value.items()
|
|
71
|
+
))
|
|
72
|
+
else:
|
|
73
|
+
result[attr] = value
|
|
74
|
+
if issubclass(V1CompleteLitDatasetMultiPartUploadResponse, dict):
|
|
75
|
+
for key, value in self.items():
|
|
76
|
+
result[key] = value
|
|
77
|
+
|
|
78
|
+
return result
|
|
79
|
+
|
|
80
|
+
def to_str(self) -> str:
|
|
81
|
+
"""Returns the string representation of the model"""
|
|
82
|
+
return pprint.pformat(self.to_dict())
|
|
83
|
+
|
|
84
|
+
def __repr__(self) -> str:
|
|
85
|
+
"""For `print` and `pprint`"""
|
|
86
|
+
return self.to_str()
|
|
87
|
+
|
|
88
|
+
def __eq__(self, other: 'V1CompleteLitDatasetMultiPartUploadResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1CompleteLitDatasetMultiPartUploadResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1CompleteLitDatasetMultiPartUploadResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -0,0 +1,97 @@
|
|
|
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 V1CompleteLitDatasetUploadResponse(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
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self): # noqa: E501
|
|
50
|
+
"""V1CompleteLitDatasetUploadResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> dict:
|
|
54
|
+
"""Returns the model properties as a dict"""
|
|
55
|
+
result = {}
|
|
56
|
+
|
|
57
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
58
|
+
value = getattr(self, attr)
|
|
59
|
+
if isinstance(value, list):
|
|
60
|
+
result[attr] = list(map(
|
|
61
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
62
|
+
value
|
|
63
|
+
))
|
|
64
|
+
elif hasattr(value, "to_dict"):
|
|
65
|
+
result[attr] = value.to_dict()
|
|
66
|
+
elif isinstance(value, dict):
|
|
67
|
+
result[attr] = dict(map(
|
|
68
|
+
lambda item: (item[0], item[1].to_dict())
|
|
69
|
+
if hasattr(item[1], "to_dict") else item,
|
|
70
|
+
value.items()
|
|
71
|
+
))
|
|
72
|
+
else:
|
|
73
|
+
result[attr] = value
|
|
74
|
+
if issubclass(V1CompleteLitDatasetUploadResponse, dict):
|
|
75
|
+
for key, value in self.items():
|
|
76
|
+
result[key] = value
|
|
77
|
+
|
|
78
|
+
return result
|
|
79
|
+
|
|
80
|
+
def to_str(self) -> str:
|
|
81
|
+
"""Returns the string representation of the model"""
|
|
82
|
+
return pprint.pformat(self.to_dict())
|
|
83
|
+
|
|
84
|
+
def __repr__(self) -> str:
|
|
85
|
+
"""For `print` and `pprint`"""
|
|
86
|
+
return self.to_str()
|
|
87
|
+
|
|
88
|
+
def __eq__(self, other: 'V1CompleteLitDatasetUploadResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1CompleteLitDatasetUploadResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1CompleteLitDatasetUploadResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|