lightning-sdk 0.1.58__py3-none-any.whl → 0.2.1__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 +5 -3
- lightning_sdk/api/deployment_api.py +23 -11
- lightning_sdk/api/job_api.py +42 -7
- lightning_sdk/api/lit_container_api.py +23 -3
- lightning_sdk/api/mmt_api.py +46 -8
- lightning_sdk/api/pipeline_api.py +50 -0
- lightning_sdk/api/teamspace_api.py +2 -2
- lightning_sdk/api/utils.py +15 -5
- lightning_sdk/cli/ai_hub.py +30 -65
- lightning_sdk/cli/coloring.py +60 -0
- lightning_sdk/cli/configure.py +25 -40
- lightning_sdk/cli/connect.py +7 -20
- lightning_sdk/cli/create.py +83 -0
- lightning_sdk/cli/delete.py +72 -75
- lightning_sdk/cli/docker.py +22 -0
- lightning_sdk/cli/download.py +78 -113
- lightning_sdk/cli/entrypoint.py +44 -65
- lightning_sdk/cli/generate.py +28 -43
- lightning_sdk/cli/inspect.py +22 -50
- lightning_sdk/cli/list.py +281 -222
- lightning_sdk/cli/mmts_menu.py +1 -1
- lightning_sdk/cli/open.py +62 -0
- lightning_sdk/cli/run.py +430 -263
- lightning_sdk/cli/serve.py +128 -191
- lightning_sdk/cli/start.py +55 -36
- lightning_sdk/cli/stop.py +97 -55
- lightning_sdk/cli/switch.py +53 -36
- lightning_sdk/cli/upload.py +318 -255
- lightning_sdk/deployment/__init__.py +2 -0
- lightning_sdk/deployment/deployment.py +33 -8
- lightning_sdk/lightning_cloud/openapi/__init__.py +23 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +10 -6
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +355 -4
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +14 -2
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +674 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +303 -4
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +22 -0
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +17 -69
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/create.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body2.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +17 -69
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload_temporary_artifact_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_job_request.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_managed_endpoint_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_machine_job_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_pipeline_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_details.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +133 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job_artifacts_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pipelines_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +29 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_schedule.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_status.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_restart_timing.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_job_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_temporary_artifact_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +95 -355
- lightning_sdk/lightning_cloud/openapi/models/validate.py +27 -1
- lightning_sdk/lightning_cloud/rest_client.py +4 -2
- lightning_sdk/machine.py +25 -1
- lightning_sdk/models.py +18 -12
- lightning_sdk/pipeline/__init__.py +4 -0
- lightning_sdk/pipeline/pipeline.py +109 -0
- lightning_sdk/pipeline/types.py +268 -0
- lightning_sdk/pipeline/utils.py +69 -0
- lightning_sdk/plugin.py +9 -10
- lightning_sdk/serve.py +134 -0
- lightning_sdk/services/utilities.py +2 -2
- lightning_sdk/studio.py +5 -1
- lightning_sdk/teamspace.py +1 -1
- lightning_sdk/utils/resolve.py +12 -1
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/METADATA +6 -8
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/RECORD +120 -88
- lightning_sdk/cli/legacy.py +0 -135
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/top_level.txt +0 -0
|
@@ -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 V1FilestoreDataConnection(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
|
+
'capacity_gb': 'str',
|
|
45
|
+
'mount_ip': 'str',
|
|
46
|
+
'region': 'str',
|
|
47
|
+
'source': 'str'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'capacity_gb': 'capacityGb',
|
|
52
|
+
'mount_ip': 'mountIp',
|
|
53
|
+
'region': 'region',
|
|
54
|
+
'source': 'source'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, capacity_gb: 'str' =None, mount_ip: 'str' =None, region: 'str' =None, source: 'str' =None): # noqa: E501
|
|
58
|
+
"""V1FilestoreDataConnection - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._capacity_gb = None
|
|
60
|
+
self._mount_ip = None
|
|
61
|
+
self._region = None
|
|
62
|
+
self._source = None
|
|
63
|
+
self.discriminator = None
|
|
64
|
+
if capacity_gb is not None:
|
|
65
|
+
self.capacity_gb = capacity_gb
|
|
66
|
+
if mount_ip is not None:
|
|
67
|
+
self.mount_ip = mount_ip
|
|
68
|
+
if region is not None:
|
|
69
|
+
self.region = region
|
|
70
|
+
if source is not None:
|
|
71
|
+
self.source = source
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def capacity_gb(self) -> 'str':
|
|
75
|
+
"""Gets the capacity_gb of this V1FilestoreDataConnection. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The capacity_gb of this V1FilestoreDataConnection. # noqa: E501
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._capacity_gb
|
|
82
|
+
|
|
83
|
+
@capacity_gb.setter
|
|
84
|
+
def capacity_gb(self, capacity_gb: 'str'):
|
|
85
|
+
"""Sets the capacity_gb of this V1FilestoreDataConnection.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param capacity_gb: The capacity_gb of this V1FilestoreDataConnection. # noqa: E501
|
|
89
|
+
:type: str
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._capacity_gb = capacity_gb
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def mount_ip(self) -> 'str':
|
|
96
|
+
"""Gets the mount_ip of this V1FilestoreDataConnection. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The mount_ip of this V1FilestoreDataConnection. # noqa: E501
|
|
100
|
+
:rtype: str
|
|
101
|
+
"""
|
|
102
|
+
return self._mount_ip
|
|
103
|
+
|
|
104
|
+
@mount_ip.setter
|
|
105
|
+
def mount_ip(self, mount_ip: 'str'):
|
|
106
|
+
"""Sets the mount_ip of this V1FilestoreDataConnection.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param mount_ip: The mount_ip of this V1FilestoreDataConnection. # noqa: E501
|
|
110
|
+
:type: str
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._mount_ip = mount_ip
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def region(self) -> 'str':
|
|
117
|
+
"""Gets the region of this V1FilestoreDataConnection. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The region of this V1FilestoreDataConnection. # noqa: E501
|
|
121
|
+
:rtype: str
|
|
122
|
+
"""
|
|
123
|
+
return self._region
|
|
124
|
+
|
|
125
|
+
@region.setter
|
|
126
|
+
def region(self, region: 'str'):
|
|
127
|
+
"""Sets the region of this V1FilestoreDataConnection.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param region: The region of this V1FilestoreDataConnection. # noqa: E501
|
|
131
|
+
:type: str
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._region = region
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def source(self) -> 'str':
|
|
138
|
+
"""Gets the source of this V1FilestoreDataConnection. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The source of this V1FilestoreDataConnection. # noqa: E501
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._source
|
|
145
|
+
|
|
146
|
+
@source.setter
|
|
147
|
+
def source(self, source: 'str'):
|
|
148
|
+
"""Sets the source of this V1FilestoreDataConnection.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param source: The source of this V1FilestoreDataConnection. # noqa: E501
|
|
152
|
+
:type: str
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._source = source
|
|
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(V1FilestoreDataConnection, 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: 'V1FilestoreDataConnection') -> bool:
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, V1FilestoreDataConnection):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other: 'V1FilestoreDataConnection') -> bool:
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|
|
@@ -41,23 +41,33 @@ class V1FilesystemJob(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'artifacts_type': 'V1JobArtifactsType',
|
|
45
|
+
'cloud_space_id': 'str',
|
|
44
46
|
'id': 'str',
|
|
45
47
|
'name': 'str',
|
|
46
48
|
'run_id': 'str'
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
attribute_map = {
|
|
52
|
+
'artifacts_type': 'artifactsType',
|
|
53
|
+
'cloud_space_id': 'cloudSpaceId',
|
|
50
54
|
'id': 'id',
|
|
51
55
|
'name': 'name',
|
|
52
56
|
'run_id': 'runId'
|
|
53
57
|
}
|
|
54
58
|
|
|
55
|
-
def __init__(self, id: 'str' =None, name: 'str' =None, run_id: 'str' =None): # noqa: E501
|
|
59
|
+
def __init__(self, artifacts_type: 'V1JobArtifactsType' =None, cloud_space_id: 'str' =None, id: 'str' =None, name: 'str' =None, run_id: 'str' =None): # noqa: E501
|
|
56
60
|
"""V1FilesystemJob - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._artifacts_type = None
|
|
62
|
+
self._cloud_space_id = None
|
|
57
63
|
self._id = None
|
|
58
64
|
self._name = None
|
|
59
65
|
self._run_id = None
|
|
60
66
|
self.discriminator = None
|
|
67
|
+
if artifacts_type is not None:
|
|
68
|
+
self.artifacts_type = artifacts_type
|
|
69
|
+
if cloud_space_id is not None:
|
|
70
|
+
self.cloud_space_id = cloud_space_id
|
|
61
71
|
if id is not None:
|
|
62
72
|
self.id = id
|
|
63
73
|
if name is not None:
|
|
@@ -65,6 +75,48 @@ class V1FilesystemJob(object):
|
|
|
65
75
|
if run_id is not None:
|
|
66
76
|
self.run_id = run_id
|
|
67
77
|
|
|
78
|
+
@property
|
|
79
|
+
def artifacts_type(self) -> 'V1JobArtifactsType':
|
|
80
|
+
"""Gets the artifacts_type of this V1FilesystemJob. # noqa: E501
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The artifacts_type of this V1FilesystemJob. # noqa: E501
|
|
84
|
+
:rtype: V1JobArtifactsType
|
|
85
|
+
"""
|
|
86
|
+
return self._artifacts_type
|
|
87
|
+
|
|
88
|
+
@artifacts_type.setter
|
|
89
|
+
def artifacts_type(self, artifacts_type: 'V1JobArtifactsType'):
|
|
90
|
+
"""Sets the artifacts_type of this V1FilesystemJob.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param artifacts_type: The artifacts_type of this V1FilesystemJob. # noqa: E501
|
|
94
|
+
:type: V1JobArtifactsType
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._artifacts_type = artifacts_type
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def cloud_space_id(self) -> 'str':
|
|
101
|
+
"""Gets the cloud_space_id of this V1FilesystemJob. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The cloud_space_id of this V1FilesystemJob. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._cloud_space_id
|
|
108
|
+
|
|
109
|
+
@cloud_space_id.setter
|
|
110
|
+
def cloud_space_id(self, cloud_space_id: 'str'):
|
|
111
|
+
"""Sets the cloud_space_id of this V1FilesystemJob.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param cloud_space_id: The cloud_space_id of this V1FilesystemJob. # noqa: E501
|
|
115
|
+
:type: str
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._cloud_space_id = cloud_space_id
|
|
119
|
+
|
|
68
120
|
@property
|
|
69
121
|
def id(self) -> 'str':
|
|
70
122
|
"""Gets the id of this V1FilesystemJob. # noqa: E501
|
|
@@ -41,23 +41,33 @@ class V1FilesystemMMT(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'artifacts_type': 'V1JobArtifactsType',
|
|
45
|
+
'cloud_space_id': 'str',
|
|
44
46
|
'id': 'str',
|
|
45
47
|
'jobs': 'list[V1FilesystemJob]',
|
|
46
48
|
'name': 'str'
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
attribute_map = {
|
|
52
|
+
'artifacts_type': 'artifactsType',
|
|
53
|
+
'cloud_space_id': 'cloudSpaceId',
|
|
50
54
|
'id': 'id',
|
|
51
55
|
'jobs': 'jobs',
|
|
52
56
|
'name': 'name'
|
|
53
57
|
}
|
|
54
58
|
|
|
55
|
-
def __init__(self, id: 'str' =None, jobs: 'list[V1FilesystemJob]' =None, name: 'str' =None): # noqa: E501
|
|
59
|
+
def __init__(self, artifacts_type: 'V1JobArtifactsType' =None, cloud_space_id: 'str' =None, id: 'str' =None, jobs: 'list[V1FilesystemJob]' =None, name: 'str' =None): # noqa: E501
|
|
56
60
|
"""V1FilesystemMMT - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._artifacts_type = None
|
|
62
|
+
self._cloud_space_id = None
|
|
57
63
|
self._id = None
|
|
58
64
|
self._jobs = None
|
|
59
65
|
self._name = None
|
|
60
66
|
self.discriminator = None
|
|
67
|
+
if artifacts_type is not None:
|
|
68
|
+
self.artifacts_type = artifacts_type
|
|
69
|
+
if cloud_space_id is not None:
|
|
70
|
+
self.cloud_space_id = cloud_space_id
|
|
61
71
|
if id is not None:
|
|
62
72
|
self.id = id
|
|
63
73
|
if jobs is not None:
|
|
@@ -65,6 +75,48 @@ class V1FilesystemMMT(object):
|
|
|
65
75
|
if name is not None:
|
|
66
76
|
self.name = name
|
|
67
77
|
|
|
78
|
+
@property
|
|
79
|
+
def artifacts_type(self) -> 'V1JobArtifactsType':
|
|
80
|
+
"""Gets the artifacts_type of this V1FilesystemMMT. # noqa: E501
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The artifacts_type of this V1FilesystemMMT. # noqa: E501
|
|
84
|
+
:rtype: V1JobArtifactsType
|
|
85
|
+
"""
|
|
86
|
+
return self._artifacts_type
|
|
87
|
+
|
|
88
|
+
@artifacts_type.setter
|
|
89
|
+
def artifacts_type(self, artifacts_type: 'V1JobArtifactsType'):
|
|
90
|
+
"""Sets the artifacts_type of this V1FilesystemMMT.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param artifacts_type: The artifacts_type of this V1FilesystemMMT. # noqa: E501
|
|
94
|
+
:type: V1JobArtifactsType
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._artifacts_type = artifacts_type
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def cloud_space_id(self) -> 'str':
|
|
101
|
+
"""Gets the cloud_space_id of this V1FilesystemMMT. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The cloud_space_id of this V1FilesystemMMT. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._cloud_space_id
|
|
108
|
+
|
|
109
|
+
@cloud_space_id.setter
|
|
110
|
+
def cloud_space_id(self, cloud_space_id: 'str'):
|
|
111
|
+
"""Sets the cloud_space_id of this V1FilesystemMMT.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param cloud_space_id: The cloud_space_id of this V1FilesystemMMT. # noqa: E501
|
|
115
|
+
:type: str
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._cloud_space_id = cloud_space_id
|
|
119
|
+
|
|
68
120
|
@property
|
|
69
121
|
def id(self) -> 'str':
|
|
70
122
|
"""Gets the id of this V1FilesystemMMT. # noqa: E501
|
|
@@ -41,19 +41,24 @@ class V1FindCapacityBlockOfferingResponse(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'capacity_block_offerings': 'list[V1CapacityBlockOffering]'
|
|
44
|
+
'capacity_block_offerings': 'list[V1CapacityBlockOffering]',
|
|
45
|
+
'regions_without_quota': 'list[str]'
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
attribute_map = {
|
|
48
|
-
'capacity_block_offerings': 'capacityBlockOfferings'
|
|
49
|
+
'capacity_block_offerings': 'capacityBlockOfferings',
|
|
50
|
+
'regions_without_quota': 'regionsWithoutQuota'
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
def __init__(self, capacity_block_offerings: 'list[V1CapacityBlockOffering]' =None): # noqa: E501
|
|
53
|
+
def __init__(self, capacity_block_offerings: 'list[V1CapacityBlockOffering]' =None, regions_without_quota: 'list[str]' =None): # noqa: E501
|
|
52
54
|
"""V1FindCapacityBlockOfferingResponse - a model defined in Swagger""" # noqa: E501
|
|
53
55
|
self._capacity_block_offerings = None
|
|
56
|
+
self._regions_without_quota = None
|
|
54
57
|
self.discriminator = None
|
|
55
58
|
if capacity_block_offerings is not None:
|
|
56
59
|
self.capacity_block_offerings = capacity_block_offerings
|
|
60
|
+
if regions_without_quota is not None:
|
|
61
|
+
self.regions_without_quota = regions_without_quota
|
|
57
62
|
|
|
58
63
|
@property
|
|
59
64
|
def capacity_block_offerings(self) -> 'list[V1CapacityBlockOffering]':
|
|
@@ -76,6 +81,27 @@ class V1FindCapacityBlockOfferingResponse(object):
|
|
|
76
81
|
|
|
77
82
|
self._capacity_block_offerings = capacity_block_offerings
|
|
78
83
|
|
|
84
|
+
@property
|
|
85
|
+
def regions_without_quota(self) -> 'list[str]':
|
|
86
|
+
"""Gets the regions_without_quota of this V1FindCapacityBlockOfferingResponse. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The regions_without_quota of this V1FindCapacityBlockOfferingResponse. # noqa: E501
|
|
90
|
+
:rtype: list[str]
|
|
91
|
+
"""
|
|
92
|
+
return self._regions_without_quota
|
|
93
|
+
|
|
94
|
+
@regions_without_quota.setter
|
|
95
|
+
def regions_without_quota(self, regions_without_quota: 'list[str]'):
|
|
96
|
+
"""Sets the regions_without_quota of this V1FindCapacityBlockOfferingResponse.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param regions_without_quota: The regions_without_quota of this V1FindCapacityBlockOfferingResponse. # noqa: E501
|
|
100
|
+
:type: list[str]
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._regions_without_quota = regions_without_quota
|
|
104
|
+
|
|
79
105
|
def to_dict(self) -> dict:
|
|
80
106
|
"""Returns the model properties as a dict"""
|
|
81
107
|
result = {}
|
|
@@ -42,14 +42,18 @@ class V1Job(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'created_at': 'datetime',
|
|
45
|
+
'deleted_at': 'datetime',
|
|
45
46
|
'deployment_id': 'str',
|
|
46
47
|
'endpoint': 'V1Endpoint',
|
|
47
48
|
'id': 'str',
|
|
49
|
+
'interruption_notice_received': 'bool',
|
|
50
|
+
'interruption_notice_received_at': 'datetime',
|
|
48
51
|
'is_healthy': 'bool',
|
|
49
52
|
'message': 'str',
|
|
50
53
|
'multi_machine_job_id': 'str',
|
|
51
54
|
'name': 'str',
|
|
52
55
|
'overprovisioned': 'bool',
|
|
56
|
+
'pipeline_id': 'str',
|
|
53
57
|
'project_id': 'str',
|
|
54
58
|
'ready_at': 'datetime',
|
|
55
59
|
'release_id': 'str',
|
|
@@ -66,19 +70,24 @@ class V1Job(object):
|
|
|
66
70
|
'updated_at': 'datetime',
|
|
67
71
|
'urls': 'list[str]',
|
|
68
72
|
'user_id': 'str',
|
|
69
|
-
'user_logs_started_at': 'datetime'
|
|
73
|
+
'user_logs_started_at': 'datetime',
|
|
74
|
+
'visibility': 'V1ResourceVisibility'
|
|
70
75
|
}
|
|
71
76
|
|
|
72
77
|
attribute_map = {
|
|
73
78
|
'created_at': 'createdAt',
|
|
79
|
+
'deleted_at': 'deletedAt',
|
|
74
80
|
'deployment_id': 'deploymentId',
|
|
75
81
|
'endpoint': 'endpoint',
|
|
76
82
|
'id': 'id',
|
|
83
|
+
'interruption_notice_received': 'interruptionNoticeReceived',
|
|
84
|
+
'interruption_notice_received_at': 'interruptionNoticeReceivedAt',
|
|
77
85
|
'is_healthy': 'isHealthy',
|
|
78
86
|
'message': 'message',
|
|
79
87
|
'multi_machine_job_id': 'multiMachineJobId',
|
|
80
88
|
'name': 'name',
|
|
81
89
|
'overprovisioned': 'overprovisioned',
|
|
90
|
+
'pipeline_id': 'pipelineId',
|
|
82
91
|
'project_id': 'projectId',
|
|
83
92
|
'ready_at': 'readyAt',
|
|
84
93
|
'release_id': 'releaseId',
|
|
@@ -95,20 +104,25 @@ class V1Job(object):
|
|
|
95
104
|
'updated_at': 'updatedAt',
|
|
96
105
|
'urls': 'urls',
|
|
97
106
|
'user_id': 'userId',
|
|
98
|
-
'user_logs_started_at': 'userLogsStartedAt'
|
|
107
|
+
'user_logs_started_at': 'userLogsStartedAt',
|
|
108
|
+
'visibility': 'visibility'
|
|
99
109
|
}
|
|
100
110
|
|
|
101
|
-
def __init__(self, created_at: 'datetime' =None, deployment_id: 'str' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_healthy: 'bool' =None, message: 'str' =None, multi_machine_job_id: 'str' =None, name: 'str' =None, overprovisioned: 'bool' =None, project_id: 'str' =None, ready_at: 'datetime' =None, release_id: 'str' =None, restart_count: 'int' =None, restart_timings: 'list[V1RestartTiming]' =None, server_error: 'str' =None, spec: 'V1JobSpec' =None, started_at: 'datetime' =None, state: 'str' =None, stopped_at: 'datetime' =None, timings: 'dict(str, V1JobTiming)' =None, total_cost: 'float' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, urls: 'list[str]' =None, user_id: 'str' =None, user_logs_started_at: 'datetime' =None): # noqa: E501
|
|
111
|
+
def __init__(self, created_at: 'datetime' =None, deleted_at: 'datetime' =None, deployment_id: 'str' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, interruption_notice_received: 'bool' =None, interruption_notice_received_at: 'datetime' =None, is_healthy: 'bool' =None, message: 'str' =None, multi_machine_job_id: 'str' =None, name: 'str' =None, overprovisioned: 'bool' =None, pipeline_id: 'str' =None, project_id: 'str' =None, ready_at: 'datetime' =None, release_id: 'str' =None, restart_count: 'int' =None, restart_timings: 'list[V1RestartTiming]' =None, server_error: 'str' =None, spec: 'V1JobSpec' =None, started_at: 'datetime' =None, state: 'str' =None, stopped_at: 'datetime' =None, timings: 'dict(str, V1JobTiming)' =None, total_cost: 'float' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, urls: 'list[str]' =None, user_id: 'str' =None, user_logs_started_at: 'datetime' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
102
112
|
"""V1Job - a model defined in Swagger""" # noqa: E501
|
|
103
113
|
self._created_at = None
|
|
114
|
+
self._deleted_at = None
|
|
104
115
|
self._deployment_id = None
|
|
105
116
|
self._endpoint = None
|
|
106
117
|
self._id = None
|
|
118
|
+
self._interruption_notice_received = None
|
|
119
|
+
self._interruption_notice_received_at = None
|
|
107
120
|
self._is_healthy = None
|
|
108
121
|
self._message = None
|
|
109
122
|
self._multi_machine_job_id = None
|
|
110
123
|
self._name = None
|
|
111
124
|
self._overprovisioned = None
|
|
125
|
+
self._pipeline_id = None
|
|
112
126
|
self._project_id = None
|
|
113
127
|
self._ready_at = None
|
|
114
128
|
self._release_id = None
|
|
@@ -126,15 +140,22 @@ class V1Job(object):
|
|
|
126
140
|
self._urls = None
|
|
127
141
|
self._user_id = None
|
|
128
142
|
self._user_logs_started_at = None
|
|
143
|
+
self._visibility = None
|
|
129
144
|
self.discriminator = None
|
|
130
145
|
if created_at is not None:
|
|
131
146
|
self.created_at = created_at
|
|
147
|
+
if deleted_at is not None:
|
|
148
|
+
self.deleted_at = deleted_at
|
|
132
149
|
if deployment_id is not None:
|
|
133
150
|
self.deployment_id = deployment_id
|
|
134
151
|
if endpoint is not None:
|
|
135
152
|
self.endpoint = endpoint
|
|
136
153
|
if id is not None:
|
|
137
154
|
self.id = id
|
|
155
|
+
if interruption_notice_received is not None:
|
|
156
|
+
self.interruption_notice_received = interruption_notice_received
|
|
157
|
+
if interruption_notice_received_at is not None:
|
|
158
|
+
self.interruption_notice_received_at = interruption_notice_received_at
|
|
138
159
|
if is_healthy is not None:
|
|
139
160
|
self.is_healthy = is_healthy
|
|
140
161
|
if message is not None:
|
|
@@ -145,6 +166,8 @@ class V1Job(object):
|
|
|
145
166
|
self.name = name
|
|
146
167
|
if overprovisioned is not None:
|
|
147
168
|
self.overprovisioned = overprovisioned
|
|
169
|
+
if pipeline_id is not None:
|
|
170
|
+
self.pipeline_id = pipeline_id
|
|
148
171
|
if project_id is not None:
|
|
149
172
|
self.project_id = project_id
|
|
150
173
|
if ready_at is not None:
|
|
@@ -179,6 +202,8 @@ class V1Job(object):
|
|
|
179
202
|
self.user_id = user_id
|
|
180
203
|
if user_logs_started_at is not None:
|
|
181
204
|
self.user_logs_started_at = user_logs_started_at
|
|
205
|
+
if visibility is not None:
|
|
206
|
+
self.visibility = visibility
|
|
182
207
|
|
|
183
208
|
@property
|
|
184
209
|
def created_at(self) -> 'datetime':
|
|
@@ -201,6 +226,27 @@ class V1Job(object):
|
|
|
201
226
|
|
|
202
227
|
self._created_at = created_at
|
|
203
228
|
|
|
229
|
+
@property
|
|
230
|
+
def deleted_at(self) -> 'datetime':
|
|
231
|
+
"""Gets the deleted_at of this V1Job. # noqa: E501
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
:return: The deleted_at of this V1Job. # noqa: E501
|
|
235
|
+
:rtype: datetime
|
|
236
|
+
"""
|
|
237
|
+
return self._deleted_at
|
|
238
|
+
|
|
239
|
+
@deleted_at.setter
|
|
240
|
+
def deleted_at(self, deleted_at: 'datetime'):
|
|
241
|
+
"""Sets the deleted_at of this V1Job.
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
:param deleted_at: The deleted_at of this V1Job. # noqa: E501
|
|
245
|
+
:type: datetime
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
self._deleted_at = deleted_at
|
|
249
|
+
|
|
204
250
|
@property
|
|
205
251
|
def deployment_id(self) -> 'str':
|
|
206
252
|
"""Gets the deployment_id of this V1Job. # noqa: E501
|
|
@@ -264,6 +310,48 @@ class V1Job(object):
|
|
|
264
310
|
|
|
265
311
|
self._id = id
|
|
266
312
|
|
|
313
|
+
@property
|
|
314
|
+
def interruption_notice_received(self) -> 'bool':
|
|
315
|
+
"""Gets the interruption_notice_received of this V1Job. # noqa: E501
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
:return: The interruption_notice_received of this V1Job. # noqa: E501
|
|
319
|
+
:rtype: bool
|
|
320
|
+
"""
|
|
321
|
+
return self._interruption_notice_received
|
|
322
|
+
|
|
323
|
+
@interruption_notice_received.setter
|
|
324
|
+
def interruption_notice_received(self, interruption_notice_received: 'bool'):
|
|
325
|
+
"""Sets the interruption_notice_received of this V1Job.
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
:param interruption_notice_received: The interruption_notice_received of this V1Job. # noqa: E501
|
|
329
|
+
:type: bool
|
|
330
|
+
"""
|
|
331
|
+
|
|
332
|
+
self._interruption_notice_received = interruption_notice_received
|
|
333
|
+
|
|
334
|
+
@property
|
|
335
|
+
def interruption_notice_received_at(self) -> 'datetime':
|
|
336
|
+
"""Gets the interruption_notice_received_at of this V1Job. # noqa: E501
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
:return: The interruption_notice_received_at of this V1Job. # noqa: E501
|
|
340
|
+
:rtype: datetime
|
|
341
|
+
"""
|
|
342
|
+
return self._interruption_notice_received_at
|
|
343
|
+
|
|
344
|
+
@interruption_notice_received_at.setter
|
|
345
|
+
def interruption_notice_received_at(self, interruption_notice_received_at: 'datetime'):
|
|
346
|
+
"""Sets the interruption_notice_received_at of this V1Job.
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
:param interruption_notice_received_at: The interruption_notice_received_at of this V1Job. # noqa: E501
|
|
350
|
+
:type: datetime
|
|
351
|
+
"""
|
|
352
|
+
|
|
353
|
+
self._interruption_notice_received_at = interruption_notice_received_at
|
|
354
|
+
|
|
267
355
|
@property
|
|
268
356
|
def is_healthy(self) -> 'bool':
|
|
269
357
|
"""Gets the is_healthy of this V1Job. # noqa: E501
|
|
@@ -371,6 +459,27 @@ class V1Job(object):
|
|
|
371
459
|
|
|
372
460
|
self._overprovisioned = overprovisioned
|
|
373
461
|
|
|
462
|
+
@property
|
|
463
|
+
def pipeline_id(self) -> 'str':
|
|
464
|
+
"""Gets the pipeline_id of this V1Job. # noqa: E501
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
:return: The pipeline_id of this V1Job. # noqa: E501
|
|
468
|
+
:rtype: str
|
|
469
|
+
"""
|
|
470
|
+
return self._pipeline_id
|
|
471
|
+
|
|
472
|
+
@pipeline_id.setter
|
|
473
|
+
def pipeline_id(self, pipeline_id: 'str'):
|
|
474
|
+
"""Sets the pipeline_id of this V1Job.
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
:param pipeline_id: The pipeline_id of this V1Job. # noqa: E501
|
|
478
|
+
:type: str
|
|
479
|
+
"""
|
|
480
|
+
|
|
481
|
+
self._pipeline_id = pipeline_id
|
|
482
|
+
|
|
374
483
|
@property
|
|
375
484
|
def project_id(self) -> 'str':
|
|
376
485
|
"""Gets the project_id of this V1Job. # noqa: E501
|
|
@@ -728,6 +837,27 @@ class V1Job(object):
|
|
|
728
837
|
|
|
729
838
|
self._user_logs_started_at = user_logs_started_at
|
|
730
839
|
|
|
840
|
+
@property
|
|
841
|
+
def visibility(self) -> 'V1ResourceVisibility':
|
|
842
|
+
"""Gets the visibility of this V1Job. # noqa: E501
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
:return: The visibility of this V1Job. # noqa: E501
|
|
846
|
+
:rtype: V1ResourceVisibility
|
|
847
|
+
"""
|
|
848
|
+
return self._visibility
|
|
849
|
+
|
|
850
|
+
@visibility.setter
|
|
851
|
+
def visibility(self, visibility: 'V1ResourceVisibility'):
|
|
852
|
+
"""Sets the visibility of this V1Job.
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
:param visibility: The visibility of this V1Job. # noqa: E501
|
|
856
|
+
:type: V1ResourceVisibility
|
|
857
|
+
"""
|
|
858
|
+
|
|
859
|
+
self._visibility = visibility
|
|
860
|
+
|
|
731
861
|
def to_dict(self) -> dict:
|
|
732
862
|
"""Returns the model properties as a dict"""
|
|
733
863
|
result = {}
|