lightning-sdk 0.1.35__py3-none-any.whl → 0.1.37__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 +27 -13
- lightning_sdk/api/ai_hub_api.py +49 -19
- lightning_sdk/api/utils.py +1 -0
- lightning_sdk/cli/entrypoint.py +2 -2
- lightning_sdk/cli/models.py +45 -15
- lightning_sdk/cli/run.py +72 -0
- lightning_sdk/job/base.py +48 -20
- lightning_sdk/job/job.py +21 -11
- lightning_sdk/job/v1.py +9 -9
- lightning_sdk/job/v2.py +6 -6
- lightning_sdk/lightning_cloud/cli/__main__.py +15 -13
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cloud_space_id_versionpublications_body1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_checkbox.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_release.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_metric_value.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_select.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +105 -1
- lightning_sdk/lightning_cloud/rest_client.py +1 -4
- lightning_sdk/lightning_cloud/source_code/tar.py +1 -3
- {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.37.dist-info}/METADATA +1 -2
- {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.37.dist-info}/RECORD +43 -42
- {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.37.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.37.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.37.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.37.dist-info}/top_level.txt +0 -0
|
@@ -1753,6 +1753,7 @@ class CloudSpaceServiceApi(object):
|
|
|
1753
1753
|
:param str project_id: (required)
|
|
1754
1754
|
:param str cloud_space_id: (required)
|
|
1755
1755
|
:param str org_id:
|
|
1756
|
+
:param str cloud_space_version_id:
|
|
1756
1757
|
:return: V1DeleteCloudSpaceVersionPublicationResponse
|
|
1757
1758
|
If the method is called asynchronously,
|
|
1758
1759
|
returns the request thread.
|
|
@@ -1776,12 +1777,13 @@ class CloudSpaceServiceApi(object):
|
|
|
1776
1777
|
:param str project_id: (required)
|
|
1777
1778
|
:param str cloud_space_id: (required)
|
|
1778
1779
|
:param str org_id:
|
|
1780
|
+
:param str cloud_space_version_id:
|
|
1779
1781
|
:return: V1DeleteCloudSpaceVersionPublicationResponse
|
|
1780
1782
|
If the method is called asynchronously,
|
|
1781
1783
|
returns the request thread.
|
|
1782
1784
|
"""
|
|
1783
1785
|
|
|
1784
|
-
all_params = ['project_id', 'cloud_space_id', 'org_id'] # noqa: E501
|
|
1786
|
+
all_params = ['project_id', 'cloud_space_id', 'org_id', 'cloud_space_version_id'] # noqa: E501
|
|
1785
1787
|
all_params.append('async_req')
|
|
1786
1788
|
all_params.append('_return_http_data_only')
|
|
1787
1789
|
all_params.append('_preload_content')
|
|
@@ -1816,6 +1818,8 @@ class CloudSpaceServiceApi(object):
|
|
|
1816
1818
|
query_params = []
|
|
1817
1819
|
if 'org_id' in params:
|
|
1818
1820
|
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1821
|
+
if 'cloud_space_version_id' in params:
|
|
1822
|
+
query_params.append(('cloudSpaceVersionId', params['cloud_space_version_id'])) # noqa: E501
|
|
1819
1823
|
|
|
1820
1824
|
header_params = {}
|
|
1821
1825
|
|
|
@@ -52,6 +52,7 @@ class AgentsIdBody(object):
|
|
|
52
52
|
'knowledge': 'str',
|
|
53
53
|
'knowledge_configuration': 'V1KnowledgeConfiguration',
|
|
54
54
|
'model': 'str',
|
|
55
|
+
'model_provider': 'str',
|
|
55
56
|
'name': 'str',
|
|
56
57
|
'org_id': 'str',
|
|
57
58
|
'prompt_suggestions': 'list[V1PromptSuggestion]',
|
|
@@ -75,6 +76,7 @@ class AgentsIdBody(object):
|
|
|
75
76
|
'knowledge': 'knowledge',
|
|
76
77
|
'knowledge_configuration': 'knowledgeConfiguration',
|
|
77
78
|
'model': 'model',
|
|
79
|
+
'model_provider': 'modelProvider',
|
|
78
80
|
'name': 'name',
|
|
79
81
|
'org_id': 'orgId',
|
|
80
82
|
'prompt_suggestions': 'promptSuggestions',
|
|
@@ -86,7 +88,7 @@ class AgentsIdBody(object):
|
|
|
86
88
|
'user_id': 'userId'
|
|
87
89
|
}
|
|
88
90
|
|
|
89
|
-
def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, description: 'str' =None, endpoint_id: 'str' =None, expected_cold_start_time: 'str' =None, file_uploads_enabled: 'bool' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, model: 'str' =None, name: 'str' =None, org_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
|
|
91
|
+
def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, description: 'str' =None, endpoint_id: 'str' =None, expected_cold_start_time: 'str' =None, file_uploads_enabled: 'bool' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, model: 'str' =None, model_provider: 'str' =None, name: 'str' =None, org_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
|
|
90
92
|
"""AgentsIdBody - a model defined in Swagger""" # noqa: E501
|
|
91
93
|
self._cloudspace_id = None
|
|
92
94
|
self._cluster_id = None
|
|
@@ -99,6 +101,7 @@ class AgentsIdBody(object):
|
|
|
99
101
|
self._knowledge = None
|
|
100
102
|
self._knowledge_configuration = None
|
|
101
103
|
self._model = None
|
|
104
|
+
self._model_provider = None
|
|
102
105
|
self._name = None
|
|
103
106
|
self._org_id = None
|
|
104
107
|
self._prompt_suggestions = None
|
|
@@ -131,6 +134,8 @@ class AgentsIdBody(object):
|
|
|
131
134
|
self.knowledge_configuration = knowledge_configuration
|
|
132
135
|
if model is not None:
|
|
133
136
|
self.model = model
|
|
137
|
+
if model_provider is not None:
|
|
138
|
+
self.model_provider = model_provider
|
|
134
139
|
if name is not None:
|
|
135
140
|
self.name = name
|
|
136
141
|
if org_id is not None:
|
|
@@ -381,6 +386,27 @@ class AgentsIdBody(object):
|
|
|
381
386
|
|
|
382
387
|
self._model = model
|
|
383
388
|
|
|
389
|
+
@property
|
|
390
|
+
def model_provider(self) -> 'str':
|
|
391
|
+
"""Gets the model_provider of this AgentsIdBody. # noqa: E501
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
:return: The model_provider of this AgentsIdBody. # noqa: E501
|
|
395
|
+
:rtype: str
|
|
396
|
+
"""
|
|
397
|
+
return self._model_provider
|
|
398
|
+
|
|
399
|
+
@model_provider.setter
|
|
400
|
+
def model_provider(self, model_provider: 'str'):
|
|
401
|
+
"""Sets the model_provider of this AgentsIdBody.
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
:param model_provider: The model_provider of this AgentsIdBody. # noqa: E501
|
|
405
|
+
:type: str
|
|
406
|
+
"""
|
|
407
|
+
|
|
408
|
+
self._model_provider = model_provider
|
|
409
|
+
|
|
384
410
|
@property
|
|
385
411
|
def name(self) -> 'str':
|
|
386
412
|
"""Gets the name of this AgentsIdBody. # noqa: E501
|
|
@@ -42,21 +42,26 @@ class CloudSpaceIdVersionpublicationsBody1(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'cloud_space_version_id': 'str',
|
|
45
|
+
'featured': 'bool',
|
|
45
46
|
'org_id': 'str'
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
attribute_map = {
|
|
49
50
|
'cloud_space_version_id': 'cloudSpaceVersionId',
|
|
51
|
+
'featured': 'featured',
|
|
50
52
|
'org_id': 'orgId'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
def __init__(self, cloud_space_version_id: 'str' =None, org_id: 'str' =None): # noqa: E501
|
|
55
|
+
def __init__(self, cloud_space_version_id: 'str' =None, featured: 'bool' =None, org_id: 'str' =None): # noqa: E501
|
|
54
56
|
"""CloudSpaceIdVersionpublicationsBody1 - a model defined in Swagger""" # noqa: E501
|
|
55
57
|
self._cloud_space_version_id = None
|
|
58
|
+
self._featured = None
|
|
56
59
|
self._org_id = None
|
|
57
60
|
self.discriminator = None
|
|
58
61
|
if cloud_space_version_id is not None:
|
|
59
62
|
self.cloud_space_version_id = cloud_space_version_id
|
|
63
|
+
if featured is not None:
|
|
64
|
+
self.featured = featured
|
|
60
65
|
if org_id is not None:
|
|
61
66
|
self.org_id = org_id
|
|
62
67
|
|
|
@@ -81,6 +86,27 @@ class CloudSpaceIdVersionpublicationsBody1(object):
|
|
|
81
86
|
|
|
82
87
|
self._cloud_space_version_id = cloud_space_version_id
|
|
83
88
|
|
|
89
|
+
@property
|
|
90
|
+
def featured(self) -> 'bool':
|
|
91
|
+
"""Gets the featured of this CloudSpaceIdVersionpublicationsBody1. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The featured of this CloudSpaceIdVersionpublicationsBody1. # noqa: E501
|
|
95
|
+
:rtype: bool
|
|
96
|
+
"""
|
|
97
|
+
return self._featured
|
|
98
|
+
|
|
99
|
+
@featured.setter
|
|
100
|
+
def featured(self, featured: 'bool'):
|
|
101
|
+
"""Sets the featured of this CloudSpaceIdVersionpublicationsBody1.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param featured: The featured of this CloudSpaceIdVersionpublicationsBody1. # noqa: E501
|
|
105
|
+
:type: bool
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._featured = featured
|
|
109
|
+
|
|
84
110
|
@property
|
|
85
111
|
def org_id(self) -> 'str':
|
|
86
112
|
"""Gets the org_id of this CloudSpaceIdVersionpublicationsBody1. # noqa: E501
|
|
@@ -47,6 +47,7 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
|
|
|
47
47
|
'endpoint': 'V1Endpoint',
|
|
48
48
|
'name': 'str',
|
|
49
49
|
'parameter_spec': 'V1ParameterizationSpec',
|
|
50
|
+
'parent_template_id': 'str',
|
|
50
51
|
'replicas': 'int',
|
|
51
52
|
'spec': 'V1JobSpec',
|
|
52
53
|
'strategy': 'V1DeploymentStrategy'
|
|
@@ -59,12 +60,13 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
|
|
|
59
60
|
'endpoint': 'endpoint',
|
|
60
61
|
'name': 'name',
|
|
61
62
|
'parameter_spec': 'parameterSpec',
|
|
63
|
+
'parent_template_id': 'parentTemplateId',
|
|
62
64
|
'replicas': 'replicas',
|
|
63
65
|
'spec': 'spec',
|
|
64
66
|
'strategy': 'strategy'
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, endpoint: 'V1Endpoint' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, strategy: 'V1DeploymentStrategy' =None): # noqa: E501
|
|
69
|
+
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, endpoint: 'V1Endpoint' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, parent_template_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, strategy: 'V1DeploymentStrategy' =None): # noqa: E501
|
|
68
70
|
"""CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs - a model defined in Swagger""" # noqa: E501
|
|
69
71
|
self._autoscaling = None
|
|
70
72
|
self._cloudspace_id = None
|
|
@@ -72,6 +74,7 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
|
|
|
72
74
|
self._endpoint = None
|
|
73
75
|
self._name = None
|
|
74
76
|
self._parameter_spec = None
|
|
77
|
+
self._parent_template_id = None
|
|
75
78
|
self._replicas = None
|
|
76
79
|
self._spec = None
|
|
77
80
|
self._strategy = None
|
|
@@ -88,6 +91,8 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
|
|
|
88
91
|
self.name = name
|
|
89
92
|
if parameter_spec is not None:
|
|
90
93
|
self.parameter_spec = parameter_spec
|
|
94
|
+
if parent_template_id is not None:
|
|
95
|
+
self.parent_template_id = parent_template_id
|
|
91
96
|
if replicas is not None:
|
|
92
97
|
self.replicas = replicas
|
|
93
98
|
if spec is not None:
|
|
@@ -221,6 +226,27 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
|
|
|
221
226
|
|
|
222
227
|
self._parameter_spec = parameter_spec
|
|
223
228
|
|
|
229
|
+
@property
|
|
230
|
+
def parent_template_id(self) -> 'str':
|
|
231
|
+
"""Gets the parent_template_id of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
:return: The parent_template_id of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
|
|
235
|
+
:rtype: str
|
|
236
|
+
"""
|
|
237
|
+
return self._parent_template_id
|
|
238
|
+
|
|
239
|
+
@parent_template_id.setter
|
|
240
|
+
def parent_template_id(self, parent_template_id: 'str'):
|
|
241
|
+
"""Sets the parent_template_id of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs.
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
:param parent_template_id: The parent_template_id of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
|
|
245
|
+
:type: str
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
self._parent_template_id = parent_template_id
|
|
249
|
+
|
|
224
250
|
@property
|
|
225
251
|
def replicas(self) -> 'int':
|
|
226
252
|
"""Gets the replicas of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
|
|
@@ -54,6 +54,7 @@ class DeploymentsIdBody(object):
|
|
|
54
54
|
'spec': 'V1JobSpec',
|
|
55
55
|
'status': 'V1DeploymentStatus',
|
|
56
56
|
'strategy': 'V1DeploymentStrategy',
|
|
57
|
+
'template_id': 'str',
|
|
57
58
|
'updated_at': 'datetime',
|
|
58
59
|
'user_id': 'str'
|
|
59
60
|
}
|
|
@@ -72,11 +73,12 @@ class DeploymentsIdBody(object):
|
|
|
72
73
|
'spec': 'spec',
|
|
73
74
|
'status': 'status',
|
|
74
75
|
'strategy': 'strategy',
|
|
76
|
+
'template_id': 'templateId',
|
|
75
77
|
'updated_at': 'updatedAt',
|
|
76
78
|
'user_id': 'userId'
|
|
77
79
|
}
|
|
78
80
|
|
|
79
|
-
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
81
|
+
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
80
82
|
"""DeploymentsIdBody - a model defined in Swagger""" # noqa: E501
|
|
81
83
|
self._autoscaling = None
|
|
82
84
|
self._cloudspace_id = None
|
|
@@ -91,6 +93,7 @@ class DeploymentsIdBody(object):
|
|
|
91
93
|
self._spec = None
|
|
92
94
|
self._status = None
|
|
93
95
|
self._strategy = None
|
|
96
|
+
self._template_id = None
|
|
94
97
|
self._updated_at = None
|
|
95
98
|
self._user_id = None
|
|
96
99
|
self.discriminator = None
|
|
@@ -120,6 +123,8 @@ class DeploymentsIdBody(object):
|
|
|
120
123
|
self.status = status
|
|
121
124
|
if strategy is not None:
|
|
122
125
|
self.strategy = strategy
|
|
126
|
+
if template_id is not None:
|
|
127
|
+
self.template_id = template_id
|
|
123
128
|
if updated_at is not None:
|
|
124
129
|
self.updated_at = updated_at
|
|
125
130
|
if user_id is not None:
|
|
@@ -398,6 +403,27 @@ class DeploymentsIdBody(object):
|
|
|
398
403
|
|
|
399
404
|
self._strategy = strategy
|
|
400
405
|
|
|
406
|
+
@property
|
|
407
|
+
def template_id(self) -> 'str':
|
|
408
|
+
"""Gets the template_id of this DeploymentsIdBody. # noqa: E501
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
:return: The template_id of this DeploymentsIdBody. # noqa: E501
|
|
412
|
+
:rtype: str
|
|
413
|
+
"""
|
|
414
|
+
return self._template_id
|
|
415
|
+
|
|
416
|
+
@template_id.setter
|
|
417
|
+
def template_id(self, template_id: 'str'):
|
|
418
|
+
"""Sets the template_id of this DeploymentsIdBody.
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
:param template_id: The template_id of this DeploymentsIdBody. # noqa: E501
|
|
422
|
+
:type: str
|
|
423
|
+
"""
|
|
424
|
+
|
|
425
|
+
self._template_id = template_id
|
|
426
|
+
|
|
401
427
|
@property
|
|
402
428
|
def updated_at(self) -> 'datetime':
|
|
403
429
|
"""Gets the updated_at of this DeploymentsIdBody. # noqa: E501
|
|
@@ -54,6 +54,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
54
54
|
'instance_url': 'str',
|
|
55
55
|
'jupyterlab_url': 'str',
|
|
56
56
|
'phase': 'V1CloudSpaceInstanceState',
|
|
57
|
+
'price': 'float',
|
|
57
58
|
'ssh_host': 'str',
|
|
58
59
|
'ssh_port': 'int',
|
|
59
60
|
'ssh_username': 'str',
|
|
@@ -84,6 +85,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
84
85
|
'instance_url': 'instanceUrl',
|
|
85
86
|
'jupyterlab_url': 'jupyterlabUrl',
|
|
86
87
|
'phase': 'phase',
|
|
88
|
+
'price': 'price',
|
|
87
89
|
'ssh_host': 'sshHost',
|
|
88
90
|
'ssh_port': 'sshPort',
|
|
89
91
|
'ssh_username': 'sshUsername',
|
|
@@ -100,7 +102,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
100
102
|
'vscode_url': 'vscodeUrl'
|
|
101
103
|
}
|
|
102
104
|
|
|
103
|
-
def __init__(self, app_url: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, free: 'bool' =None, ide: 'str' =None, instance_id: 'str' =None, instance_region: 'str' =None, instance_url: 'str' =None, jupyterlab_url: 'str' =None, phase: 'V1CloudSpaceInstanceState' =None, ssh_host: 'str' =None, ssh_port: 'int' =None, ssh_username: 'str' =None, start_timestamp: 'datetime' =None, startup_eta_seconds: 'str' =None, startup_percentage: 'str' =None, startup_phase: 'str' =None, startup_status: 'V1CloudSpaceInstanceStartupStatus' =None, status_message: 'str' =None, switched_at: 'datetime' =None, sync_eta_seconds: 'str' =None, sync_in_progress: 'bool' =None, sync_percentage: 'str' =None, vscode_url: 'str' =None): # noqa: E501
|
|
105
|
+
def __init__(self, app_url: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, free: 'bool' =None, ide: 'str' =None, instance_id: 'str' =None, instance_region: 'str' =None, instance_url: 'str' =None, jupyterlab_url: 'str' =None, phase: 'V1CloudSpaceInstanceState' =None, price: 'float' =None, ssh_host: 'str' =None, ssh_port: 'int' =None, ssh_username: 'str' =None, start_timestamp: 'datetime' =None, startup_eta_seconds: 'str' =None, startup_percentage: 'str' =None, startup_phase: 'str' =None, startup_status: 'V1CloudSpaceInstanceStartupStatus' =None, status_message: 'str' =None, switched_at: 'datetime' =None, sync_eta_seconds: 'str' =None, sync_in_progress: 'bool' =None, sync_percentage: 'str' =None, vscode_url: 'str' =None): # noqa: E501
|
|
104
106
|
"""Externalv1CloudSpaceInstanceStatus - a model defined in Swagger""" # noqa: E501
|
|
105
107
|
self._app_url = None
|
|
106
108
|
self._cloud_space_id = None
|
|
@@ -115,6 +117,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
115
117
|
self._instance_url = None
|
|
116
118
|
self._jupyterlab_url = None
|
|
117
119
|
self._phase = None
|
|
120
|
+
self._price = None
|
|
118
121
|
self._ssh_host = None
|
|
119
122
|
self._ssh_port = None
|
|
120
123
|
self._ssh_username = None
|
|
@@ -156,6 +159,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
156
159
|
self.jupyterlab_url = jupyterlab_url
|
|
157
160
|
if phase is not None:
|
|
158
161
|
self.phase = phase
|
|
162
|
+
if price is not None:
|
|
163
|
+
self.price = price
|
|
159
164
|
if ssh_host is not None:
|
|
160
165
|
self.ssh_host = ssh_host
|
|
161
166
|
if ssh_port is not None:
|
|
@@ -458,6 +463,27 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
458
463
|
|
|
459
464
|
self._phase = phase
|
|
460
465
|
|
|
466
|
+
@property
|
|
467
|
+
def price(self) -> 'float':
|
|
468
|
+
"""Gets the price of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
:return: The price of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
472
|
+
:rtype: float
|
|
473
|
+
"""
|
|
474
|
+
return self._price
|
|
475
|
+
|
|
476
|
+
@price.setter
|
|
477
|
+
def price(self, price: 'float'):
|
|
478
|
+
"""Sets the price of this Externalv1CloudSpaceInstanceStatus.
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
:param price: The price of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
482
|
+
:type: float
|
|
483
|
+
"""
|
|
484
|
+
|
|
485
|
+
self._price = price
|
|
486
|
+
|
|
461
487
|
@property
|
|
462
488
|
def ssh_host(self) -> 'str':
|
|
463
489
|
"""Gets the ssh_host of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
@@ -53,6 +53,7 @@ class V1Assistant(object):
|
|
|
53
53
|
'knowledge': 'str',
|
|
54
54
|
'knowledge_configuration': 'V1KnowledgeConfiguration',
|
|
55
55
|
'model': 'str',
|
|
56
|
+
'model_provider': 'str',
|
|
56
57
|
'name': 'str',
|
|
57
58
|
'org_id': 'str',
|
|
58
59
|
'project_id': 'str',
|
|
@@ -78,6 +79,7 @@ class V1Assistant(object):
|
|
|
78
79
|
'knowledge': 'knowledge',
|
|
79
80
|
'knowledge_configuration': 'knowledgeConfiguration',
|
|
80
81
|
'model': 'model',
|
|
82
|
+
'model_provider': 'modelProvider',
|
|
81
83
|
'name': 'name',
|
|
82
84
|
'org_id': 'orgId',
|
|
83
85
|
'project_id': 'projectId',
|
|
@@ -90,7 +92,7 @@ class V1Assistant(object):
|
|
|
90
92
|
'user_id': 'userId'
|
|
91
93
|
}
|
|
92
94
|
|
|
93
|
-
def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =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, model: '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
|
|
95
|
+
def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =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, 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
|
|
94
96
|
"""V1Assistant - a model defined in Swagger""" # noqa: E501
|
|
95
97
|
self._cloudspace_id = None
|
|
96
98
|
self._cluster_id = None
|
|
@@ -104,6 +106,7 @@ class V1Assistant(object):
|
|
|
104
106
|
self._knowledge = None
|
|
105
107
|
self._knowledge_configuration = None
|
|
106
108
|
self._model = None
|
|
109
|
+
self._model_provider = None
|
|
107
110
|
self._name = None
|
|
108
111
|
self._org_id = None
|
|
109
112
|
self._project_id = None
|
|
@@ -139,6 +142,8 @@ class V1Assistant(object):
|
|
|
139
142
|
self.knowledge_configuration = knowledge_configuration
|
|
140
143
|
if model is not None:
|
|
141
144
|
self.model = model
|
|
145
|
+
if model_provider is not None:
|
|
146
|
+
self.model_provider = model_provider
|
|
142
147
|
if name is not None:
|
|
143
148
|
self.name = name
|
|
144
149
|
if org_id is not None:
|
|
@@ -412,6 +417,27 @@ class V1Assistant(object):
|
|
|
412
417
|
|
|
413
418
|
self._model = model
|
|
414
419
|
|
|
420
|
+
@property
|
|
421
|
+
def model_provider(self) -> 'str':
|
|
422
|
+
"""Gets the model_provider of this V1Assistant. # noqa: E501
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
:return: The model_provider of this V1Assistant. # noqa: E501
|
|
426
|
+
:rtype: str
|
|
427
|
+
"""
|
|
428
|
+
return self._model_provider
|
|
429
|
+
|
|
430
|
+
@model_provider.setter
|
|
431
|
+
def model_provider(self, model_provider: 'str'):
|
|
432
|
+
"""Sets the model_provider of this V1Assistant.
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
:param model_provider: The model_provider of this V1Assistant. # noqa: E501
|
|
436
|
+
:type: str
|
|
437
|
+
"""
|
|
438
|
+
|
|
439
|
+
self._model_provider = model_provider
|
|
440
|
+
|
|
415
441
|
@property
|
|
416
442
|
def name(self) -> 'str':
|
|
417
443
|
"""Gets the name of this V1Assistant. # noqa: E501
|
|
@@ -43,20 +43,23 @@ class V1Checkbox(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'false_value': 'str',
|
|
45
45
|
'is_checked': 'bool',
|
|
46
|
-
'true_value': 'str'
|
|
46
|
+
'true_value': 'str',
|
|
47
|
+
'value': 'bool'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
50
51
|
'false_value': 'falseValue',
|
|
51
52
|
'is_checked': 'isChecked',
|
|
52
|
-
'true_value': 'trueValue'
|
|
53
|
+
'true_value': 'trueValue',
|
|
54
|
+
'value': 'value'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, false_value: 'str' =None, is_checked: 'bool' =None, true_value: 'str' =None): # noqa: E501
|
|
57
|
+
def __init__(self, false_value: 'str' =None, is_checked: 'bool' =None, true_value: 'str' =None, value: 'bool' =None): # noqa: E501
|
|
56
58
|
"""V1Checkbox - a model defined in Swagger""" # noqa: E501
|
|
57
59
|
self._false_value = None
|
|
58
60
|
self._is_checked = None
|
|
59
61
|
self._true_value = None
|
|
62
|
+
self._value = None
|
|
60
63
|
self.discriminator = None
|
|
61
64
|
if false_value is not None:
|
|
62
65
|
self.false_value = false_value
|
|
@@ -64,6 +67,8 @@ class V1Checkbox(object):
|
|
|
64
67
|
self.is_checked = is_checked
|
|
65
68
|
if true_value is not None:
|
|
66
69
|
self.true_value = true_value
|
|
70
|
+
if value is not None:
|
|
71
|
+
self.value = value
|
|
67
72
|
|
|
68
73
|
@property
|
|
69
74
|
def false_value(self) -> 'str':
|
|
@@ -128,6 +133,27 @@ class V1Checkbox(object):
|
|
|
128
133
|
|
|
129
134
|
self._true_value = true_value
|
|
130
135
|
|
|
136
|
+
@property
|
|
137
|
+
def value(self) -> 'bool':
|
|
138
|
+
"""Gets the value of this V1Checkbox. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The value of this V1Checkbox. # noqa: E501
|
|
142
|
+
:rtype: bool
|
|
143
|
+
"""
|
|
144
|
+
return self._value
|
|
145
|
+
|
|
146
|
+
@value.setter
|
|
147
|
+
def value(self, value: 'bool'):
|
|
148
|
+
"""Sets the value of this V1Checkbox.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param value: The value of this V1Checkbox. # noqa: E501
|
|
152
|
+
:type: bool
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._value = value
|
|
156
|
+
|
|
131
157
|
def to_dict(self) -> dict:
|
|
132
158
|
"""Returns the model properties as a dict"""
|
|
133
159
|
result = {}
|
|
@@ -56,6 +56,7 @@ class V1Deployment(object):
|
|
|
56
56
|
'spec': 'V1JobSpec',
|
|
57
57
|
'status': 'V1DeploymentStatus',
|
|
58
58
|
'strategy': 'V1DeploymentStrategy',
|
|
59
|
+
'template_id': 'str',
|
|
59
60
|
'updated_at': 'datetime',
|
|
60
61
|
'user_id': 'str'
|
|
61
62
|
}
|
|
@@ -76,11 +77,12 @@ class V1Deployment(object):
|
|
|
76
77
|
'spec': 'spec',
|
|
77
78
|
'status': 'status',
|
|
78
79
|
'strategy': 'strategy',
|
|
80
|
+
'template_id': 'templateId',
|
|
79
81
|
'updated_at': 'updatedAt',
|
|
80
82
|
'user_id': 'userId'
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
85
|
+
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
84
86
|
"""V1Deployment - a model defined in Swagger""" # noqa: E501
|
|
85
87
|
self._autoscaling = None
|
|
86
88
|
self._cloudspace_id = None
|
|
@@ -97,6 +99,7 @@ class V1Deployment(object):
|
|
|
97
99
|
self._spec = None
|
|
98
100
|
self._status = None
|
|
99
101
|
self._strategy = None
|
|
102
|
+
self._template_id = None
|
|
100
103
|
self._updated_at = None
|
|
101
104
|
self._user_id = None
|
|
102
105
|
self.discriminator = None
|
|
@@ -130,6 +133,8 @@ class V1Deployment(object):
|
|
|
130
133
|
self.status = status
|
|
131
134
|
if strategy is not None:
|
|
132
135
|
self.strategy = strategy
|
|
136
|
+
if template_id is not None:
|
|
137
|
+
self.template_id = template_id
|
|
133
138
|
if updated_at is not None:
|
|
134
139
|
self.updated_at = updated_at
|
|
135
140
|
if user_id is not None:
|
|
@@ -450,6 +455,27 @@ class V1Deployment(object):
|
|
|
450
455
|
|
|
451
456
|
self._strategy = strategy
|
|
452
457
|
|
|
458
|
+
@property
|
|
459
|
+
def template_id(self) -> 'str':
|
|
460
|
+
"""Gets the template_id of this V1Deployment. # noqa: E501
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
:return: The template_id of this V1Deployment. # noqa: E501
|
|
464
|
+
:rtype: str
|
|
465
|
+
"""
|
|
466
|
+
return self._template_id
|
|
467
|
+
|
|
468
|
+
@template_id.setter
|
|
469
|
+
def template_id(self, template_id: 'str'):
|
|
470
|
+
"""Sets the template_id of this V1Deployment.
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
:param template_id: The template_id of this V1Deployment. # noqa: E501
|
|
474
|
+
:type: str
|
|
475
|
+
"""
|
|
476
|
+
|
|
477
|
+
self._template_id = template_id
|
|
478
|
+
|
|
453
479
|
@property
|
|
454
480
|
def updated_at(self) -> 'datetime':
|
|
455
481
|
"""Gets the updated_at of this V1Deployment. # noqa: E501
|
|
@@ -43,6 +43,7 @@ class V1DeploymentRelease(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'archived': 'bool',
|
|
45
45
|
'created_at': 'datetime',
|
|
46
|
+
'first_job_state': 'str',
|
|
46
47
|
'id': 'str',
|
|
47
48
|
'project_id': 'str',
|
|
48
49
|
'replicas': 'int',
|
|
@@ -54,6 +55,7 @@ class V1DeploymentRelease(object):
|
|
|
54
55
|
attribute_map = {
|
|
55
56
|
'archived': 'archived',
|
|
56
57
|
'created_at': 'createdAt',
|
|
58
|
+
'first_job_state': 'firstJobState',
|
|
57
59
|
'id': 'id',
|
|
58
60
|
'project_id': 'projectId',
|
|
59
61
|
'replicas': 'replicas',
|
|
@@ -62,10 +64,11 @@ class V1DeploymentRelease(object):
|
|
|
62
64
|
'version': 'version'
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
def __init__(self, archived: 'bool' =None, created_at: 'datetime' =None, id: 'str' =None, project_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, user_id: 'str' =None, version: 'int' =None): # noqa: E501
|
|
67
|
+
def __init__(self, archived: 'bool' =None, created_at: 'datetime' =None, first_job_state: 'str' =None, id: 'str' =None, project_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, user_id: 'str' =None, version: 'int' =None): # noqa: E501
|
|
66
68
|
"""V1DeploymentRelease - a model defined in Swagger""" # noqa: E501
|
|
67
69
|
self._archived = None
|
|
68
70
|
self._created_at = None
|
|
71
|
+
self._first_job_state = None
|
|
69
72
|
self._id = None
|
|
70
73
|
self._project_id = None
|
|
71
74
|
self._replicas = None
|
|
@@ -77,6 +80,8 @@ class V1DeploymentRelease(object):
|
|
|
77
80
|
self.archived = archived
|
|
78
81
|
if created_at is not None:
|
|
79
82
|
self.created_at = created_at
|
|
83
|
+
if first_job_state is not None:
|
|
84
|
+
self.first_job_state = first_job_state
|
|
80
85
|
if id is not None:
|
|
81
86
|
self.id = id
|
|
82
87
|
if project_id is not None:
|
|
@@ -132,6 +137,27 @@ class V1DeploymentRelease(object):
|
|
|
132
137
|
|
|
133
138
|
self._created_at = created_at
|
|
134
139
|
|
|
140
|
+
@property
|
|
141
|
+
def first_job_state(self) -> 'str':
|
|
142
|
+
"""Gets the first_job_state of this V1DeploymentRelease. # noqa: E501
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:return: The first_job_state of this V1DeploymentRelease. # noqa: E501
|
|
146
|
+
:rtype: str
|
|
147
|
+
"""
|
|
148
|
+
return self._first_job_state
|
|
149
|
+
|
|
150
|
+
@first_job_state.setter
|
|
151
|
+
def first_job_state(self, first_job_state: 'str'):
|
|
152
|
+
"""Sets the first_job_state of this V1DeploymentRelease.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:param first_job_state: The first_job_state of this V1DeploymentRelease. # noqa: E501
|
|
156
|
+
:type: str
|
|
157
|
+
"""
|
|
158
|
+
|
|
159
|
+
self._first_job_state = first_job_state
|
|
160
|
+
|
|
135
161
|
@property
|
|
136
162
|
def id(self) -> 'str':
|
|
137
163
|
"""Gets the id of this V1DeploymentRelease. # noqa: E501
|
|
@@ -40,6 +40,7 @@ class V1DeploymentState(object):
|
|
|
40
40
|
UNSPECIFIED = "DEPLOYMENT_STATE_UNSPECIFIED"
|
|
41
41
|
RUNNING = "DEPLOYMENT_STATE_RUNNING"
|
|
42
42
|
DELETED = "DEPLOYMENT_STATE_DELETED"
|
|
43
|
+
FAILED = "DEPLOYMENT_STATE_FAILED"
|
|
43
44
|
"""
|
|
44
45
|
Attributes:
|
|
45
46
|
swagger_types (dict): The key is attribute name
|