lightning-sdk 2025.12.17__py3-none-any.whl → 2026.1.22__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/__version__.py +1 -1
- lightning_sdk/api/k8s_api.py +75 -29
- lightning_sdk/api/studio_api.py +195 -33
- lightning_sdk/api/teamspace_api.py +28 -9
- lightning_sdk/cli/cp/__init__.py +64 -0
- lightning_sdk/cli/entrypoint.py +2 -0
- lightning_sdk/cli/groups.py +22 -0
- lightning_sdk/cli/legacy/clusters_menu.py +2 -2
- lightning_sdk/cli/legacy/deploy/_auth.py +7 -6
- lightning_sdk/cli/legacy/run.py +13 -2
- lightning_sdk/cli/studio/__init__.py +4 -0
- lightning_sdk/cli/studio/cp.py +20 -64
- lightning_sdk/cli/studio/ls.py +57 -0
- lightning_sdk/cli/studio/rm.py +71 -0
- lightning_sdk/cli/utils/logging.py +2 -1
- lightning_sdk/cli/utils/studio_filesystem.py +65 -0
- lightning_sdk/cli/utils/teamspace_selection.py +5 -0
- lightning_sdk/exceptions.py +4 -0
- lightning_sdk/job/base.py +1 -1
- lightning_sdk/k8s_cluster.py +9 -10
- lightning_sdk/lightning_cloud/__version__.py +1 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +29 -11
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +268 -123
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +246 -19
- lightning_sdk/lightning_cloud/openapi/api/lightningwork_service_api.py +116 -11
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +588 -2
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/{kubernetes_virtual_machine_service_api.py → virtual_machine_service_api.py} +82 -82
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +28 -10
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_cluster_capacity_reservation_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_machine_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_org_cluster_capacity_reservation_body.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_report_machine_system_metrics_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_create_lit_logger_media_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_lit_logger_media_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_metrics_stream_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_reservation_used_by.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +53 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_logger_media_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_org_cluster_capacity_reservation_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_ai_pod_v1.py → v1_cudo_direct_v1.py} +51 -51
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_kubernetes_virtual_machine_response.py → v1_delete_lit_logger_media_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{kubernetes_virtual_machine_service_update_kubernetes_virtual_machine_body.py → v1_delete_virtual_machine_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_kubernetes_pod_logs_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_get_machine_response.py → v1_get_kubernetes_pod_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_setting.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod_logs_page.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_config.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_response.py +43 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_sort_order.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_logger_media_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_models_response.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_kubernetes_virtual_machines_response.py → v1_list_virtual_machines_response.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_logger_media.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +27 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_media_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_idle_state_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_machine_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_tenant_credentials.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -131
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubernetes_virtual_machine.py → v1_virtual_machine.py} +94 -68
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_vm_configuration.py → v1_vm_configuration.py} +20 -20
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_provider_configuration.py → v1_vm_provider_configuration.py} +32 -32
- lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_create_virtual_machine_body.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_update_virtual_machine_body.py +97 -0
- lightning_sdk/lightning_cloud/rest_client.py +0 -2
- lightning_sdk/machine.py +3 -3
- lightning_sdk/studio.py +14 -4
- lightning_sdk/utils/logging.py +2 -1
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/METADATA +1 -5
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/RECORD +95 -75
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/WHEEL +1 -1
- lightning_sdk/lightning_cloud/cli/__main__.py +0 -29
- lightning_sdk/lightning_cloud/openapi/models/kubernetes_virtual_machine_service_create_kubernetes_virtual_machine_body.py +0 -513
- lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_vm_resources.py +0 -201
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +0 -103
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/top_level.txt +0 -0
|
@@ -1741,6 +1741,8 @@ class ModelsStoreApi(object):
|
|
|
1741
1741
|
:param async_req bool
|
|
1742
1742
|
:param str project_id: (required)
|
|
1743
1743
|
:param str name:
|
|
1744
|
+
:param str page_token:
|
|
1745
|
+
:param int limit:
|
|
1744
1746
|
:return: V1ListModelsResponse
|
|
1745
1747
|
If the method is called asynchronously,
|
|
1746
1748
|
returns the request thread.
|
|
@@ -1763,12 +1765,14 @@ class ModelsStoreApi(object):
|
|
|
1763
1765
|
:param async_req bool
|
|
1764
1766
|
:param str project_id: (required)
|
|
1765
1767
|
:param str name:
|
|
1768
|
+
:param str page_token:
|
|
1769
|
+
:param int limit:
|
|
1766
1770
|
:return: V1ListModelsResponse
|
|
1767
1771
|
If the method is called asynchronously,
|
|
1768
1772
|
returns the request thread.
|
|
1769
1773
|
"""
|
|
1770
1774
|
|
|
1771
|
-
all_params = ['project_id', 'name'] # noqa: E501
|
|
1775
|
+
all_params = ['project_id', 'name', 'page_token', 'limit'] # noqa: E501
|
|
1772
1776
|
all_params.append('async_req')
|
|
1773
1777
|
all_params.append('_return_http_data_only')
|
|
1774
1778
|
all_params.append('_preload_content')
|
|
@@ -1797,6 +1801,10 @@ class ModelsStoreApi(object):
|
|
|
1797
1801
|
query_params = []
|
|
1798
1802
|
if 'name' in params:
|
|
1799
1803
|
query_params.append(('name', params['name'])) # noqa: E501
|
|
1804
|
+
if 'page_token' in params:
|
|
1805
|
+
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
1806
|
+
if 'limit' in params:
|
|
1807
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
1800
1808
|
|
|
1801
1809
|
header_params = {}
|
|
1802
1810
|
|
|
@@ -31,7 +31,7 @@ if TYPE_CHECKING:
|
|
|
31
31
|
from datetime import datetime
|
|
32
32
|
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class VirtualMachineServiceApi(object):
|
|
35
35
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
36
36
|
|
|
37
37
|
Do not edit the class manually.
|
|
@@ -43,40 +43,40 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
43
43
|
api_client = ApiClient()
|
|
44
44
|
self.api_client = api_client
|
|
45
45
|
|
|
46
|
-
def
|
|
47
|
-
"""
|
|
46
|
+
def virtual_machine_service_create_virtual_machine(self, body: 'VirtualMachineServiceCreateVirtualMachineBody', cluster_id: 'str', **kwargs) -> 'V1VirtualMachine': # noqa: E501
|
|
47
|
+
"""virtual_machine_service_create_virtual_machine # noqa: E501
|
|
48
48
|
|
|
49
49
|
This method makes a synchronous HTTP request by default. To make an
|
|
50
50
|
asynchronous HTTP request, please pass async_req=True
|
|
51
|
-
>>> thread = api.
|
|
51
|
+
>>> thread = api.virtual_machine_service_create_virtual_machine(body, cluster_id, async_req=True)
|
|
52
52
|
>>> result = thread.get()
|
|
53
53
|
|
|
54
54
|
:param async_req bool
|
|
55
|
-
:param
|
|
56
|
-
:param str cluster_id: (required)
|
|
57
|
-
:return:
|
|
55
|
+
:param VirtualMachineServiceCreateVirtualMachineBody body: (required)
|
|
56
|
+
:param str cluster_id: In which Cluster you should create the CloudSpace (required)
|
|
57
|
+
:return: V1VirtualMachine
|
|
58
58
|
If the method is called asynchronously,
|
|
59
59
|
returns the request thread.
|
|
60
60
|
"""
|
|
61
61
|
kwargs['_return_http_data_only'] = True
|
|
62
62
|
if kwargs.get('async_req'):
|
|
63
|
-
return self.
|
|
63
|
+
return self.virtual_machine_service_create_virtual_machine_with_http_info(body, cluster_id, **kwargs) # noqa: E501
|
|
64
64
|
else:
|
|
65
|
-
(data) = self.
|
|
65
|
+
(data) = self.virtual_machine_service_create_virtual_machine_with_http_info(body, cluster_id, **kwargs) # noqa: E501
|
|
66
66
|
return data
|
|
67
67
|
|
|
68
|
-
def
|
|
69
|
-
"""
|
|
68
|
+
def virtual_machine_service_create_virtual_machine_with_http_info(self, body: 'VirtualMachineServiceCreateVirtualMachineBody', cluster_id: 'str', **kwargs) -> 'V1VirtualMachine': # noqa: E501
|
|
69
|
+
"""virtual_machine_service_create_virtual_machine # noqa: E501
|
|
70
70
|
|
|
71
71
|
This method makes a synchronous HTTP request by default. To make an
|
|
72
72
|
asynchronous HTTP request, please pass async_req=True
|
|
73
|
-
>>> thread = api.
|
|
73
|
+
>>> thread = api.virtual_machine_service_create_virtual_machine_with_http_info(body, cluster_id, async_req=True)
|
|
74
74
|
>>> result = thread.get()
|
|
75
75
|
|
|
76
76
|
:param async_req bool
|
|
77
|
-
:param
|
|
78
|
-
:param str cluster_id: (required)
|
|
79
|
-
:return:
|
|
77
|
+
:param VirtualMachineServiceCreateVirtualMachineBody body: (required)
|
|
78
|
+
:param str cluster_id: In which Cluster you should create the CloudSpace (required)
|
|
79
|
+
:return: V1VirtualMachine
|
|
80
80
|
If the method is called asynchronously,
|
|
81
81
|
returns the request thread.
|
|
82
82
|
"""
|
|
@@ -92,18 +92,18 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
92
92
|
if key not in all_params:
|
|
93
93
|
raise TypeError(
|
|
94
94
|
"Got an unexpected keyword argument '%s'"
|
|
95
|
-
" to method
|
|
95
|
+
" to method virtual_machine_service_create_virtual_machine" % key
|
|
96
96
|
)
|
|
97
97
|
params[key] = val
|
|
98
98
|
del params['kwargs']
|
|
99
99
|
# verify the required parameter 'body' is set
|
|
100
100
|
if ('body' not in params or
|
|
101
101
|
params['body'] is None):
|
|
102
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
102
|
+
raise ValueError("Missing the required parameter `body` when calling `virtual_machine_service_create_virtual_machine`") # noqa: E501
|
|
103
103
|
# verify the required parameter 'cluster_id' is set
|
|
104
104
|
if ('cluster_id' not in params or
|
|
105
105
|
params['cluster_id'] is None):
|
|
106
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `
|
|
106
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `virtual_machine_service_create_virtual_machine`") # noqa: E501
|
|
107
107
|
|
|
108
108
|
collection_formats = {}
|
|
109
109
|
|
|
@@ -133,14 +133,14 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
133
133
|
auth_settings = [] # noqa: E501
|
|
134
134
|
|
|
135
135
|
return self.api_client.call_api(
|
|
136
|
-
'/v1/
|
|
136
|
+
'/v1/clusters/{clusterId}/virtual-machines', 'POST',
|
|
137
137
|
path_params,
|
|
138
138
|
query_params,
|
|
139
139
|
header_params,
|
|
140
140
|
body=body_params,
|
|
141
141
|
post_params=form_params,
|
|
142
142
|
files=local_var_files,
|
|
143
|
-
response_type='
|
|
143
|
+
response_type='V1VirtualMachine', # noqa: E501
|
|
144
144
|
auth_settings=auth_settings,
|
|
145
145
|
async_req=params.get('async_req'),
|
|
146
146
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -148,40 +148,40 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
148
148
|
_request_timeout=params.get('_request_timeout'),
|
|
149
149
|
collection_formats=collection_formats)
|
|
150
150
|
|
|
151
|
-
def
|
|
152
|
-
"""
|
|
151
|
+
def virtual_machine_service_delete_virtual_machine(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteVirtualMachineResponse': # noqa: E501
|
|
152
|
+
"""virtual_machine_service_delete_virtual_machine # noqa: E501
|
|
153
153
|
|
|
154
154
|
This method makes a synchronous HTTP request by default. To make an
|
|
155
155
|
asynchronous HTTP request, please pass async_req=True
|
|
156
|
-
>>> thread = api.
|
|
156
|
+
>>> thread = api.virtual_machine_service_delete_virtual_machine(cluster_id, id, async_req=True)
|
|
157
157
|
>>> result = thread.get()
|
|
158
158
|
|
|
159
159
|
:param async_req bool
|
|
160
160
|
:param str cluster_id: (required)
|
|
161
161
|
:param str id: (required)
|
|
162
|
-
:return:
|
|
162
|
+
:return: V1DeleteVirtualMachineResponse
|
|
163
163
|
If the method is called asynchronously,
|
|
164
164
|
returns the request thread.
|
|
165
165
|
"""
|
|
166
166
|
kwargs['_return_http_data_only'] = True
|
|
167
167
|
if kwargs.get('async_req'):
|
|
168
|
-
return self.
|
|
168
|
+
return self.virtual_machine_service_delete_virtual_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
169
169
|
else:
|
|
170
|
-
(data) = self.
|
|
170
|
+
(data) = self.virtual_machine_service_delete_virtual_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
171
171
|
return data
|
|
172
172
|
|
|
173
|
-
def
|
|
174
|
-
"""
|
|
173
|
+
def virtual_machine_service_delete_virtual_machine_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteVirtualMachineResponse': # noqa: E501
|
|
174
|
+
"""virtual_machine_service_delete_virtual_machine # noqa: E501
|
|
175
175
|
|
|
176
176
|
This method makes a synchronous HTTP request by default. To make an
|
|
177
177
|
asynchronous HTTP request, please pass async_req=True
|
|
178
|
-
>>> thread = api.
|
|
178
|
+
>>> thread = api.virtual_machine_service_delete_virtual_machine_with_http_info(cluster_id, id, async_req=True)
|
|
179
179
|
>>> result = thread.get()
|
|
180
180
|
|
|
181
181
|
:param async_req bool
|
|
182
182
|
:param str cluster_id: (required)
|
|
183
183
|
:param str id: (required)
|
|
184
|
-
:return:
|
|
184
|
+
:return: V1DeleteVirtualMachineResponse
|
|
185
185
|
If the method is called asynchronously,
|
|
186
186
|
returns the request thread.
|
|
187
187
|
"""
|
|
@@ -197,18 +197,18 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
197
197
|
if key not in all_params:
|
|
198
198
|
raise TypeError(
|
|
199
199
|
"Got an unexpected keyword argument '%s'"
|
|
200
|
-
" to method
|
|
200
|
+
" to method virtual_machine_service_delete_virtual_machine" % key
|
|
201
201
|
)
|
|
202
202
|
params[key] = val
|
|
203
203
|
del params['kwargs']
|
|
204
204
|
# verify the required parameter 'cluster_id' is set
|
|
205
205
|
if ('cluster_id' not in params or
|
|
206
206
|
params['cluster_id'] is None):
|
|
207
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `
|
|
207
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `virtual_machine_service_delete_virtual_machine`") # noqa: E501
|
|
208
208
|
# verify the required parameter 'id' is set
|
|
209
209
|
if ('id' not in params or
|
|
210
210
|
params['id'] is None):
|
|
211
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
211
|
+
raise ValueError("Missing the required parameter `id` when calling `virtual_machine_service_delete_virtual_machine`") # noqa: E501
|
|
212
212
|
|
|
213
213
|
collection_formats = {}
|
|
214
214
|
|
|
@@ -234,14 +234,14 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
234
234
|
auth_settings = [] # noqa: E501
|
|
235
235
|
|
|
236
236
|
return self.api_client.call_api(
|
|
237
|
-
'/v1/
|
|
237
|
+
'/v1/clusters/{clusterId}/virtual-machines/{id}', 'DELETE',
|
|
238
238
|
path_params,
|
|
239
239
|
query_params,
|
|
240
240
|
header_params,
|
|
241
241
|
body=body_params,
|
|
242
242
|
post_params=form_params,
|
|
243
243
|
files=local_var_files,
|
|
244
|
-
response_type='
|
|
244
|
+
response_type='V1DeleteVirtualMachineResponse', # noqa: E501
|
|
245
245
|
auth_settings=auth_settings,
|
|
246
246
|
async_req=params.get('async_req'),
|
|
247
247
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -249,40 +249,40 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
249
249
|
_request_timeout=params.get('_request_timeout'),
|
|
250
250
|
collection_formats=collection_formats)
|
|
251
251
|
|
|
252
|
-
def
|
|
253
|
-
"""
|
|
252
|
+
def virtual_machine_service_get_virtual_machine(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1VirtualMachine': # noqa: E501
|
|
253
|
+
"""virtual_machine_service_get_virtual_machine # noqa: E501
|
|
254
254
|
|
|
255
255
|
This method makes a synchronous HTTP request by default. To make an
|
|
256
256
|
asynchronous HTTP request, please pass async_req=True
|
|
257
|
-
>>> thread = api.
|
|
257
|
+
>>> thread = api.virtual_machine_service_get_virtual_machine(cluster_id, id, async_req=True)
|
|
258
258
|
>>> result = thread.get()
|
|
259
259
|
|
|
260
260
|
:param async_req bool
|
|
261
261
|
:param str cluster_id: (required)
|
|
262
262
|
:param str id: (required)
|
|
263
|
-
:return:
|
|
263
|
+
:return: V1VirtualMachine
|
|
264
264
|
If the method is called asynchronously,
|
|
265
265
|
returns the request thread.
|
|
266
266
|
"""
|
|
267
267
|
kwargs['_return_http_data_only'] = True
|
|
268
268
|
if kwargs.get('async_req'):
|
|
269
|
-
return self.
|
|
269
|
+
return self.virtual_machine_service_get_virtual_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
270
270
|
else:
|
|
271
|
-
(data) = self.
|
|
271
|
+
(data) = self.virtual_machine_service_get_virtual_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
272
272
|
return data
|
|
273
273
|
|
|
274
|
-
def
|
|
275
|
-
"""
|
|
274
|
+
def virtual_machine_service_get_virtual_machine_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1VirtualMachine': # noqa: E501
|
|
275
|
+
"""virtual_machine_service_get_virtual_machine # noqa: E501
|
|
276
276
|
|
|
277
277
|
This method makes a synchronous HTTP request by default. To make an
|
|
278
278
|
asynchronous HTTP request, please pass async_req=True
|
|
279
|
-
>>> thread = api.
|
|
279
|
+
>>> thread = api.virtual_machine_service_get_virtual_machine_with_http_info(cluster_id, id, async_req=True)
|
|
280
280
|
>>> result = thread.get()
|
|
281
281
|
|
|
282
282
|
:param async_req bool
|
|
283
283
|
:param str cluster_id: (required)
|
|
284
284
|
:param str id: (required)
|
|
285
|
-
:return:
|
|
285
|
+
:return: V1VirtualMachine
|
|
286
286
|
If the method is called asynchronously,
|
|
287
287
|
returns the request thread.
|
|
288
288
|
"""
|
|
@@ -298,18 +298,18 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
298
298
|
if key not in all_params:
|
|
299
299
|
raise TypeError(
|
|
300
300
|
"Got an unexpected keyword argument '%s'"
|
|
301
|
-
" to method
|
|
301
|
+
" to method virtual_machine_service_get_virtual_machine" % key
|
|
302
302
|
)
|
|
303
303
|
params[key] = val
|
|
304
304
|
del params['kwargs']
|
|
305
305
|
# verify the required parameter 'cluster_id' is set
|
|
306
306
|
if ('cluster_id' not in params or
|
|
307
307
|
params['cluster_id'] is None):
|
|
308
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `
|
|
308
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `virtual_machine_service_get_virtual_machine`") # noqa: E501
|
|
309
309
|
# verify the required parameter 'id' is set
|
|
310
310
|
if ('id' not in params or
|
|
311
311
|
params['id'] is None):
|
|
312
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
312
|
+
raise ValueError("Missing the required parameter `id` when calling `virtual_machine_service_get_virtual_machine`") # noqa: E501
|
|
313
313
|
|
|
314
314
|
collection_formats = {}
|
|
315
315
|
|
|
@@ -335,14 +335,14 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
335
335
|
auth_settings = [] # noqa: E501
|
|
336
336
|
|
|
337
337
|
return self.api_client.call_api(
|
|
338
|
-
'/v1/
|
|
338
|
+
'/v1/clusters/{clusterId}/virtual-machines/{id}', 'GET',
|
|
339
339
|
path_params,
|
|
340
340
|
query_params,
|
|
341
341
|
header_params,
|
|
342
342
|
body=body_params,
|
|
343
343
|
post_params=form_params,
|
|
344
344
|
files=local_var_files,
|
|
345
|
-
response_type='
|
|
345
|
+
response_type='V1VirtualMachine', # noqa: E501
|
|
346
346
|
auth_settings=auth_settings,
|
|
347
347
|
async_req=params.get('async_req'),
|
|
348
348
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -350,38 +350,38 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
350
350
|
_request_timeout=params.get('_request_timeout'),
|
|
351
351
|
collection_formats=collection_formats)
|
|
352
352
|
|
|
353
|
-
def
|
|
354
|
-
"""
|
|
353
|
+
def virtual_machine_service_list_virtual_machines(self, cluster_id: 'str', **kwargs) -> 'V1ListVirtualMachinesResponse': # noqa: E501
|
|
354
|
+
"""virtual_machine_service_list_virtual_machines # noqa: E501
|
|
355
355
|
|
|
356
356
|
This method makes a synchronous HTTP request by default. To make an
|
|
357
357
|
asynchronous HTTP request, please pass async_req=True
|
|
358
|
-
>>> thread = api.
|
|
358
|
+
>>> thread = api.virtual_machine_service_list_virtual_machines(cluster_id, async_req=True)
|
|
359
359
|
>>> result = thread.get()
|
|
360
360
|
|
|
361
361
|
:param async_req bool
|
|
362
362
|
:param str cluster_id: (required)
|
|
363
|
-
:return:
|
|
363
|
+
:return: V1ListVirtualMachinesResponse
|
|
364
364
|
If the method is called asynchronously,
|
|
365
365
|
returns the request thread.
|
|
366
366
|
"""
|
|
367
367
|
kwargs['_return_http_data_only'] = True
|
|
368
368
|
if kwargs.get('async_req'):
|
|
369
|
-
return self.
|
|
369
|
+
return self.virtual_machine_service_list_virtual_machines_with_http_info(cluster_id, **kwargs) # noqa: E501
|
|
370
370
|
else:
|
|
371
|
-
(data) = self.
|
|
371
|
+
(data) = self.virtual_machine_service_list_virtual_machines_with_http_info(cluster_id, **kwargs) # noqa: E501
|
|
372
372
|
return data
|
|
373
373
|
|
|
374
|
-
def
|
|
375
|
-
"""
|
|
374
|
+
def virtual_machine_service_list_virtual_machines_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListVirtualMachinesResponse': # noqa: E501
|
|
375
|
+
"""virtual_machine_service_list_virtual_machines # noqa: E501
|
|
376
376
|
|
|
377
377
|
This method makes a synchronous HTTP request by default. To make an
|
|
378
378
|
asynchronous HTTP request, please pass async_req=True
|
|
379
|
-
>>> thread = api.
|
|
379
|
+
>>> thread = api.virtual_machine_service_list_virtual_machines_with_http_info(cluster_id, async_req=True)
|
|
380
380
|
>>> result = thread.get()
|
|
381
381
|
|
|
382
382
|
:param async_req bool
|
|
383
383
|
:param str cluster_id: (required)
|
|
384
|
-
:return:
|
|
384
|
+
:return: V1ListVirtualMachinesResponse
|
|
385
385
|
If the method is called asynchronously,
|
|
386
386
|
returns the request thread.
|
|
387
387
|
"""
|
|
@@ -397,14 +397,14 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
397
397
|
if key not in all_params:
|
|
398
398
|
raise TypeError(
|
|
399
399
|
"Got an unexpected keyword argument '%s'"
|
|
400
|
-
" to method
|
|
400
|
+
" to method virtual_machine_service_list_virtual_machines" % key
|
|
401
401
|
)
|
|
402
402
|
params[key] = val
|
|
403
403
|
del params['kwargs']
|
|
404
404
|
# verify the required parameter 'cluster_id' is set
|
|
405
405
|
if ('cluster_id' not in params or
|
|
406
406
|
params['cluster_id'] is None):
|
|
407
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `
|
|
407
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `virtual_machine_service_list_virtual_machines`") # noqa: E501
|
|
408
408
|
|
|
409
409
|
collection_formats = {}
|
|
410
410
|
|
|
@@ -428,14 +428,14 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
428
428
|
auth_settings = [] # noqa: E501
|
|
429
429
|
|
|
430
430
|
return self.api_client.call_api(
|
|
431
|
-
'/v1/
|
|
431
|
+
'/v1/clusters/{clusterId}/virtual-machines', 'GET',
|
|
432
432
|
path_params,
|
|
433
433
|
query_params,
|
|
434
434
|
header_params,
|
|
435
435
|
body=body_params,
|
|
436
436
|
post_params=form_params,
|
|
437
437
|
files=local_var_files,
|
|
438
|
-
response_type='
|
|
438
|
+
response_type='V1ListVirtualMachinesResponse', # noqa: E501
|
|
439
439
|
auth_settings=auth_settings,
|
|
440
440
|
async_req=params.get('async_req'),
|
|
441
441
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -443,42 +443,42 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
443
443
|
_request_timeout=params.get('_request_timeout'),
|
|
444
444
|
collection_formats=collection_formats)
|
|
445
445
|
|
|
446
|
-
def
|
|
447
|
-
"""
|
|
446
|
+
def virtual_machine_service_update_virtual_machine(self, body: 'VirtualMachineServiceUpdateVirtualMachineBody', cluster_id: 'str', id: 'str', **kwargs) -> 'V1VirtualMachine': # noqa: E501
|
|
447
|
+
"""virtual_machine_service_update_virtual_machine # noqa: E501
|
|
448
448
|
|
|
449
449
|
This method makes a synchronous HTTP request by default. To make an
|
|
450
450
|
asynchronous HTTP request, please pass async_req=True
|
|
451
|
-
>>> thread = api.
|
|
451
|
+
>>> thread = api.virtual_machine_service_update_virtual_machine(body, cluster_id, id, async_req=True)
|
|
452
452
|
>>> result = thread.get()
|
|
453
453
|
|
|
454
454
|
:param async_req bool
|
|
455
|
-
:param
|
|
455
|
+
:param VirtualMachineServiceUpdateVirtualMachineBody body: (required)
|
|
456
456
|
:param str cluster_id: (required)
|
|
457
457
|
:param str id: TODO: What field can we update? (required)
|
|
458
|
-
:return:
|
|
458
|
+
:return: V1VirtualMachine
|
|
459
459
|
If the method is called asynchronously,
|
|
460
460
|
returns the request thread.
|
|
461
461
|
"""
|
|
462
462
|
kwargs['_return_http_data_only'] = True
|
|
463
463
|
if kwargs.get('async_req'):
|
|
464
|
-
return self.
|
|
464
|
+
return self.virtual_machine_service_update_virtual_machine_with_http_info(body, cluster_id, id, **kwargs) # noqa: E501
|
|
465
465
|
else:
|
|
466
|
-
(data) = self.
|
|
466
|
+
(data) = self.virtual_machine_service_update_virtual_machine_with_http_info(body, cluster_id, id, **kwargs) # noqa: E501
|
|
467
467
|
return data
|
|
468
468
|
|
|
469
|
-
def
|
|
470
|
-
"""
|
|
469
|
+
def virtual_machine_service_update_virtual_machine_with_http_info(self, body: 'VirtualMachineServiceUpdateVirtualMachineBody', cluster_id: 'str', id: 'str', **kwargs) -> 'V1VirtualMachine': # noqa: E501
|
|
470
|
+
"""virtual_machine_service_update_virtual_machine # noqa: E501
|
|
471
471
|
|
|
472
472
|
This method makes a synchronous HTTP request by default. To make an
|
|
473
473
|
asynchronous HTTP request, please pass async_req=True
|
|
474
|
-
>>> thread = api.
|
|
474
|
+
>>> thread = api.virtual_machine_service_update_virtual_machine_with_http_info(body, cluster_id, id, async_req=True)
|
|
475
475
|
>>> result = thread.get()
|
|
476
476
|
|
|
477
477
|
:param async_req bool
|
|
478
|
-
:param
|
|
478
|
+
:param VirtualMachineServiceUpdateVirtualMachineBody body: (required)
|
|
479
479
|
:param str cluster_id: (required)
|
|
480
480
|
:param str id: TODO: What field can we update? (required)
|
|
481
|
-
:return:
|
|
481
|
+
:return: V1VirtualMachine
|
|
482
482
|
If the method is called asynchronously,
|
|
483
483
|
returns the request thread.
|
|
484
484
|
"""
|
|
@@ -494,22 +494,22 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
494
494
|
if key not in all_params:
|
|
495
495
|
raise TypeError(
|
|
496
496
|
"Got an unexpected keyword argument '%s'"
|
|
497
|
-
" to method
|
|
497
|
+
" to method virtual_machine_service_update_virtual_machine" % key
|
|
498
498
|
)
|
|
499
499
|
params[key] = val
|
|
500
500
|
del params['kwargs']
|
|
501
501
|
# verify the required parameter 'body' is set
|
|
502
502
|
if ('body' not in params or
|
|
503
503
|
params['body'] is None):
|
|
504
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
504
|
+
raise ValueError("Missing the required parameter `body` when calling `virtual_machine_service_update_virtual_machine`") # noqa: E501
|
|
505
505
|
# verify the required parameter 'cluster_id' is set
|
|
506
506
|
if ('cluster_id' not in params or
|
|
507
507
|
params['cluster_id'] is None):
|
|
508
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `
|
|
508
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `virtual_machine_service_update_virtual_machine`") # noqa: E501
|
|
509
509
|
# verify the required parameter 'id' is set
|
|
510
510
|
if ('id' not in params or
|
|
511
511
|
params['id'] is None):
|
|
512
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
512
|
+
raise ValueError("Missing the required parameter `id` when calling `virtual_machine_service_update_virtual_machine`") # noqa: E501
|
|
513
513
|
|
|
514
514
|
collection_formats = {}
|
|
515
515
|
|
|
@@ -541,14 +541,14 @@ class KubernetesVirtualMachineServiceApi(object):
|
|
|
541
541
|
auth_settings = [] # noqa: E501
|
|
542
542
|
|
|
543
543
|
return self.api_client.call_api(
|
|
544
|
-
'/v1/
|
|
544
|
+
'/v1/clusters/{clusterId}/virtual-machines/{id}', 'PUT',
|
|
545
545
|
path_params,
|
|
546
546
|
query_params,
|
|
547
547
|
header_params,
|
|
548
548
|
body=body_params,
|
|
549
549
|
post_params=form_params,
|
|
550
550
|
files=local_var_files,
|
|
551
|
-
response_type='
|
|
551
|
+
response_type='V1VirtualMachine', # noqa: E501
|
|
552
552
|
auth_settings=auth_settings,
|
|
553
553
|
async_req=params.get('async_req'),
|
|
554
554
|
_return_http_data_only=params.get('_return_http_data_only'),
|