lightning-sdk 0.2.3__py3-none-any.whl → 0.2.5__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/ai_hub.py +10 -17
- lightning_sdk/api/ai_hub_api.py +20 -3
- lightning_sdk/api/studio_api.py +0 -8
- lightning_sdk/cli/serve.py +139 -22
- lightning_sdk/deployment/deployment.py +32 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +49 -1
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +4 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +537 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +10 -6
- lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +20 -20
- lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +573 -0
- lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +45 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +69 -69
- lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +124 -20
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_pipeline_schedule.py → v1_delete_cloud_space_environment_template_response.py} +32 -32
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_file_upload_urls_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +79 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_file.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +58 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -105
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +203 -0
- lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
- lightning_sdk/lightning_cloud/rest_client.py +2 -0
- lightning_sdk/lit_container.py +8 -1
- lightning_sdk/mmt/mmt.py +1 -18
- lightning_sdk/mmt/v1.py +1 -28
- lightning_sdk/models.py +15 -6
- lightning_sdk/pipeline/pipeline.py +2 -2
- lightning_sdk/pipeline/types.py +28 -2
- lightning_sdk/pipeline/utils.py +1 -1
- lightning_sdk/plugin.py +0 -6
- lightning_sdk/serve.py +55 -22
- lightning_sdk/utils/resolve.py +1 -0
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/RECORD +110 -62
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/WHEEL +1 -1
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,149 @@
|
|
|
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 UploadIdPartsBody1(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
|
+
'filepath': 'str',
|
|
45
|
+
'parts': 'list[str]'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'filepath': 'filepath',
|
|
50
|
+
'parts': 'parts'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, filepath: 'str' =None, parts: 'list[str]' =None): # noqa: E501
|
|
54
|
+
"""UploadIdPartsBody1 - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._filepath = None
|
|
56
|
+
self._parts = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if filepath is not None:
|
|
59
|
+
self.filepath = filepath
|
|
60
|
+
if parts is not None:
|
|
61
|
+
self.parts = parts
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def filepath(self) -> 'str':
|
|
65
|
+
"""Gets the filepath of this UploadIdPartsBody1. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The filepath of this UploadIdPartsBody1. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._filepath
|
|
72
|
+
|
|
73
|
+
@filepath.setter
|
|
74
|
+
def filepath(self, filepath: 'str'):
|
|
75
|
+
"""Sets the filepath of this UploadIdPartsBody1.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param filepath: The filepath of this UploadIdPartsBody1. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._filepath = filepath
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def parts(self) -> 'list[str]':
|
|
86
|
+
"""Gets the parts of this UploadIdPartsBody1. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The parts of this UploadIdPartsBody1. # noqa: E501
|
|
90
|
+
:rtype: list[str]
|
|
91
|
+
"""
|
|
92
|
+
return self._parts
|
|
93
|
+
|
|
94
|
+
@parts.setter
|
|
95
|
+
def parts(self, parts: 'list[str]'):
|
|
96
|
+
"""Sets the parts of this UploadIdPartsBody1.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param parts: The parts of this UploadIdPartsBody1. # noqa: E501
|
|
100
|
+
:type: list[str]
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._parts = parts
|
|
104
|
+
|
|
105
|
+
def to_dict(self) -> dict:
|
|
106
|
+
"""Returns the model properties as a dict"""
|
|
107
|
+
result = {}
|
|
108
|
+
|
|
109
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
110
|
+
value = getattr(self, attr)
|
|
111
|
+
if isinstance(value, list):
|
|
112
|
+
result[attr] = list(map(
|
|
113
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
114
|
+
value
|
|
115
|
+
))
|
|
116
|
+
elif hasattr(value, "to_dict"):
|
|
117
|
+
result[attr] = value.to_dict()
|
|
118
|
+
elif isinstance(value, dict):
|
|
119
|
+
result[attr] = dict(map(
|
|
120
|
+
lambda item: (item[0], item[1].to_dict())
|
|
121
|
+
if hasattr(item[1], "to_dict") else item,
|
|
122
|
+
value.items()
|
|
123
|
+
))
|
|
124
|
+
else:
|
|
125
|
+
result[attr] = value
|
|
126
|
+
if issubclass(UploadIdPartsBody1, dict):
|
|
127
|
+
for key, value in self.items():
|
|
128
|
+
result[key] = value
|
|
129
|
+
|
|
130
|
+
return result
|
|
131
|
+
|
|
132
|
+
def to_str(self) -> str:
|
|
133
|
+
"""Returns the string representation of the model"""
|
|
134
|
+
return pprint.pformat(self.to_dict())
|
|
135
|
+
|
|
136
|
+
def __repr__(self) -> str:
|
|
137
|
+
"""For `print` and `pprint`"""
|
|
138
|
+
return self.to_str()
|
|
139
|
+
|
|
140
|
+
def __eq__(self, other: 'UploadIdPartsBody1') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, UploadIdPartsBody1):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'UploadIdPartsBody1') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|
|
@@ -48,15 +48,18 @@ class V1AgentJob(object):
|
|
|
48
48
|
'conda_checksum': 'str',
|
|
49
49
|
'conda_env_path': 'str',
|
|
50
50
|
'created_at': 'datetime',
|
|
51
|
+
'entrypoint': 'str',
|
|
51
52
|
'id': 'str',
|
|
52
53
|
'image': 'str',
|
|
53
|
-
'
|
|
54
|
+
'image_registry_password': 'str',
|
|
55
|
+
'image_registry_username': 'str',
|
|
54
56
|
'image_secret_ref': 'str',
|
|
55
57
|
'linked_project_id': 'str',
|
|
56
58
|
'linked_user_id': 'str',
|
|
57
59
|
'message': 'str',
|
|
58
60
|
'name': 'str',
|
|
59
|
-
'num_gpus': '
|
|
61
|
+
'num_gpus': 'int',
|
|
62
|
+
'partition': 'str',
|
|
60
63
|
'project_id': 'str',
|
|
61
64
|
'run_id': 'str',
|
|
62
65
|
'service_id': 'str',
|
|
@@ -66,6 +69,7 @@ class V1AgentJob(object):
|
|
|
66
69
|
'upload_eta_seconds': 'str',
|
|
67
70
|
'upload_in_progress': 'bool',
|
|
68
71
|
'upload_percentage': 'str',
|
|
72
|
+
'username': 'str',
|
|
69
73
|
'work_dir': 'str'
|
|
70
74
|
}
|
|
71
75
|
|
|
@@ -77,15 +81,18 @@ class V1AgentJob(object):
|
|
|
77
81
|
'conda_checksum': 'condaChecksum',
|
|
78
82
|
'conda_env_path': 'condaEnvPath',
|
|
79
83
|
'created_at': 'createdAt',
|
|
84
|
+
'entrypoint': 'entrypoint',
|
|
80
85
|
'id': 'id',
|
|
81
86
|
'image': 'image',
|
|
82
|
-
'
|
|
87
|
+
'image_registry_password': 'imageRegistryPassword',
|
|
88
|
+
'image_registry_username': 'imageRegistryUsername',
|
|
83
89
|
'image_secret_ref': 'imageSecretRef',
|
|
84
90
|
'linked_project_id': 'linkedProjectId',
|
|
85
91
|
'linked_user_id': 'linkedUserId',
|
|
86
92
|
'message': 'message',
|
|
87
93
|
'name': 'name',
|
|
88
94
|
'num_gpus': 'numGpus',
|
|
95
|
+
'partition': 'partition',
|
|
89
96
|
'project_id': 'projectId',
|
|
90
97
|
'run_id': 'runId',
|
|
91
98
|
'service_id': 'serviceId',
|
|
@@ -95,10 +102,11 @@ class V1AgentJob(object):
|
|
|
95
102
|
'upload_eta_seconds': 'uploadEtaSeconds',
|
|
96
103
|
'upload_in_progress': 'uploadInProgress',
|
|
97
104
|
'upload_percentage': 'uploadPercentage',
|
|
105
|
+
'username': 'username',
|
|
98
106
|
'work_dir': 'workDir'
|
|
99
107
|
}
|
|
100
108
|
|
|
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,
|
|
109
|
+
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, entrypoint: 'str' =None, id: 'str' =None, image: 'str' =None, image_registry_password: 'str' =None, image_registry_username: '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: 'int' =None, partition: '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, username: 'str' =None, work_dir: 'str' =None): # noqa: E501
|
|
102
110
|
"""V1AgentJob - a model defined in Swagger""" # noqa: E501
|
|
103
111
|
self._cache_id = None
|
|
104
112
|
self._cloudspace_id = None
|
|
@@ -107,15 +115,18 @@ class V1AgentJob(object):
|
|
|
107
115
|
self._conda_checksum = None
|
|
108
116
|
self._conda_env_path = None
|
|
109
117
|
self._created_at = None
|
|
118
|
+
self._entrypoint = None
|
|
110
119
|
self._id = None
|
|
111
120
|
self._image = None
|
|
112
|
-
self.
|
|
121
|
+
self._image_registry_password = None
|
|
122
|
+
self._image_registry_username = None
|
|
113
123
|
self._image_secret_ref = None
|
|
114
124
|
self._linked_project_id = None
|
|
115
125
|
self._linked_user_id = None
|
|
116
126
|
self._message = None
|
|
117
127
|
self._name = None
|
|
118
128
|
self._num_gpus = None
|
|
129
|
+
self._partition = None
|
|
119
130
|
self._project_id = None
|
|
120
131
|
self._run_id = None
|
|
121
132
|
self._service_id = None
|
|
@@ -125,6 +136,7 @@ class V1AgentJob(object):
|
|
|
125
136
|
self._upload_eta_seconds = None
|
|
126
137
|
self._upload_in_progress = None
|
|
127
138
|
self._upload_percentage = None
|
|
139
|
+
self._username = None
|
|
128
140
|
self._work_dir = None
|
|
129
141
|
self.discriminator = None
|
|
130
142
|
if cache_id is not None:
|
|
@@ -141,12 +153,16 @@ class V1AgentJob(object):
|
|
|
141
153
|
self.conda_env_path = conda_env_path
|
|
142
154
|
if created_at is not None:
|
|
143
155
|
self.created_at = created_at
|
|
156
|
+
if entrypoint is not None:
|
|
157
|
+
self.entrypoint = entrypoint
|
|
144
158
|
if id is not None:
|
|
145
159
|
self.id = id
|
|
146
160
|
if image is not None:
|
|
147
161
|
self.image = image
|
|
148
|
-
if
|
|
149
|
-
self.
|
|
162
|
+
if image_registry_password is not None:
|
|
163
|
+
self.image_registry_password = image_registry_password
|
|
164
|
+
if image_registry_username is not None:
|
|
165
|
+
self.image_registry_username = image_registry_username
|
|
150
166
|
if image_secret_ref is not None:
|
|
151
167
|
self.image_secret_ref = image_secret_ref
|
|
152
168
|
if linked_project_id is not None:
|
|
@@ -159,6 +175,8 @@ class V1AgentJob(object):
|
|
|
159
175
|
self.name = name
|
|
160
176
|
if num_gpus is not None:
|
|
161
177
|
self.num_gpus = num_gpus
|
|
178
|
+
if partition is not None:
|
|
179
|
+
self.partition = partition
|
|
162
180
|
if project_id is not None:
|
|
163
181
|
self.project_id = project_id
|
|
164
182
|
if run_id is not None:
|
|
@@ -177,6 +195,8 @@ class V1AgentJob(object):
|
|
|
177
195
|
self.upload_in_progress = upload_in_progress
|
|
178
196
|
if upload_percentage is not None:
|
|
179
197
|
self.upload_percentage = upload_percentage
|
|
198
|
+
if username is not None:
|
|
199
|
+
self.username = username
|
|
180
200
|
if work_dir is not None:
|
|
181
201
|
self.work_dir = work_dir
|
|
182
202
|
|
|
@@ -327,6 +347,27 @@ class V1AgentJob(object):
|
|
|
327
347
|
|
|
328
348
|
self._created_at = created_at
|
|
329
349
|
|
|
350
|
+
@property
|
|
351
|
+
def entrypoint(self) -> 'str':
|
|
352
|
+
"""Gets the entrypoint of this V1AgentJob. # noqa: E501
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
:return: The entrypoint of this V1AgentJob. # noqa: E501
|
|
356
|
+
:rtype: str
|
|
357
|
+
"""
|
|
358
|
+
return self._entrypoint
|
|
359
|
+
|
|
360
|
+
@entrypoint.setter
|
|
361
|
+
def entrypoint(self, entrypoint: 'str'):
|
|
362
|
+
"""Sets the entrypoint of this V1AgentJob.
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
:param entrypoint: The entrypoint of this V1AgentJob. # noqa: E501
|
|
366
|
+
:type: str
|
|
367
|
+
"""
|
|
368
|
+
|
|
369
|
+
self._entrypoint = entrypoint
|
|
370
|
+
|
|
330
371
|
@property
|
|
331
372
|
def id(self) -> 'str':
|
|
332
373
|
"""Gets the id of this V1AgentJob. # noqa: E501
|
|
@@ -370,25 +411,46 @@ class V1AgentJob(object):
|
|
|
370
411
|
self._image = image
|
|
371
412
|
|
|
372
413
|
@property
|
|
373
|
-
def
|
|
374
|
-
"""Gets the
|
|
414
|
+
def image_registry_password(self) -> 'str':
|
|
415
|
+
"""Gets the image_registry_password of this V1AgentJob. # noqa: E501
|
|
375
416
|
|
|
376
417
|
|
|
377
|
-
:return: The
|
|
418
|
+
:return: The image_registry_password of this V1AgentJob. # noqa: E501
|
|
378
419
|
:rtype: str
|
|
379
420
|
"""
|
|
380
|
-
return self.
|
|
421
|
+
return self._image_registry_password
|
|
381
422
|
|
|
382
|
-
@
|
|
383
|
-
def
|
|
384
|
-
"""Sets the
|
|
423
|
+
@image_registry_password.setter
|
|
424
|
+
def image_registry_password(self, image_registry_password: 'str'):
|
|
425
|
+
"""Sets the image_registry_password of this V1AgentJob.
|
|
385
426
|
|
|
386
427
|
|
|
387
|
-
:param
|
|
428
|
+
:param image_registry_password: The image_registry_password of this V1AgentJob. # noqa: E501
|
|
388
429
|
:type: str
|
|
389
430
|
"""
|
|
390
431
|
|
|
391
|
-
self.
|
|
432
|
+
self._image_registry_password = image_registry_password
|
|
433
|
+
|
|
434
|
+
@property
|
|
435
|
+
def image_registry_username(self) -> 'str':
|
|
436
|
+
"""Gets the image_registry_username of this V1AgentJob. # noqa: E501
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
:return: The image_registry_username of this V1AgentJob. # noqa: E501
|
|
440
|
+
:rtype: str
|
|
441
|
+
"""
|
|
442
|
+
return self._image_registry_username
|
|
443
|
+
|
|
444
|
+
@image_registry_username.setter
|
|
445
|
+
def image_registry_username(self, image_registry_username: 'str'):
|
|
446
|
+
"""Sets the image_registry_username of this V1AgentJob.
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
:param image_registry_username: The image_registry_username of this V1AgentJob. # noqa: E501
|
|
450
|
+
:type: str
|
|
451
|
+
"""
|
|
452
|
+
|
|
453
|
+
self._image_registry_username = image_registry_username
|
|
392
454
|
|
|
393
455
|
@property
|
|
394
456
|
def image_secret_ref(self) -> 'str':
|
|
@@ -496,26 +558,47 @@ class V1AgentJob(object):
|
|
|
496
558
|
self._name = name
|
|
497
559
|
|
|
498
560
|
@property
|
|
499
|
-
def num_gpus(self) -> '
|
|
561
|
+
def num_gpus(self) -> 'int':
|
|
500
562
|
"""Gets the num_gpus of this V1AgentJob. # noqa: E501
|
|
501
563
|
|
|
502
564
|
|
|
503
565
|
:return: The num_gpus of this V1AgentJob. # noqa: E501
|
|
504
|
-
:rtype:
|
|
566
|
+
:rtype: int
|
|
505
567
|
"""
|
|
506
568
|
return self._num_gpus
|
|
507
569
|
|
|
508
570
|
@num_gpus.setter
|
|
509
|
-
def num_gpus(self, num_gpus: '
|
|
571
|
+
def num_gpus(self, num_gpus: 'int'):
|
|
510
572
|
"""Sets the num_gpus of this V1AgentJob.
|
|
511
573
|
|
|
512
574
|
|
|
513
575
|
:param num_gpus: The num_gpus of this V1AgentJob. # noqa: E501
|
|
514
|
-
:type:
|
|
576
|
+
:type: int
|
|
515
577
|
"""
|
|
516
578
|
|
|
517
579
|
self._num_gpus = num_gpus
|
|
518
580
|
|
|
581
|
+
@property
|
|
582
|
+
def partition(self) -> 'str':
|
|
583
|
+
"""Gets the partition of this V1AgentJob. # noqa: E501
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
:return: The partition of this V1AgentJob. # noqa: E501
|
|
587
|
+
:rtype: str
|
|
588
|
+
"""
|
|
589
|
+
return self._partition
|
|
590
|
+
|
|
591
|
+
@partition.setter
|
|
592
|
+
def partition(self, partition: 'str'):
|
|
593
|
+
"""Sets the partition of this V1AgentJob.
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
:param partition: The partition of this V1AgentJob. # noqa: E501
|
|
597
|
+
:type: str
|
|
598
|
+
"""
|
|
599
|
+
|
|
600
|
+
self._partition = partition
|
|
601
|
+
|
|
519
602
|
@property
|
|
520
603
|
def project_id(self) -> 'str':
|
|
521
604
|
"""Gets the project_id of this V1AgentJob. # noqa: E501
|
|
@@ -705,6 +788,27 @@ class V1AgentJob(object):
|
|
|
705
788
|
|
|
706
789
|
self._upload_percentage = upload_percentage
|
|
707
790
|
|
|
791
|
+
@property
|
|
792
|
+
def username(self) -> 'str':
|
|
793
|
+
"""Gets the username of this V1AgentJob. # noqa: E501
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
:return: The username of this V1AgentJob. # noqa: E501
|
|
797
|
+
:rtype: str
|
|
798
|
+
"""
|
|
799
|
+
return self._username
|
|
800
|
+
|
|
801
|
+
@username.setter
|
|
802
|
+
def username(self, username: 'str'):
|
|
803
|
+
"""Sets the username of this V1AgentJob.
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
:param username: The username of this V1AgentJob. # noqa: E501
|
|
807
|
+
:type: str
|
|
808
|
+
"""
|
|
809
|
+
|
|
810
|
+
self._username = username
|
|
811
|
+
|
|
708
812
|
@property
|
|
709
813
|
def work_dir(self) -> 'str':
|
|
710
814
|
"""Gets the work_dir of this V1AgentJob. # noqa: E501
|
|
@@ -44,6 +44,8 @@ class V1AssistantModelStatus(object):
|
|
|
44
44
|
PENDING = "PENDING"
|
|
45
45
|
ENDPOINT_DELETED = "ENDPOINT_DELETED"
|
|
46
46
|
STOPPED = "STOPPED"
|
|
47
|
+
RESOURCE_DELETED = "RESOURCE_DELETED"
|
|
48
|
+
STARTING = "STARTING"
|
|
47
49
|
"""
|
|
48
50
|
Attributes:
|
|
49
51
|
swagger_types (dict): The key is attribute name
|
|
@@ -63,6 +63,7 @@ class V1CloudSpace(object):
|
|
|
63
63
|
'license': 'str',
|
|
64
64
|
'license_url': 'str',
|
|
65
65
|
'lock_out': 'bool',
|
|
66
|
+
'machine_image_version': 'str',
|
|
66
67
|
'message': 'str',
|
|
67
68
|
'multi_user_edit': 'bool',
|
|
68
69
|
'name': 'str',
|
|
@@ -113,6 +114,7 @@ class V1CloudSpace(object):
|
|
|
113
114
|
'license': 'license',
|
|
114
115
|
'license_url': 'licenseUrl',
|
|
115
116
|
'lock_out': 'lockOut',
|
|
117
|
+
'machine_image_version': 'machineImageVersion',
|
|
116
118
|
'message': 'message',
|
|
117
119
|
'multi_user_edit': 'multiUserEdit',
|
|
118
120
|
'name': 'name',
|
|
@@ -140,7 +142,7 @@ class V1CloudSpace(object):
|
|
|
140
142
|
'web_path': 'webPath'
|
|
141
143
|
}
|
|
142
144
|
|
|
143
|
-
def __init__(self, can_download_source_code: 'bool' =None, cluster_id: 'str' =None, code_config: 'V1CloudSpaceInstanceConfig' =None, code_status: 'V1GetCloudSpaceInstanceStatusResponse' =None, code_url: 'str' =None, created_at: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, description: 'str' =None, display_name: 'str' =None, engagement_counts: 'dict(str, str)' =None, env: 'list[V1EnvVar]' =None, featured: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, image_status: 'V1ImageState' =None, is_cloudspace_private: 'bool' =None, is_code_private: 'bool' =None, is_favorite: 'bool' =None, is_published: 'bool' =None, license: 'str' =None, license_url: 'str' =None, lock_out: 'bool' =None, message: 'str' =None, multi_user_edit: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, state: 'V1CloudSpaceState' =None, sync_duration: 'str' =None, sync_percentage: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_file_type: 'str' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None, user_metadata: 'str' =None, web_path: 'str' =None): # noqa: E501
|
|
145
|
+
def __init__(self, can_download_source_code: 'bool' =None, cluster_id: 'str' =None, code_config: 'V1CloudSpaceInstanceConfig' =None, code_status: 'V1GetCloudSpaceInstanceStatusResponse' =None, code_url: 'str' =None, created_at: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, description: 'str' =None, display_name: 'str' =None, engagement_counts: 'dict(str, str)' =None, env: 'list[V1EnvVar]' =None, featured: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, image_status: 'V1ImageState' =None, is_cloudspace_private: 'bool' =None, is_code_private: 'bool' =None, is_favorite: 'bool' =None, is_published: 'bool' =None, license: 'str' =None, license_url: 'str' =None, lock_out: 'bool' =None, machine_image_version: 'str' =None, message: 'str' =None, multi_user_edit: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, state: 'V1CloudSpaceState' =None, sync_duration: 'str' =None, sync_percentage: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_file_type: 'str' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None, user_metadata: 'str' =None, web_path: 'str' =None): # noqa: E501
|
|
144
146
|
"""V1CloudSpace - a model defined in Swagger""" # noqa: E501
|
|
145
147
|
self._can_download_source_code = None
|
|
146
148
|
self._cluster_id = None
|
|
@@ -164,6 +166,7 @@ class V1CloudSpace(object):
|
|
|
164
166
|
self._license = None
|
|
165
167
|
self._license_url = None
|
|
166
168
|
self._lock_out = None
|
|
169
|
+
self._machine_image_version = None
|
|
167
170
|
self._message = None
|
|
168
171
|
self._multi_user_edit = None
|
|
169
172
|
self._name = None
|
|
@@ -234,6 +237,8 @@ class V1CloudSpace(object):
|
|
|
234
237
|
self.license_url = license_url
|
|
235
238
|
if lock_out is not None:
|
|
236
239
|
self.lock_out = lock_out
|
|
240
|
+
if machine_image_version is not None:
|
|
241
|
+
self.machine_image_version = machine_image_version
|
|
237
242
|
if message is not None:
|
|
238
243
|
self.message = message
|
|
239
244
|
if multi_user_edit is not None:
|
|
@@ -747,6 +752,27 @@ class V1CloudSpace(object):
|
|
|
747
752
|
|
|
748
753
|
self._lock_out = lock_out
|
|
749
754
|
|
|
755
|
+
@property
|
|
756
|
+
def machine_image_version(self) -> 'str':
|
|
757
|
+
"""Gets the machine_image_version of this V1CloudSpace. # noqa: E501
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
:return: The machine_image_version of this V1CloudSpace. # noqa: E501
|
|
761
|
+
:rtype: str
|
|
762
|
+
"""
|
|
763
|
+
return self._machine_image_version
|
|
764
|
+
|
|
765
|
+
@machine_image_version.setter
|
|
766
|
+
def machine_image_version(self, machine_image_version: 'str'):
|
|
767
|
+
"""Sets the machine_image_version of this V1CloudSpace.
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
:param machine_image_version: The machine_image_version of this V1CloudSpace. # noqa: E501
|
|
771
|
+
:type: str
|
|
772
|
+
"""
|
|
773
|
+
|
|
774
|
+
self._machine_image_version = machine_image_version
|
|
775
|
+
|
|
750
776
|
@property
|
|
751
777
|
def message(self) -> 'str':
|
|
752
778
|
"""Gets the message of this V1CloudSpace. # noqa: E501
|