lightning-sdk 0.1.55__py3-none-any.whl → 0.1.57__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 +3 -2
- lightning_sdk/ai_hub.py +22 -0
- lightning_sdk/api/ai_hub_api.py +21 -2
- lightning_sdk/api/deployment_api.py +4 -3
- lightning_sdk/api/job_api.py +5 -10
- lightning_sdk/api/mmt_api.py +1 -4
- lightning_sdk/api/studio_api.py +5 -7
- lightning_sdk/api/teamspace_api.py +7 -0
- lightning_sdk/api/utils.py +1 -27
- lightning_sdk/cli/ai_hub.py +61 -10
- lightning_sdk/cli/configure.py +137 -0
- lightning_sdk/cli/connect.py +47 -0
- lightning_sdk/cli/delete.py +83 -32
- lightning_sdk/cli/download.py +177 -90
- lightning_sdk/cli/entrypoint.py +50 -15
- lightning_sdk/cli/generate.py +51 -42
- lightning_sdk/cli/inspect.py +45 -3
- lightning_sdk/cli/jobs_menu.py +2 -1
- lightning_sdk/cli/list.py +139 -55
- lightning_sdk/cli/mmts_menu.py +2 -1
- lightning_sdk/cli/run.py +3 -9
- lightning_sdk/cli/serve.py +1 -2
- lightning_sdk/cli/start.py +2 -2
- lightning_sdk/cli/stop.py +5 -3
- lightning_sdk/cli/studios_menu.py +24 -1
- lightning_sdk/cli/switch.py +2 -2
- lightning_sdk/cli/teamspace_menu.py +2 -1
- lightning_sdk/cli/upload.py +6 -4
- lightning_sdk/helpers.py +20 -0
- lightning_sdk/job/job.py +1 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +9 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +226 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +7 -3
- lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +1 -5
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +9 -0
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/id_reportrestarttimings_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_litregistry_body.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/setup.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_gcp_data_connection_setup.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_accelerator_demand_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +8 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_report_restart_timings_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_restart_timing.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_setup_data_connection_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_deployment_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_model_visibility_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_request.py +27 -1
- lightning_sdk/machine.py +59 -27
- lightning_sdk/studio.py +5 -1
- lightning_sdk/teamspace.py +25 -0
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/METADATA +3 -1
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/RECORD +72 -61
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/top_level.txt +0 -0
|
@@ -87,11 +87,13 @@ from lightning_sdk.lightning_cloud.openapi.models.id_publications_body import Id
|
|
|
87
87
|
from lightning_sdk.lightning_cloud.openapi.models.id_publications_body1 import IdPublicationsBody1
|
|
88
88
|
from lightning_sdk.lightning_cloud.openapi.models.id_release_body import IdReleaseBody
|
|
89
89
|
from lightning_sdk.lightning_cloud.openapi.models.id_reportlogsactivity_body import IdReportlogsactivityBody
|
|
90
|
+
from lightning_sdk.lightning_cloud.openapi.models.id_reportrestarttimings_body import IdReportrestarttimingsBody
|
|
90
91
|
from lightning_sdk.lightning_cloud.openapi.models.id_start_body import IdStartBody
|
|
91
92
|
from lightning_sdk.lightning_cloud.openapi.models.id_storage_body import IdStorageBody
|
|
92
93
|
from lightning_sdk.lightning_cloud.openapi.models.id_uploads_body import IdUploadsBody
|
|
93
94
|
from lightning_sdk.lightning_cloud.openapi.models.id_uploads_body1 import IdUploadsBody1
|
|
94
95
|
from lightning_sdk.lightning_cloud.openapi.models.id_visibility_body import IdVisibilityBody
|
|
96
|
+
from lightning_sdk.lightning_cloud.openapi.models.id_visibility_body1 import IdVisibilityBody1
|
|
95
97
|
from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body import JobsIdBody
|
|
96
98
|
from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body1 import JobsIdBody1
|
|
97
99
|
from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body2 import JobsIdBody2
|
|
@@ -144,6 +146,7 @@ from lightning_sdk.lightning_cloud.openapi.models.servers_server_id_body import
|
|
|
144
146
|
from lightning_sdk.lightning_cloud.openapi.models.service_artifact_artifact_kind import ServiceArtifactArtifactKind
|
|
145
147
|
from lightning_sdk.lightning_cloud.openapi.models.service_health_service_status import ServiceHealthServiceStatus
|
|
146
148
|
from lightning_sdk.lightning_cloud.openapi.models.serviceexecution_id_body import ServiceexecutionIdBody
|
|
149
|
+
from lightning_sdk.lightning_cloud.openapi.models.setup import Setup
|
|
147
150
|
from lightning_sdk.lightning_cloud.openapi.models.slurm_jobs_body import SlurmJobsBody
|
|
148
151
|
from lightning_sdk.lightning_cloud.openapi.models.snowflake_export_body import SnowflakeExportBody
|
|
149
152
|
from lightning_sdk.lightning_cloud.openapi.models.snowflake_query_body import SnowflakeQueryBody
|
|
@@ -402,6 +405,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_gpu_system_metrics import V
|
|
|
402
405
|
from lightning_sdk.lightning_cloud.openapi.models.v1_gallery_app import V1GalleryApp
|
|
403
406
|
from lightning_sdk.lightning_cloud.openapi.models.v1_gallery_component import V1GalleryComponent
|
|
404
407
|
from lightning_sdk.lightning_cloud.openapi.models.v1_gcp_data_connection import V1GcpDataConnection
|
|
408
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_gcp_data_connection_setup import V1GcpDataConnectionSetup
|
|
405
409
|
from lightning_sdk.lightning_cloud.openapi.models.v1_generate_ssh_key_pair_request import V1GenerateSSHKeyPairRequest
|
|
406
410
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_affiliate_link_response import V1GetAffiliateLinkResponse
|
|
407
411
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_agent_job_env_response import V1GetAgentJobEnvResponse
|
|
@@ -409,6 +413,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_agent_job_logs_metadata
|
|
|
409
413
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_artifacts_page_response import V1GetArtifactsPageResponse
|
|
410
414
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_status_response import V1GetCloudSpaceInstanceStatusResponse
|
|
411
415
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_size_response import V1GetCloudSpaceSizeResponse
|
|
416
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cluster_accelerator_demand_response import V1GetClusterAcceleratorDemandResponse
|
|
412
417
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cluster_credentials_response import V1GetClusterCredentialsResponse
|
|
413
418
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_deployment_routing_telemetry_aggregated_response import V1GetDeploymentRoutingTelemetryAggregatedResponse
|
|
414
419
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_deployment_routing_telemetry_response import V1GetDeploymentRoutingTelemetryResponse
|
|
@@ -664,6 +669,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_refresh_response import V1R
|
|
|
664
669
|
from lightning_sdk.lightning_cloud.openapi.models.v1_region_state import V1RegionState
|
|
665
670
|
from lightning_sdk.lightning_cloud.openapi.models.v1_regional_load_balancer import V1RegionalLoadBalancer
|
|
666
671
|
from lightning_sdk.lightning_cloud.openapi.models.v1_report_logs_activity_response import V1ReportLogsActivityResponse
|
|
672
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_report_restart_timings_response import V1ReportRestartTimingsResponse
|
|
667
673
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_request import V1RequestClusterAccessRequest
|
|
668
674
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_response import V1RequestClusterAccessResponse
|
|
669
675
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_verification_code_response import V1RequestVerificationCodeResponse
|
|
@@ -673,6 +679,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_resources import V1Resource
|
|
|
673
679
|
from lightning_sdk.lightning_cloud.openapi.models.v1_response_choice import V1ResponseChoice
|
|
674
680
|
from lightning_sdk.lightning_cloud.openapi.models.v1_response_choice_delta import V1ResponseChoiceDelta
|
|
675
681
|
from lightning_sdk.lightning_cloud.openapi.models.v1_restart_cloud_space_instance_response import V1RestartCloudSpaceInstanceResponse
|
|
682
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_restart_timing import V1RestartTiming
|
|
676
683
|
from lightning_sdk.lightning_cloud.openapi.models.v1_restore_deployment_release_response import V1RestoreDeploymentReleaseResponse
|
|
677
684
|
from lightning_sdk.lightning_cloud.openapi.models.v1_role import V1Role
|
|
678
685
|
from lightning_sdk.lightning_cloud.openapi.models.v1_rolling_update_strategy import V1RollingUpdateStrategy
|
|
@@ -696,6 +703,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_service_artifact import V1S
|
|
|
696
703
|
from lightning_sdk.lightning_cloud.openapi.models.v1_service_execution import V1ServiceExecution
|
|
697
704
|
from lightning_sdk.lightning_cloud.openapi.models.v1_service_health import V1ServiceHealth
|
|
698
705
|
from lightning_sdk.lightning_cloud.openapi.models.v1_setup_confirmed_ssh_public_key_response import V1SetupConfirmedSSHPublicKeyResponse
|
|
706
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_setup_data_connection_response import V1SetupDataConnectionResponse
|
|
699
707
|
from lightning_sdk.lightning_cloud.openapi.models.v1_should_start_syncing_response import V1ShouldStartSyncingResponse
|
|
700
708
|
from lightning_sdk.lightning_cloud.openapi.models.v1_signed_url import V1SignedUrl
|
|
701
709
|
from lightning_sdk.lightning_cloud.openapi.models.v1_slurm_node import V1SlurmNode
|
|
@@ -732,6 +740,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_update_cloud_space_publicat
|
|
|
732
740
|
from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_accelerators_request import V1UpdateClusterAcceleratorsRequest
|
|
733
741
|
from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_accelerators_response import V1UpdateClusterAcceleratorsResponse
|
|
734
742
|
from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_availability_request import V1UpdateClusterAvailabilityRequest
|
|
743
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_update_deployment_visibility_response import V1UpdateDeploymentVisibilityResponse
|
|
735
744
|
from lightning_sdk.lightning_cloud.openapi.models.v1_update_index_response import V1UpdateIndexResponse
|
|
736
745
|
from lightning_sdk.lightning_cloud.openapi.models.v1_update_lit_page_response import V1UpdateLitPageResponse
|
|
737
746
|
from lightning_sdk.lightning_cloud.openapi.models.v1_update_lit_repository_response import V1UpdateLitRepositoryResponse
|
|
@@ -44,6 +44,9 @@ class AgentsIdBody(object):
|
|
|
44
44
|
'cloudspace_id': 'str',
|
|
45
45
|
'cluster_id': 'str',
|
|
46
46
|
'created_at': 'datetime',
|
|
47
|
+
'deployment_name': 'str',
|
|
48
|
+
'deployment_org_name': 'str',
|
|
49
|
+
'deployment_project_name': 'str',
|
|
47
50
|
'description': 'str',
|
|
48
51
|
'endpoint_id': 'str',
|
|
49
52
|
'expected_cold_start_time': 'str',
|
|
@@ -51,6 +54,7 @@ class AgentsIdBody(object):
|
|
|
51
54
|
'internal_assistant_name': 'str',
|
|
52
55
|
'knowledge': 'str',
|
|
53
56
|
'knowledge_configuration': 'V1KnowledgeConfiguration',
|
|
57
|
+
'managed_endpoint_id': 'str',
|
|
54
58
|
'model': 'str',
|
|
55
59
|
'model_provider': 'str',
|
|
56
60
|
'name': 'str',
|
|
@@ -68,6 +72,9 @@ class AgentsIdBody(object):
|
|
|
68
72
|
'cloudspace_id': 'cloudspaceId',
|
|
69
73
|
'cluster_id': 'clusterId',
|
|
70
74
|
'created_at': 'createdAt',
|
|
75
|
+
'deployment_name': 'deploymentName',
|
|
76
|
+
'deployment_org_name': 'deploymentOrgName',
|
|
77
|
+
'deployment_project_name': 'deploymentProjectName',
|
|
71
78
|
'description': 'description',
|
|
72
79
|
'endpoint_id': 'endpointId',
|
|
73
80
|
'expected_cold_start_time': 'expectedColdStartTime',
|
|
@@ -75,6 +82,7 @@ class AgentsIdBody(object):
|
|
|
75
82
|
'internal_assistant_name': 'internalAssistantName',
|
|
76
83
|
'knowledge': 'knowledge',
|
|
77
84
|
'knowledge_configuration': 'knowledgeConfiguration',
|
|
85
|
+
'managed_endpoint_id': 'managedEndpointId',
|
|
78
86
|
'model': 'model',
|
|
79
87
|
'model_provider': 'modelProvider',
|
|
80
88
|
'name': 'name',
|
|
@@ -88,11 +96,14 @@ class AgentsIdBody(object):
|
|
|
88
96
|
'user_id': 'userId'
|
|
89
97
|
}
|
|
90
98
|
|
|
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
|
|
99
|
+
def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, deployment_name: 'str' =None, deployment_org_name: 'str' =None, deployment_project_name: 'str' =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, managed_endpoint_id: 'str' =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
|
|
92
100
|
"""AgentsIdBody - a model defined in Swagger""" # noqa: E501
|
|
93
101
|
self._cloudspace_id = None
|
|
94
102
|
self._cluster_id = None
|
|
95
103
|
self._created_at = None
|
|
104
|
+
self._deployment_name = None
|
|
105
|
+
self._deployment_org_name = None
|
|
106
|
+
self._deployment_project_name = None
|
|
96
107
|
self._description = None
|
|
97
108
|
self._endpoint_id = None
|
|
98
109
|
self._expected_cold_start_time = None
|
|
@@ -100,6 +111,7 @@ class AgentsIdBody(object):
|
|
|
100
111
|
self._internal_assistant_name = None
|
|
101
112
|
self._knowledge = None
|
|
102
113
|
self._knowledge_configuration = None
|
|
114
|
+
self._managed_endpoint_id = None
|
|
103
115
|
self._model = None
|
|
104
116
|
self._model_provider = None
|
|
105
117
|
self._name = None
|
|
@@ -118,6 +130,12 @@ class AgentsIdBody(object):
|
|
|
118
130
|
self.cluster_id = cluster_id
|
|
119
131
|
if created_at is not None:
|
|
120
132
|
self.created_at = created_at
|
|
133
|
+
if deployment_name is not None:
|
|
134
|
+
self.deployment_name = deployment_name
|
|
135
|
+
if deployment_org_name is not None:
|
|
136
|
+
self.deployment_org_name = deployment_org_name
|
|
137
|
+
if deployment_project_name is not None:
|
|
138
|
+
self.deployment_project_name = deployment_project_name
|
|
121
139
|
if description is not None:
|
|
122
140
|
self.description = description
|
|
123
141
|
if endpoint_id is not None:
|
|
@@ -132,6 +150,8 @@ class AgentsIdBody(object):
|
|
|
132
150
|
self.knowledge = knowledge
|
|
133
151
|
if knowledge_configuration is not None:
|
|
134
152
|
self.knowledge_configuration = knowledge_configuration
|
|
153
|
+
if managed_endpoint_id is not None:
|
|
154
|
+
self.managed_endpoint_id = managed_endpoint_id
|
|
135
155
|
if model is not None:
|
|
136
156
|
self.model = model
|
|
137
157
|
if model_provider is not None:
|
|
@@ -218,6 +238,69 @@ class AgentsIdBody(object):
|
|
|
218
238
|
|
|
219
239
|
self._created_at = created_at
|
|
220
240
|
|
|
241
|
+
@property
|
|
242
|
+
def deployment_name(self) -> 'str':
|
|
243
|
+
"""Gets the deployment_name of this AgentsIdBody. # noqa: E501
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
:return: The deployment_name of this AgentsIdBody. # noqa: E501
|
|
247
|
+
:rtype: str
|
|
248
|
+
"""
|
|
249
|
+
return self._deployment_name
|
|
250
|
+
|
|
251
|
+
@deployment_name.setter
|
|
252
|
+
def deployment_name(self, deployment_name: 'str'):
|
|
253
|
+
"""Sets the deployment_name of this AgentsIdBody.
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
:param deployment_name: The deployment_name of this AgentsIdBody. # noqa: E501
|
|
257
|
+
:type: str
|
|
258
|
+
"""
|
|
259
|
+
|
|
260
|
+
self._deployment_name = deployment_name
|
|
261
|
+
|
|
262
|
+
@property
|
|
263
|
+
def deployment_org_name(self) -> 'str':
|
|
264
|
+
"""Gets the deployment_org_name of this AgentsIdBody. # noqa: E501
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
:return: The deployment_org_name of this AgentsIdBody. # noqa: E501
|
|
268
|
+
:rtype: str
|
|
269
|
+
"""
|
|
270
|
+
return self._deployment_org_name
|
|
271
|
+
|
|
272
|
+
@deployment_org_name.setter
|
|
273
|
+
def deployment_org_name(self, deployment_org_name: 'str'):
|
|
274
|
+
"""Sets the deployment_org_name of this AgentsIdBody.
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
:param deployment_org_name: The deployment_org_name of this AgentsIdBody. # noqa: E501
|
|
278
|
+
:type: str
|
|
279
|
+
"""
|
|
280
|
+
|
|
281
|
+
self._deployment_org_name = deployment_org_name
|
|
282
|
+
|
|
283
|
+
@property
|
|
284
|
+
def deployment_project_name(self) -> 'str':
|
|
285
|
+
"""Gets the deployment_project_name of this AgentsIdBody. # noqa: E501
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
:return: The deployment_project_name of this AgentsIdBody. # noqa: E501
|
|
289
|
+
:rtype: str
|
|
290
|
+
"""
|
|
291
|
+
return self._deployment_project_name
|
|
292
|
+
|
|
293
|
+
@deployment_project_name.setter
|
|
294
|
+
def deployment_project_name(self, deployment_project_name: 'str'):
|
|
295
|
+
"""Sets the deployment_project_name of this AgentsIdBody.
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
:param deployment_project_name: The deployment_project_name of this AgentsIdBody. # noqa: E501
|
|
299
|
+
:type: str
|
|
300
|
+
"""
|
|
301
|
+
|
|
302
|
+
self._deployment_project_name = deployment_project_name
|
|
303
|
+
|
|
221
304
|
@property
|
|
222
305
|
def description(self) -> 'str':
|
|
223
306
|
"""Gets the description of this AgentsIdBody. # noqa: E501
|
|
@@ -365,6 +448,27 @@ class AgentsIdBody(object):
|
|
|
365
448
|
|
|
366
449
|
self._knowledge_configuration = knowledge_configuration
|
|
367
450
|
|
|
451
|
+
@property
|
|
452
|
+
def managed_endpoint_id(self) -> 'str':
|
|
453
|
+
"""Gets the managed_endpoint_id of this AgentsIdBody. # noqa: E501
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
:return: The managed_endpoint_id of this AgentsIdBody. # noqa: E501
|
|
457
|
+
:rtype: str
|
|
458
|
+
"""
|
|
459
|
+
return self._managed_endpoint_id
|
|
460
|
+
|
|
461
|
+
@managed_endpoint_id.setter
|
|
462
|
+
def managed_endpoint_id(self, managed_endpoint_id: 'str'):
|
|
463
|
+
"""Sets the managed_endpoint_id of this AgentsIdBody.
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
:param managed_endpoint_id: The managed_endpoint_id of this AgentsIdBody. # noqa: E501
|
|
467
|
+
:type: str
|
|
468
|
+
"""
|
|
469
|
+
|
|
470
|
+
self._managed_endpoint_id = managed_endpoint_id
|
|
471
|
+
|
|
368
472
|
@property
|
|
369
473
|
def model(self) -> 'str':
|
|
370
474
|
"""Gets the model of this AgentsIdBody. # noqa: E501
|
|
@@ -59,7 +59,8 @@ class DeploymentsIdBody(object):
|
|
|
59
59
|
'template_id': 'str',
|
|
60
60
|
'total_cost': 'float',
|
|
61
61
|
'updated_at': 'datetime',
|
|
62
|
-
'user_id': 'str'
|
|
62
|
+
'user_id': 'str',
|
|
63
|
+
'visibility': 'V1ResourceVisibility'
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
attribute_map = {
|
|
@@ -81,10 +82,11 @@ class DeploymentsIdBody(object):
|
|
|
81
82
|
'template_id': 'templateId',
|
|
82
83
|
'total_cost': 'totalCost',
|
|
83
84
|
'updated_at': 'updatedAt',
|
|
84
|
-
'user_id': 'userId'
|
|
85
|
+
'user_id': 'userId',
|
|
86
|
+
'visibility': 'visibility'
|
|
85
87
|
}
|
|
86
88
|
|
|
87
|
-
def __init__(self, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, debug: 'bool' =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, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
89
|
+
def __init__(self, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, debug: 'bool' =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, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
88
90
|
"""DeploymentsIdBody - a model defined in Swagger""" # noqa: E501
|
|
89
91
|
self._apis = None
|
|
90
92
|
self._autoscaling = None
|
|
@@ -105,6 +107,7 @@ class DeploymentsIdBody(object):
|
|
|
105
107
|
self._total_cost = None
|
|
106
108
|
self._updated_at = None
|
|
107
109
|
self._user_id = None
|
|
110
|
+
self._visibility = None
|
|
108
111
|
self.discriminator = None
|
|
109
112
|
if apis is not None:
|
|
110
113
|
self.apis = apis
|
|
@@ -144,6 +147,8 @@ class DeploymentsIdBody(object):
|
|
|
144
147
|
self.updated_at = updated_at
|
|
145
148
|
if user_id is not None:
|
|
146
149
|
self.user_id = user_id
|
|
150
|
+
if visibility is not None:
|
|
151
|
+
self.visibility = visibility
|
|
147
152
|
|
|
148
153
|
@property
|
|
149
154
|
def apis(self) -> 'list[V1DeploymentAPI]':
|
|
@@ -544,6 +549,27 @@ class DeploymentsIdBody(object):
|
|
|
544
549
|
|
|
545
550
|
self._user_id = user_id
|
|
546
551
|
|
|
552
|
+
@property
|
|
553
|
+
def visibility(self) -> 'V1ResourceVisibility':
|
|
554
|
+
"""Gets the visibility of this DeploymentsIdBody. # noqa: E501
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
:return: The visibility of this DeploymentsIdBody. # noqa: E501
|
|
558
|
+
:rtype: V1ResourceVisibility
|
|
559
|
+
"""
|
|
560
|
+
return self._visibility
|
|
561
|
+
|
|
562
|
+
@visibility.setter
|
|
563
|
+
def visibility(self, visibility: 'V1ResourceVisibility'):
|
|
564
|
+
"""Sets the visibility of this DeploymentsIdBody.
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
:param visibility: The visibility of this DeploymentsIdBody. # noqa: E501
|
|
568
|
+
:type: V1ResourceVisibility
|
|
569
|
+
"""
|
|
570
|
+
|
|
571
|
+
self._visibility = visibility
|
|
572
|
+
|
|
547
573
|
def to_dict(self) -> dict:
|
|
548
574
|
"""Returns the model properties as a dict"""
|
|
549
575
|
result = {}
|
|
@@ -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 IdReportrestarttimingsBody(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
|
+
'timings': 'list[V1RestartTiming]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'timings': 'timings'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, timings: 'list[V1RestartTiming]' =None): # noqa: E501
|
|
52
|
+
"""IdReportrestarttimingsBody - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._timings = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if timings is not None:
|
|
56
|
+
self.timings = timings
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def timings(self) -> 'list[V1RestartTiming]':
|
|
60
|
+
"""Gets the timings of this IdReportrestarttimingsBody. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The timings of this IdReportrestarttimingsBody. # noqa: E501
|
|
64
|
+
:rtype: list[V1RestartTiming]
|
|
65
|
+
"""
|
|
66
|
+
return self._timings
|
|
67
|
+
|
|
68
|
+
@timings.setter
|
|
69
|
+
def timings(self, timings: 'list[V1RestartTiming]'):
|
|
70
|
+
"""Sets the timings of this IdReportrestarttimingsBody.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param timings: The timings of this IdReportrestarttimingsBody. # noqa: E501
|
|
74
|
+
:type: list[V1RestartTiming]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._timings = timings
|
|
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(IdReportrestarttimingsBody, 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: 'IdReportrestarttimingsBody') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, IdReportrestarttimingsBody):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'IdReportrestarttimingsBody') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -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 IdVisibilityBody1(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
|
+
'emails': 'list[str]',
|
|
45
|
+
'visibility': 'V1ResourceVisibility'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'emails': 'emails',
|
|
50
|
+
'visibility': 'visibility'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, emails: 'list[str]' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
54
|
+
"""IdVisibilityBody1 - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._emails = None
|
|
56
|
+
self._visibility = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if emails is not None:
|
|
59
|
+
self.emails = emails
|
|
60
|
+
if visibility is not None:
|
|
61
|
+
self.visibility = visibility
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def emails(self) -> 'list[str]':
|
|
65
|
+
"""Gets the emails of this IdVisibilityBody1. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The emails of this IdVisibilityBody1. # noqa: E501
|
|
69
|
+
:rtype: list[str]
|
|
70
|
+
"""
|
|
71
|
+
return self._emails
|
|
72
|
+
|
|
73
|
+
@emails.setter
|
|
74
|
+
def emails(self, emails: 'list[str]'):
|
|
75
|
+
"""Sets the emails of this IdVisibilityBody1.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param emails: The emails of this IdVisibilityBody1. # noqa: E501
|
|
79
|
+
:type: list[str]
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._emails = emails
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def visibility(self) -> 'V1ResourceVisibility':
|
|
86
|
+
"""Gets the visibility of this IdVisibilityBody1. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The visibility of this IdVisibilityBody1. # noqa: E501
|
|
90
|
+
:rtype: V1ResourceVisibility
|
|
91
|
+
"""
|
|
92
|
+
return self._visibility
|
|
93
|
+
|
|
94
|
+
@visibility.setter
|
|
95
|
+
def visibility(self, visibility: 'V1ResourceVisibility'):
|
|
96
|
+
"""Sets the visibility of this IdVisibilityBody1.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param visibility: The visibility of this IdVisibilityBody1. # noqa: E501
|
|
100
|
+
:type: V1ResourceVisibility
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._visibility = visibility
|
|
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(IdVisibilityBody1, 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: 'IdVisibilityBody1') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, IdVisibilityBody1):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'IdVisibilityBody1') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|
|
@@ -41,20 +41,46 @@ class ModelIdVisibilityBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'emails': 'list[str]',
|
|
44
45
|
'visibility': 'V1ResourceVisibility'
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
attribute_map = {
|
|
49
|
+
'emails': 'emails',
|
|
48
50
|
'visibility': 'visibility'
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
def __init__(self, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
53
|
+
def __init__(self, emails: 'list[str]' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
52
54
|
"""ModelIdVisibilityBody - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._emails = None
|
|
53
56
|
self._visibility = None
|
|
54
57
|
self.discriminator = None
|
|
58
|
+
if emails is not None:
|
|
59
|
+
self.emails = emails
|
|
55
60
|
if visibility is not None:
|
|
56
61
|
self.visibility = visibility
|
|
57
62
|
|
|
63
|
+
@property
|
|
64
|
+
def emails(self) -> 'list[str]':
|
|
65
|
+
"""Gets the emails of this ModelIdVisibilityBody. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The emails of this ModelIdVisibilityBody. # noqa: E501
|
|
69
|
+
:rtype: list[str]
|
|
70
|
+
"""
|
|
71
|
+
return self._emails
|
|
72
|
+
|
|
73
|
+
@emails.setter
|
|
74
|
+
def emails(self, emails: 'list[str]'):
|
|
75
|
+
"""Sets the emails of this ModelIdVisibilityBody.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param emails: The emails of this ModelIdVisibilityBody. # noqa: E501
|
|
79
|
+
:type: list[str]
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._emails = emails
|
|
83
|
+
|
|
58
84
|
@property
|
|
59
85
|
def visibility(self) -> 'V1ResourceVisibility':
|
|
60
86
|
"""Gets the visibility of this ModelIdVisibilityBody. # noqa: E501
|
|
@@ -59,6 +59,7 @@ class ProjectIdLitregistryBody(object):
|
|
|
59
59
|
def lit_reg_project_name(self) -> 'str':
|
|
60
60
|
"""Gets the lit_reg_project_name of this ProjectIdLitregistryBody. # noqa: E501
|
|
61
61
|
|
|
62
|
+
This will be the name of the project in the registry, 1:1 with org-name|username/teamspace-name name. # noqa: E501
|
|
62
63
|
|
|
63
64
|
:return: The lit_reg_project_name of this ProjectIdLitregistryBody. # noqa: E501
|
|
64
65
|
:rtype: str
|
|
@@ -69,6 +70,7 @@ class ProjectIdLitregistryBody(object):
|
|
|
69
70
|
def lit_reg_project_name(self, lit_reg_project_name: 'str'):
|
|
70
71
|
"""Sets the lit_reg_project_name of this ProjectIdLitregistryBody.
|
|
71
72
|
|
|
73
|
+
This will be the name of the project in the registry, 1:1 with org-name|username/teamspace-name name. # noqa: E501
|
|
72
74
|
|
|
73
75
|
:param lit_reg_project_name: The lit_reg_project_name of this ProjectIdLitregistryBody. # noqa: E501
|
|
74
76
|
:type: str
|