lightning-sdk 0.1.31__py3-none-any.whl → 0.1.33__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 -1
- lightning_sdk/ai_hub.py +110 -0
- lightning_sdk/api/__init__.py +2 -0
- lightning_sdk/api/ai_hub_api.py +61 -0
- lightning_sdk/api/studio_api.py +15 -8
- lightning_sdk/api/user_api.py +8 -2
- lightning_sdk/api/utils.py +8 -1
- lightning_sdk/cli/upload.py +10 -6
- lightning_sdk/lightning_cloud/openapi/__init__.py +26 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +101 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +25 -0
- lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_shared_metrics_stream_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_app.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/validate.py +81 -3
- lightning_sdk/lightning_cloud/rest_client.py +2 -0
- lightning_sdk/studio.py +6 -5
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/RECORD +71 -43
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,674 @@
|
|
|
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 FileSystemServiceApi(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 file_system_service_list_filesystem_apps(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemAppsResponse': # noqa: E501
|
|
47
|
+
"""file_system_service_list_filesystem_apps # 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.file_system_service_list_filesystem_apps(project_id, current_id, async_req=True)
|
|
52
|
+
>>> result = thread.get()
|
|
53
|
+
|
|
54
|
+
:param async_req bool
|
|
55
|
+
:param str project_id: (required)
|
|
56
|
+
:param str current_id: (required)
|
|
57
|
+
:param str cluster_id:
|
|
58
|
+
:return: V1ListFilesystemAppsResponse
|
|
59
|
+
If the method is called asynchronously,
|
|
60
|
+
returns the request thread.
|
|
61
|
+
"""
|
|
62
|
+
kwargs['_return_http_data_only'] = True
|
|
63
|
+
if kwargs.get('async_req'):
|
|
64
|
+
return self.file_system_service_list_filesystem_apps_with_http_info(project_id, current_id, **kwargs) # noqa: E501
|
|
65
|
+
else:
|
|
66
|
+
(data) = self.file_system_service_list_filesystem_apps_with_http_info(project_id, current_id, **kwargs) # noqa: E501
|
|
67
|
+
return data
|
|
68
|
+
|
|
69
|
+
def file_system_service_list_filesystem_apps_with_http_info(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemAppsResponse': # noqa: E501
|
|
70
|
+
"""file_system_service_list_filesystem_apps # noqa: E501
|
|
71
|
+
|
|
72
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
73
|
+
asynchronous HTTP request, please pass async_req=True
|
|
74
|
+
>>> thread = api.file_system_service_list_filesystem_apps_with_http_info(project_id, current_id, async_req=True)
|
|
75
|
+
>>> result = thread.get()
|
|
76
|
+
|
|
77
|
+
:param async_req bool
|
|
78
|
+
:param str project_id: (required)
|
|
79
|
+
:param str current_id: (required)
|
|
80
|
+
:param str cluster_id:
|
|
81
|
+
:return: V1ListFilesystemAppsResponse
|
|
82
|
+
If the method is called asynchronously,
|
|
83
|
+
returns the request thread.
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
all_params = ['project_id', 'current_id', 'cluster_id'] # noqa: E501
|
|
87
|
+
all_params.append('async_req')
|
|
88
|
+
all_params.append('_return_http_data_only')
|
|
89
|
+
all_params.append('_preload_content')
|
|
90
|
+
all_params.append('_request_timeout')
|
|
91
|
+
|
|
92
|
+
params = locals()
|
|
93
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
94
|
+
if key not in all_params:
|
|
95
|
+
raise TypeError(
|
|
96
|
+
"Got an unexpected keyword argument '%s'"
|
|
97
|
+
" to method file_system_service_list_filesystem_apps" % key
|
|
98
|
+
)
|
|
99
|
+
params[key] = val
|
|
100
|
+
del params['kwargs']
|
|
101
|
+
# verify the required parameter 'project_id' is set
|
|
102
|
+
if ('project_id' not in params or
|
|
103
|
+
params['project_id'] is None):
|
|
104
|
+
raise ValueError("Missing the required parameter `project_id` when calling `file_system_service_list_filesystem_apps`") # noqa: E501
|
|
105
|
+
# verify the required parameter 'current_id' is set
|
|
106
|
+
if ('current_id' not in params or
|
|
107
|
+
params['current_id'] is None):
|
|
108
|
+
raise ValueError("Missing the required parameter `current_id` when calling `file_system_service_list_filesystem_apps`") # noqa: E501
|
|
109
|
+
|
|
110
|
+
collection_formats = {}
|
|
111
|
+
|
|
112
|
+
path_params = {}
|
|
113
|
+
if 'project_id' in params:
|
|
114
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
115
|
+
if 'current_id' in params:
|
|
116
|
+
path_params['currentId'] = params['current_id'] # noqa: E501
|
|
117
|
+
|
|
118
|
+
query_params = []
|
|
119
|
+
if 'cluster_id' in params:
|
|
120
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
121
|
+
|
|
122
|
+
header_params = {}
|
|
123
|
+
|
|
124
|
+
form_params = []
|
|
125
|
+
local_var_files = {}
|
|
126
|
+
|
|
127
|
+
body_params = None
|
|
128
|
+
# HTTP header `Accept`
|
|
129
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
130
|
+
['application/json']) # noqa: E501
|
|
131
|
+
|
|
132
|
+
# Authentication setting
|
|
133
|
+
auth_settings = [] # noqa: E501
|
|
134
|
+
|
|
135
|
+
return self.api_client.call_api(
|
|
136
|
+
'/v1/filesystem/{projectId}/apps/{currentId}', 'GET',
|
|
137
|
+
path_params,
|
|
138
|
+
query_params,
|
|
139
|
+
header_params,
|
|
140
|
+
body=body_params,
|
|
141
|
+
post_params=form_params,
|
|
142
|
+
files=local_var_files,
|
|
143
|
+
response_type='V1ListFilesystemAppsResponse', # noqa: E501
|
|
144
|
+
auth_settings=auth_settings,
|
|
145
|
+
async_req=params.get('async_req'),
|
|
146
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
147
|
+
_preload_content=params.get('_preload_content', True),
|
|
148
|
+
_request_timeout=params.get('_request_timeout'),
|
|
149
|
+
collection_formats=collection_formats)
|
|
150
|
+
|
|
151
|
+
def file_system_service_list_filesystem_cloud_spaces(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemCloudSpacesResponse': # noqa: E501
|
|
152
|
+
"""file_system_service_list_filesystem_cloud_spaces # noqa: E501
|
|
153
|
+
|
|
154
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
155
|
+
asynchronous HTTP request, please pass async_req=True
|
|
156
|
+
>>> thread = api.file_system_service_list_filesystem_cloud_spaces(project_id, current_id, async_req=True)
|
|
157
|
+
>>> result = thread.get()
|
|
158
|
+
|
|
159
|
+
:param async_req bool
|
|
160
|
+
:param str project_id: (required)
|
|
161
|
+
:param str current_id: (required)
|
|
162
|
+
:param str cluster_id:
|
|
163
|
+
:return: V1ListFilesystemCloudSpacesResponse
|
|
164
|
+
If the method is called asynchronously,
|
|
165
|
+
returns the request thread.
|
|
166
|
+
"""
|
|
167
|
+
kwargs['_return_http_data_only'] = True
|
|
168
|
+
if kwargs.get('async_req'):
|
|
169
|
+
return self.file_system_service_list_filesystem_cloud_spaces_with_http_info(project_id, current_id, **kwargs) # noqa: E501
|
|
170
|
+
else:
|
|
171
|
+
(data) = self.file_system_service_list_filesystem_cloud_spaces_with_http_info(project_id, current_id, **kwargs) # noqa: E501
|
|
172
|
+
return data
|
|
173
|
+
|
|
174
|
+
def file_system_service_list_filesystem_cloud_spaces_with_http_info(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemCloudSpacesResponse': # noqa: E501
|
|
175
|
+
"""file_system_service_list_filesystem_cloud_spaces # noqa: E501
|
|
176
|
+
|
|
177
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
178
|
+
asynchronous HTTP request, please pass async_req=True
|
|
179
|
+
>>> thread = api.file_system_service_list_filesystem_cloud_spaces_with_http_info(project_id, current_id, async_req=True)
|
|
180
|
+
>>> result = thread.get()
|
|
181
|
+
|
|
182
|
+
:param async_req bool
|
|
183
|
+
:param str project_id: (required)
|
|
184
|
+
:param str current_id: (required)
|
|
185
|
+
:param str cluster_id:
|
|
186
|
+
:return: V1ListFilesystemCloudSpacesResponse
|
|
187
|
+
If the method is called asynchronously,
|
|
188
|
+
returns the request thread.
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
all_params = ['project_id', 'current_id', 'cluster_id'] # noqa: E501
|
|
192
|
+
all_params.append('async_req')
|
|
193
|
+
all_params.append('_return_http_data_only')
|
|
194
|
+
all_params.append('_preload_content')
|
|
195
|
+
all_params.append('_request_timeout')
|
|
196
|
+
|
|
197
|
+
params = locals()
|
|
198
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
199
|
+
if key not in all_params:
|
|
200
|
+
raise TypeError(
|
|
201
|
+
"Got an unexpected keyword argument '%s'"
|
|
202
|
+
" to method file_system_service_list_filesystem_cloud_spaces" % key
|
|
203
|
+
)
|
|
204
|
+
params[key] = val
|
|
205
|
+
del params['kwargs']
|
|
206
|
+
# verify the required parameter 'project_id' is set
|
|
207
|
+
if ('project_id' not in params or
|
|
208
|
+
params['project_id'] is None):
|
|
209
|
+
raise ValueError("Missing the required parameter `project_id` when calling `file_system_service_list_filesystem_cloud_spaces`") # noqa: E501
|
|
210
|
+
# verify the required parameter 'current_id' is set
|
|
211
|
+
if ('current_id' not in params or
|
|
212
|
+
params['current_id'] is None):
|
|
213
|
+
raise ValueError("Missing the required parameter `current_id` when calling `file_system_service_list_filesystem_cloud_spaces`") # noqa: E501
|
|
214
|
+
|
|
215
|
+
collection_formats = {}
|
|
216
|
+
|
|
217
|
+
path_params = {}
|
|
218
|
+
if 'project_id' in params:
|
|
219
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
220
|
+
if 'current_id' in params:
|
|
221
|
+
path_params['currentId'] = params['current_id'] # noqa: E501
|
|
222
|
+
|
|
223
|
+
query_params = []
|
|
224
|
+
if 'cluster_id' in params:
|
|
225
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
226
|
+
|
|
227
|
+
header_params = {}
|
|
228
|
+
|
|
229
|
+
form_params = []
|
|
230
|
+
local_var_files = {}
|
|
231
|
+
|
|
232
|
+
body_params = None
|
|
233
|
+
# HTTP header `Accept`
|
|
234
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
235
|
+
['application/json']) # noqa: E501
|
|
236
|
+
|
|
237
|
+
# Authentication setting
|
|
238
|
+
auth_settings = [] # noqa: E501
|
|
239
|
+
|
|
240
|
+
return self.api_client.call_api(
|
|
241
|
+
'/v1/filesystem/{projectId}/cloudspaces/{currentId}', 'GET',
|
|
242
|
+
path_params,
|
|
243
|
+
query_params,
|
|
244
|
+
header_params,
|
|
245
|
+
body=body_params,
|
|
246
|
+
post_params=form_params,
|
|
247
|
+
files=local_var_files,
|
|
248
|
+
response_type='V1ListFilesystemCloudSpacesResponse', # noqa: E501
|
|
249
|
+
auth_settings=auth_settings,
|
|
250
|
+
async_req=params.get('async_req'),
|
|
251
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
252
|
+
_preload_content=params.get('_preload_content', True),
|
|
253
|
+
_request_timeout=params.get('_request_timeout'),
|
|
254
|
+
collection_formats=collection_formats)
|
|
255
|
+
|
|
256
|
+
def file_system_service_list_filesystem_datasets(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemDatasetsResponse': # noqa: E501
|
|
257
|
+
"""file_system_service_list_filesystem_datasets # noqa: E501
|
|
258
|
+
|
|
259
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
260
|
+
asynchronous HTTP request, please pass async_req=True
|
|
261
|
+
>>> thread = api.file_system_service_list_filesystem_datasets(project_id, current_id, async_req=True)
|
|
262
|
+
>>> result = thread.get()
|
|
263
|
+
|
|
264
|
+
:param async_req bool
|
|
265
|
+
:param str project_id: (required)
|
|
266
|
+
:param str current_id: (required)
|
|
267
|
+
:param str cluster_id:
|
|
268
|
+
:return: V1ListFilesystemDatasetsResponse
|
|
269
|
+
If the method is called asynchronously,
|
|
270
|
+
returns the request thread.
|
|
271
|
+
"""
|
|
272
|
+
kwargs['_return_http_data_only'] = True
|
|
273
|
+
if kwargs.get('async_req'):
|
|
274
|
+
return self.file_system_service_list_filesystem_datasets_with_http_info(project_id, current_id, **kwargs) # noqa: E501
|
|
275
|
+
else:
|
|
276
|
+
(data) = self.file_system_service_list_filesystem_datasets_with_http_info(project_id, current_id, **kwargs) # noqa: E501
|
|
277
|
+
return data
|
|
278
|
+
|
|
279
|
+
def file_system_service_list_filesystem_datasets_with_http_info(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemDatasetsResponse': # noqa: E501
|
|
280
|
+
"""file_system_service_list_filesystem_datasets # noqa: E501
|
|
281
|
+
|
|
282
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
283
|
+
asynchronous HTTP request, please pass async_req=True
|
|
284
|
+
>>> thread = api.file_system_service_list_filesystem_datasets_with_http_info(project_id, current_id, async_req=True)
|
|
285
|
+
>>> result = thread.get()
|
|
286
|
+
|
|
287
|
+
:param async_req bool
|
|
288
|
+
:param str project_id: (required)
|
|
289
|
+
:param str current_id: (required)
|
|
290
|
+
:param str cluster_id:
|
|
291
|
+
:return: V1ListFilesystemDatasetsResponse
|
|
292
|
+
If the method is called asynchronously,
|
|
293
|
+
returns the request thread.
|
|
294
|
+
"""
|
|
295
|
+
|
|
296
|
+
all_params = ['project_id', 'current_id', 'cluster_id'] # noqa: E501
|
|
297
|
+
all_params.append('async_req')
|
|
298
|
+
all_params.append('_return_http_data_only')
|
|
299
|
+
all_params.append('_preload_content')
|
|
300
|
+
all_params.append('_request_timeout')
|
|
301
|
+
|
|
302
|
+
params = locals()
|
|
303
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
304
|
+
if key not in all_params:
|
|
305
|
+
raise TypeError(
|
|
306
|
+
"Got an unexpected keyword argument '%s'"
|
|
307
|
+
" to method file_system_service_list_filesystem_datasets" % key
|
|
308
|
+
)
|
|
309
|
+
params[key] = val
|
|
310
|
+
del params['kwargs']
|
|
311
|
+
# verify the required parameter 'project_id' is set
|
|
312
|
+
if ('project_id' not in params or
|
|
313
|
+
params['project_id'] is None):
|
|
314
|
+
raise ValueError("Missing the required parameter `project_id` when calling `file_system_service_list_filesystem_datasets`") # noqa: E501
|
|
315
|
+
# verify the required parameter 'current_id' is set
|
|
316
|
+
if ('current_id' not in params or
|
|
317
|
+
params['current_id'] is None):
|
|
318
|
+
raise ValueError("Missing the required parameter `current_id` when calling `file_system_service_list_filesystem_datasets`") # noqa: E501
|
|
319
|
+
|
|
320
|
+
collection_formats = {}
|
|
321
|
+
|
|
322
|
+
path_params = {}
|
|
323
|
+
if 'project_id' in params:
|
|
324
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
325
|
+
if 'current_id' in params:
|
|
326
|
+
path_params['currentId'] = params['current_id'] # noqa: E501
|
|
327
|
+
|
|
328
|
+
query_params = []
|
|
329
|
+
if 'cluster_id' in params:
|
|
330
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
331
|
+
|
|
332
|
+
header_params = {}
|
|
333
|
+
|
|
334
|
+
form_params = []
|
|
335
|
+
local_var_files = {}
|
|
336
|
+
|
|
337
|
+
body_params = None
|
|
338
|
+
# HTTP header `Accept`
|
|
339
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
340
|
+
['application/json']) # noqa: E501
|
|
341
|
+
|
|
342
|
+
# Authentication setting
|
|
343
|
+
auth_settings = [] # noqa: E501
|
|
344
|
+
|
|
345
|
+
return self.api_client.call_api(
|
|
346
|
+
'/v1/filesystem/{projectId}/datasets/{currentId}', 'GET',
|
|
347
|
+
path_params,
|
|
348
|
+
query_params,
|
|
349
|
+
header_params,
|
|
350
|
+
body=body_params,
|
|
351
|
+
post_params=form_params,
|
|
352
|
+
files=local_var_files,
|
|
353
|
+
response_type='V1ListFilesystemDatasetsResponse', # noqa: E501
|
|
354
|
+
auth_settings=auth_settings,
|
|
355
|
+
async_req=params.get('async_req'),
|
|
356
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
357
|
+
_preload_content=params.get('_preload_content', True),
|
|
358
|
+
_request_timeout=params.get('_request_timeout'),
|
|
359
|
+
collection_formats=collection_formats)
|
|
360
|
+
|
|
361
|
+
def file_system_service_list_filesystem_jobs(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemJobsResponse': # noqa: E501
|
|
362
|
+
"""file_system_service_list_filesystem_jobs # noqa: E501
|
|
363
|
+
|
|
364
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
365
|
+
asynchronous HTTP request, please pass async_req=True
|
|
366
|
+
>>> thread = api.file_system_service_list_filesystem_jobs(project_id, current_id, async_req=True)
|
|
367
|
+
>>> result = thread.get()
|
|
368
|
+
|
|
369
|
+
:param async_req bool
|
|
370
|
+
:param str project_id: (required)
|
|
371
|
+
:param str current_id: (required)
|
|
372
|
+
:param str cluster_id:
|
|
373
|
+
:return: V1ListFilesystemJobsResponse
|
|
374
|
+
If the method is called asynchronously,
|
|
375
|
+
returns the request thread.
|
|
376
|
+
"""
|
|
377
|
+
kwargs['_return_http_data_only'] = True
|
|
378
|
+
if kwargs.get('async_req'):
|
|
379
|
+
return self.file_system_service_list_filesystem_jobs_with_http_info(project_id, current_id, **kwargs) # noqa: E501
|
|
380
|
+
else:
|
|
381
|
+
(data) = self.file_system_service_list_filesystem_jobs_with_http_info(project_id, current_id, **kwargs) # noqa: E501
|
|
382
|
+
return data
|
|
383
|
+
|
|
384
|
+
def file_system_service_list_filesystem_jobs_with_http_info(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemJobsResponse': # noqa: E501
|
|
385
|
+
"""file_system_service_list_filesystem_jobs # noqa: E501
|
|
386
|
+
|
|
387
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
388
|
+
asynchronous HTTP request, please pass async_req=True
|
|
389
|
+
>>> thread = api.file_system_service_list_filesystem_jobs_with_http_info(project_id, current_id, async_req=True)
|
|
390
|
+
>>> result = thread.get()
|
|
391
|
+
|
|
392
|
+
:param async_req bool
|
|
393
|
+
:param str project_id: (required)
|
|
394
|
+
:param str current_id: (required)
|
|
395
|
+
:param str cluster_id:
|
|
396
|
+
:return: V1ListFilesystemJobsResponse
|
|
397
|
+
If the method is called asynchronously,
|
|
398
|
+
returns the request thread.
|
|
399
|
+
"""
|
|
400
|
+
|
|
401
|
+
all_params = ['project_id', 'current_id', 'cluster_id'] # noqa: E501
|
|
402
|
+
all_params.append('async_req')
|
|
403
|
+
all_params.append('_return_http_data_only')
|
|
404
|
+
all_params.append('_preload_content')
|
|
405
|
+
all_params.append('_request_timeout')
|
|
406
|
+
|
|
407
|
+
params = locals()
|
|
408
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
409
|
+
if key not in all_params:
|
|
410
|
+
raise TypeError(
|
|
411
|
+
"Got an unexpected keyword argument '%s'"
|
|
412
|
+
" to method file_system_service_list_filesystem_jobs" % key
|
|
413
|
+
)
|
|
414
|
+
params[key] = val
|
|
415
|
+
del params['kwargs']
|
|
416
|
+
# verify the required parameter 'project_id' is set
|
|
417
|
+
if ('project_id' not in params or
|
|
418
|
+
params['project_id'] is None):
|
|
419
|
+
raise ValueError("Missing the required parameter `project_id` when calling `file_system_service_list_filesystem_jobs`") # noqa: E501
|
|
420
|
+
# verify the required parameter 'current_id' is set
|
|
421
|
+
if ('current_id' not in params or
|
|
422
|
+
params['current_id'] is None):
|
|
423
|
+
raise ValueError("Missing the required parameter `current_id` when calling `file_system_service_list_filesystem_jobs`") # noqa: E501
|
|
424
|
+
|
|
425
|
+
collection_formats = {}
|
|
426
|
+
|
|
427
|
+
path_params = {}
|
|
428
|
+
if 'project_id' in params:
|
|
429
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
430
|
+
if 'current_id' in params:
|
|
431
|
+
path_params['currentId'] = params['current_id'] # noqa: E501
|
|
432
|
+
|
|
433
|
+
query_params = []
|
|
434
|
+
if 'cluster_id' in params:
|
|
435
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
436
|
+
|
|
437
|
+
header_params = {}
|
|
438
|
+
|
|
439
|
+
form_params = []
|
|
440
|
+
local_var_files = {}
|
|
441
|
+
|
|
442
|
+
body_params = None
|
|
443
|
+
# HTTP header `Accept`
|
|
444
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
445
|
+
['application/json']) # noqa: E501
|
|
446
|
+
|
|
447
|
+
# Authentication setting
|
|
448
|
+
auth_settings = [] # noqa: E501
|
|
449
|
+
|
|
450
|
+
return self.api_client.call_api(
|
|
451
|
+
'/v1/filesystem/{projectId}/jobs/{currentId}', 'GET',
|
|
452
|
+
path_params,
|
|
453
|
+
query_params,
|
|
454
|
+
header_params,
|
|
455
|
+
body=body_params,
|
|
456
|
+
post_params=form_params,
|
|
457
|
+
files=local_var_files,
|
|
458
|
+
response_type='V1ListFilesystemJobsResponse', # noqa: E501
|
|
459
|
+
auth_settings=auth_settings,
|
|
460
|
+
async_req=params.get('async_req'),
|
|
461
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
462
|
+
_preload_content=params.get('_preload_content', True),
|
|
463
|
+
_request_timeout=params.get('_request_timeout'),
|
|
464
|
+
collection_formats=collection_formats)
|
|
465
|
+
|
|
466
|
+
def file_system_service_list_filesystem_slurm_jobs(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemSlurmJobsResponse': # noqa: E501
|
|
467
|
+
"""file_system_service_list_filesystem_slurm_jobs # noqa: E501
|
|
468
|
+
|
|
469
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
470
|
+
asynchronous HTTP request, please pass async_req=True
|
|
471
|
+
>>> thread = api.file_system_service_list_filesystem_slurm_jobs(project_id, current_id, async_req=True)
|
|
472
|
+
>>> result = thread.get()
|
|
473
|
+
|
|
474
|
+
:param async_req bool
|
|
475
|
+
:param str project_id: (required)
|
|
476
|
+
:param str current_id: (required)
|
|
477
|
+
:param str cluster_id:
|
|
478
|
+
:return: V1ListFilesystemSlurmJobsResponse
|
|
479
|
+
If the method is called asynchronously,
|
|
480
|
+
returns the request thread.
|
|
481
|
+
"""
|
|
482
|
+
kwargs['_return_http_data_only'] = True
|
|
483
|
+
if kwargs.get('async_req'):
|
|
484
|
+
return self.file_system_service_list_filesystem_slurm_jobs_with_http_info(project_id, current_id, **kwargs) # noqa: E501
|
|
485
|
+
else:
|
|
486
|
+
(data) = self.file_system_service_list_filesystem_slurm_jobs_with_http_info(project_id, current_id, **kwargs) # noqa: E501
|
|
487
|
+
return data
|
|
488
|
+
|
|
489
|
+
def file_system_service_list_filesystem_slurm_jobs_with_http_info(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemSlurmJobsResponse': # noqa: E501
|
|
490
|
+
"""file_system_service_list_filesystem_slurm_jobs # noqa: E501
|
|
491
|
+
|
|
492
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
493
|
+
asynchronous HTTP request, please pass async_req=True
|
|
494
|
+
>>> thread = api.file_system_service_list_filesystem_slurm_jobs_with_http_info(project_id, current_id, async_req=True)
|
|
495
|
+
>>> result = thread.get()
|
|
496
|
+
|
|
497
|
+
:param async_req bool
|
|
498
|
+
:param str project_id: (required)
|
|
499
|
+
:param str current_id: (required)
|
|
500
|
+
:param str cluster_id:
|
|
501
|
+
:return: V1ListFilesystemSlurmJobsResponse
|
|
502
|
+
If the method is called asynchronously,
|
|
503
|
+
returns the request thread.
|
|
504
|
+
"""
|
|
505
|
+
|
|
506
|
+
all_params = ['project_id', 'current_id', 'cluster_id'] # noqa: E501
|
|
507
|
+
all_params.append('async_req')
|
|
508
|
+
all_params.append('_return_http_data_only')
|
|
509
|
+
all_params.append('_preload_content')
|
|
510
|
+
all_params.append('_request_timeout')
|
|
511
|
+
|
|
512
|
+
params = locals()
|
|
513
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
514
|
+
if key not in all_params:
|
|
515
|
+
raise TypeError(
|
|
516
|
+
"Got an unexpected keyword argument '%s'"
|
|
517
|
+
" to method file_system_service_list_filesystem_slurm_jobs" % key
|
|
518
|
+
)
|
|
519
|
+
params[key] = val
|
|
520
|
+
del params['kwargs']
|
|
521
|
+
# verify the required parameter 'project_id' is set
|
|
522
|
+
if ('project_id' not in params or
|
|
523
|
+
params['project_id'] is None):
|
|
524
|
+
raise ValueError("Missing the required parameter `project_id` when calling `file_system_service_list_filesystem_slurm_jobs`") # noqa: E501
|
|
525
|
+
# verify the required parameter 'current_id' is set
|
|
526
|
+
if ('current_id' not in params or
|
|
527
|
+
params['current_id'] is None):
|
|
528
|
+
raise ValueError("Missing the required parameter `current_id` when calling `file_system_service_list_filesystem_slurm_jobs`") # noqa: E501
|
|
529
|
+
|
|
530
|
+
collection_formats = {}
|
|
531
|
+
|
|
532
|
+
path_params = {}
|
|
533
|
+
if 'project_id' in params:
|
|
534
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
535
|
+
if 'current_id' in params:
|
|
536
|
+
path_params['currentId'] = params['current_id'] # noqa: E501
|
|
537
|
+
|
|
538
|
+
query_params = []
|
|
539
|
+
if 'cluster_id' in params:
|
|
540
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
541
|
+
|
|
542
|
+
header_params = {}
|
|
543
|
+
|
|
544
|
+
form_params = []
|
|
545
|
+
local_var_files = {}
|
|
546
|
+
|
|
547
|
+
body_params = None
|
|
548
|
+
# HTTP header `Accept`
|
|
549
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
550
|
+
['application/json']) # noqa: E501
|
|
551
|
+
|
|
552
|
+
# Authentication setting
|
|
553
|
+
auth_settings = [] # noqa: E501
|
|
554
|
+
|
|
555
|
+
return self.api_client.call_api(
|
|
556
|
+
'/v1/filesystem/{projectId}/slurm/{currentId}', 'GET',
|
|
557
|
+
path_params,
|
|
558
|
+
query_params,
|
|
559
|
+
header_params,
|
|
560
|
+
body=body_params,
|
|
561
|
+
post_params=form_params,
|
|
562
|
+
files=local_var_files,
|
|
563
|
+
response_type='V1ListFilesystemSlurmJobsResponse', # noqa: E501
|
|
564
|
+
auth_settings=auth_settings,
|
|
565
|
+
async_req=params.get('async_req'),
|
|
566
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
567
|
+
_preload_content=params.get('_preload_content', True),
|
|
568
|
+
_request_timeout=params.get('_request_timeout'),
|
|
569
|
+
collection_formats=collection_formats)
|
|
570
|
+
|
|
571
|
+
def file_system_service_list_filesystem_snowflake(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemSnowflakeResponse': # noqa: E501
|
|
572
|
+
"""file_system_service_list_filesystem_snowflake # noqa: E501
|
|
573
|
+
|
|
574
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
575
|
+
asynchronous HTTP request, please pass async_req=True
|
|
576
|
+
>>> thread = api.file_system_service_list_filesystem_snowflake(project_id, current_id, async_req=True)
|
|
577
|
+
>>> result = thread.get()
|
|
578
|
+
|
|
579
|
+
:param async_req bool
|
|
580
|
+
:param str project_id: (required)
|
|
581
|
+
:param str current_id: (required)
|
|
582
|
+
:param str cluster_id:
|
|
583
|
+
:return: V1ListFilesystemSnowflakeResponse
|
|
584
|
+
If the method is called asynchronously,
|
|
585
|
+
returns the request thread.
|
|
586
|
+
"""
|
|
587
|
+
kwargs['_return_http_data_only'] = True
|
|
588
|
+
if kwargs.get('async_req'):
|
|
589
|
+
return self.file_system_service_list_filesystem_snowflake_with_http_info(project_id, current_id, **kwargs) # noqa: E501
|
|
590
|
+
else:
|
|
591
|
+
(data) = self.file_system_service_list_filesystem_snowflake_with_http_info(project_id, current_id, **kwargs) # noqa: E501
|
|
592
|
+
return data
|
|
593
|
+
|
|
594
|
+
def file_system_service_list_filesystem_snowflake_with_http_info(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemSnowflakeResponse': # noqa: E501
|
|
595
|
+
"""file_system_service_list_filesystem_snowflake # noqa: E501
|
|
596
|
+
|
|
597
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
598
|
+
asynchronous HTTP request, please pass async_req=True
|
|
599
|
+
>>> thread = api.file_system_service_list_filesystem_snowflake_with_http_info(project_id, current_id, async_req=True)
|
|
600
|
+
>>> result = thread.get()
|
|
601
|
+
|
|
602
|
+
:param async_req bool
|
|
603
|
+
:param str project_id: (required)
|
|
604
|
+
:param str current_id: (required)
|
|
605
|
+
:param str cluster_id:
|
|
606
|
+
:return: V1ListFilesystemSnowflakeResponse
|
|
607
|
+
If the method is called asynchronously,
|
|
608
|
+
returns the request thread.
|
|
609
|
+
"""
|
|
610
|
+
|
|
611
|
+
all_params = ['project_id', 'current_id', 'cluster_id'] # noqa: E501
|
|
612
|
+
all_params.append('async_req')
|
|
613
|
+
all_params.append('_return_http_data_only')
|
|
614
|
+
all_params.append('_preload_content')
|
|
615
|
+
all_params.append('_request_timeout')
|
|
616
|
+
|
|
617
|
+
params = locals()
|
|
618
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
619
|
+
if key not in all_params:
|
|
620
|
+
raise TypeError(
|
|
621
|
+
"Got an unexpected keyword argument '%s'"
|
|
622
|
+
" to method file_system_service_list_filesystem_snowflake" % key
|
|
623
|
+
)
|
|
624
|
+
params[key] = val
|
|
625
|
+
del params['kwargs']
|
|
626
|
+
# verify the required parameter 'project_id' is set
|
|
627
|
+
if ('project_id' not in params or
|
|
628
|
+
params['project_id'] is None):
|
|
629
|
+
raise ValueError("Missing the required parameter `project_id` when calling `file_system_service_list_filesystem_snowflake`") # noqa: E501
|
|
630
|
+
# verify the required parameter 'current_id' is set
|
|
631
|
+
if ('current_id' not in params or
|
|
632
|
+
params['current_id'] is None):
|
|
633
|
+
raise ValueError("Missing the required parameter `current_id` when calling `file_system_service_list_filesystem_snowflake`") # noqa: E501
|
|
634
|
+
|
|
635
|
+
collection_formats = {}
|
|
636
|
+
|
|
637
|
+
path_params = {}
|
|
638
|
+
if 'project_id' in params:
|
|
639
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
640
|
+
if 'current_id' in params:
|
|
641
|
+
path_params['currentId'] = params['current_id'] # noqa: E501
|
|
642
|
+
|
|
643
|
+
query_params = []
|
|
644
|
+
if 'cluster_id' in params:
|
|
645
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
646
|
+
|
|
647
|
+
header_params = {}
|
|
648
|
+
|
|
649
|
+
form_params = []
|
|
650
|
+
local_var_files = {}
|
|
651
|
+
|
|
652
|
+
body_params = None
|
|
653
|
+
# HTTP header `Accept`
|
|
654
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
655
|
+
['application/json']) # noqa: E501
|
|
656
|
+
|
|
657
|
+
# Authentication setting
|
|
658
|
+
auth_settings = [] # noqa: E501
|
|
659
|
+
|
|
660
|
+
return self.api_client.call_api(
|
|
661
|
+
'/v1/filesystem/{projectId}/snowflake/{currentId}', 'GET',
|
|
662
|
+
path_params,
|
|
663
|
+
query_params,
|
|
664
|
+
header_params,
|
|
665
|
+
body=body_params,
|
|
666
|
+
post_params=form_params,
|
|
667
|
+
files=local_var_files,
|
|
668
|
+
response_type='V1ListFilesystemSnowflakeResponse', # noqa: E501
|
|
669
|
+
auth_settings=auth_settings,
|
|
670
|
+
async_req=params.get('async_req'),
|
|
671
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
672
|
+
_preload_content=params.get('_preload_content', True),
|
|
673
|
+
_request_timeout=params.get('_request_timeout'),
|
|
674
|
+
collection_formats=collection_formats)
|