lightning-sdk 2025.8.1__py3-none-any.whl → 2025.8.6rc1__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/deployment_api.py +6 -4
- lightning_sdk/api/job_api.py +2 -0
- lightning_sdk/api/mmt_api.py +2 -0
- lightning_sdk/deployment/deployment.py +5 -0
- lightning_sdk/lightning_cloud/login.py +1 -7
- lightning_sdk/lightning_cloud/openapi/__init__.py +15 -23
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +228 -1
- lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +126 -2129
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +625 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -23
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_complete_upload_service_execution_artifact_response.py → v1_complete_running_cloud_space_instance_transfer_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metrics.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_file_endpoints_response.py → v1_list_container_metrics_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/{service_artifact_artifact_kind.py → v1_list_node_file_system_metrics_response.py} +6 -13
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_parts_response.py → v1_list_node_metrics_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_service_execution_response.py → v1_report_k8s_cluster_metrics_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{command_argument_command_argument_type.py → v1_request_cloud_space_access_response.py} +6 -12
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_instance_config_request.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -53
- lightning_sdk/lightning_cloud/utils/data_connection.py +56 -1
- lightning_sdk/llm/llm.py +2 -13
- lightning_sdk/llm/public_assistants.py +17 -0
- lightning_sdk/pipeline/steps.py +30 -1
- lightning_sdk/services/file_endpoint.py +3 -4
- {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/RECORD +47 -55
- lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +0 -409
- lightning_sdk/lightning_cloud/openapi/models/id_complete_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/id_storage_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/id_uploads_body1.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +0 -357
- lightning_sdk/lightning_cloud/openapi/models/project_id_serviceexecution_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +0 -331
- lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +0 -305
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_file_endpoint_response.py +0 -149
- lightning_sdk/lightning_cloud/openapi/models/v1_download_service_execution_artifact_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +0 -461
- lightning_sdk/lightning_cloud/openapi/models/v1_get_service_execution_status_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_executions_response.py +0 -123
- lightning_sdk/lightning_cloud/openapi/models/v1_service_artifact.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +0 -383
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_service_execution_artifact_response.py +0 -149
- lightning_sdk/llm/public_assistants.json +0 -34
- {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/top_level.txt +0 -0
|
@@ -94,6 +94,7 @@ class V1CloudSpace(object):
|
|
|
94
94
|
'thumbnail_updated_at': 'datetime',
|
|
95
95
|
'thumbnail_url': 'str',
|
|
96
96
|
'total_size_bytes': 'str',
|
|
97
|
+
'transfer_metadata': 'V1CloudSpaceTransferMetadata',
|
|
97
98
|
'updated_at': 'datetime',
|
|
98
99
|
'user_id': 'str',
|
|
99
100
|
'user_metadata': 'str',
|
|
@@ -155,6 +156,7 @@ class V1CloudSpace(object):
|
|
|
155
156
|
'thumbnail_updated_at': 'thumbnailUpdatedAt',
|
|
156
157
|
'thumbnail_url': 'thumbnailUrl',
|
|
157
158
|
'total_size_bytes': 'totalSizeBytes',
|
|
159
|
+
'transfer_metadata': 'transferMetadata',
|
|
158
160
|
'updated_at': 'updatedAt',
|
|
159
161
|
'user_id': 'userId',
|
|
160
162
|
'user_metadata': 'userMetadata',
|
|
@@ -162,7 +164,7 @@ class V1CloudSpace(object):
|
|
|
162
164
|
'web_path': 'webPath'
|
|
163
165
|
}
|
|
164
166
|
|
|
165
|
-
def __init__(self, auto_switch_machine: 'bool' =None, cache_data_connection_id: 'str' =None, can_download_source_code: 'bool' =None, cluster_id: 'str' =None, code_config: 'V1CloudSpaceInstanceConfig' =None, code_status: 'V1GetCloudSpaceInstanceStatusResponse' =None, code_url: 'str' =None, created_at: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, description: 'str' =None, disable_secrets: 'bool' =None, display_name: 'str' =None, engagement_counts: 'dict(str, str)' =None, env: 'list[V1EnvVar]' =None, environment_config: 'V1CloudSpaceEnvironmentConfig' =None, environment_template_id: 'str' =None, featured: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, image_status: 'V1ImageState' =None, is_cloudspace_private: 'bool' =None, is_code_private: 'bool' =None, is_favorite: 'bool' =None, is_published: 'bool' =None, license: 'str' =None, license_url: 'str' =None, lock_out: 'bool' =None, machine_image_version: 'str' =None, max_run_duration: 'str' =None, message: 'str' =None, multi_user_edit: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, persistent_disk_id: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, sandbox: 'bool' =None, state: 'V1CloudSpaceState' =None, switch_to_default_machine_on_idle: 'bool' =None, sync_duration: 'str' =None, sync_percentage: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_file_type: 'str' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None, user_metadata: 'str' =None, visibility: 'V1ResourceVisibility' =None, web_path: 'str' =None): # noqa: E501
|
|
167
|
+
def __init__(self, auto_switch_machine: 'bool' =None, cache_data_connection_id: 'str' =None, can_download_source_code: 'bool' =None, cluster_id: 'str' =None, code_config: 'V1CloudSpaceInstanceConfig' =None, code_status: 'V1GetCloudSpaceInstanceStatusResponse' =None, code_url: 'str' =None, created_at: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, description: 'str' =None, disable_secrets: 'bool' =None, display_name: 'str' =None, engagement_counts: 'dict(str, str)' =None, env: 'list[V1EnvVar]' =None, environment_config: 'V1CloudSpaceEnvironmentConfig' =None, environment_template_id: 'str' =None, featured: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, image_status: 'V1ImageState' =None, is_cloudspace_private: 'bool' =None, is_code_private: 'bool' =None, is_favorite: 'bool' =None, is_published: 'bool' =None, license: 'str' =None, license_url: 'str' =None, lock_out: 'bool' =None, machine_image_version: 'str' =None, max_run_duration: 'str' =None, message: 'str' =None, multi_user_edit: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, persistent_disk_id: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, sandbox: 'bool' =None, state: 'V1CloudSpaceState' =None, switch_to_default_machine_on_idle: 'bool' =None, sync_duration: 'str' =None, sync_percentage: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_file_type: 'str' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, total_size_bytes: 'str' =None, transfer_metadata: 'V1CloudSpaceTransferMetadata' =None, updated_at: 'datetime' =None, user_id: 'str' =None, user_metadata: 'str' =None, visibility: 'V1ResourceVisibility' =None, web_path: 'str' =None): # noqa: E501
|
|
166
168
|
"""V1CloudSpace - a model defined in Swagger""" # noqa: E501
|
|
167
169
|
self._auto_switch_machine = None
|
|
168
170
|
self._cache_data_connection_id = None
|
|
@@ -217,6 +219,7 @@ class V1CloudSpace(object):
|
|
|
217
219
|
self._thumbnail_updated_at = None
|
|
218
220
|
self._thumbnail_url = None
|
|
219
221
|
self._total_size_bytes = None
|
|
222
|
+
self._transfer_metadata = None
|
|
220
223
|
self._updated_at = None
|
|
221
224
|
self._user_id = None
|
|
222
225
|
self._user_metadata = None
|
|
@@ -329,6 +332,8 @@ class V1CloudSpace(object):
|
|
|
329
332
|
self.thumbnail_url = thumbnail_url
|
|
330
333
|
if total_size_bytes is not None:
|
|
331
334
|
self.total_size_bytes = total_size_bytes
|
|
335
|
+
if transfer_metadata is not None:
|
|
336
|
+
self.transfer_metadata = transfer_metadata
|
|
332
337
|
if updated_at is not None:
|
|
333
338
|
self.updated_at = updated_at
|
|
334
339
|
if user_id is not None:
|
|
@@ -1453,6 +1458,27 @@ class V1CloudSpace(object):
|
|
|
1453
1458
|
|
|
1454
1459
|
self._total_size_bytes = total_size_bytes
|
|
1455
1460
|
|
|
1461
|
+
@property
|
|
1462
|
+
def transfer_metadata(self) -> 'V1CloudSpaceTransferMetadata':
|
|
1463
|
+
"""Gets the transfer_metadata of this V1CloudSpace. # noqa: E501
|
|
1464
|
+
|
|
1465
|
+
|
|
1466
|
+
:return: The transfer_metadata of this V1CloudSpace. # noqa: E501
|
|
1467
|
+
:rtype: V1CloudSpaceTransferMetadata
|
|
1468
|
+
"""
|
|
1469
|
+
return self._transfer_metadata
|
|
1470
|
+
|
|
1471
|
+
@transfer_metadata.setter
|
|
1472
|
+
def transfer_metadata(self, transfer_metadata: 'V1CloudSpaceTransferMetadata'):
|
|
1473
|
+
"""Sets the transfer_metadata of this V1CloudSpace.
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
:param transfer_metadata: The transfer_metadata of this V1CloudSpace. # noqa: E501
|
|
1477
|
+
:type: V1CloudSpaceTransferMetadata
|
|
1478
|
+
"""
|
|
1479
|
+
|
|
1480
|
+
self._transfer_metadata = transfer_metadata
|
|
1481
|
+
|
|
1456
1482
|
@property
|
|
1457
1483
|
def updated_at(self) -> 'datetime':
|
|
1458
1484
|
"""Gets the updated_at of this V1CloudSpace. # noqa: E501
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class V1CloudSpaceTransferMetadata(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
|
+
'initial_transfer_completed_at': 'datetime',
|
|
45
|
+
'requested_code_config': 'V1UpdateCloudSpaceInstanceConfigRequest',
|
|
46
|
+
'source_cluster_id': 'str',
|
|
47
|
+
'target_cluster_id': 'str'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'initial_transfer_completed_at': 'initialTransferCompletedAt',
|
|
52
|
+
'requested_code_config': 'requestedCodeConfig',
|
|
53
|
+
'source_cluster_id': 'sourceClusterId',
|
|
54
|
+
'target_cluster_id': 'targetClusterId'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, initial_transfer_completed_at: 'datetime' =None, requested_code_config: 'V1UpdateCloudSpaceInstanceConfigRequest' =None, source_cluster_id: 'str' =None, target_cluster_id: 'str' =None): # noqa: E501
|
|
58
|
+
"""V1CloudSpaceTransferMetadata - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._initial_transfer_completed_at = None
|
|
60
|
+
self._requested_code_config = None
|
|
61
|
+
self._source_cluster_id = None
|
|
62
|
+
self._target_cluster_id = None
|
|
63
|
+
self.discriminator = None
|
|
64
|
+
if initial_transfer_completed_at is not None:
|
|
65
|
+
self.initial_transfer_completed_at = initial_transfer_completed_at
|
|
66
|
+
if requested_code_config is not None:
|
|
67
|
+
self.requested_code_config = requested_code_config
|
|
68
|
+
if source_cluster_id is not None:
|
|
69
|
+
self.source_cluster_id = source_cluster_id
|
|
70
|
+
if target_cluster_id is not None:
|
|
71
|
+
self.target_cluster_id = target_cluster_id
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def initial_transfer_completed_at(self) -> 'datetime':
|
|
75
|
+
"""Gets the initial_transfer_completed_at of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The initial_transfer_completed_at of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
79
|
+
:rtype: datetime
|
|
80
|
+
"""
|
|
81
|
+
return self._initial_transfer_completed_at
|
|
82
|
+
|
|
83
|
+
@initial_transfer_completed_at.setter
|
|
84
|
+
def initial_transfer_completed_at(self, initial_transfer_completed_at: 'datetime'):
|
|
85
|
+
"""Sets the initial_transfer_completed_at of this V1CloudSpaceTransferMetadata.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param initial_transfer_completed_at: The initial_transfer_completed_at of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
89
|
+
:type: datetime
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._initial_transfer_completed_at = initial_transfer_completed_at
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def requested_code_config(self) -> 'V1UpdateCloudSpaceInstanceConfigRequest':
|
|
96
|
+
"""Gets the requested_code_config of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The requested_code_config of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
100
|
+
:rtype: V1UpdateCloudSpaceInstanceConfigRequest
|
|
101
|
+
"""
|
|
102
|
+
return self._requested_code_config
|
|
103
|
+
|
|
104
|
+
@requested_code_config.setter
|
|
105
|
+
def requested_code_config(self, requested_code_config: 'V1UpdateCloudSpaceInstanceConfigRequest'):
|
|
106
|
+
"""Sets the requested_code_config of this V1CloudSpaceTransferMetadata.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param requested_code_config: The requested_code_config of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
110
|
+
:type: V1UpdateCloudSpaceInstanceConfigRequest
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._requested_code_config = requested_code_config
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def source_cluster_id(self) -> 'str':
|
|
117
|
+
"""Gets the source_cluster_id of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The source_cluster_id of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
121
|
+
:rtype: str
|
|
122
|
+
"""
|
|
123
|
+
return self._source_cluster_id
|
|
124
|
+
|
|
125
|
+
@source_cluster_id.setter
|
|
126
|
+
def source_cluster_id(self, source_cluster_id: 'str'):
|
|
127
|
+
"""Sets the source_cluster_id of this V1CloudSpaceTransferMetadata.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param source_cluster_id: The source_cluster_id of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
131
|
+
:type: str
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._source_cluster_id = source_cluster_id
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def target_cluster_id(self) -> 'str':
|
|
138
|
+
"""Gets the target_cluster_id of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The target_cluster_id of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._target_cluster_id
|
|
145
|
+
|
|
146
|
+
@target_cluster_id.setter
|
|
147
|
+
def target_cluster_id(self, target_cluster_id: 'str'):
|
|
148
|
+
"""Sets the target_cluster_id of this V1CloudSpaceTransferMetadata.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param target_cluster_id: The target_cluster_id of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
152
|
+
:type: str
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._target_cluster_id = target_cluster_id
|
|
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(V1CloudSpaceTransferMetadata, 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: 'V1CloudSpaceTransferMetadata') -> bool:
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, V1CloudSpaceTransferMetadata):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other: 'V1CloudSpaceTransferMetadata') -> bool:
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|
|
@@ -45,7 +45,8 @@ class V1CloudflareV1(object):
|
|
|
45
45
|
'api_token_secret_id': 'str',
|
|
46
46
|
'api_token_value': 'str',
|
|
47
47
|
'bucket_credentials_secret_id': 'str',
|
|
48
|
-
'bucket_name': 'str'
|
|
48
|
+
'bucket_name': 'str',
|
|
49
|
+
'is_data_connection_billing_enabled': 'bool'
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
attribute_map = {
|
|
@@ -53,16 +54,18 @@ class V1CloudflareV1(object):
|
|
|
53
54
|
'api_token_secret_id': 'apiTokenSecretId',
|
|
54
55
|
'api_token_value': 'apiTokenValue',
|
|
55
56
|
'bucket_credentials_secret_id': 'bucketCredentialsSecretId',
|
|
56
|
-
'bucket_name': 'bucketName'
|
|
57
|
+
'bucket_name': 'bucketName',
|
|
58
|
+
'is_data_connection_billing_enabled': 'isDataConnectionBillingEnabled'
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
def __init__(self, account_id: 'str' =None, api_token_secret_id: 'str' =None, api_token_value: 'str' =None, bucket_credentials_secret_id: 'str' =None, bucket_name: 'str' =None): # noqa: E501
|
|
61
|
+
def __init__(self, account_id: 'str' =None, api_token_secret_id: 'str' =None, api_token_value: 'str' =None, bucket_credentials_secret_id: 'str' =None, bucket_name: 'str' =None, is_data_connection_billing_enabled: 'bool' =None): # noqa: E501
|
|
60
62
|
"""V1CloudflareV1 - a model defined in Swagger""" # noqa: E501
|
|
61
63
|
self._account_id = None
|
|
62
64
|
self._api_token_secret_id = None
|
|
63
65
|
self._api_token_value = None
|
|
64
66
|
self._bucket_credentials_secret_id = None
|
|
65
67
|
self._bucket_name = None
|
|
68
|
+
self._is_data_connection_billing_enabled = None
|
|
66
69
|
self.discriminator = None
|
|
67
70
|
if account_id is not None:
|
|
68
71
|
self.account_id = account_id
|
|
@@ -74,6 +77,8 @@ class V1CloudflareV1(object):
|
|
|
74
77
|
self.bucket_credentials_secret_id = bucket_credentials_secret_id
|
|
75
78
|
if bucket_name is not None:
|
|
76
79
|
self.bucket_name = bucket_name
|
|
80
|
+
if is_data_connection_billing_enabled is not None:
|
|
81
|
+
self.is_data_connection_billing_enabled = is_data_connection_billing_enabled
|
|
77
82
|
|
|
78
83
|
@property
|
|
79
84
|
def account_id(self) -> 'str':
|
|
@@ -180,6 +185,27 @@ class V1CloudflareV1(object):
|
|
|
180
185
|
|
|
181
186
|
self._bucket_name = bucket_name
|
|
182
187
|
|
|
188
|
+
@property
|
|
189
|
+
def is_data_connection_billing_enabled(self) -> 'bool':
|
|
190
|
+
"""Gets the is_data_connection_billing_enabled of this V1CloudflareV1. # noqa: E501
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
:return: The is_data_connection_billing_enabled of this V1CloudflareV1. # noqa: E501
|
|
194
|
+
:rtype: bool
|
|
195
|
+
"""
|
|
196
|
+
return self._is_data_connection_billing_enabled
|
|
197
|
+
|
|
198
|
+
@is_data_connection_billing_enabled.setter
|
|
199
|
+
def is_data_connection_billing_enabled(self, is_data_connection_billing_enabled: 'bool'):
|
|
200
|
+
"""Sets the is_data_connection_billing_enabled of this V1CloudflareV1.
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
:param is_data_connection_billing_enabled: The is_data_connection_billing_enabled of this V1CloudflareV1. # noqa: E501
|
|
204
|
+
:type: bool
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
self._is_data_connection_billing_enabled = is_data_connection_billing_enabled
|
|
208
|
+
|
|
183
209
|
def to_dict(self) -> dict:
|
|
184
210
|
"""Returns the model properties as a dict"""
|
|
185
211
|
result = {}
|
|
@@ -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 V1CompleteRunningCloudSpaceInstanceTransferResponse(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 V1CompleteUploadServiceExecutionArtifactResponse(object):
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
def __init__(self): # noqa: E501
|
|
50
|
-
"""
|
|
50
|
+
"""V1CompleteRunningCloudSpaceInstanceTransferResponse - 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 V1CompleteUploadServiceExecutionArtifactResponse(object):
|
|
|
71
71
|
))
|
|
72
72
|
else:
|
|
73
73
|
result[attr] = value
|
|
74
|
-
if issubclass(
|
|
74
|
+
if issubclass(V1CompleteRunningCloudSpaceInstanceTransferResponse, dict):
|
|
75
75
|
for key, value in self.items():
|
|
76
76
|
result[key] = value
|
|
77
77
|
|
|
@@ -85,13 +85,13 @@ class V1CompleteUploadServiceExecutionArtifactResponse(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: 'V1CompleteRunningCloudSpaceInstanceTransferResponse') -> bool:
|
|
89
89
|
"""Returns true if both objects are equal"""
|
|
90
|
-
if not isinstance(other,
|
|
90
|
+
if not isinstance(other, V1CompleteRunningCloudSpaceInstanceTransferResponse):
|
|
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: 'V1CompleteRunningCloudSpaceInstanceTransferResponse') -> bool:
|
|
96
96
|
"""Returns true if both objects are not equal"""
|
|
97
97
|
return not self == other
|