lightning-sdk 2025.8.6rc0__py3-none-any.whl → 2025.8.6rc2__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/llm_api.py +48 -0
- lightning_sdk/lightning_cloud/login.py +1 -0
- 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 +5 -15
- lightning_sdk/llm/public_assistants.py +17 -0
- lightning_sdk/services/file_endpoint.py +3 -4
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/RECORD +43 -51
- 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.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/top_level.txt +0 -0
|
@@ -1,175 +0,0 @@
|
|
|
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 IdStorageBody(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
|
-
'count': 'str',
|
|
45
|
-
'filename': 'str',
|
|
46
|
-
'job_id': 'str'
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
attribute_map = {
|
|
50
|
-
'count': 'count',
|
|
51
|
-
'filename': 'filename',
|
|
52
|
-
'job_id': 'jobId'
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
def __init__(self, count: 'str' =None, filename: 'str' =None, job_id: 'str' =None): # noqa: E501
|
|
56
|
-
"""IdStorageBody - a model defined in Swagger""" # noqa: E501
|
|
57
|
-
self._count = None
|
|
58
|
-
self._filename = None
|
|
59
|
-
self._job_id = None
|
|
60
|
-
self.discriminator = None
|
|
61
|
-
if count is not None:
|
|
62
|
-
self.count = count
|
|
63
|
-
if filename is not None:
|
|
64
|
-
self.filename = filename
|
|
65
|
-
if job_id is not None:
|
|
66
|
-
self.job_id = job_id
|
|
67
|
-
|
|
68
|
-
@property
|
|
69
|
-
def count(self) -> 'str':
|
|
70
|
-
"""Gets the count of this IdStorageBody. # noqa: E501
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
:return: The count of this IdStorageBody. # noqa: E501
|
|
74
|
-
:rtype: str
|
|
75
|
-
"""
|
|
76
|
-
return self._count
|
|
77
|
-
|
|
78
|
-
@count.setter
|
|
79
|
-
def count(self, count: 'str'):
|
|
80
|
-
"""Sets the count of this IdStorageBody.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
:param count: The count of this IdStorageBody. # noqa: E501
|
|
84
|
-
:type: str
|
|
85
|
-
"""
|
|
86
|
-
|
|
87
|
-
self._count = count
|
|
88
|
-
|
|
89
|
-
@property
|
|
90
|
-
def filename(self) -> 'str':
|
|
91
|
-
"""Gets the filename of this IdStorageBody. # noqa: E501
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
:return: The filename of this IdStorageBody. # noqa: E501
|
|
95
|
-
:rtype: str
|
|
96
|
-
"""
|
|
97
|
-
return self._filename
|
|
98
|
-
|
|
99
|
-
@filename.setter
|
|
100
|
-
def filename(self, filename: 'str'):
|
|
101
|
-
"""Sets the filename of this IdStorageBody.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
:param filename: The filename of this IdStorageBody. # noqa: E501
|
|
105
|
-
:type: str
|
|
106
|
-
"""
|
|
107
|
-
|
|
108
|
-
self._filename = filename
|
|
109
|
-
|
|
110
|
-
@property
|
|
111
|
-
def job_id(self) -> 'str':
|
|
112
|
-
"""Gets the job_id of this IdStorageBody. # noqa: E501
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
:return: The job_id of this IdStorageBody. # noqa: E501
|
|
116
|
-
:rtype: str
|
|
117
|
-
"""
|
|
118
|
-
return self._job_id
|
|
119
|
-
|
|
120
|
-
@job_id.setter
|
|
121
|
-
def job_id(self, job_id: 'str'):
|
|
122
|
-
"""Sets the job_id of this IdStorageBody.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
:param job_id: The job_id of this IdStorageBody. # noqa: E501
|
|
126
|
-
:type: str
|
|
127
|
-
"""
|
|
128
|
-
|
|
129
|
-
self._job_id = job_id
|
|
130
|
-
|
|
131
|
-
def to_dict(self) -> dict:
|
|
132
|
-
"""Returns the model properties as a dict"""
|
|
133
|
-
result = {}
|
|
134
|
-
|
|
135
|
-
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
-
value = getattr(self, attr)
|
|
137
|
-
if isinstance(value, list):
|
|
138
|
-
result[attr] = list(map(
|
|
139
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
-
value
|
|
141
|
-
))
|
|
142
|
-
elif hasattr(value, "to_dict"):
|
|
143
|
-
result[attr] = value.to_dict()
|
|
144
|
-
elif isinstance(value, dict):
|
|
145
|
-
result[attr] = dict(map(
|
|
146
|
-
lambda item: (item[0], item[1].to_dict())
|
|
147
|
-
if hasattr(item[1], "to_dict") else item,
|
|
148
|
-
value.items()
|
|
149
|
-
))
|
|
150
|
-
else:
|
|
151
|
-
result[attr] = value
|
|
152
|
-
if issubclass(IdStorageBody, dict):
|
|
153
|
-
for key, value in self.items():
|
|
154
|
-
result[key] = value
|
|
155
|
-
|
|
156
|
-
return result
|
|
157
|
-
|
|
158
|
-
def to_str(self) -> str:
|
|
159
|
-
"""Returns the string representation of the model"""
|
|
160
|
-
return pprint.pformat(self.to_dict())
|
|
161
|
-
|
|
162
|
-
def __repr__(self) -> str:
|
|
163
|
-
"""For `print` and `pprint`"""
|
|
164
|
-
return self.to_str()
|
|
165
|
-
|
|
166
|
-
def __eq__(self, other: 'IdStorageBody') -> bool:
|
|
167
|
-
"""Returns true if both objects are equal"""
|
|
168
|
-
if not isinstance(other, IdStorageBody):
|
|
169
|
-
return False
|
|
170
|
-
|
|
171
|
-
return self.__dict__ == other.__dict__
|
|
172
|
-
|
|
173
|
-
def __ne__(self, other: 'IdStorageBody') -> bool:
|
|
174
|
-
"""Returns true if both objects are not equal"""
|
|
175
|
-
return not self == other
|
|
@@ -1,175 +0,0 @@
|
|
|
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 IdUploadsBody1(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
|
-
'argument_upload_id': 'str',
|
|
45
|
-
'parts': 'list[str]',
|
|
46
|
-
'upload_id': 'str'
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
attribute_map = {
|
|
50
|
-
'argument_upload_id': 'argumentUploadId',
|
|
51
|
-
'parts': 'parts',
|
|
52
|
-
'upload_id': 'uploadId'
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
def __init__(self, argument_upload_id: 'str' =None, parts: 'list[str]' =None, upload_id: 'str' =None): # noqa: E501
|
|
56
|
-
"""IdUploadsBody1 - a model defined in Swagger""" # noqa: E501
|
|
57
|
-
self._argument_upload_id = None
|
|
58
|
-
self._parts = None
|
|
59
|
-
self._upload_id = None
|
|
60
|
-
self.discriminator = None
|
|
61
|
-
if argument_upload_id is not None:
|
|
62
|
-
self.argument_upload_id = argument_upload_id
|
|
63
|
-
if parts is not None:
|
|
64
|
-
self.parts = parts
|
|
65
|
-
if upload_id is not None:
|
|
66
|
-
self.upload_id = upload_id
|
|
67
|
-
|
|
68
|
-
@property
|
|
69
|
-
def argument_upload_id(self) -> 'str':
|
|
70
|
-
"""Gets the argument_upload_id of this IdUploadsBody1. # noqa: E501
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
:return: The argument_upload_id of this IdUploadsBody1. # noqa: E501
|
|
74
|
-
:rtype: str
|
|
75
|
-
"""
|
|
76
|
-
return self._argument_upload_id
|
|
77
|
-
|
|
78
|
-
@argument_upload_id.setter
|
|
79
|
-
def argument_upload_id(self, argument_upload_id: 'str'):
|
|
80
|
-
"""Sets the argument_upload_id of this IdUploadsBody1.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
:param argument_upload_id: The argument_upload_id of this IdUploadsBody1. # noqa: E501
|
|
84
|
-
:type: str
|
|
85
|
-
"""
|
|
86
|
-
|
|
87
|
-
self._argument_upload_id = argument_upload_id
|
|
88
|
-
|
|
89
|
-
@property
|
|
90
|
-
def parts(self) -> 'list[str]':
|
|
91
|
-
"""Gets the parts of this IdUploadsBody1. # noqa: E501
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
:return: The parts of this IdUploadsBody1. # noqa: E501
|
|
95
|
-
:rtype: list[str]
|
|
96
|
-
"""
|
|
97
|
-
return self._parts
|
|
98
|
-
|
|
99
|
-
@parts.setter
|
|
100
|
-
def parts(self, parts: 'list[str]'):
|
|
101
|
-
"""Sets the parts of this IdUploadsBody1.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
:param parts: The parts of this IdUploadsBody1. # noqa: E501
|
|
105
|
-
:type: list[str]
|
|
106
|
-
"""
|
|
107
|
-
|
|
108
|
-
self._parts = parts
|
|
109
|
-
|
|
110
|
-
@property
|
|
111
|
-
def upload_id(self) -> 'str':
|
|
112
|
-
"""Gets the upload_id of this IdUploadsBody1. # noqa: E501
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
:return: The upload_id of this IdUploadsBody1. # noqa: E501
|
|
116
|
-
:rtype: str
|
|
117
|
-
"""
|
|
118
|
-
return self._upload_id
|
|
119
|
-
|
|
120
|
-
@upload_id.setter
|
|
121
|
-
def upload_id(self, upload_id: 'str'):
|
|
122
|
-
"""Sets the upload_id of this IdUploadsBody1.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
:param upload_id: The upload_id of this IdUploadsBody1. # noqa: E501
|
|
126
|
-
:type: str
|
|
127
|
-
"""
|
|
128
|
-
|
|
129
|
-
self._upload_id = upload_id
|
|
130
|
-
|
|
131
|
-
def to_dict(self) -> dict:
|
|
132
|
-
"""Returns the model properties as a dict"""
|
|
133
|
-
result = {}
|
|
134
|
-
|
|
135
|
-
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
-
value = getattr(self, attr)
|
|
137
|
-
if isinstance(value, list):
|
|
138
|
-
result[attr] = list(map(
|
|
139
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
-
value
|
|
141
|
-
))
|
|
142
|
-
elif hasattr(value, "to_dict"):
|
|
143
|
-
result[attr] = value.to_dict()
|
|
144
|
-
elif isinstance(value, dict):
|
|
145
|
-
result[attr] = dict(map(
|
|
146
|
-
lambda item: (item[0], item[1].to_dict())
|
|
147
|
-
if hasattr(item[1], "to_dict") else item,
|
|
148
|
-
value.items()
|
|
149
|
-
))
|
|
150
|
-
else:
|
|
151
|
-
result[attr] = value
|
|
152
|
-
if issubclass(IdUploadsBody1, dict):
|
|
153
|
-
for key, value in self.items():
|
|
154
|
-
result[key] = value
|
|
155
|
-
|
|
156
|
-
return result
|
|
157
|
-
|
|
158
|
-
def to_str(self) -> str:
|
|
159
|
-
"""Returns the string representation of the model"""
|
|
160
|
-
return pprint.pformat(self.to_dict())
|
|
161
|
-
|
|
162
|
-
def __repr__(self) -> str:
|
|
163
|
-
"""For `print` and `pprint`"""
|
|
164
|
-
return self.to_str()
|
|
165
|
-
|
|
166
|
-
def __eq__(self, other: 'IdUploadsBody1') -> bool:
|
|
167
|
-
"""Returns true if both objects are equal"""
|
|
168
|
-
if not isinstance(other, IdUploadsBody1):
|
|
169
|
-
return False
|
|
170
|
-
|
|
171
|
-
return self.__dict__ == other.__dict__
|
|
172
|
-
|
|
173
|
-
def __ne__(self, other: 'IdUploadsBody1') -> bool:
|
|
174
|
-
"""Returns true if both objects are not equal"""
|
|
175
|
-
return not self == other
|
|
@@ -1,357 +0,0 @@
|
|
|
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 ProjectIdFileendpointsBody(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
|
-
'arguments': 'list[V1CommandArgument]',
|
|
45
|
-
'cloudspace_id': 'str',
|
|
46
|
-
'cluster_id': 'str',
|
|
47
|
-
'command': 'str',
|
|
48
|
-
'description': 'str',
|
|
49
|
-
'function_name': 'str',
|
|
50
|
-
'method': 'str',
|
|
51
|
-
'path': 'str',
|
|
52
|
-
'plugin_id': 'str',
|
|
53
|
-
'user_id': 'str'
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
attribute_map = {
|
|
57
|
-
'arguments': 'arguments',
|
|
58
|
-
'cloudspace_id': 'cloudspaceId',
|
|
59
|
-
'cluster_id': 'clusterId',
|
|
60
|
-
'command': 'command',
|
|
61
|
-
'description': 'description',
|
|
62
|
-
'function_name': 'functionName',
|
|
63
|
-
'method': 'method',
|
|
64
|
-
'path': 'path',
|
|
65
|
-
'plugin_id': 'pluginId',
|
|
66
|
-
'user_id': 'userId'
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
def __init__(self, arguments: 'list[V1CommandArgument]' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, description: 'str' =None, function_name: 'str' =None, method: 'str' =None, path: 'str' =None, plugin_id: 'str' =None, user_id: 'str' =None): # noqa: E501
|
|
70
|
-
"""ProjectIdFileendpointsBody - a model defined in Swagger""" # noqa: E501
|
|
71
|
-
self._arguments = None
|
|
72
|
-
self._cloudspace_id = None
|
|
73
|
-
self._cluster_id = None
|
|
74
|
-
self._command = None
|
|
75
|
-
self._description = None
|
|
76
|
-
self._function_name = None
|
|
77
|
-
self._method = None
|
|
78
|
-
self._path = None
|
|
79
|
-
self._plugin_id = None
|
|
80
|
-
self._user_id = None
|
|
81
|
-
self.discriminator = None
|
|
82
|
-
if arguments is not None:
|
|
83
|
-
self.arguments = arguments
|
|
84
|
-
if cloudspace_id is not None:
|
|
85
|
-
self.cloudspace_id = cloudspace_id
|
|
86
|
-
if cluster_id is not None:
|
|
87
|
-
self.cluster_id = cluster_id
|
|
88
|
-
if command is not None:
|
|
89
|
-
self.command = command
|
|
90
|
-
if description is not None:
|
|
91
|
-
self.description = description
|
|
92
|
-
if function_name is not None:
|
|
93
|
-
self.function_name = function_name
|
|
94
|
-
if method is not None:
|
|
95
|
-
self.method = method
|
|
96
|
-
if path is not None:
|
|
97
|
-
self.path = path
|
|
98
|
-
if plugin_id is not None:
|
|
99
|
-
self.plugin_id = plugin_id
|
|
100
|
-
if user_id is not None:
|
|
101
|
-
self.user_id = user_id
|
|
102
|
-
|
|
103
|
-
@property
|
|
104
|
-
def arguments(self) -> 'list[V1CommandArgument]':
|
|
105
|
-
"""Gets the arguments of this ProjectIdFileendpointsBody. # noqa: E501
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
:return: The arguments of this ProjectIdFileendpointsBody. # noqa: E501
|
|
109
|
-
:rtype: list[V1CommandArgument]
|
|
110
|
-
"""
|
|
111
|
-
return self._arguments
|
|
112
|
-
|
|
113
|
-
@arguments.setter
|
|
114
|
-
def arguments(self, arguments: 'list[V1CommandArgument]'):
|
|
115
|
-
"""Sets the arguments of this ProjectIdFileendpointsBody.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
:param arguments: The arguments of this ProjectIdFileendpointsBody. # noqa: E501
|
|
119
|
-
:type: list[V1CommandArgument]
|
|
120
|
-
"""
|
|
121
|
-
|
|
122
|
-
self._arguments = arguments
|
|
123
|
-
|
|
124
|
-
@property
|
|
125
|
-
def cloudspace_id(self) -> 'str':
|
|
126
|
-
"""Gets the cloudspace_id of this ProjectIdFileendpointsBody. # noqa: E501
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
:return: The cloudspace_id of this ProjectIdFileendpointsBody. # noqa: E501
|
|
130
|
-
:rtype: str
|
|
131
|
-
"""
|
|
132
|
-
return self._cloudspace_id
|
|
133
|
-
|
|
134
|
-
@cloudspace_id.setter
|
|
135
|
-
def cloudspace_id(self, cloudspace_id: 'str'):
|
|
136
|
-
"""Sets the cloudspace_id of this ProjectIdFileendpointsBody.
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
:param cloudspace_id: The cloudspace_id of this ProjectIdFileendpointsBody. # noqa: E501
|
|
140
|
-
:type: str
|
|
141
|
-
"""
|
|
142
|
-
|
|
143
|
-
self._cloudspace_id = cloudspace_id
|
|
144
|
-
|
|
145
|
-
@property
|
|
146
|
-
def cluster_id(self) -> 'str':
|
|
147
|
-
"""Gets the cluster_id of this ProjectIdFileendpointsBody. # noqa: E501
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
:return: The cluster_id of this ProjectIdFileendpointsBody. # noqa: E501
|
|
151
|
-
:rtype: str
|
|
152
|
-
"""
|
|
153
|
-
return self._cluster_id
|
|
154
|
-
|
|
155
|
-
@cluster_id.setter
|
|
156
|
-
def cluster_id(self, cluster_id: 'str'):
|
|
157
|
-
"""Sets the cluster_id of this ProjectIdFileendpointsBody.
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
:param cluster_id: The cluster_id of this ProjectIdFileendpointsBody. # noqa: E501
|
|
161
|
-
:type: str
|
|
162
|
-
"""
|
|
163
|
-
|
|
164
|
-
self._cluster_id = cluster_id
|
|
165
|
-
|
|
166
|
-
@property
|
|
167
|
-
def command(self) -> 'str':
|
|
168
|
-
"""Gets the command of this ProjectIdFileendpointsBody. # noqa: E501
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
:return: The command of this ProjectIdFileendpointsBody. # noqa: E501
|
|
172
|
-
:rtype: str
|
|
173
|
-
"""
|
|
174
|
-
return self._command
|
|
175
|
-
|
|
176
|
-
@command.setter
|
|
177
|
-
def command(self, command: 'str'):
|
|
178
|
-
"""Sets the command of this ProjectIdFileendpointsBody.
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
:param command: The command of this ProjectIdFileendpointsBody. # noqa: E501
|
|
182
|
-
:type: str
|
|
183
|
-
"""
|
|
184
|
-
|
|
185
|
-
self._command = command
|
|
186
|
-
|
|
187
|
-
@property
|
|
188
|
-
def description(self) -> 'str':
|
|
189
|
-
"""Gets the description of this ProjectIdFileendpointsBody. # noqa: E501
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
:return: The description of this ProjectIdFileendpointsBody. # noqa: E501
|
|
193
|
-
:rtype: str
|
|
194
|
-
"""
|
|
195
|
-
return self._description
|
|
196
|
-
|
|
197
|
-
@description.setter
|
|
198
|
-
def description(self, description: 'str'):
|
|
199
|
-
"""Sets the description of this ProjectIdFileendpointsBody.
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
:param description: The description of this ProjectIdFileendpointsBody. # noqa: E501
|
|
203
|
-
:type: str
|
|
204
|
-
"""
|
|
205
|
-
|
|
206
|
-
self._description = description
|
|
207
|
-
|
|
208
|
-
@property
|
|
209
|
-
def function_name(self) -> 'str':
|
|
210
|
-
"""Gets the function_name of this ProjectIdFileendpointsBody. # noqa: E501
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
:return: The function_name of this ProjectIdFileendpointsBody. # noqa: E501
|
|
214
|
-
:rtype: str
|
|
215
|
-
"""
|
|
216
|
-
return self._function_name
|
|
217
|
-
|
|
218
|
-
@function_name.setter
|
|
219
|
-
def function_name(self, function_name: 'str'):
|
|
220
|
-
"""Sets the function_name of this ProjectIdFileendpointsBody.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
:param function_name: The function_name of this ProjectIdFileendpointsBody. # noqa: E501
|
|
224
|
-
:type: str
|
|
225
|
-
"""
|
|
226
|
-
|
|
227
|
-
self._function_name = function_name
|
|
228
|
-
|
|
229
|
-
@property
|
|
230
|
-
def method(self) -> 'str':
|
|
231
|
-
"""Gets the method of this ProjectIdFileendpointsBody. # noqa: E501
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
:return: The method of this ProjectIdFileendpointsBody. # noqa: E501
|
|
235
|
-
:rtype: str
|
|
236
|
-
"""
|
|
237
|
-
return self._method
|
|
238
|
-
|
|
239
|
-
@method.setter
|
|
240
|
-
def method(self, method: 'str'):
|
|
241
|
-
"""Sets the method of this ProjectIdFileendpointsBody.
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
:param method: The method of this ProjectIdFileendpointsBody. # noqa: E501
|
|
245
|
-
:type: str
|
|
246
|
-
"""
|
|
247
|
-
|
|
248
|
-
self._method = method
|
|
249
|
-
|
|
250
|
-
@property
|
|
251
|
-
def path(self) -> 'str':
|
|
252
|
-
"""Gets the path of this ProjectIdFileendpointsBody. # noqa: E501
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
:return: The path of this ProjectIdFileendpointsBody. # noqa: E501
|
|
256
|
-
:rtype: str
|
|
257
|
-
"""
|
|
258
|
-
return self._path
|
|
259
|
-
|
|
260
|
-
@path.setter
|
|
261
|
-
def path(self, path: 'str'):
|
|
262
|
-
"""Sets the path of this ProjectIdFileendpointsBody.
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
:param path: The path of this ProjectIdFileendpointsBody. # noqa: E501
|
|
266
|
-
:type: str
|
|
267
|
-
"""
|
|
268
|
-
|
|
269
|
-
self._path = path
|
|
270
|
-
|
|
271
|
-
@property
|
|
272
|
-
def plugin_id(self) -> 'str':
|
|
273
|
-
"""Gets the plugin_id of this ProjectIdFileendpointsBody. # noqa: E501
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
:return: The plugin_id of this ProjectIdFileendpointsBody. # noqa: E501
|
|
277
|
-
:rtype: str
|
|
278
|
-
"""
|
|
279
|
-
return self._plugin_id
|
|
280
|
-
|
|
281
|
-
@plugin_id.setter
|
|
282
|
-
def plugin_id(self, plugin_id: 'str'):
|
|
283
|
-
"""Sets the plugin_id of this ProjectIdFileendpointsBody.
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
:param plugin_id: The plugin_id of this ProjectIdFileendpointsBody. # noqa: E501
|
|
287
|
-
:type: str
|
|
288
|
-
"""
|
|
289
|
-
|
|
290
|
-
self._plugin_id = plugin_id
|
|
291
|
-
|
|
292
|
-
@property
|
|
293
|
-
def user_id(self) -> 'str':
|
|
294
|
-
"""Gets the user_id of this ProjectIdFileendpointsBody. # noqa: E501
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
:return: The user_id of this ProjectIdFileendpointsBody. # noqa: E501
|
|
298
|
-
:rtype: str
|
|
299
|
-
"""
|
|
300
|
-
return self._user_id
|
|
301
|
-
|
|
302
|
-
@user_id.setter
|
|
303
|
-
def user_id(self, user_id: 'str'):
|
|
304
|
-
"""Sets the user_id of this ProjectIdFileendpointsBody.
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
:param user_id: The user_id of this ProjectIdFileendpointsBody. # noqa: E501
|
|
308
|
-
:type: str
|
|
309
|
-
"""
|
|
310
|
-
|
|
311
|
-
self._user_id = user_id
|
|
312
|
-
|
|
313
|
-
def to_dict(self) -> dict:
|
|
314
|
-
"""Returns the model properties as a dict"""
|
|
315
|
-
result = {}
|
|
316
|
-
|
|
317
|
-
for attr, _ in six.iteritems(self.swagger_types):
|
|
318
|
-
value = getattr(self, attr)
|
|
319
|
-
if isinstance(value, list):
|
|
320
|
-
result[attr] = list(map(
|
|
321
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
322
|
-
value
|
|
323
|
-
))
|
|
324
|
-
elif hasattr(value, "to_dict"):
|
|
325
|
-
result[attr] = value.to_dict()
|
|
326
|
-
elif isinstance(value, dict):
|
|
327
|
-
result[attr] = dict(map(
|
|
328
|
-
lambda item: (item[0], item[1].to_dict())
|
|
329
|
-
if hasattr(item[1], "to_dict") else item,
|
|
330
|
-
value.items()
|
|
331
|
-
))
|
|
332
|
-
else:
|
|
333
|
-
result[attr] = value
|
|
334
|
-
if issubclass(ProjectIdFileendpointsBody, dict):
|
|
335
|
-
for key, value in self.items():
|
|
336
|
-
result[key] = value
|
|
337
|
-
|
|
338
|
-
return result
|
|
339
|
-
|
|
340
|
-
def to_str(self) -> str:
|
|
341
|
-
"""Returns the string representation of the model"""
|
|
342
|
-
return pprint.pformat(self.to_dict())
|
|
343
|
-
|
|
344
|
-
def __repr__(self) -> str:
|
|
345
|
-
"""For `print` and `pprint`"""
|
|
346
|
-
return self.to_str()
|
|
347
|
-
|
|
348
|
-
def __eq__(self, other: 'ProjectIdFileendpointsBody') -> bool:
|
|
349
|
-
"""Returns true if both objects are equal"""
|
|
350
|
-
if not isinstance(other, ProjectIdFileendpointsBody):
|
|
351
|
-
return False
|
|
352
|
-
|
|
353
|
-
return self.__dict__ == other.__dict__
|
|
354
|
-
|
|
355
|
-
def __ne__(self, other: 'ProjectIdFileendpointsBody') -> bool:
|
|
356
|
-
"""Returns true if both objects are not equal"""
|
|
357
|
-
return not self == other
|