lightning-sdk 0.2.5__py3-none-any.whl → 0.2.7__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/ai_hub_api.py +1 -0
- lightning_sdk/api/lit_container_api.py +84 -24
- lightning_sdk/api/teamspace_api.py +8 -9
- lightning_sdk/api/utils.py +0 -1
- lightning_sdk/cli/docker.py +1 -1
- lightning_sdk/cli/download.py +10 -2
- lightning_sdk/cli/serve.py +26 -19
- lightning_sdk/cli/upload.py +41 -6
- lightning_sdk/lightning_cloud/openapi/__init__.py +16 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +9 -9
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +15 -3
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +16 -0
- lightning_sdk/lightning_cloud/openapi/models/alerts_config_billing.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/alerts_config_studios.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cluster.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_alert_method.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_alerts_config.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics.py +617 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
- 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 +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +27 -1
- 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_google_cloud_direct_v1.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +1 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_cold_start_metrics_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_message.py +29 -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_project_settings.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_stop_at_response.py +97 -0
- 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_server_alert.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_phase.py +104 -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_subnet_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +131 -79
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
- lightning_sdk/lit_container.py +19 -4
- lightning_sdk/models.py +1 -1
- lightning_sdk/serve.py +86 -15
- lightning_sdk/teamspace.py +32 -18
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/RECORD +65 -49
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/top_level.txt +0 -0
|
@@ -56,6 +56,7 @@ class V1Metadata(object):
|
|
|
56
56
|
'name': 'str',
|
|
57
57
|
'org_id': 'str',
|
|
58
58
|
'project_id': 'str',
|
|
59
|
+
'protected': 'bool',
|
|
59
60
|
'resource_version': 'str',
|
|
60
61
|
'updated_at': 'datetime'
|
|
61
62
|
}
|
|
@@ -76,11 +77,12 @@ class V1Metadata(object):
|
|
|
76
77
|
'name': 'name',
|
|
77
78
|
'org_id': 'orgId',
|
|
78
79
|
'project_id': 'projectId',
|
|
80
|
+
'protected': 'protected',
|
|
79
81
|
'resource_version': 'resourceVersion',
|
|
80
82
|
'updated_at': 'updatedAt'
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
def __init__(self, annotations: 'dict(str, str)' =None, cluster_id: 'str' =None, creation_timestamp: 'datetime' =None, deletion_timestamp: 'datetime' =None, deployment_id: 'str' =None, display_name: 'str' =None, finalizers: 'list[str]' =None, id: 'str' =None, labels: 'dict(str, str)' =None, last_updated_by_user_at: 'datetime' =None, linked_project_id: 'str' =None, linked_user_id: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, resource_version: 'str' =None, updated_at: 'datetime' =None): # noqa: E501
|
|
85
|
+
def __init__(self, annotations: 'dict(str, str)' =None, cluster_id: 'str' =None, creation_timestamp: 'datetime' =None, deletion_timestamp: 'datetime' =None, deployment_id: 'str' =None, display_name: 'str' =None, finalizers: 'list[str]' =None, id: 'str' =None, labels: 'dict(str, str)' =None, last_updated_by_user_at: 'datetime' =None, linked_project_id: 'str' =None, linked_user_id: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, protected: 'bool' =None, resource_version: 'str' =None, updated_at: 'datetime' =None): # noqa: E501
|
|
84
86
|
"""V1Metadata - a model defined in Swagger""" # noqa: E501
|
|
85
87
|
self._annotations = None
|
|
86
88
|
self._cluster_id = None
|
|
@@ -97,6 +99,7 @@ class V1Metadata(object):
|
|
|
97
99
|
self._name = None
|
|
98
100
|
self._org_id = None
|
|
99
101
|
self._project_id = None
|
|
102
|
+
self._protected = None
|
|
100
103
|
self._resource_version = None
|
|
101
104
|
self._updated_at = None
|
|
102
105
|
self.discriminator = None
|
|
@@ -130,6 +133,8 @@ class V1Metadata(object):
|
|
|
130
133
|
self.org_id = org_id
|
|
131
134
|
if project_id is not None:
|
|
132
135
|
self.project_id = project_id
|
|
136
|
+
if protected is not None:
|
|
137
|
+
self.protected = protected
|
|
133
138
|
if resource_version is not None:
|
|
134
139
|
self.resource_version = resource_version
|
|
135
140
|
if updated_at is not None:
|
|
@@ -452,6 +457,27 @@ class V1Metadata(object):
|
|
|
452
457
|
|
|
453
458
|
self._project_id = project_id
|
|
454
459
|
|
|
460
|
+
@property
|
|
461
|
+
def protected(self) -> 'bool':
|
|
462
|
+
"""Gets the protected of this V1Metadata. # noqa: E501
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
:return: The protected of this V1Metadata. # noqa: E501
|
|
466
|
+
:rtype: bool
|
|
467
|
+
"""
|
|
468
|
+
return self._protected
|
|
469
|
+
|
|
470
|
+
@protected.setter
|
|
471
|
+
def protected(self, protected: 'bool'):
|
|
472
|
+
"""Sets the protected of this V1Metadata.
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
:param protected: The protected of this V1Metadata. # noqa: E501
|
|
476
|
+
:type: bool
|
|
477
|
+
"""
|
|
478
|
+
|
|
479
|
+
self._protected = protected
|
|
480
|
+
|
|
455
481
|
@property
|
|
456
482
|
def resource_version(self) -> 'str':
|
|
457
483
|
"""Gets the resource_version of this V1Metadata. # noqa: E501
|
|
@@ -41,6 +41,7 @@ class V1Organization(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'alerts_config': 'V1AlertsConfig',
|
|
44
45
|
'allow_aws_saas': 'bool',
|
|
45
46
|
'allow_gcp_saas': 'bool',
|
|
46
47
|
'allow_guest': 'bool',
|
|
@@ -54,6 +55,7 @@ class V1Organization(object):
|
|
|
54
55
|
'auto_join_domains': 'list[str]',
|
|
55
56
|
'created_at': 'datetime',
|
|
56
57
|
'default_machine_image_version': 'str',
|
|
58
|
+
'default_machine_type': 'str',
|
|
57
59
|
'description': 'str',
|
|
58
60
|
'display_name': 'str',
|
|
59
61
|
'domain': 'str',
|
|
@@ -74,6 +76,7 @@ class V1Organization(object):
|
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
attribute_map = {
|
|
79
|
+
'alerts_config': 'alertsConfig',
|
|
77
80
|
'allow_aws_saas': 'allowAwsSaas',
|
|
78
81
|
'allow_gcp_saas': 'allowGcpSaas',
|
|
79
82
|
'allow_guest': 'allowGuest',
|
|
@@ -87,6 +90,7 @@ class V1Organization(object):
|
|
|
87
90
|
'auto_join_domains': 'autoJoinDomains',
|
|
88
91
|
'created_at': 'createdAt',
|
|
89
92
|
'default_machine_image_version': 'defaultMachineImageVersion',
|
|
93
|
+
'default_machine_type': 'defaultMachineType',
|
|
90
94
|
'description': 'description',
|
|
91
95
|
'display_name': 'displayName',
|
|
92
96
|
'domain': 'domain',
|
|
@@ -106,8 +110,9 @@ class V1Organization(object):
|
|
|
106
110
|
'updated_at': 'updatedAt'
|
|
107
111
|
}
|
|
108
112
|
|
|
109
|
-
def __init__(self, allow_aws_saas: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_guest: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, allow_vultr_saas: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domain_validations: 'dict(str, V1AutoJoinDomainValidation)' =None, auto_join_domains: 'list[str]' =None, created_at: 'datetime' =None, default_machine_image_version: 'str' =None, description: 'str' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, full_story_end_date: 'datetime' =None, full_story_start_date: 'datetime' =None, id: 'str' =None, location: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, updated_at: 'datetime' =None): # noqa: E501
|
|
113
|
+
def __init__(self, alerts_config: 'V1AlertsConfig' =None, allow_aws_saas: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_guest: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, allow_vultr_saas: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domain_validations: 'dict(str, V1AutoJoinDomainValidation)' =None, auto_join_domains: 'list[str]' =None, created_at: 'datetime' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, full_story_end_date: 'datetime' =None, full_story_start_date: 'datetime' =None, id: 'str' =None, location: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, updated_at: 'datetime' =None): # noqa: E501
|
|
110
114
|
"""V1Organization - a model defined in Swagger""" # noqa: E501
|
|
115
|
+
self._alerts_config = None
|
|
111
116
|
self._allow_aws_saas = None
|
|
112
117
|
self._allow_gcp_saas = None
|
|
113
118
|
self._allow_guest = None
|
|
@@ -121,6 +126,7 @@ class V1Organization(object):
|
|
|
121
126
|
self._auto_join_domains = None
|
|
122
127
|
self._created_at = None
|
|
123
128
|
self._default_machine_image_version = None
|
|
129
|
+
self._default_machine_type = None
|
|
124
130
|
self._description = None
|
|
125
131
|
self._display_name = None
|
|
126
132
|
self._domain = None
|
|
@@ -139,6 +145,8 @@ class V1Organization(object):
|
|
|
139
145
|
self._twitter_username = None
|
|
140
146
|
self._updated_at = None
|
|
141
147
|
self.discriminator = None
|
|
148
|
+
if alerts_config is not None:
|
|
149
|
+
self.alerts_config = alerts_config
|
|
142
150
|
if allow_aws_saas is not None:
|
|
143
151
|
self.allow_aws_saas = allow_aws_saas
|
|
144
152
|
if allow_gcp_saas is not None:
|
|
@@ -165,6 +173,8 @@ class V1Organization(object):
|
|
|
165
173
|
self.created_at = created_at
|
|
166
174
|
if default_machine_image_version is not None:
|
|
167
175
|
self.default_machine_image_version = default_machine_image_version
|
|
176
|
+
if default_machine_type is not None:
|
|
177
|
+
self.default_machine_type = default_machine_type
|
|
168
178
|
if description is not None:
|
|
169
179
|
self.description = description
|
|
170
180
|
if display_name is not None:
|
|
@@ -200,6 +210,27 @@ class V1Organization(object):
|
|
|
200
210
|
if updated_at is not None:
|
|
201
211
|
self.updated_at = updated_at
|
|
202
212
|
|
|
213
|
+
@property
|
|
214
|
+
def alerts_config(self) -> 'V1AlertsConfig':
|
|
215
|
+
"""Gets the alerts_config of this V1Organization. # noqa: E501
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:return: The alerts_config of this V1Organization. # noqa: E501
|
|
219
|
+
:rtype: V1AlertsConfig
|
|
220
|
+
"""
|
|
221
|
+
return self._alerts_config
|
|
222
|
+
|
|
223
|
+
@alerts_config.setter
|
|
224
|
+
def alerts_config(self, alerts_config: 'V1AlertsConfig'):
|
|
225
|
+
"""Sets the alerts_config of this V1Organization.
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:param alerts_config: The alerts_config of this V1Organization. # noqa: E501
|
|
229
|
+
:type: V1AlertsConfig
|
|
230
|
+
"""
|
|
231
|
+
|
|
232
|
+
self._alerts_config = alerts_config
|
|
233
|
+
|
|
203
234
|
@property
|
|
204
235
|
def allow_aws_saas(self) -> 'bool':
|
|
205
236
|
"""Gets the allow_aws_saas of this V1Organization. # noqa: E501
|
|
@@ -473,6 +504,27 @@ class V1Organization(object):
|
|
|
473
504
|
|
|
474
505
|
self._default_machine_image_version = default_machine_image_version
|
|
475
506
|
|
|
507
|
+
@property
|
|
508
|
+
def default_machine_type(self) -> 'str':
|
|
509
|
+
"""Gets the default_machine_type of this V1Organization. # noqa: E501
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
:return: The default_machine_type of this V1Organization. # noqa: E501
|
|
513
|
+
:rtype: str
|
|
514
|
+
"""
|
|
515
|
+
return self._default_machine_type
|
|
516
|
+
|
|
517
|
+
@default_machine_type.setter
|
|
518
|
+
def default_machine_type(self, default_machine_type: 'str'):
|
|
519
|
+
"""Sets the default_machine_type of this V1Organization.
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
:param default_machine_type: The default_machine_type of this V1Organization. # noqa: E501
|
|
523
|
+
:type: str
|
|
524
|
+
"""
|
|
525
|
+
|
|
526
|
+
self._default_machine_type = default_machine_type
|
|
527
|
+
|
|
476
528
|
@property
|
|
477
529
|
def description(self) -> 'str':
|
|
478
530
|
"""Gets the description of this V1Organization. # noqa: E501
|
|
@@ -46,6 +46,7 @@ class V1ProjectSettings(object):
|
|
|
46
46
|
'allow_lambda_saas': 'bool',
|
|
47
47
|
'allow_vultr_saas': 'bool',
|
|
48
48
|
'default_machine_image_version': 'str',
|
|
49
|
+
'default_machine_type': 'str',
|
|
49
50
|
'preferred_cluster': 'str',
|
|
50
51
|
'preferred_deployment_provider': 'str',
|
|
51
52
|
'preferred_studio_provider': 'str',
|
|
@@ -59,6 +60,7 @@ class V1ProjectSettings(object):
|
|
|
59
60
|
'allow_lambda_saas': 'allowLambdaSaas',
|
|
60
61
|
'allow_vultr_saas': 'allowVultrSaas',
|
|
61
62
|
'default_machine_image_version': 'defaultMachineImageVersion',
|
|
63
|
+
'default_machine_type': 'defaultMachineType',
|
|
62
64
|
'preferred_cluster': 'preferredCluster',
|
|
63
65
|
'preferred_deployment_provider': 'preferredDeploymentProvider',
|
|
64
66
|
'preferred_studio_provider': 'preferredStudioProvider',
|
|
@@ -66,13 +68,14 @@ class V1ProjectSettings(object):
|
|
|
66
68
|
'start_studio_on_spot_instance': 'startStudioOnSpotInstance'
|
|
67
69
|
}
|
|
68
70
|
|
|
69
|
-
def __init__(self, allow_aws_saas: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_vultr_saas: 'bool' =None, default_machine_image_version: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, same_compute_on_resume: 'bool' =None, start_studio_on_spot_instance: 'bool' =None): # noqa: E501
|
|
71
|
+
def __init__(self, allow_aws_saas: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_vultr_saas: 'bool' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, same_compute_on_resume: 'bool' =None, start_studio_on_spot_instance: 'bool' =None): # noqa: E501
|
|
70
72
|
"""V1ProjectSettings - a model defined in Swagger""" # noqa: E501
|
|
71
73
|
self._allow_aws_saas = None
|
|
72
74
|
self._allow_gcp_saas = None
|
|
73
75
|
self._allow_lambda_saas = None
|
|
74
76
|
self._allow_vultr_saas = None
|
|
75
77
|
self._default_machine_image_version = None
|
|
78
|
+
self._default_machine_type = None
|
|
76
79
|
self._preferred_cluster = None
|
|
77
80
|
self._preferred_deployment_provider = None
|
|
78
81
|
self._preferred_studio_provider = None
|
|
@@ -89,6 +92,8 @@ class V1ProjectSettings(object):
|
|
|
89
92
|
self.allow_vultr_saas = allow_vultr_saas
|
|
90
93
|
if default_machine_image_version is not None:
|
|
91
94
|
self.default_machine_image_version = default_machine_image_version
|
|
95
|
+
if default_machine_type is not None:
|
|
96
|
+
self.default_machine_type = default_machine_type
|
|
92
97
|
if preferred_cluster is not None:
|
|
93
98
|
self.preferred_cluster = preferred_cluster
|
|
94
99
|
if preferred_deployment_provider is not None:
|
|
@@ -205,6 +210,27 @@ class V1ProjectSettings(object):
|
|
|
205
210
|
|
|
206
211
|
self._default_machine_image_version = default_machine_image_version
|
|
207
212
|
|
|
213
|
+
@property
|
|
214
|
+
def default_machine_type(self) -> 'str':
|
|
215
|
+
"""Gets the default_machine_type of this V1ProjectSettings. # noqa: E501
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:return: The default_machine_type of this V1ProjectSettings. # noqa: E501
|
|
219
|
+
:rtype: str
|
|
220
|
+
"""
|
|
221
|
+
return self._default_machine_type
|
|
222
|
+
|
|
223
|
+
@default_machine_type.setter
|
|
224
|
+
def default_machine_type(self, default_machine_type: 'str'):
|
|
225
|
+
"""Sets the default_machine_type of this V1ProjectSettings.
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:param default_machine_type: The default_machine_type of this V1ProjectSettings. # noqa: E501
|
|
229
|
+
:type: str
|
|
230
|
+
"""
|
|
231
|
+
|
|
232
|
+
self._default_machine_type = default_machine_type
|
|
233
|
+
|
|
208
234
|
@property
|
|
209
235
|
def preferred_cluster(self) -> 'str':
|
|
210
236
|
"""Gets the preferred_cluster of this V1ProjectSettings. # noqa: E501
|
lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_stop_at_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 V1ReportCloudSpaceInstanceStopAtResponse(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
|
+
"""V1ReportCloudSpaceInstanceStopAtResponse - 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(V1ReportCloudSpaceInstanceStopAtResponse, 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: 'V1ReportCloudSpaceInstanceStopAtResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1ReportCloudSpaceInstanceStopAtResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1ReportCloudSpaceInstanceStopAtResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class V1ReservationDetails(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
"""
|
|
37
|
+
Attributes:
|
|
38
|
+
swagger_types (dict): The key is attribute name
|
|
39
|
+
and the value is attribute type.
|
|
40
|
+
attribute_map (dict): The key is attribute name
|
|
41
|
+
and the value is json key in definition.
|
|
42
|
+
"""
|
|
43
|
+
swagger_types = {
|
|
44
|
+
'cost_per_hour': 'float',
|
|
45
|
+
'end_time': 'datetime',
|
|
46
|
+
'name': 'str',
|
|
47
|
+
'start_time': 'datetime'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'cost_per_hour': 'costPerHour',
|
|
52
|
+
'end_time': 'endTime',
|
|
53
|
+
'name': 'name',
|
|
54
|
+
'start_time': 'startTime'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, cost_per_hour: 'float' =None, end_time: 'datetime' =None, name: 'str' =None, start_time: 'datetime' =None): # noqa: E501
|
|
58
|
+
"""V1ReservationDetails - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._cost_per_hour = None
|
|
60
|
+
self._end_time = None
|
|
61
|
+
self._name = None
|
|
62
|
+
self._start_time = None
|
|
63
|
+
self.discriminator = None
|
|
64
|
+
if cost_per_hour is not None:
|
|
65
|
+
self.cost_per_hour = cost_per_hour
|
|
66
|
+
if end_time is not None:
|
|
67
|
+
self.end_time = end_time
|
|
68
|
+
if name is not None:
|
|
69
|
+
self.name = name
|
|
70
|
+
if start_time is not None:
|
|
71
|
+
self.start_time = start_time
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def cost_per_hour(self) -> 'float':
|
|
75
|
+
"""Gets the cost_per_hour of this V1ReservationDetails. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The cost_per_hour of this V1ReservationDetails. # noqa: E501
|
|
79
|
+
:rtype: float
|
|
80
|
+
"""
|
|
81
|
+
return self._cost_per_hour
|
|
82
|
+
|
|
83
|
+
@cost_per_hour.setter
|
|
84
|
+
def cost_per_hour(self, cost_per_hour: 'float'):
|
|
85
|
+
"""Sets the cost_per_hour of this V1ReservationDetails.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param cost_per_hour: The cost_per_hour of this V1ReservationDetails. # noqa: E501
|
|
89
|
+
:type: float
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._cost_per_hour = cost_per_hour
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def end_time(self) -> 'datetime':
|
|
96
|
+
"""Gets the end_time of this V1ReservationDetails. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The end_time of this V1ReservationDetails. # noqa: E501
|
|
100
|
+
:rtype: datetime
|
|
101
|
+
"""
|
|
102
|
+
return self._end_time
|
|
103
|
+
|
|
104
|
+
@end_time.setter
|
|
105
|
+
def end_time(self, end_time: 'datetime'):
|
|
106
|
+
"""Sets the end_time of this V1ReservationDetails.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param end_time: The end_time of this V1ReservationDetails. # noqa: E501
|
|
110
|
+
:type: datetime
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._end_time = end_time
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def name(self) -> 'str':
|
|
117
|
+
"""Gets the name of this V1ReservationDetails. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The name of this V1ReservationDetails. # noqa: E501
|
|
121
|
+
:rtype: str
|
|
122
|
+
"""
|
|
123
|
+
return self._name
|
|
124
|
+
|
|
125
|
+
@name.setter
|
|
126
|
+
def name(self, name: 'str'):
|
|
127
|
+
"""Sets the name of this V1ReservationDetails.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param name: The name of this V1ReservationDetails. # noqa: E501
|
|
131
|
+
:type: str
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._name = name
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def start_time(self) -> 'datetime':
|
|
138
|
+
"""Gets the start_time of this V1ReservationDetails. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The start_time of this V1ReservationDetails. # noqa: E501
|
|
142
|
+
:rtype: datetime
|
|
143
|
+
"""
|
|
144
|
+
return self._start_time
|
|
145
|
+
|
|
146
|
+
@start_time.setter
|
|
147
|
+
def start_time(self, start_time: 'datetime'):
|
|
148
|
+
"""Sets the start_time of this V1ReservationDetails.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param start_time: The start_time of this V1ReservationDetails. # noqa: E501
|
|
152
|
+
:type: datetime
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._start_time = start_time
|
|
156
|
+
|
|
157
|
+
def to_dict(self) -> dict:
|
|
158
|
+
"""Returns the model properties as a dict"""
|
|
159
|
+
result = {}
|
|
160
|
+
|
|
161
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
162
|
+
value = getattr(self, attr)
|
|
163
|
+
if isinstance(value, list):
|
|
164
|
+
result[attr] = list(map(
|
|
165
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
166
|
+
value
|
|
167
|
+
))
|
|
168
|
+
elif hasattr(value, "to_dict"):
|
|
169
|
+
result[attr] = value.to_dict()
|
|
170
|
+
elif isinstance(value, dict):
|
|
171
|
+
result[attr] = dict(map(
|
|
172
|
+
lambda item: (item[0], item[1].to_dict())
|
|
173
|
+
if hasattr(item[1], "to_dict") else item,
|
|
174
|
+
value.items()
|
|
175
|
+
))
|
|
176
|
+
else:
|
|
177
|
+
result[attr] = value
|
|
178
|
+
if issubclass(V1ReservationDetails, dict):
|
|
179
|
+
for key, value in self.items():
|
|
180
|
+
result[key] = value
|
|
181
|
+
|
|
182
|
+
return result
|
|
183
|
+
|
|
184
|
+
def to_str(self) -> str:
|
|
185
|
+
"""Returns the string representation of the model"""
|
|
186
|
+
return pprint.pformat(self.to_dict())
|
|
187
|
+
|
|
188
|
+
def __repr__(self) -> str:
|
|
189
|
+
"""For `print` and `pprint`"""
|
|
190
|
+
return self.to_str()
|
|
191
|
+
|
|
192
|
+
def __eq__(self, other: 'V1ReservationDetails') -> bool:
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, V1ReservationDetails):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other: 'V1ReservationDetails') -> bool:
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|