lightning-sdk 2025.9.30__py3-none-any.whl → 2025.10.14__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/cloud_account_api.py +0 -2
- lightning_sdk/api/studio_api.py +8 -0
- lightning_sdk/base_studio.py +23 -12
- lightning_sdk/cli/base_studio/__init__.py +10 -0
- lightning_sdk/cli/base_studio/list.py +45 -0
- lightning_sdk/cli/entrypoint.py +2 -0
- lightning_sdk/cli/groups.py +7 -0
- lightning_sdk/cli/studio/connect.py +117 -22
- lightning_sdk/cli/studio/ssh.py +3 -6
- lightning_sdk/cli/utils/ssh_connection.py +8 -0
- lightning_sdk/job/job.py +5 -0
- lightning_sdk/job/v1.py +8 -0
- lightning_sdk/job/v2.py +8 -0
- 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 +19 -19
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +1463 -240
- lightning_sdk/lightning_cloud/openapi/api/sdk_command_history_service_api.py +141 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +53 -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 +53 -1
- lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/incidents_id_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_incidents_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_message_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_transfer_estimate_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_group_pod_metrics.py +1241 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_message.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kai_scheduler_queue_metrics.py +627 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_group_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_messages_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incidents_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kai_scheduler_queues_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_severity.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -53
- lightning_sdk/machine.py +0 -1
- lightning_sdk/studio.py +42 -5
- lightning_sdk/utils/progress.py +32 -33
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/RECORD +69 -47
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,141 @@
|
|
|
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
|
+
from __future__ import absolute_import
|
|
21
|
+
|
|
22
|
+
import re # noqa: F401
|
|
23
|
+
from typing import TYPE_CHECKING, Any
|
|
24
|
+
|
|
25
|
+
# python 2 and python 3 compatibility library
|
|
26
|
+
import six
|
|
27
|
+
|
|
28
|
+
from lightning_sdk.lightning_cloud.openapi.api_client import ApiClient
|
|
29
|
+
|
|
30
|
+
if TYPE_CHECKING:
|
|
31
|
+
from datetime import datetime
|
|
32
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
33
|
+
|
|
34
|
+
class SDKCommandHistoryServiceApi(object):
|
|
35
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
def __init__(self, api_client=None):
|
|
42
|
+
if api_client is None:
|
|
43
|
+
api_client = ApiClient()
|
|
44
|
+
self.api_client = api_client
|
|
45
|
+
|
|
46
|
+
def s_dk_command_history_service_create_sdk_command_history(self, body: 'V1CreateSDKCommandHistoryRequest', **kwargs) -> 'V1CreateSDKCommandHistoryResponse': # noqa: E501
|
|
47
|
+
"""s_dk_command_history_service_create_sdk_command_history # noqa: E501
|
|
48
|
+
|
|
49
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
50
|
+
asynchronous HTTP request, please pass async_req=True
|
|
51
|
+
>>> thread = api.s_dk_command_history_service_create_sdk_command_history(body, async_req=True)
|
|
52
|
+
>>> result = thread.get()
|
|
53
|
+
|
|
54
|
+
:param async_req bool
|
|
55
|
+
:param V1CreateSDKCommandHistoryRequest body: (required)
|
|
56
|
+
:return: V1CreateSDKCommandHistoryResponse
|
|
57
|
+
If the method is called asynchronously,
|
|
58
|
+
returns the request thread.
|
|
59
|
+
"""
|
|
60
|
+
kwargs['_return_http_data_only'] = True
|
|
61
|
+
if kwargs.get('async_req'):
|
|
62
|
+
return self.s_dk_command_history_service_create_sdk_command_history_with_http_info(body, **kwargs) # noqa: E501
|
|
63
|
+
else:
|
|
64
|
+
(data) = self.s_dk_command_history_service_create_sdk_command_history_with_http_info(body, **kwargs) # noqa: E501
|
|
65
|
+
return data
|
|
66
|
+
|
|
67
|
+
def s_dk_command_history_service_create_sdk_command_history_with_http_info(self, body: 'V1CreateSDKCommandHistoryRequest', **kwargs) -> 'V1CreateSDKCommandHistoryResponse': # noqa: E501
|
|
68
|
+
"""s_dk_command_history_service_create_sdk_command_history # noqa: E501
|
|
69
|
+
|
|
70
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
71
|
+
asynchronous HTTP request, please pass async_req=True
|
|
72
|
+
>>> thread = api.s_dk_command_history_service_create_sdk_command_history_with_http_info(body, async_req=True)
|
|
73
|
+
>>> result = thread.get()
|
|
74
|
+
|
|
75
|
+
:param async_req bool
|
|
76
|
+
:param V1CreateSDKCommandHistoryRequest body: (required)
|
|
77
|
+
:return: V1CreateSDKCommandHistoryResponse
|
|
78
|
+
If the method is called asynchronously,
|
|
79
|
+
returns the request thread.
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
all_params = ['body'] # noqa: E501
|
|
83
|
+
all_params.append('async_req')
|
|
84
|
+
all_params.append('_return_http_data_only')
|
|
85
|
+
all_params.append('_preload_content')
|
|
86
|
+
all_params.append('_request_timeout')
|
|
87
|
+
|
|
88
|
+
params = locals()
|
|
89
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
90
|
+
if key not in all_params:
|
|
91
|
+
raise TypeError(
|
|
92
|
+
"Got an unexpected keyword argument '%s'"
|
|
93
|
+
" to method s_dk_command_history_service_create_sdk_command_history" % key
|
|
94
|
+
)
|
|
95
|
+
params[key] = val
|
|
96
|
+
del params['kwargs']
|
|
97
|
+
# verify the required parameter 'body' is set
|
|
98
|
+
if ('body' not in params or
|
|
99
|
+
params['body'] is None):
|
|
100
|
+
raise ValueError("Missing the required parameter `body` when calling `s_dk_command_history_service_create_sdk_command_history`") # noqa: E501
|
|
101
|
+
|
|
102
|
+
collection_formats = {}
|
|
103
|
+
|
|
104
|
+
path_params = {}
|
|
105
|
+
|
|
106
|
+
query_params = []
|
|
107
|
+
|
|
108
|
+
header_params = {}
|
|
109
|
+
|
|
110
|
+
form_params = []
|
|
111
|
+
local_var_files = {}
|
|
112
|
+
|
|
113
|
+
body_params = None
|
|
114
|
+
if 'body' in params:
|
|
115
|
+
body_params = params['body']
|
|
116
|
+
# HTTP header `Accept`
|
|
117
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
118
|
+
['application/json']) # noqa: E501
|
|
119
|
+
|
|
120
|
+
# HTTP header `Content-Type`
|
|
121
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
122
|
+
['application/json']) # noqa: E501
|
|
123
|
+
|
|
124
|
+
# Authentication setting
|
|
125
|
+
auth_settings = [] # noqa: E501
|
|
126
|
+
|
|
127
|
+
return self.api_client.call_api(
|
|
128
|
+
'/v1/sdk-command-history', 'POST',
|
|
129
|
+
path_params,
|
|
130
|
+
query_params,
|
|
131
|
+
header_params,
|
|
132
|
+
body=body_params,
|
|
133
|
+
post_params=form_params,
|
|
134
|
+
files=local_var_files,
|
|
135
|
+
response_type='V1CreateSDKCommandHistoryResponse', # noqa: E501
|
|
136
|
+
auth_settings=auth_settings,
|
|
137
|
+
async_req=params.get('async_req'),
|
|
138
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
139
|
+
_preload_content=params.get('_preload_content', True),
|
|
140
|
+
_request_timeout=params.get('_request_timeout'),
|
|
141
|
+
collection_formats=collection_formats)
|
|
@@ -109,6 +109,8 @@ from lightning_sdk.lightning_cloud.openapi.models.id_uploads_body import IdUploa
|
|
|
109
109
|
from lightning_sdk.lightning_cloud.openapi.models.id_visibility_body import IdVisibilityBody
|
|
110
110
|
from lightning_sdk.lightning_cloud.openapi.models.id_visibility_body1 import IdVisibilityBody1
|
|
111
111
|
from lightning_sdk.lightning_cloud.openapi.models.id_visibility_body2 import IdVisibilityBody2
|
|
112
|
+
from lightning_sdk.lightning_cloud.openapi.models.incident_id_messages_body import IncidentIdMessagesBody
|
|
113
|
+
from lightning_sdk.lightning_cloud.openapi.models.incidents_id_body import IncidentsIdBody
|
|
112
114
|
from lightning_sdk.lightning_cloud.openapi.models.job_id_reportroutingtelemetry_body import JobIdReportroutingtelemetryBody
|
|
113
115
|
from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body import JobsIdBody
|
|
114
116
|
from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body1 import JobsIdBody1
|
|
@@ -121,6 +123,7 @@ from lightning_sdk.lightning_cloud.openapi.models.litpages_id_body import Litpag
|
|
|
121
123
|
from lightning_sdk.lightning_cloud.openapi.models.litregistry_lit_repo_name_body import LitregistryLitRepoNameBody
|
|
122
124
|
from lightning_sdk.lightning_cloud.openapi.models.loggermetrics_id_body import LoggermetricsIdBody
|
|
123
125
|
from lightning_sdk.lightning_cloud.openapi.models.messages_id_body import MessagesIdBody
|
|
126
|
+
from lightning_sdk.lightning_cloud.openapi.models.messages_message_id_body import MessagesMessageIdBody
|
|
124
127
|
from lightning_sdk.lightning_cloud.openapi.models.metrics_stream_id_loggerartifacts_body import MetricsStreamIdLoggerartifactsBody
|
|
125
128
|
from lightning_sdk.lightning_cloud.openapi.models.metricsstream_create_body import MetricsstreamCreateBody
|
|
126
129
|
from lightning_sdk.lightning_cloud.openapi.models.metricsstream_delete_body import MetricsstreamDeleteBody
|
|
@@ -147,6 +150,7 @@ from lightning_sdk.lightning_cloud.openapi.models.project_id_clusters_body impor
|
|
|
147
150
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_datasets_body import ProjectIdDatasetsBody
|
|
148
151
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_endpoints_body import ProjectIdEndpointsBody
|
|
149
152
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_getapp_body import ProjectIdGetappBody
|
|
153
|
+
from lightning_sdk.lightning_cloud.openapi.models.project_id_incidents_body import ProjectIdIncidentsBody
|
|
150
154
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_invite_body import ProjectIdInviteBody
|
|
151
155
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_jobs_body import ProjectIdJobsBody
|
|
152
156
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_kubernetestemplates_body import ProjectIdKubernetestemplatesBody
|
|
@@ -352,6 +356,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_create_multi_part_upload_re
|
|
|
352
356
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_organization_request import V1CreateOrganizationRequest
|
|
353
357
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_pipeline_template_request import V1CreatePipelineTemplateRequest
|
|
354
358
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_project_request import V1CreateProjectRequest
|
|
359
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_create_sdk_command_history_request import V1CreateSDKCommandHistoryRequest
|
|
360
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_create_sdk_command_history_response import V1CreateSDKCommandHistoryResponse
|
|
355
361
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_ssh_public_key_request import V1CreateSSHPublicKeyRequest
|
|
356
362
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_server_alert_response import V1CreateServerAlertResponse
|
|
357
363
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_shared_metrics_stream_request import V1CreateSharedMetricsStreamRequest
|
|
@@ -392,6 +398,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_delete_deployment_release_r
|
|
|
392
398
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_deployment_response import V1DeleteDeploymentResponse
|
|
393
399
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_endpoint_response import V1DeleteEndpointResponse
|
|
394
400
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_git_credentials_response import V1DeleteGitCredentialsResponse
|
|
401
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_incident_message_response import V1DeleteIncidentMessageResponse
|
|
402
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_incident_response import V1DeleteIncidentResponse
|
|
395
403
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_index_response import V1DeleteIndexResponse
|
|
396
404
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_job_response import V1DeleteJobResponse
|
|
397
405
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_kubernetes_template_response import V1DeleteKubernetesTemplateResponse
|
|
@@ -519,6 +527,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_st
|
|
|
519
527
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_system_metrics_aggregate_response import V1GetCloudSpaceInstanceSystemMetricsAggregateResponse
|
|
520
528
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_required_balance_status_response import V1GetCloudSpaceRequiredBalanceStatusResponse
|
|
521
529
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_size_response import V1GetCloudSpaceSizeResponse
|
|
530
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_transfer_estimate_response import V1GetCloudSpaceTransferEstimateResponse
|
|
522
531
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cluster_accelerator_demand_response import V1GetClusterAcceleratorDemandResponse
|
|
523
532
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cluster_credentials_response import V1GetClusterCredentialsResponse
|
|
524
533
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cluster_health_response import V1GetClusterHealthResponse
|
|
@@ -561,6 +570,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_git_credentials import V1Gi
|
|
|
561
570
|
from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1 import V1GoogleCloudDirectV1
|
|
562
571
|
from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1_status import V1GoogleCloudDirectV1Status
|
|
563
572
|
from lightning_sdk.lightning_cloud.openapi.models.v1_group_node_metrics import V1GroupNodeMetrics
|
|
573
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_group_pod_metrics import V1GroupPodMetrics
|
|
564
574
|
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_login_request import V1GuestLoginRequest
|
|
565
575
|
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_login_response import V1GuestLoginResponse
|
|
566
576
|
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_user import V1GuestUser
|
|
@@ -570,7 +580,9 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_health_check_http_get impor
|
|
|
570
580
|
from lightning_sdk.lightning_cloud.openapi.models.v1_ids_logger_metrics import V1IdsLoggerMetrics
|
|
571
581
|
from lightning_sdk.lightning_cloud.openapi.models.v1_image_spec import V1ImageSpec
|
|
572
582
|
from lightning_sdk.lightning_cloud.openapi.models.v1_image_state import V1ImageState
|
|
583
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_incident import V1Incident
|
|
573
584
|
from lightning_sdk.lightning_cloud.openapi.models.v1_incident_event import V1IncidentEvent
|
|
585
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_incident_message import V1IncidentMessage
|
|
574
586
|
from lightning_sdk.lightning_cloud.openapi.models.v1_incident_severity import V1IncidentSeverity
|
|
575
587
|
from lightning_sdk.lightning_cloud.openapi.models.v1_incident_type import V1IncidentType
|
|
576
588
|
from lightning_sdk.lightning_cloud.openapi.models.v1_index import V1Index
|
|
@@ -593,6 +605,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_job_timing import V1JobTimi
|
|
|
593
605
|
from lightning_sdk.lightning_cloud.openapi.models.v1_job_type import V1JobType
|
|
594
606
|
from lightning_sdk.lightning_cloud.openapi.models.v1_joinable_organization import V1JoinableOrganization
|
|
595
607
|
from lightning_sdk.lightning_cloud.openapi.models.v1_k8s_incident_indexes import V1K8sIncidentIndexes
|
|
608
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_kai_scheduler_queue_metrics import V1KaiSchedulerQueueMetrics
|
|
596
609
|
from lightning_sdk.lightning_cloud.openapi.models.v1_keep_alive_cloud_space_instance_response import V1KeepAliveCloudSpaceInstanceResponse
|
|
597
610
|
from lightning_sdk.lightning_cloud.openapi.models.v1_knowledge_configuration import V1KnowledgeConfiguration
|
|
598
611
|
from lightning_sdk.lightning_cloud.openapi.models.v1_kubernetes_direct_v1 import V1KubernetesDirectV1
|
|
@@ -673,11 +686,15 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_filesystem_snowflake_r
|
|
|
673
686
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_gallery_components_response import V1ListGalleryComponentsResponse
|
|
674
687
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_gallery_lightningapps_response import V1ListGalleryLightningappsResponse
|
|
675
688
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_git_credentials_response import V1ListGitCredentialsResponse
|
|
689
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_group_pod_metrics_response import V1ListGroupPodMetricsResponse
|
|
676
690
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_incident_events_response import V1ListIncidentEventsResponse
|
|
691
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_incident_messages_response import V1ListIncidentMessagesResponse
|
|
692
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_incidents_response import V1ListIncidentsResponse
|
|
677
693
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_job_files_response import V1ListJobFilesResponse
|
|
678
694
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_job_resources_response import V1ListJobResourcesResponse
|
|
679
695
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_jobs_response import V1ListJobsResponse
|
|
680
696
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_joinable_organizations_response import V1ListJoinableOrganizationsResponse
|
|
697
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_kai_scheduler_queues_metrics_response import V1ListKaiSchedulerQueuesMetricsResponse
|
|
681
698
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_kubernetes_templates_response import V1ListKubernetesTemplatesResponse
|
|
682
699
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_lightning_run_response import V1ListLightningRunResponse
|
|
683
700
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_lightningapp_instance_artifacts_response import V1ListLightningappInstanceArtifactsResponse
|
|
@@ -890,6 +907,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_rule_condition import V1Rul
|
|
|
890
907
|
from lightning_sdk.lightning_cloud.openapi.models.v1_rule_effect import V1RuleEffect
|
|
891
908
|
from lightning_sdk.lightning_cloud.openapi.models.v1_rule_resource import V1RuleResource
|
|
892
909
|
from lightning_sdk.lightning_cloud.openapi.models.v1_s3_folder_data_connection import V1S3FolderDataConnection
|
|
910
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_sdk_command_history_severity import V1SDKCommandHistorySeverity
|
|
911
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_sdk_command_history_type import V1SDKCommandHistoryType
|
|
893
912
|
from lightning_sdk.lightning_cloud.openapi.models.v1_slurm_job import V1SLURMJob
|
|
894
913
|
from lightning_sdk.lightning_cloud.openapi.models.v1_ssh_key_pair import V1SSHKeyPair
|
|
895
914
|
from lightning_sdk.lightning_cloud.openapi.models.v1_ssh_public_key import V1SSHPublicKey
|
|
@@ -41,20 +41,46 @@ class CloudspaceIdVisibilityBody(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
|
"""CloudspaceIdVisibilityBody - 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 CloudspaceIdVisibilityBody. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The emails of this CloudspaceIdVisibilityBody. # 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 CloudspaceIdVisibilityBody.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param emails: The emails of this CloudspaceIdVisibilityBody. # 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 CloudspaceIdVisibilityBody. # noqa: E501
|
|
@@ -44,6 +44,8 @@ class ClusterIdMetricsBody(object):
|
|
|
44
44
|
'cluster_metrics': 'V1ClusterMetrics',
|
|
45
45
|
'container_metrics': 'list[V1ContainerMetrics]',
|
|
46
46
|
'group_node_metrics': 'list[V1GroupNodeMetrics]',
|
|
47
|
+
'group_pod_metrics': 'list[V1GroupPodMetrics]',
|
|
48
|
+
'kai_scheduler_queues_metrics': 'list[V1KaiSchedulerQueueMetrics]',
|
|
47
49
|
'namespace_metrics': 'list[V1NamespaceMetrics]',
|
|
48
50
|
'node_metrics': 'list[V1NodeMetrics]',
|
|
49
51
|
'pod_metrics': 'list[V1PodMetrics]'
|
|
@@ -53,16 +55,20 @@ class ClusterIdMetricsBody(object):
|
|
|
53
55
|
'cluster_metrics': 'clusterMetrics',
|
|
54
56
|
'container_metrics': 'containerMetrics',
|
|
55
57
|
'group_node_metrics': 'groupNodeMetrics',
|
|
58
|
+
'group_pod_metrics': 'groupPodMetrics',
|
|
59
|
+
'kai_scheduler_queues_metrics': 'kaiSchedulerQueuesMetrics',
|
|
56
60
|
'namespace_metrics': 'namespaceMetrics',
|
|
57
61
|
'node_metrics': 'nodeMetrics',
|
|
58
62
|
'pod_metrics': 'podMetrics'
|
|
59
63
|
}
|
|
60
64
|
|
|
61
|
-
def __init__(self, cluster_metrics: 'V1ClusterMetrics' =None, container_metrics: 'list[V1ContainerMetrics]' =None, group_node_metrics: 'list[V1GroupNodeMetrics]' =None, namespace_metrics: 'list[V1NamespaceMetrics]' =None, node_metrics: 'list[V1NodeMetrics]' =None, pod_metrics: 'list[V1PodMetrics]' =None): # noqa: E501
|
|
65
|
+
def __init__(self, cluster_metrics: 'V1ClusterMetrics' =None, container_metrics: 'list[V1ContainerMetrics]' =None, group_node_metrics: 'list[V1GroupNodeMetrics]' =None, group_pod_metrics: 'list[V1GroupPodMetrics]' =None, kai_scheduler_queues_metrics: 'list[V1KaiSchedulerQueueMetrics]' =None, namespace_metrics: 'list[V1NamespaceMetrics]' =None, node_metrics: 'list[V1NodeMetrics]' =None, pod_metrics: 'list[V1PodMetrics]' =None): # noqa: E501
|
|
62
66
|
"""ClusterIdMetricsBody - a model defined in Swagger""" # noqa: E501
|
|
63
67
|
self._cluster_metrics = None
|
|
64
68
|
self._container_metrics = None
|
|
65
69
|
self._group_node_metrics = None
|
|
70
|
+
self._group_pod_metrics = None
|
|
71
|
+
self._kai_scheduler_queues_metrics = None
|
|
66
72
|
self._namespace_metrics = None
|
|
67
73
|
self._node_metrics = None
|
|
68
74
|
self._pod_metrics = None
|
|
@@ -73,6 +79,10 @@ class ClusterIdMetricsBody(object):
|
|
|
73
79
|
self.container_metrics = container_metrics
|
|
74
80
|
if group_node_metrics is not None:
|
|
75
81
|
self.group_node_metrics = group_node_metrics
|
|
82
|
+
if group_pod_metrics is not None:
|
|
83
|
+
self.group_pod_metrics = group_pod_metrics
|
|
84
|
+
if kai_scheduler_queues_metrics is not None:
|
|
85
|
+
self.kai_scheduler_queues_metrics = kai_scheduler_queues_metrics
|
|
76
86
|
if namespace_metrics is not None:
|
|
77
87
|
self.namespace_metrics = namespace_metrics
|
|
78
88
|
if node_metrics is not None:
|
|
@@ -143,6 +153,48 @@ class ClusterIdMetricsBody(object):
|
|
|
143
153
|
|
|
144
154
|
self._group_node_metrics = group_node_metrics
|
|
145
155
|
|
|
156
|
+
@property
|
|
157
|
+
def group_pod_metrics(self) -> 'list[V1GroupPodMetrics]':
|
|
158
|
+
"""Gets the group_pod_metrics of this ClusterIdMetricsBody. # noqa: E501
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:return: The group_pod_metrics of this ClusterIdMetricsBody. # noqa: E501
|
|
162
|
+
:rtype: list[V1GroupPodMetrics]
|
|
163
|
+
"""
|
|
164
|
+
return self._group_pod_metrics
|
|
165
|
+
|
|
166
|
+
@group_pod_metrics.setter
|
|
167
|
+
def group_pod_metrics(self, group_pod_metrics: 'list[V1GroupPodMetrics]'):
|
|
168
|
+
"""Sets the group_pod_metrics of this ClusterIdMetricsBody.
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:param group_pod_metrics: The group_pod_metrics of this ClusterIdMetricsBody. # noqa: E501
|
|
172
|
+
:type: list[V1GroupPodMetrics]
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
self._group_pod_metrics = group_pod_metrics
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
def kai_scheduler_queues_metrics(self) -> 'list[V1KaiSchedulerQueueMetrics]':
|
|
179
|
+
"""Gets the kai_scheduler_queues_metrics of this ClusterIdMetricsBody. # noqa: E501
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:return: The kai_scheduler_queues_metrics of this ClusterIdMetricsBody. # noqa: E501
|
|
183
|
+
:rtype: list[V1KaiSchedulerQueueMetrics]
|
|
184
|
+
"""
|
|
185
|
+
return self._kai_scheduler_queues_metrics
|
|
186
|
+
|
|
187
|
+
@kai_scheduler_queues_metrics.setter
|
|
188
|
+
def kai_scheduler_queues_metrics(self, kai_scheduler_queues_metrics: 'list[V1KaiSchedulerQueueMetrics]'):
|
|
189
|
+
"""Sets the kai_scheduler_queues_metrics of this ClusterIdMetricsBody.
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
:param kai_scheduler_queues_metrics: The kai_scheduler_queues_metrics of this ClusterIdMetricsBody. # noqa: E501
|
|
193
|
+
:type: list[V1KaiSchedulerQueueMetrics]
|
|
194
|
+
"""
|
|
195
|
+
|
|
196
|
+
self._kai_scheduler_queues_metrics = kai_scheduler_queues_metrics
|
|
197
|
+
|
|
146
198
|
@property
|
|
147
199
|
def namespace_metrics(self) -> 'list[V1NamespaceMetrics]':
|
|
148
200
|
"""Gets the namespace_metrics of this ClusterIdMetricsBody. # noqa: E501
|
|
@@ -62,6 +62,7 @@ class DeploymentsIdBody(object):
|
|
|
62
62
|
'recipients': 'V1DeploymentAlertingRecipients',
|
|
63
63
|
'release_id': 'str',
|
|
64
64
|
'replicas': 'int',
|
|
65
|
+
'reuse_servers': 'bool',
|
|
65
66
|
'spec': 'V1JobSpec',
|
|
66
67
|
'status': 'V1DeploymentStatus',
|
|
67
68
|
'strategy': 'V1DeploymentStrategy',
|
|
@@ -94,6 +95,7 @@ class DeploymentsIdBody(object):
|
|
|
94
95
|
'recipients': 'recipients',
|
|
95
96
|
'release_id': 'releaseId',
|
|
96
97
|
'replicas': 'replicas',
|
|
98
|
+
'reuse_servers': 'reuseServers',
|
|
97
99
|
'spec': 'spec',
|
|
98
100
|
'status': 'status',
|
|
99
101
|
'strategy': 'strategy',
|
|
@@ -104,7 +106,7 @@ class DeploymentsIdBody(object):
|
|
|
104
106
|
'visibility': 'visibility'
|
|
105
107
|
}
|
|
106
108
|
|
|
107
|
-
def __init__(self, source: 'str' =None, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, assistant_id: 'str' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, current_state: 'V1DeploymentState' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, is_published: 'bool' =None, managed: 'bool' =None, managed_endpoint_id: 'str' =None, name: 'str' =None, oncall_notification: 'bool' =None, parameter_spec: 'V1ParameterizationSpec' =None, pipeline_id: 'str' =None, recipients: 'V1DeploymentAlertingRecipients' =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
|
|
109
|
+
def __init__(self, source: 'str' =None, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, assistant_id: 'str' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, current_state: 'V1DeploymentState' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, is_published: 'bool' =None, managed: 'bool' =None, managed_endpoint_id: 'str' =None, name: 'str' =None, oncall_notification: 'bool' =None, parameter_spec: 'V1ParameterizationSpec' =None, pipeline_id: 'str' =None, recipients: 'V1DeploymentAlertingRecipients' =None, release_id: 'str' =None, replicas: 'int' =None, reuse_servers: 'bool' =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
|
|
108
110
|
"""DeploymentsIdBody - a model defined in Swagger""" # noqa: E501
|
|
109
111
|
self._source = None
|
|
110
112
|
self._api_standard = None
|
|
@@ -127,6 +129,7 @@ class DeploymentsIdBody(object):
|
|
|
127
129
|
self._recipients = None
|
|
128
130
|
self._release_id = None
|
|
129
131
|
self._replicas = None
|
|
132
|
+
self._reuse_servers = None
|
|
130
133
|
self._spec = None
|
|
131
134
|
self._status = None
|
|
132
135
|
self._strategy = None
|
|
@@ -178,6 +181,8 @@ class DeploymentsIdBody(object):
|
|
|
178
181
|
self.release_id = release_id
|
|
179
182
|
if replicas is not None:
|
|
180
183
|
self.replicas = replicas
|
|
184
|
+
if reuse_servers is not None:
|
|
185
|
+
self.reuse_servers = reuse_servers
|
|
181
186
|
if spec is not None:
|
|
182
187
|
self.spec = spec
|
|
183
188
|
if status is not None:
|
|
@@ -636,6 +641,27 @@ class DeploymentsIdBody(object):
|
|
|
636
641
|
|
|
637
642
|
self._replicas = replicas
|
|
638
643
|
|
|
644
|
+
@property
|
|
645
|
+
def reuse_servers(self) -> 'bool':
|
|
646
|
+
"""Gets the reuse_servers of this DeploymentsIdBody. # noqa: E501
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
:return: The reuse_servers of this DeploymentsIdBody. # noqa: E501
|
|
650
|
+
:rtype: bool
|
|
651
|
+
"""
|
|
652
|
+
return self._reuse_servers
|
|
653
|
+
|
|
654
|
+
@reuse_servers.setter
|
|
655
|
+
def reuse_servers(self, reuse_servers: 'bool'):
|
|
656
|
+
"""Sets the reuse_servers of this DeploymentsIdBody.
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
:param reuse_servers: The reuse_servers of this DeploymentsIdBody. # noqa: E501
|
|
660
|
+
:type: bool
|
|
661
|
+
"""
|
|
662
|
+
|
|
663
|
+
self._reuse_servers = reuse_servers
|
|
664
|
+
|
|
639
665
|
@property
|
|
640
666
|
def spec(self) -> 'V1JobSpec':
|
|
641
667
|
"""Gets the spec of this DeploymentsIdBody. # noqa: E501
|
|
@@ -58,6 +58,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
58
58
|
'jupyterlab_url': 'str',
|
|
59
59
|
'phase': 'V1CloudSpaceInstanceState',
|
|
60
60
|
'price': 'float',
|
|
61
|
+
'private_ip_address': 'str',
|
|
62
|
+
'public_ip_address': 'str',
|
|
61
63
|
'ssh_host': 'str',
|
|
62
64
|
'ssh_port': 'int',
|
|
63
65
|
'ssh_username': 'str',
|
|
@@ -92,6 +94,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
92
94
|
'jupyterlab_url': 'jupyterlabUrl',
|
|
93
95
|
'phase': 'phase',
|
|
94
96
|
'price': 'price',
|
|
97
|
+
'private_ip_address': 'privateIpAddress',
|
|
98
|
+
'public_ip_address': 'publicIpAddress',
|
|
95
99
|
'ssh_host': 'sshHost',
|
|
96
100
|
'ssh_port': 'sshPort',
|
|
97
101
|
'ssh_username': 'sshUsername',
|
|
@@ -108,7 +112,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
108
112
|
'vscode_url': 'vscodeUrl'
|
|
109
113
|
}
|
|
110
114
|
|
|
111
|
-
def __init__(self, alerts: 'list[V1ServerAlert]' =None, app_url: 'str' =None, bytes_to_sync: '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, files_to_sync: 'str' =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_last_updated: 'datetime' =None, termination_time: 'datetime' =None, transfer_metadata: 'V1CloudSpaceTransferMetadata' =None, vscode_url: 'str' =None): # noqa: E501
|
|
115
|
+
def __init__(self, alerts: 'list[V1ServerAlert]' =None, app_url: 'str' =None, bytes_to_sync: '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, files_to_sync: 'str' =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, private_ip_address: 'str' =None, public_ip_address: 'str' =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_last_updated: 'datetime' =None, termination_time: 'datetime' =None, transfer_metadata: 'V1CloudSpaceTransferMetadata' =None, vscode_url: 'str' =None): # noqa: E501
|
|
112
116
|
"""Externalv1CloudSpaceInstanceStatus - a model defined in Swagger""" # noqa: E501
|
|
113
117
|
self._alerts = None
|
|
114
118
|
self._app_url = None
|
|
@@ -127,6 +131,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
127
131
|
self._jupyterlab_url = None
|
|
128
132
|
self._phase = None
|
|
129
133
|
self._price = None
|
|
134
|
+
self._private_ip_address = None
|
|
135
|
+
self._public_ip_address = None
|
|
130
136
|
self._ssh_host = None
|
|
131
137
|
self._ssh_port = None
|
|
132
138
|
self._ssh_username = None
|
|
@@ -176,6 +182,10 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
176
182
|
self.phase = phase
|
|
177
183
|
if price is not None:
|
|
178
184
|
self.price = price
|
|
185
|
+
if private_ip_address is not None:
|
|
186
|
+
self.private_ip_address = private_ip_address
|
|
187
|
+
if public_ip_address is not None:
|
|
188
|
+
self.public_ip_address = public_ip_address
|
|
179
189
|
if ssh_host is not None:
|
|
180
190
|
self.ssh_host = ssh_host
|
|
181
191
|
if ssh_port is not None:
|
|
@@ -562,6 +572,48 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
562
572
|
|
|
563
573
|
self._price = price
|
|
564
574
|
|
|
575
|
+
@property
|
|
576
|
+
def private_ip_address(self) -> 'str':
|
|
577
|
+
"""Gets the private_ip_address of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
:return: The private_ip_address of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
581
|
+
:rtype: str
|
|
582
|
+
"""
|
|
583
|
+
return self._private_ip_address
|
|
584
|
+
|
|
585
|
+
@private_ip_address.setter
|
|
586
|
+
def private_ip_address(self, private_ip_address: 'str'):
|
|
587
|
+
"""Sets the private_ip_address of this Externalv1CloudSpaceInstanceStatus.
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
:param private_ip_address: The private_ip_address of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
591
|
+
:type: str
|
|
592
|
+
"""
|
|
593
|
+
|
|
594
|
+
self._private_ip_address = private_ip_address
|
|
595
|
+
|
|
596
|
+
@property
|
|
597
|
+
def public_ip_address(self) -> 'str':
|
|
598
|
+
"""Gets the public_ip_address of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
:return: The public_ip_address of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
602
|
+
:rtype: str
|
|
603
|
+
"""
|
|
604
|
+
return self._public_ip_address
|
|
605
|
+
|
|
606
|
+
@public_ip_address.setter
|
|
607
|
+
def public_ip_address(self, public_ip_address: 'str'):
|
|
608
|
+
"""Sets the public_ip_address of this Externalv1CloudSpaceInstanceStatus.
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
:param public_ip_address: The public_ip_address of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
612
|
+
:type: str
|
|
613
|
+
"""
|
|
614
|
+
|
|
615
|
+
self._public_ip_address = public_ip_address
|
|
616
|
+
|
|
565
617
|
@property
|
|
566
618
|
def ssh_host(self) -> 'str':
|
|
567
619
|
"""Gets the ssh_host of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
@@ -41,20 +41,72 @@ class IdTransferBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'compute_config': 'V1UserRequestedComputeConfig',
|
|
45
|
+
'start_after_transfer': 'bool',
|
|
44
46
|
'target_cluster_id': 'str'
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
attribute_map = {
|
|
50
|
+
'compute_config': 'computeConfig',
|
|
51
|
+
'start_after_transfer': 'startAfterTransfer',
|
|
48
52
|
'target_cluster_id': 'targetClusterId'
|
|
49
53
|
}
|
|
50
54
|
|
|
51
|
-
def __init__(self, target_cluster_id: 'str' =None): # noqa: E501
|
|
55
|
+
def __init__(self, compute_config: 'V1UserRequestedComputeConfig' =None, start_after_transfer: 'bool' =None, target_cluster_id: 'str' =None): # noqa: E501
|
|
52
56
|
"""IdTransferBody - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._compute_config = None
|
|
58
|
+
self._start_after_transfer = None
|
|
53
59
|
self._target_cluster_id = None
|
|
54
60
|
self.discriminator = None
|
|
61
|
+
if compute_config is not None:
|
|
62
|
+
self.compute_config = compute_config
|
|
63
|
+
if start_after_transfer is not None:
|
|
64
|
+
self.start_after_transfer = start_after_transfer
|
|
55
65
|
if target_cluster_id is not None:
|
|
56
66
|
self.target_cluster_id = target_cluster_id
|
|
57
67
|
|
|
68
|
+
@property
|
|
69
|
+
def compute_config(self) -> 'V1UserRequestedComputeConfig':
|
|
70
|
+
"""Gets the compute_config of this IdTransferBody. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The compute_config of this IdTransferBody. # noqa: E501
|
|
74
|
+
:rtype: V1UserRequestedComputeConfig
|
|
75
|
+
"""
|
|
76
|
+
return self._compute_config
|
|
77
|
+
|
|
78
|
+
@compute_config.setter
|
|
79
|
+
def compute_config(self, compute_config: 'V1UserRequestedComputeConfig'):
|
|
80
|
+
"""Sets the compute_config of this IdTransferBody.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param compute_config: The compute_config of this IdTransferBody. # noqa: E501
|
|
84
|
+
:type: V1UserRequestedComputeConfig
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._compute_config = compute_config
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def start_after_transfer(self) -> 'bool':
|
|
91
|
+
"""Gets the start_after_transfer of this IdTransferBody. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The start_after_transfer of this IdTransferBody. # noqa: E501
|
|
95
|
+
:rtype: bool
|
|
96
|
+
"""
|
|
97
|
+
return self._start_after_transfer
|
|
98
|
+
|
|
99
|
+
@start_after_transfer.setter
|
|
100
|
+
def start_after_transfer(self, start_after_transfer: 'bool'):
|
|
101
|
+
"""Sets the start_after_transfer of this IdTransferBody.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param start_after_transfer: The start_after_transfer of this IdTransferBody. # noqa: E501
|
|
105
|
+
:type: bool
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._start_after_transfer = start_after_transfer
|
|
109
|
+
|
|
58
110
|
@property
|
|
59
111
|
def target_cluster_id(self) -> 'str':
|
|
60
112
|
"""Gets the target_cluster_id of this IdTransferBody. # noqa: E501
|