lightning-sdk 0.1.58__py3-none-any.whl → 0.2.0__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 +7 -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 +77 -0
- lightning_sdk/cli/download.py +71 -111
- 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 +162 -189
- 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 +21 -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 +670 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +303 -4
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +20 -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 +435 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +201 -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 +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +27 -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_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 +157 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +487 -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/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.0.dist-info}/METADATA +6 -8
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/RECORD +117 -88
- lightning_sdk/cli/legacy.py +0 -135
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,175 @@
|
|
|
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 UploadsUploadIdBody1(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
|
+
'cluster_id': 'str',
|
|
45
|
+
'filename': 'str',
|
|
46
|
+
'parts': 'list[str]'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'cluster_id': 'clusterId',
|
|
51
|
+
'filename': 'filename',
|
|
52
|
+
'parts': 'parts'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, cluster_id: 'str' =None, filename: 'str' =None, parts: 'list[str]' =None): # noqa: E501
|
|
56
|
+
"""UploadsUploadIdBody1 - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._cluster_id = None
|
|
58
|
+
self._filename = None
|
|
59
|
+
self._parts = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if cluster_id is not None:
|
|
62
|
+
self.cluster_id = cluster_id
|
|
63
|
+
if filename is not None:
|
|
64
|
+
self.filename = filename
|
|
65
|
+
if parts is not None:
|
|
66
|
+
self.parts = parts
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def cluster_id(self) -> 'str':
|
|
70
|
+
"""Gets the cluster_id of this UploadsUploadIdBody1. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The cluster_id of this UploadsUploadIdBody1. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._cluster_id
|
|
77
|
+
|
|
78
|
+
@cluster_id.setter
|
|
79
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
80
|
+
"""Sets the cluster_id of this UploadsUploadIdBody1.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param cluster_id: The cluster_id of this UploadsUploadIdBody1. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._cluster_id = cluster_id
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def filename(self) -> 'str':
|
|
91
|
+
"""Gets the filename of this UploadsUploadIdBody1. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The filename of this UploadsUploadIdBody1. # 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 UploadsUploadIdBody1.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param filename: The filename of this UploadsUploadIdBody1. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._filename = filename
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def parts(self) -> 'list[str]':
|
|
112
|
+
"""Gets the parts of this UploadsUploadIdBody1. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The parts of this UploadsUploadIdBody1. # noqa: E501
|
|
116
|
+
:rtype: list[str]
|
|
117
|
+
"""
|
|
118
|
+
return self._parts
|
|
119
|
+
|
|
120
|
+
@parts.setter
|
|
121
|
+
def parts(self, parts: 'list[str]'):
|
|
122
|
+
"""Sets the parts of this UploadsUploadIdBody1.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param parts: The parts of this UploadsUploadIdBody1. # noqa: E501
|
|
126
|
+
:type: list[str]
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._parts = parts
|
|
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(UploadsUploadIdBody1, 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: 'UploadsUploadIdBody1') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, UploadsUploadIdBody1):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'UploadsUploadIdBody1') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -49,6 +49,9 @@ class V1AgentJob(object):
|
|
|
49
49
|
'conda_env_path': 'str',
|
|
50
50
|
'created_at': 'datetime',
|
|
51
51
|
'id': 'str',
|
|
52
|
+
'image': 'str',
|
|
53
|
+
'image_login_command': 'str',
|
|
54
|
+
'image_secret_ref': 'str',
|
|
52
55
|
'linked_project_id': 'str',
|
|
53
56
|
'linked_user_id': 'str',
|
|
54
57
|
'message': 'str',
|
|
@@ -75,6 +78,9 @@ class V1AgentJob(object):
|
|
|
75
78
|
'conda_env_path': 'condaEnvPath',
|
|
76
79
|
'created_at': 'createdAt',
|
|
77
80
|
'id': 'id',
|
|
81
|
+
'image': 'image',
|
|
82
|
+
'image_login_command': 'imageLoginCommand',
|
|
83
|
+
'image_secret_ref': 'imageSecretRef',
|
|
78
84
|
'linked_project_id': 'linkedProjectId',
|
|
79
85
|
'linked_user_id': 'linkedUserId',
|
|
80
86
|
'message': 'message',
|
|
@@ -92,7 +98,7 @@ class V1AgentJob(object):
|
|
|
92
98
|
'work_dir': 'workDir'
|
|
93
99
|
}
|
|
94
100
|
|
|
95
|
-
def __init__(self, cache_id: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, conda_checksum: 'str' =None, conda_env_path: 'str' =None, created_at: 'datetime' =None, id: 'str' =None, linked_project_id: 'str' =None, linked_user_id: 'str' =None, message: 'str' =None, name: 'str' =None, num_gpus: 'str' =None, project_id: 'str' =None, run_id: 'str' =None, service_id: 'str' =None, slurm_v1_status: 'V1SlurmV1JobStatus' =None, state: 'str' =None, updated_at: 'datetime' =None, upload_eta_seconds: 'str' =None, upload_in_progress: 'bool' =None, upload_percentage: 'str' =None, work_dir: 'str' =None): # noqa: E501
|
|
101
|
+
def __init__(self, cache_id: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, conda_checksum: 'str' =None, conda_env_path: 'str' =None, created_at: 'datetime' =None, id: 'str' =None, image: 'str' =None, image_login_command: 'str' =None, image_secret_ref: 'str' =None, linked_project_id: 'str' =None, linked_user_id: 'str' =None, message: 'str' =None, name: 'str' =None, num_gpus: 'str' =None, project_id: 'str' =None, run_id: 'str' =None, service_id: 'str' =None, slurm_v1_status: 'V1SlurmV1JobStatus' =None, state: 'str' =None, updated_at: 'datetime' =None, upload_eta_seconds: 'str' =None, upload_in_progress: 'bool' =None, upload_percentage: 'str' =None, work_dir: 'str' =None): # noqa: E501
|
|
96
102
|
"""V1AgentJob - a model defined in Swagger""" # noqa: E501
|
|
97
103
|
self._cache_id = None
|
|
98
104
|
self._cloudspace_id = None
|
|
@@ -102,6 +108,9 @@ class V1AgentJob(object):
|
|
|
102
108
|
self._conda_env_path = None
|
|
103
109
|
self._created_at = None
|
|
104
110
|
self._id = None
|
|
111
|
+
self._image = None
|
|
112
|
+
self._image_login_command = None
|
|
113
|
+
self._image_secret_ref = None
|
|
105
114
|
self._linked_project_id = None
|
|
106
115
|
self._linked_user_id = None
|
|
107
116
|
self._message = None
|
|
@@ -134,6 +143,12 @@ class V1AgentJob(object):
|
|
|
134
143
|
self.created_at = created_at
|
|
135
144
|
if id is not None:
|
|
136
145
|
self.id = id
|
|
146
|
+
if image is not None:
|
|
147
|
+
self.image = image
|
|
148
|
+
if image_login_command is not None:
|
|
149
|
+
self.image_login_command = image_login_command
|
|
150
|
+
if image_secret_ref is not None:
|
|
151
|
+
self.image_secret_ref = image_secret_ref
|
|
137
152
|
if linked_project_id is not None:
|
|
138
153
|
self.linked_project_id = linked_project_id
|
|
139
154
|
if linked_user_id is not None:
|
|
@@ -333,6 +348,69 @@ class V1AgentJob(object):
|
|
|
333
348
|
|
|
334
349
|
self._id = id
|
|
335
350
|
|
|
351
|
+
@property
|
|
352
|
+
def image(self) -> 'str':
|
|
353
|
+
"""Gets the image of this V1AgentJob. # noqa: E501
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
:return: The image of this V1AgentJob. # noqa: E501
|
|
357
|
+
:rtype: str
|
|
358
|
+
"""
|
|
359
|
+
return self._image
|
|
360
|
+
|
|
361
|
+
@image.setter
|
|
362
|
+
def image(self, image: 'str'):
|
|
363
|
+
"""Sets the image of this V1AgentJob.
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
:param image: The image of this V1AgentJob. # noqa: E501
|
|
367
|
+
:type: str
|
|
368
|
+
"""
|
|
369
|
+
|
|
370
|
+
self._image = image
|
|
371
|
+
|
|
372
|
+
@property
|
|
373
|
+
def image_login_command(self) -> 'str':
|
|
374
|
+
"""Gets the image_login_command of this V1AgentJob. # noqa: E501
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
:return: The image_login_command of this V1AgentJob. # noqa: E501
|
|
378
|
+
:rtype: str
|
|
379
|
+
"""
|
|
380
|
+
return self._image_login_command
|
|
381
|
+
|
|
382
|
+
@image_login_command.setter
|
|
383
|
+
def image_login_command(self, image_login_command: 'str'):
|
|
384
|
+
"""Sets the image_login_command of this V1AgentJob.
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
:param image_login_command: The image_login_command of this V1AgentJob. # noqa: E501
|
|
388
|
+
:type: str
|
|
389
|
+
"""
|
|
390
|
+
|
|
391
|
+
self._image_login_command = image_login_command
|
|
392
|
+
|
|
393
|
+
@property
|
|
394
|
+
def image_secret_ref(self) -> 'str':
|
|
395
|
+
"""Gets the image_secret_ref of this V1AgentJob. # noqa: E501
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
:return: The image_secret_ref of this V1AgentJob. # noqa: E501
|
|
399
|
+
:rtype: str
|
|
400
|
+
"""
|
|
401
|
+
return self._image_secret_ref
|
|
402
|
+
|
|
403
|
+
@image_secret_ref.setter
|
|
404
|
+
def image_secret_ref(self, image_secret_ref: 'str'):
|
|
405
|
+
"""Sets the image_secret_ref of this V1AgentJob.
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
:param image_secret_ref: The image_secret_ref of this V1AgentJob. # noqa: E501
|
|
409
|
+
:type: str
|
|
410
|
+
"""
|
|
411
|
+
|
|
412
|
+
self._image_secret_ref = image_secret_ref
|
|
413
|
+
|
|
336
414
|
@property
|
|
337
415
|
def linked_project_id(self) -> 'str':
|
|
338
416
|
"""Gets the linked_project_id of this V1AgentJob. # noqa: E501
|
|
@@ -44,9 +44,7 @@ class V1Assistant(object):
|
|
|
44
44
|
'cloudspace_id': 'str',
|
|
45
45
|
'cluster_id': 'str',
|
|
46
46
|
'created_at': 'datetime',
|
|
47
|
-
'
|
|
48
|
-
'deployment_org_name': 'str',
|
|
49
|
-
'deployment_project_name': 'str',
|
|
47
|
+
'deployment_details': 'V1DeploymentDetails',
|
|
50
48
|
'description': 'str',
|
|
51
49
|
'endpoint_id': 'str',
|
|
52
50
|
'expected_cold_start_time': 'str',
|
|
@@ -74,9 +72,7 @@ class V1Assistant(object):
|
|
|
74
72
|
'cloudspace_id': 'cloudspaceId',
|
|
75
73
|
'cluster_id': 'clusterId',
|
|
76
74
|
'created_at': 'createdAt',
|
|
77
|
-
'
|
|
78
|
-
'deployment_org_name': 'deploymentOrgName',
|
|
79
|
-
'deployment_project_name': 'deploymentProjectName',
|
|
75
|
+
'deployment_details': 'deploymentDetails',
|
|
80
76
|
'description': 'description',
|
|
81
77
|
'endpoint_id': 'endpointId',
|
|
82
78
|
'expected_cold_start_time': 'expectedColdStartTime',
|
|
@@ -100,14 +96,12 @@ class V1Assistant(object):
|
|
|
100
96
|
'user_id': 'userId'
|
|
101
97
|
}
|
|
102
98
|
|
|
103
|
-
def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None,
|
|
99
|
+
def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, deployment_details: 'V1DeploymentDetails' =None, description: 'str' =None, endpoint_id: 'str' =None, expected_cold_start_time: 'str' =None, file_uploads_enabled: 'bool' =None, id: 'str' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, managed_endpoint_id: 'str' =None, model: 'str' =None, model_provider: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, prompt_suggestions: 'list[V1PromptSuggestion]' =None, prompt_template: 'str' =None, publish_status: 'str' =None, status: 'V1AssistantModelStatus' =None, thumbnail_url: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
104
100
|
"""V1Assistant - a model defined in Swagger""" # noqa: E501
|
|
105
101
|
self._cloudspace_id = None
|
|
106
102
|
self._cluster_id = None
|
|
107
103
|
self._created_at = None
|
|
108
|
-
self.
|
|
109
|
-
self._deployment_org_name = None
|
|
110
|
-
self._deployment_project_name = None
|
|
104
|
+
self._deployment_details = None
|
|
111
105
|
self._description = None
|
|
112
106
|
self._endpoint_id = None
|
|
113
107
|
self._expected_cold_start_time = None
|
|
@@ -136,12 +130,8 @@ class V1Assistant(object):
|
|
|
136
130
|
self.cluster_id = cluster_id
|
|
137
131
|
if created_at is not None:
|
|
138
132
|
self.created_at = created_at
|
|
139
|
-
if
|
|
140
|
-
self.
|
|
141
|
-
if deployment_org_name is not None:
|
|
142
|
-
self.deployment_org_name = deployment_org_name
|
|
143
|
-
if deployment_project_name is not None:
|
|
144
|
-
self.deployment_project_name = deployment_project_name
|
|
133
|
+
if deployment_details is not None:
|
|
134
|
+
self.deployment_details = deployment_details
|
|
145
135
|
if description is not None:
|
|
146
136
|
self.description = description
|
|
147
137
|
if endpoint_id is not None:
|
|
@@ -249,67 +239,25 @@ class V1Assistant(object):
|
|
|
249
239
|
self._created_at = created_at
|
|
250
240
|
|
|
251
241
|
@property
|
|
252
|
-
def
|
|
253
|
-
"""Gets the
|
|
242
|
+
def deployment_details(self) -> 'V1DeploymentDetails':
|
|
243
|
+
"""Gets the deployment_details of this V1Assistant. # noqa: E501
|
|
254
244
|
|
|
255
245
|
|
|
256
|
-
:return: The
|
|
257
|
-
:rtype:
|
|
258
|
-
"""
|
|
259
|
-
return self._deployment_name
|
|
260
|
-
|
|
261
|
-
@deployment_name.setter
|
|
262
|
-
def deployment_name(self, deployment_name: 'str'):
|
|
263
|
-
"""Sets the deployment_name of this V1Assistant.
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
:param deployment_name: The deployment_name of this V1Assistant. # noqa: E501
|
|
267
|
-
:type: str
|
|
268
|
-
"""
|
|
269
|
-
|
|
270
|
-
self._deployment_name = deployment_name
|
|
271
|
-
|
|
272
|
-
@property
|
|
273
|
-
def deployment_org_name(self) -> 'str':
|
|
274
|
-
"""Gets the deployment_org_name of this V1Assistant. # noqa: E501
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
:return: The deployment_org_name of this V1Assistant. # noqa: E501
|
|
278
|
-
:rtype: str
|
|
246
|
+
:return: The deployment_details of this V1Assistant. # noqa: E501
|
|
247
|
+
:rtype: V1DeploymentDetails
|
|
279
248
|
"""
|
|
280
|
-
return self.
|
|
249
|
+
return self._deployment_details
|
|
281
250
|
|
|
282
|
-
@
|
|
283
|
-
def
|
|
284
|
-
"""Sets the
|
|
251
|
+
@deployment_details.setter
|
|
252
|
+
def deployment_details(self, deployment_details: 'V1DeploymentDetails'):
|
|
253
|
+
"""Sets the deployment_details of this V1Assistant.
|
|
285
254
|
|
|
286
255
|
|
|
287
|
-
:param
|
|
288
|
-
:type:
|
|
289
|
-
"""
|
|
290
|
-
|
|
291
|
-
self._deployment_org_name = deployment_org_name
|
|
292
|
-
|
|
293
|
-
@property
|
|
294
|
-
def deployment_project_name(self) -> 'str':
|
|
295
|
-
"""Gets the deployment_project_name of this V1Assistant. # noqa: E501
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
:return: The deployment_project_name of this V1Assistant. # noqa: E501
|
|
299
|
-
:rtype: str
|
|
300
|
-
"""
|
|
301
|
-
return self._deployment_project_name
|
|
302
|
-
|
|
303
|
-
@deployment_project_name.setter
|
|
304
|
-
def deployment_project_name(self, deployment_project_name: 'str'):
|
|
305
|
-
"""Sets the deployment_project_name of this V1Assistant.
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
:param deployment_project_name: The deployment_project_name of this V1Assistant. # noqa: E501
|
|
309
|
-
:type: str
|
|
256
|
+
:param deployment_details: The deployment_details of this V1Assistant. # noqa: E501
|
|
257
|
+
:type: V1DeploymentDetails
|
|
310
258
|
"""
|
|
311
259
|
|
|
312
|
-
self.
|
|
260
|
+
self._deployment_details = deployment_details
|
|
313
261
|
|
|
314
262
|
@property
|
|
315
263
|
def description(self) -> 'str':
|
|
@@ -50,6 +50,7 @@ class V1CapacityBlockOffering(object):
|
|
|
50
50
|
'instance_type': 'str',
|
|
51
51
|
'provider_fee': 'float',
|
|
52
52
|
'region': 'str',
|
|
53
|
+
'regions_without_quota': 'list[str]',
|
|
53
54
|
'start_date': 'datetime',
|
|
54
55
|
'upfront_fee': 'float'
|
|
55
56
|
}
|
|
@@ -64,11 +65,12 @@ class V1CapacityBlockOffering(object):
|
|
|
64
65
|
'instance_type': 'instanceType',
|
|
65
66
|
'provider_fee': 'providerFee',
|
|
66
67
|
'region': 'region',
|
|
68
|
+
'regions_without_quota': 'regionsWithoutQuota',
|
|
67
69
|
'start_date': 'startDate',
|
|
68
70
|
'upfront_fee': 'upfrontFee'
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
def __init__(self, capacity_block_duration_hours: 'int' =None, capacity_block_offering_id: 'str' =None, currency_code: 'str' =None, end_date: 'datetime' =None, fee: 'float' =None, instance_count: 'int' =None, instance_type: 'str' =None, provider_fee: 'float' =None, region: 'str' =None, start_date: 'datetime' =None, upfront_fee: 'float' =None): # noqa: E501
|
|
73
|
+
def __init__(self, capacity_block_duration_hours: 'int' =None, capacity_block_offering_id: 'str' =None, currency_code: 'str' =None, end_date: 'datetime' =None, fee: 'float' =None, instance_count: 'int' =None, instance_type: 'str' =None, provider_fee: 'float' =None, region: 'str' =None, regions_without_quota: 'list[str]' =None, start_date: 'datetime' =None, upfront_fee: 'float' =None): # noqa: E501
|
|
72
74
|
"""V1CapacityBlockOffering - a model defined in Swagger""" # noqa: E501
|
|
73
75
|
self._capacity_block_duration_hours = None
|
|
74
76
|
self._capacity_block_offering_id = None
|
|
@@ -79,6 +81,7 @@ class V1CapacityBlockOffering(object):
|
|
|
79
81
|
self._instance_type = None
|
|
80
82
|
self._provider_fee = None
|
|
81
83
|
self._region = None
|
|
84
|
+
self._regions_without_quota = None
|
|
82
85
|
self._start_date = None
|
|
83
86
|
self._upfront_fee = None
|
|
84
87
|
self.discriminator = None
|
|
@@ -100,6 +103,8 @@ class V1CapacityBlockOffering(object):
|
|
|
100
103
|
self.provider_fee = provider_fee
|
|
101
104
|
if region is not None:
|
|
102
105
|
self.region = region
|
|
106
|
+
if regions_without_quota is not None:
|
|
107
|
+
self.regions_without_quota = regions_without_quota
|
|
103
108
|
if start_date is not None:
|
|
104
109
|
self.start_date = start_date
|
|
105
110
|
if upfront_fee is not None:
|
|
@@ -294,6 +299,27 @@ class V1CapacityBlockOffering(object):
|
|
|
294
299
|
|
|
295
300
|
self._region = region
|
|
296
301
|
|
|
302
|
+
@property
|
|
303
|
+
def regions_without_quota(self) -> 'list[str]':
|
|
304
|
+
"""Gets the regions_without_quota of this V1CapacityBlockOffering. # noqa: E501
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
:return: The regions_without_quota of this V1CapacityBlockOffering. # noqa: E501
|
|
308
|
+
:rtype: list[str]
|
|
309
|
+
"""
|
|
310
|
+
return self._regions_without_quota
|
|
311
|
+
|
|
312
|
+
@regions_without_quota.setter
|
|
313
|
+
def regions_without_quota(self, regions_without_quota: 'list[str]'):
|
|
314
|
+
"""Sets the regions_without_quota of this V1CapacityBlockOffering.
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
:param regions_without_quota: The regions_without_quota of this V1CapacityBlockOffering. # noqa: E501
|
|
318
|
+
:type: list[str]
|
|
319
|
+
"""
|
|
320
|
+
|
|
321
|
+
self._regions_without_quota = regions_without_quota
|
|
322
|
+
|
|
297
323
|
@property
|
|
298
324
|
def start_date(self) -> 'datetime':
|
|
299
325
|
"""Gets the start_date of this V1CapacityBlockOffering. # noqa: E501
|
|
@@ -37,7 +37,7 @@ class V1CloudSpaceArtifactEventType(object):
|
|
|
37
37
|
"""
|
|
38
38
|
allowed enum values
|
|
39
39
|
"""
|
|
40
|
-
|
|
40
|
+
UPDATED = "CLOUD_SPACE_ARTIFACT_EVENT_TYPE_UPDATED"
|
|
41
41
|
DELETED = "CLOUD_SPACE_ARTIFACT_EVENT_TYPE_DELETED"
|
|
42
42
|
"""
|
|
43
43
|
Attributes:
|