lightning-sdk 0.2.22__py3-none-any.whl → 0.2.24rc0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/base_studio_api.py +9 -2
- lightning_sdk/api/deployment_api.py +9 -9
- lightning_sdk/api/license_api.py +2 -2
- lightning_sdk/api/llm_api.py +7 -11
- lightning_sdk/api/pipeline_api.py +31 -10
- lightning_sdk/api/studio_api.py +6 -0
- lightning_sdk/base_studio.py +22 -6
- lightning_sdk/cli/entrypoint.py +15 -13
- lightning_sdk/cli/start.py +5 -2
- lightning_sdk/deployment/deployment.py +17 -7
- lightning_sdk/lightning_cloud/openapi/__init__.py +20 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +114 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +206 -0
- lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +129 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +97 -0
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +118 -1
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +123 -0
- 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/credits_autoreplenish_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_session.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_expert.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +47 -21
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +853 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +29 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1_status.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloudy_experts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_project_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_lite_published_cloud_space_response.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_login_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_token_usage.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_organization_credits_auto_replenish_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_credits_auto_replenish_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +234 -104
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +78 -104
- lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +104 -0
- lightning_sdk/llm/llm.py +113 -115
- lightning_sdk/llm/public_assistants.json +8 -0
- lightning_sdk/pipeline/__init__.py +11 -2
- lightning_sdk/pipeline/pipeline.py +54 -14
- lightning_sdk/pipeline/printer.py +36 -16
- lightning_sdk/pipeline/schedule.py +2 -1
- lightning_sdk/pipeline/{types.py → steps.py} +77 -56
- lightning_sdk/pipeline/utils.py +65 -3
- lightning_sdk/sandbox.py +157 -0
- lightning_sdk/services/license.py +12 -6
- lightning_sdk/studio.py +10 -1
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/RECORD +101 -79
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/top_level.txt +0 -0
|
@@ -42,6 +42,7 @@ class ProjectIdAgentsBody(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'cloudspace_id': 'str',
|
|
45
|
+
'cloudy_compatible': 'bool',
|
|
45
46
|
'cluster_id': 'str',
|
|
46
47
|
'description': 'str',
|
|
47
48
|
'endpoint': 'V1Endpoint',
|
|
@@ -61,6 +62,7 @@ class ProjectIdAgentsBody(object):
|
|
|
61
62
|
|
|
62
63
|
attribute_map = {
|
|
63
64
|
'cloudspace_id': 'cloudspaceId',
|
|
65
|
+
'cloudy_compatible': 'cloudyCompatible',
|
|
64
66
|
'cluster_id': 'clusterId',
|
|
65
67
|
'description': 'description',
|
|
66
68
|
'endpoint': 'endpoint',
|
|
@@ -78,9 +80,10 @@ class ProjectIdAgentsBody(object):
|
|
|
78
80
|
'thumbnail_url': 'thumbnailUrl'
|
|
79
81
|
}
|
|
80
82
|
|
|
81
|
-
def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, description: 'str' =None, endpoint: 'V1Endpoint' =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, thumbnail_url: 'str' =None): # noqa: E501
|
|
83
|
+
def __init__(self, cloudspace_id: 'str' =None, cloudy_compatible: 'bool' =None, cluster_id: 'str' =None, description: 'str' =None, endpoint: 'V1Endpoint' =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, thumbnail_url: 'str' =None): # noqa: E501
|
|
82
84
|
"""ProjectIdAgentsBody - a model defined in Swagger""" # noqa: E501
|
|
83
85
|
self._cloudspace_id = None
|
|
86
|
+
self._cloudy_compatible = None
|
|
84
87
|
self._cluster_id = None
|
|
85
88
|
self._description = None
|
|
86
89
|
self._endpoint = None
|
|
@@ -99,6 +102,8 @@ class ProjectIdAgentsBody(object):
|
|
|
99
102
|
self.discriminator = None
|
|
100
103
|
if cloudspace_id is not None:
|
|
101
104
|
self.cloudspace_id = cloudspace_id
|
|
105
|
+
if cloudy_compatible is not None:
|
|
106
|
+
self.cloudy_compatible = cloudy_compatible
|
|
102
107
|
if cluster_id is not None:
|
|
103
108
|
self.cluster_id = cluster_id
|
|
104
109
|
if description is not None:
|
|
@@ -151,6 +156,27 @@ class ProjectIdAgentsBody(object):
|
|
|
151
156
|
|
|
152
157
|
self._cloudspace_id = cloudspace_id
|
|
153
158
|
|
|
159
|
+
@property
|
|
160
|
+
def cloudy_compatible(self) -> 'bool':
|
|
161
|
+
"""Gets the cloudy_compatible of this ProjectIdAgentsBody. # noqa: E501
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
:return: The cloudy_compatible of this ProjectIdAgentsBody. # noqa: E501
|
|
165
|
+
:rtype: bool
|
|
166
|
+
"""
|
|
167
|
+
return self._cloudy_compatible
|
|
168
|
+
|
|
169
|
+
@cloudy_compatible.setter
|
|
170
|
+
def cloudy_compatible(self, cloudy_compatible: 'bool'):
|
|
171
|
+
"""Sets the cloudy_compatible of this ProjectIdAgentsBody.
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
:param cloudy_compatible: The cloudy_compatible of this ProjectIdAgentsBody. # noqa: E501
|
|
175
|
+
:type: bool
|
|
176
|
+
"""
|
|
177
|
+
|
|
178
|
+
self._cloudy_compatible = cloudy_compatible
|
|
179
|
+
|
|
154
180
|
@property
|
|
155
181
|
def cluster_id(self) -> 'str':
|
|
156
182
|
"""Gets the cluster_id of this ProjectIdAgentsBody. # noqa: E501
|
|
@@ -48,12 +48,14 @@ class ProjectIdCloudspacesBody(object):
|
|
|
48
48
|
'cluster_id': 'str',
|
|
49
49
|
'compute_name': 'str',
|
|
50
50
|
'data_connection_mounts': 'list[V1DataConnectionMount]',
|
|
51
|
+
'disable_secrets': 'bool',
|
|
51
52
|
'disk_size': 'str',
|
|
52
53
|
'display_name': 'str',
|
|
53
54
|
'name': 'str',
|
|
54
55
|
'plugins': 'list[str]',
|
|
55
56
|
'requested_run_duration_seconds': 'str',
|
|
56
57
|
'same_compute_on_resume': 'bool',
|
|
58
|
+
'sandbox': 'bool',
|
|
57
59
|
'seed_files': 'list[V1CloudSpaceSeedFile]',
|
|
58
60
|
'source': 'V1CloudSpaceSourceType',
|
|
59
61
|
'spot': 'bool'
|
|
@@ -67,18 +69,20 @@ class ProjectIdCloudspacesBody(object):
|
|
|
67
69
|
'cluster_id': 'clusterId',
|
|
68
70
|
'compute_name': 'computeName',
|
|
69
71
|
'data_connection_mounts': 'dataConnectionMounts',
|
|
72
|
+
'disable_secrets': 'disableSecrets',
|
|
70
73
|
'disk_size': 'diskSize',
|
|
71
74
|
'display_name': 'displayName',
|
|
72
75
|
'name': 'name',
|
|
73
76
|
'plugins': 'plugins',
|
|
74
77
|
'requested_run_duration_seconds': 'requestedRunDurationSeconds',
|
|
75
78
|
'same_compute_on_resume': 'sameComputeOnResume',
|
|
79
|
+
'sandbox': 'sandbox',
|
|
76
80
|
'seed_files': 'seedFiles',
|
|
77
81
|
'source': 'source',
|
|
78
82
|
'spot': 'spot'
|
|
79
83
|
}
|
|
80
84
|
|
|
81
|
-
def __init__(self, can_download_source_code: 'bool' =None, cloud_space_environment_template_id: 'str' =None, cloud_space_instance_cpu_image_override: 'str' =None, cloud_space_instance_gpu_image_override: 'str' =None, cluster_id: 'str' =None, compute_name: 'str' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, disk_size: 'str' =None, display_name: 'str' =None, name: 'str' =None, plugins: 'list[str]' =None, requested_run_duration_seconds: 'str' =None, same_compute_on_resume: 'bool' =None, seed_files: 'list[V1CloudSpaceSeedFile]' =None, source: 'V1CloudSpaceSourceType' =None, spot: 'bool' =None): # noqa: E501
|
|
85
|
+
def __init__(self, can_download_source_code: 'bool' =None, cloud_space_environment_template_id: 'str' =None, cloud_space_instance_cpu_image_override: 'str' =None, cloud_space_instance_gpu_image_override: 'str' =None, cluster_id: 'str' =None, compute_name: 'str' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, disable_secrets: 'bool' =None, disk_size: 'str' =None, display_name: 'str' =None, name: 'str' =None, plugins: 'list[str]' =None, requested_run_duration_seconds: 'str' =None, same_compute_on_resume: 'bool' =None, sandbox: 'bool' =None, seed_files: 'list[V1CloudSpaceSeedFile]' =None, source: 'V1CloudSpaceSourceType' =None, spot: 'bool' =None): # noqa: E501
|
|
82
86
|
"""ProjectIdCloudspacesBody - a model defined in Swagger""" # noqa: E501
|
|
83
87
|
self._can_download_source_code = None
|
|
84
88
|
self._cloud_space_environment_template_id = None
|
|
@@ -87,12 +91,14 @@ class ProjectIdCloudspacesBody(object):
|
|
|
87
91
|
self._cluster_id = None
|
|
88
92
|
self._compute_name = None
|
|
89
93
|
self._data_connection_mounts = None
|
|
94
|
+
self._disable_secrets = None
|
|
90
95
|
self._disk_size = None
|
|
91
96
|
self._display_name = None
|
|
92
97
|
self._name = None
|
|
93
98
|
self._plugins = None
|
|
94
99
|
self._requested_run_duration_seconds = None
|
|
95
100
|
self._same_compute_on_resume = None
|
|
101
|
+
self._sandbox = None
|
|
96
102
|
self._seed_files = None
|
|
97
103
|
self._source = None
|
|
98
104
|
self._spot = None
|
|
@@ -111,6 +117,8 @@ class ProjectIdCloudspacesBody(object):
|
|
|
111
117
|
self.compute_name = compute_name
|
|
112
118
|
if data_connection_mounts is not None:
|
|
113
119
|
self.data_connection_mounts = data_connection_mounts
|
|
120
|
+
if disable_secrets is not None:
|
|
121
|
+
self.disable_secrets = disable_secrets
|
|
114
122
|
if disk_size is not None:
|
|
115
123
|
self.disk_size = disk_size
|
|
116
124
|
if display_name is not None:
|
|
@@ -123,6 +131,8 @@ class ProjectIdCloudspacesBody(object):
|
|
|
123
131
|
self.requested_run_duration_seconds = requested_run_duration_seconds
|
|
124
132
|
if same_compute_on_resume is not None:
|
|
125
133
|
self.same_compute_on_resume = same_compute_on_resume
|
|
134
|
+
if sandbox is not None:
|
|
135
|
+
self.sandbox = sandbox
|
|
126
136
|
if seed_files is not None:
|
|
127
137
|
self.seed_files = seed_files
|
|
128
138
|
if source is not None:
|
|
@@ -277,6 +287,27 @@ class ProjectIdCloudspacesBody(object):
|
|
|
277
287
|
|
|
278
288
|
self._data_connection_mounts = data_connection_mounts
|
|
279
289
|
|
|
290
|
+
@property
|
|
291
|
+
def disable_secrets(self) -> 'bool':
|
|
292
|
+
"""Gets the disable_secrets of this ProjectIdCloudspacesBody. # noqa: E501
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
:return: The disable_secrets of this ProjectIdCloudspacesBody. # noqa: E501
|
|
296
|
+
:rtype: bool
|
|
297
|
+
"""
|
|
298
|
+
return self._disable_secrets
|
|
299
|
+
|
|
300
|
+
@disable_secrets.setter
|
|
301
|
+
def disable_secrets(self, disable_secrets: 'bool'):
|
|
302
|
+
"""Sets the disable_secrets of this ProjectIdCloudspacesBody.
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
:param disable_secrets: The disable_secrets of this ProjectIdCloudspacesBody. # noqa: E501
|
|
306
|
+
:type: bool
|
|
307
|
+
"""
|
|
308
|
+
|
|
309
|
+
self._disable_secrets = disable_secrets
|
|
310
|
+
|
|
280
311
|
@property
|
|
281
312
|
def disk_size(self) -> 'str':
|
|
282
313
|
"""Gets the disk_size of this ProjectIdCloudspacesBody. # noqa: E501
|
|
@@ -403,6 +434,27 @@ class ProjectIdCloudspacesBody(object):
|
|
|
403
434
|
|
|
404
435
|
self._same_compute_on_resume = same_compute_on_resume
|
|
405
436
|
|
|
437
|
+
@property
|
|
438
|
+
def sandbox(self) -> 'bool':
|
|
439
|
+
"""Gets the sandbox of this ProjectIdCloudspacesBody. # noqa: E501
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
:return: The sandbox of this ProjectIdCloudspacesBody. # noqa: E501
|
|
443
|
+
:rtype: bool
|
|
444
|
+
"""
|
|
445
|
+
return self._sandbox
|
|
446
|
+
|
|
447
|
+
@sandbox.setter
|
|
448
|
+
def sandbox(self, sandbox: 'bool'):
|
|
449
|
+
"""Sets the sandbox of this ProjectIdCloudspacesBody.
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
:param sandbox: The sandbox of this ProjectIdCloudspacesBody. # noqa: E501
|
|
453
|
+
:type: bool
|
|
454
|
+
"""
|
|
455
|
+
|
|
456
|
+
self._sandbox = sandbox
|
|
457
|
+
|
|
406
458
|
@property
|
|
407
459
|
def seed_files(self) -> 'list[V1CloudSpaceSeedFile]':
|
|
408
460
|
"""Gets the seed_files of this ProjectIdCloudspacesBody. # noqa: E501
|
|
@@ -52,7 +52,8 @@ class Update(object):
|
|
|
52
52
|
'name': 'str',
|
|
53
53
|
'org_id': 'str',
|
|
54
54
|
'plugins': 'list[str]',
|
|
55
|
-
'setup_script_text': 'str'
|
|
55
|
+
'setup_script_text': 'str',
|
|
56
|
+
'specialized_view': 'V1CloudSpaceSpecializedView'
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
attribute_map = {
|
|
@@ -67,10 +68,11 @@ class Update(object):
|
|
|
67
68
|
'name': 'name',
|
|
68
69
|
'org_id': 'orgId',
|
|
69
70
|
'plugins': 'plugins',
|
|
70
|
-
'setup_script_text': 'setupScriptText'
|
|
71
|
+
'setup_script_text': 'setupScriptText',
|
|
72
|
+
'specialized_view': 'specializedView'
|
|
71
73
|
}
|
|
72
74
|
|
|
73
|
-
def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, description: 'str' =None, disabled: 'bool' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, icon: 'str' =None, initial_setup_script_text: 'str' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, plugins: 'list[str]' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
75
|
+
def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, description: 'str' =None, disabled: 'bool' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, icon: 'str' =None, initial_setup_script_text: 'str' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, plugins: 'list[str]' =None, setup_script_text: 'str' =None, specialized_view: 'V1CloudSpaceSpecializedView' =None): # noqa: E501
|
|
74
76
|
"""Update - a model defined in Swagger""" # noqa: E501
|
|
75
77
|
self._allowed_machines = None
|
|
76
78
|
self._default_machine = None
|
|
@@ -84,6 +86,7 @@ class Update(object):
|
|
|
84
86
|
self._org_id = None
|
|
85
87
|
self._plugins = None
|
|
86
88
|
self._setup_script_text = None
|
|
89
|
+
self._specialized_view = None
|
|
87
90
|
self.discriminator = None
|
|
88
91
|
if allowed_machines is not None:
|
|
89
92
|
self.allowed_machines = allowed_machines
|
|
@@ -109,6 +112,8 @@ class Update(object):
|
|
|
109
112
|
self.plugins = plugins
|
|
110
113
|
if setup_script_text is not None:
|
|
111
114
|
self.setup_script_text = setup_script_text
|
|
115
|
+
if specialized_view is not None:
|
|
116
|
+
self.specialized_view = specialized_view
|
|
112
117
|
|
|
113
118
|
@property
|
|
114
119
|
def allowed_machines(self) -> 'list[str]':
|
|
@@ -362,6 +367,27 @@ class Update(object):
|
|
|
362
367
|
|
|
363
368
|
self._setup_script_text = setup_script_text
|
|
364
369
|
|
|
370
|
+
@property
|
|
371
|
+
def specialized_view(self) -> 'V1CloudSpaceSpecializedView':
|
|
372
|
+
"""Gets the specialized_view of this Update. # noqa: E501
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
:return: The specialized_view of this Update. # noqa: E501
|
|
376
|
+
:rtype: V1CloudSpaceSpecializedView
|
|
377
|
+
"""
|
|
378
|
+
return self._specialized_view
|
|
379
|
+
|
|
380
|
+
@specialized_view.setter
|
|
381
|
+
def specialized_view(self, specialized_view: 'V1CloudSpaceSpecializedView'):
|
|
382
|
+
"""Sets the specialized_view of this Update.
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
:param specialized_view: The specialized_view of this Update. # noqa: E501
|
|
386
|
+
:type: V1CloudSpaceSpecializedView
|
|
387
|
+
"""
|
|
388
|
+
|
|
389
|
+
self._specialized_view = specialized_view
|
|
390
|
+
|
|
365
391
|
def to_dict(self) -> dict:
|
|
366
392
|
"""Returns the model properties as a dict"""
|
|
367
393
|
result = {}
|
|
@@ -42,6 +42,7 @@ class V1Assistant(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'cloudspace_id': 'str',
|
|
45
|
+
'cloudy_compatible': 'bool',
|
|
45
46
|
'cluster_id': 'str',
|
|
46
47
|
'created_at': 'datetime',
|
|
47
48
|
'deployment_details': 'V1DeploymentDetails',
|
|
@@ -70,6 +71,7 @@ class V1Assistant(object):
|
|
|
70
71
|
|
|
71
72
|
attribute_map = {
|
|
72
73
|
'cloudspace_id': 'cloudspaceId',
|
|
74
|
+
'cloudy_compatible': 'cloudyCompatible',
|
|
73
75
|
'cluster_id': 'clusterId',
|
|
74
76
|
'created_at': 'createdAt',
|
|
75
77
|
'deployment_details': 'deploymentDetails',
|
|
@@ -96,9 +98,10 @@ class V1Assistant(object):
|
|
|
96
98
|
'user_id': 'userId'
|
|
97
99
|
}
|
|
98
100
|
|
|
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
|
|
101
|
+
def __init__(self, cloudspace_id: 'str' =None, cloudy_compatible: 'bool' =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
|
|
100
102
|
"""V1Assistant - a model defined in Swagger""" # noqa: E501
|
|
101
103
|
self._cloudspace_id = None
|
|
104
|
+
self._cloudy_compatible = None
|
|
102
105
|
self._cluster_id = None
|
|
103
106
|
self._created_at = None
|
|
104
107
|
self._deployment_details = None
|
|
@@ -126,6 +129,8 @@ class V1Assistant(object):
|
|
|
126
129
|
self.discriminator = None
|
|
127
130
|
if cloudspace_id is not None:
|
|
128
131
|
self.cloudspace_id = cloudspace_id
|
|
132
|
+
if cloudy_compatible is not None:
|
|
133
|
+
self.cloudy_compatible = cloudy_compatible
|
|
129
134
|
if cluster_id is not None:
|
|
130
135
|
self.cluster_id = cluster_id
|
|
131
136
|
if created_at is not None:
|
|
@@ -196,6 +201,27 @@ class V1Assistant(object):
|
|
|
196
201
|
|
|
197
202
|
self._cloudspace_id = cloudspace_id
|
|
198
203
|
|
|
204
|
+
@property
|
|
205
|
+
def cloudy_compatible(self) -> 'bool':
|
|
206
|
+
"""Gets the cloudy_compatible of this V1Assistant. # noqa: E501
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
:return: The cloudy_compatible of this V1Assistant. # noqa: E501
|
|
210
|
+
:rtype: bool
|
|
211
|
+
"""
|
|
212
|
+
return self._cloudy_compatible
|
|
213
|
+
|
|
214
|
+
@cloudy_compatible.setter
|
|
215
|
+
def cloudy_compatible(self, cloudy_compatible: 'bool'):
|
|
216
|
+
"""Sets the cloudy_compatible of this V1Assistant.
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
:param cloudy_compatible: The cloudy_compatible of this V1Assistant. # noqa: E501
|
|
220
|
+
:type: bool
|
|
221
|
+
"""
|
|
222
|
+
|
|
223
|
+
self._cloudy_compatible = cloudy_compatible
|
|
224
|
+
|
|
199
225
|
@property
|
|
200
226
|
def cluster_id(self) -> 'str':
|
|
201
227
|
"""Gets the cluster_id of this V1Assistant. # noqa: E501
|
|
@@ -0,0 +1,123 @@
|
|
|
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 V1CheckClusterNameAvailabilityRequest(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
|
+
'name': 'str'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'name': 'name'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, name: 'str' =None): # noqa: E501
|
|
52
|
+
"""V1CheckClusterNameAvailabilityRequest - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._name = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if name is not None:
|
|
56
|
+
self.name = name
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def name(self) -> 'str':
|
|
60
|
+
"""Gets the name of this V1CheckClusterNameAvailabilityRequest. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The name of this V1CheckClusterNameAvailabilityRequest. # noqa: E501
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._name
|
|
67
|
+
|
|
68
|
+
@name.setter
|
|
69
|
+
def name(self, name: 'str'):
|
|
70
|
+
"""Sets the name of this V1CheckClusterNameAvailabilityRequest.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param name: The name of this V1CheckClusterNameAvailabilityRequest. # noqa: E501
|
|
74
|
+
:type: str
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._name = name
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(V1CheckClusterNameAvailabilityRequest, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'V1CheckClusterNameAvailabilityRequest') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1CheckClusterNameAvailabilityRequest):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1CheckClusterNameAvailabilityRequest') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -0,0 +1,123 @@
|
|
|
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 V1CheckClusterNameAvailabilityResponse(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
|
+
'available': 'bool'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'available': 'available'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, available: 'bool' =None): # noqa: E501
|
|
52
|
+
"""V1CheckClusterNameAvailabilityResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._available = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if available is not None:
|
|
56
|
+
self.available = available
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def available(self) -> 'bool':
|
|
60
|
+
"""Gets the available of this V1CheckClusterNameAvailabilityResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The available of this V1CheckClusterNameAvailabilityResponse. # noqa: E501
|
|
64
|
+
:rtype: bool
|
|
65
|
+
"""
|
|
66
|
+
return self._available
|
|
67
|
+
|
|
68
|
+
@available.setter
|
|
69
|
+
def available(self, available: 'bool'):
|
|
70
|
+
"""Sets the available of this V1CheckClusterNameAvailabilityResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param available: The available of this V1CheckClusterNameAvailabilityResponse. # noqa: E501
|
|
74
|
+
:type: bool
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._available = available
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(V1CheckClusterNameAvailabilityResponse, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'V1CheckClusterNameAvailabilityResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1CheckClusterNameAvailabilityResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1CheckClusterNameAvailabilityResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|