lightning-sdk 2025.8.6rc0__py3-none-any.whl → 2025.8.6rc2__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/llm_api.py +48 -0
- lightning_sdk/lightning_cloud/login.py +1 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +15 -23
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +228 -1
- lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +126 -2129
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +625 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -23
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_complete_upload_service_execution_artifact_response.py → v1_complete_running_cloud_space_instance_transfer_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metrics.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_file_endpoints_response.py → v1_list_container_metrics_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/{service_artifact_artifact_kind.py → v1_list_node_file_system_metrics_response.py} +6 -13
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_parts_response.py → v1_list_node_metrics_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_service_execution_response.py → v1_report_k8s_cluster_metrics_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{command_argument_command_argument_type.py → v1_request_cloud_space_access_response.py} +6 -12
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_instance_config_request.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -53
- lightning_sdk/lightning_cloud/utils/data_connection.py +56 -1
- lightning_sdk/llm/llm.py +5 -15
- lightning_sdk/llm/public_assistants.py +17 -0
- lightning_sdk/services/file_endpoint.py +3 -4
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/RECORD +43 -51
- lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +0 -409
- lightning_sdk/lightning_cloud/openapi/models/id_complete_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/id_storage_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/id_uploads_body1.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +0 -357
- lightning_sdk/lightning_cloud/openapi/models/project_id_serviceexecution_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +0 -331
- lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +0 -305
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_file_endpoint_response.py +0 -149
- lightning_sdk/lightning_cloud/openapi/models/v1_download_service_execution_artifact_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +0 -461
- lightning_sdk/lightning_cloud/openapi/models/v1_get_service_execution_status_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_executions_response.py +0 -123
- lightning_sdk/lightning_cloud/openapi/models/v1_service_artifact.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +0 -383
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_service_execution_artifact_response.py +0 -149
- lightning_sdk/llm/public_assistants.json +0 -34
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/top_level.txt +0 -0
|
@@ -43,2037 +43,45 @@ class EndpointServiceApi(object):
|
|
|
43
43
|
api_client = ApiClient()
|
|
44
44
|
self.api_client = api_client
|
|
45
45
|
|
|
46
|
-
def
|
|
47
|
-
"""
|
|
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.endpoint_service_complete_upload_service_execution_artifact(body, project_id, id, async_req=True)
|
|
52
|
-
>>> result = thread.get()
|
|
53
|
-
|
|
54
|
-
:param async_req bool
|
|
55
|
-
:param IdCompleteBody body: (required)
|
|
56
|
-
:param str project_id: (required)
|
|
57
|
-
:param str id: (required)
|
|
58
|
-
:return: V1CompleteUploadServiceExecutionArtifactResponse
|
|
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.endpoint_service_complete_upload_service_execution_artifact_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
65
|
-
else:
|
|
66
|
-
(data) = self.endpoint_service_complete_upload_service_execution_artifact_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
67
|
-
return data
|
|
68
|
-
|
|
69
|
-
def endpoint_service_complete_upload_service_execution_artifact_with_http_info(self, body: 'IdCompleteBody', project_id: 'str', id: 'str', **kwargs) -> 'V1CompleteUploadServiceExecutionArtifactResponse': # noqa: E501
|
|
70
|
-
"""endpoint_service_complete_upload_service_execution_artifact # 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.endpoint_service_complete_upload_service_execution_artifact_with_http_info(body, project_id, id, async_req=True)
|
|
75
|
-
>>> result = thread.get()
|
|
76
|
-
|
|
77
|
-
:param async_req bool
|
|
78
|
-
:param IdCompleteBody body: (required)
|
|
79
|
-
:param str project_id: (required)
|
|
80
|
-
:param str id: (required)
|
|
81
|
-
:return: V1CompleteUploadServiceExecutionArtifactResponse
|
|
82
|
-
If the method is called asynchronously,
|
|
83
|
-
returns the request thread.
|
|
84
|
-
"""
|
|
85
|
-
|
|
86
|
-
all_params = ['body', 'project_id', '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 endpoint_service_complete_upload_service_execution_artifact" % key
|
|
98
|
-
)
|
|
99
|
-
params[key] = val
|
|
100
|
-
del params['kwargs']
|
|
101
|
-
# verify the required parameter 'body' is set
|
|
102
|
-
if ('body' not in params or
|
|
103
|
-
params['body'] is None):
|
|
104
|
-
raise ValueError("Missing the required parameter `body` when calling `endpoint_service_complete_upload_service_execution_artifact`") # noqa: E501
|
|
105
|
-
# verify the required parameter 'project_id' is set
|
|
106
|
-
if ('project_id' not in params or
|
|
107
|
-
params['project_id'] is None):
|
|
108
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_complete_upload_service_execution_artifact`") # noqa: E501
|
|
109
|
-
# verify the required parameter 'id' is set
|
|
110
|
-
if ('id' not in params or
|
|
111
|
-
params['id'] is None):
|
|
112
|
-
raise ValueError("Missing the required parameter `id` when calling `endpoint_service_complete_upload_service_execution_artifact`") # noqa: E501
|
|
113
|
-
|
|
114
|
-
collection_formats = {}
|
|
115
|
-
|
|
116
|
-
path_params = {}
|
|
117
|
-
if 'project_id' in params:
|
|
118
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
119
|
-
if 'id' in params:
|
|
120
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
121
|
-
|
|
122
|
-
query_params = []
|
|
123
|
-
|
|
124
|
-
header_params = {}
|
|
125
|
-
|
|
126
|
-
form_params = []
|
|
127
|
-
local_var_files = {}
|
|
128
|
-
|
|
129
|
-
body_params = None
|
|
130
|
-
if 'body' in params:
|
|
131
|
-
body_params = params['body']
|
|
132
|
-
# HTTP header `Accept`
|
|
133
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
134
|
-
['application/json']) # noqa: E501
|
|
135
|
-
|
|
136
|
-
# HTTP header `Content-Type`
|
|
137
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
138
|
-
['application/json']) # noqa: E501
|
|
139
|
-
|
|
140
|
-
# Authentication setting
|
|
141
|
-
auth_settings = [] # noqa: E501
|
|
142
|
-
|
|
143
|
-
return self.api_client.call_api(
|
|
144
|
-
'/v1/projects/{projectId}/service-execution/{id}/complete', 'POST',
|
|
145
|
-
path_params,
|
|
146
|
-
query_params,
|
|
147
|
-
header_params,
|
|
148
|
-
body=body_params,
|
|
149
|
-
post_params=form_params,
|
|
150
|
-
files=local_var_files,
|
|
151
|
-
response_type='V1CompleteUploadServiceExecutionArtifactResponse', # noqa: E501
|
|
152
|
-
auth_settings=auth_settings,
|
|
153
|
-
async_req=params.get('async_req'),
|
|
154
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
155
|
-
_preload_content=params.get('_preload_content', True),
|
|
156
|
-
_request_timeout=params.get('_request_timeout'),
|
|
157
|
-
collection_formats=collection_formats)
|
|
158
|
-
|
|
159
|
-
def endpoint_service_create_endpoint(self, body: 'ProjectIdEndpointsBody', project_id: 'str', **kwargs) -> 'V1Endpoint': # noqa: E501
|
|
160
|
-
"""endpoint_service_create_endpoint # noqa: E501
|
|
161
|
-
|
|
162
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
163
|
-
asynchronous HTTP request, please pass async_req=True
|
|
164
|
-
>>> thread = api.endpoint_service_create_endpoint(body, project_id, async_req=True)
|
|
165
|
-
>>> result = thread.get()
|
|
166
|
-
|
|
167
|
-
:param async_req bool
|
|
168
|
-
:param ProjectIdEndpointsBody body: (required)
|
|
169
|
-
:param str project_id: (required)
|
|
170
|
-
:return: V1Endpoint
|
|
171
|
-
If the method is called asynchronously,
|
|
172
|
-
returns the request thread.
|
|
173
|
-
"""
|
|
174
|
-
kwargs['_return_http_data_only'] = True
|
|
175
|
-
if kwargs.get('async_req'):
|
|
176
|
-
return self.endpoint_service_create_endpoint_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
177
|
-
else:
|
|
178
|
-
(data) = self.endpoint_service_create_endpoint_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
179
|
-
return data
|
|
180
|
-
|
|
181
|
-
def endpoint_service_create_endpoint_with_http_info(self, body: 'ProjectIdEndpointsBody', project_id: 'str', **kwargs) -> 'V1Endpoint': # noqa: E501
|
|
182
|
-
"""endpoint_service_create_endpoint # noqa: E501
|
|
183
|
-
|
|
184
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
185
|
-
asynchronous HTTP request, please pass async_req=True
|
|
186
|
-
>>> thread = api.endpoint_service_create_endpoint_with_http_info(body, project_id, async_req=True)
|
|
187
|
-
>>> result = thread.get()
|
|
188
|
-
|
|
189
|
-
:param async_req bool
|
|
190
|
-
:param ProjectIdEndpointsBody body: (required)
|
|
191
|
-
:param str project_id: (required)
|
|
192
|
-
:return: V1Endpoint
|
|
193
|
-
If the method is called asynchronously,
|
|
194
|
-
returns the request thread.
|
|
195
|
-
"""
|
|
196
|
-
|
|
197
|
-
all_params = ['body', 'project_id'] # noqa: E501
|
|
198
|
-
all_params.append('async_req')
|
|
199
|
-
all_params.append('_return_http_data_only')
|
|
200
|
-
all_params.append('_preload_content')
|
|
201
|
-
all_params.append('_request_timeout')
|
|
202
|
-
|
|
203
|
-
params = locals()
|
|
204
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
205
|
-
if key not in all_params:
|
|
206
|
-
raise TypeError(
|
|
207
|
-
"Got an unexpected keyword argument '%s'"
|
|
208
|
-
" to method endpoint_service_create_endpoint" % key
|
|
209
|
-
)
|
|
210
|
-
params[key] = val
|
|
211
|
-
del params['kwargs']
|
|
212
|
-
# verify the required parameter 'body' is set
|
|
213
|
-
if ('body' not in params or
|
|
214
|
-
params['body'] is None):
|
|
215
|
-
raise ValueError("Missing the required parameter `body` when calling `endpoint_service_create_endpoint`") # noqa: E501
|
|
216
|
-
# verify the required parameter 'project_id' is set
|
|
217
|
-
if ('project_id' not in params or
|
|
218
|
-
params['project_id'] is None):
|
|
219
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_create_endpoint`") # noqa: E501
|
|
220
|
-
|
|
221
|
-
collection_formats = {}
|
|
222
|
-
|
|
223
|
-
path_params = {}
|
|
224
|
-
if 'project_id' in params:
|
|
225
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
226
|
-
|
|
227
|
-
query_params = []
|
|
228
|
-
|
|
229
|
-
header_params = {}
|
|
230
|
-
|
|
231
|
-
form_params = []
|
|
232
|
-
local_var_files = {}
|
|
233
|
-
|
|
234
|
-
body_params = None
|
|
235
|
-
if 'body' in params:
|
|
236
|
-
body_params = params['body']
|
|
237
|
-
# HTTP header `Accept`
|
|
238
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
239
|
-
['application/json']) # noqa: E501
|
|
240
|
-
|
|
241
|
-
# HTTP header `Content-Type`
|
|
242
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
243
|
-
['application/json']) # noqa: E501
|
|
244
|
-
|
|
245
|
-
# Authentication setting
|
|
246
|
-
auth_settings = [] # noqa: E501
|
|
247
|
-
|
|
248
|
-
return self.api_client.call_api(
|
|
249
|
-
'/v1/projects/{projectId}/endpoints', 'POST',
|
|
250
|
-
path_params,
|
|
251
|
-
query_params,
|
|
252
|
-
header_params,
|
|
253
|
-
body=body_params,
|
|
254
|
-
post_params=form_params,
|
|
255
|
-
files=local_var_files,
|
|
256
|
-
response_type='V1Endpoint', # noqa: E501
|
|
257
|
-
auth_settings=auth_settings,
|
|
258
|
-
async_req=params.get('async_req'),
|
|
259
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
260
|
-
_preload_content=params.get('_preload_content', True),
|
|
261
|
-
_request_timeout=params.get('_request_timeout'),
|
|
262
|
-
collection_formats=collection_formats)
|
|
263
|
-
|
|
264
|
-
def endpoint_service_create_file_endpoint(self, body: 'ProjectIdFileendpointsBody', project_id: 'str', **kwargs) -> 'V1FileEndpoint': # noqa: E501
|
|
265
|
-
"""endpoint_service_create_file_endpoint # noqa: E501
|
|
266
|
-
|
|
267
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
268
|
-
asynchronous HTTP request, please pass async_req=True
|
|
269
|
-
>>> thread = api.endpoint_service_create_file_endpoint(body, project_id, async_req=True)
|
|
270
|
-
>>> result = thread.get()
|
|
271
|
-
|
|
272
|
-
:param async_req bool
|
|
273
|
-
:param ProjectIdFileendpointsBody body: (required)
|
|
274
|
-
:param str project_id: (required)
|
|
275
|
-
:return: V1FileEndpoint
|
|
276
|
-
If the method is called asynchronously,
|
|
277
|
-
returns the request thread.
|
|
278
|
-
"""
|
|
279
|
-
kwargs['_return_http_data_only'] = True
|
|
280
|
-
if kwargs.get('async_req'):
|
|
281
|
-
return self.endpoint_service_create_file_endpoint_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
282
|
-
else:
|
|
283
|
-
(data) = self.endpoint_service_create_file_endpoint_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
284
|
-
return data
|
|
285
|
-
|
|
286
|
-
def endpoint_service_create_file_endpoint_with_http_info(self, body: 'ProjectIdFileendpointsBody', project_id: 'str', **kwargs) -> 'V1FileEndpoint': # noqa: E501
|
|
287
|
-
"""endpoint_service_create_file_endpoint # noqa: E501
|
|
288
|
-
|
|
289
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
290
|
-
asynchronous HTTP request, please pass async_req=True
|
|
291
|
-
>>> thread = api.endpoint_service_create_file_endpoint_with_http_info(body, project_id, async_req=True)
|
|
292
|
-
>>> result = thread.get()
|
|
293
|
-
|
|
294
|
-
:param async_req bool
|
|
295
|
-
:param ProjectIdFileendpointsBody body: (required)
|
|
296
|
-
:param str project_id: (required)
|
|
297
|
-
:return: V1FileEndpoint
|
|
298
|
-
If the method is called asynchronously,
|
|
299
|
-
returns the request thread.
|
|
300
|
-
"""
|
|
301
|
-
|
|
302
|
-
all_params = ['body', 'project_id'] # noqa: E501
|
|
303
|
-
all_params.append('async_req')
|
|
304
|
-
all_params.append('_return_http_data_only')
|
|
305
|
-
all_params.append('_preload_content')
|
|
306
|
-
all_params.append('_request_timeout')
|
|
307
|
-
|
|
308
|
-
params = locals()
|
|
309
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
310
|
-
if key not in all_params:
|
|
311
|
-
raise TypeError(
|
|
312
|
-
"Got an unexpected keyword argument '%s'"
|
|
313
|
-
" to method endpoint_service_create_file_endpoint" % key
|
|
314
|
-
)
|
|
315
|
-
params[key] = val
|
|
316
|
-
del params['kwargs']
|
|
317
|
-
# verify the required parameter 'body' is set
|
|
318
|
-
if ('body' not in params or
|
|
319
|
-
params['body'] is None):
|
|
320
|
-
raise ValueError("Missing the required parameter `body` when calling `endpoint_service_create_file_endpoint`") # noqa: E501
|
|
321
|
-
# verify the required parameter 'project_id' is set
|
|
322
|
-
if ('project_id' not in params or
|
|
323
|
-
params['project_id'] is None):
|
|
324
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_create_file_endpoint`") # noqa: E501
|
|
325
|
-
|
|
326
|
-
collection_formats = {}
|
|
327
|
-
|
|
328
|
-
path_params = {}
|
|
329
|
-
if 'project_id' in params:
|
|
330
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
331
|
-
|
|
332
|
-
query_params = []
|
|
333
|
-
|
|
334
|
-
header_params = {}
|
|
335
|
-
|
|
336
|
-
form_params = []
|
|
337
|
-
local_var_files = {}
|
|
338
|
-
|
|
339
|
-
body_params = None
|
|
340
|
-
if 'body' in params:
|
|
341
|
-
body_params = params['body']
|
|
342
|
-
# HTTP header `Accept`
|
|
343
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
344
|
-
['application/json']) # noqa: E501
|
|
345
|
-
|
|
346
|
-
# HTTP header `Content-Type`
|
|
347
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
348
|
-
['application/json']) # noqa: E501
|
|
349
|
-
|
|
350
|
-
# Authentication setting
|
|
351
|
-
auth_settings = [] # noqa: E501
|
|
352
|
-
|
|
353
|
-
return self.api_client.call_api(
|
|
354
|
-
'/v1/projects/{projectId}/file-endpoints', 'POST',
|
|
355
|
-
path_params,
|
|
356
|
-
query_params,
|
|
357
|
-
header_params,
|
|
358
|
-
body=body_params,
|
|
359
|
-
post_params=form_params,
|
|
360
|
-
files=local_var_files,
|
|
361
|
-
response_type='V1FileEndpoint', # noqa: E501
|
|
362
|
-
auth_settings=auth_settings,
|
|
363
|
-
async_req=params.get('async_req'),
|
|
364
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
365
|
-
_preload_content=params.get('_preload_content', True),
|
|
366
|
-
_request_timeout=params.get('_request_timeout'),
|
|
367
|
-
collection_formats=collection_formats)
|
|
368
|
-
|
|
369
|
-
def endpoint_service_create_service_execution(self, body: 'ProjectIdServiceexecutionBody', project_id: 'str', **kwargs) -> 'V1ServiceExecution': # noqa: E501
|
|
370
|
-
"""endpoint_service_create_service_execution # noqa: E501
|
|
371
|
-
|
|
372
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
373
|
-
asynchronous HTTP request, please pass async_req=True
|
|
374
|
-
>>> thread = api.endpoint_service_create_service_execution(body, project_id, async_req=True)
|
|
375
|
-
>>> result = thread.get()
|
|
376
|
-
|
|
377
|
-
:param async_req bool
|
|
378
|
-
:param ProjectIdServiceexecutionBody body: (required)
|
|
379
|
-
:param str project_id: (required)
|
|
380
|
-
:return: V1ServiceExecution
|
|
381
|
-
If the method is called asynchronously,
|
|
382
|
-
returns the request thread.
|
|
383
|
-
"""
|
|
384
|
-
kwargs['_return_http_data_only'] = True
|
|
385
|
-
if kwargs.get('async_req'):
|
|
386
|
-
return self.endpoint_service_create_service_execution_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
387
|
-
else:
|
|
388
|
-
(data) = self.endpoint_service_create_service_execution_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
389
|
-
return data
|
|
390
|
-
|
|
391
|
-
def endpoint_service_create_service_execution_with_http_info(self, body: 'ProjectIdServiceexecutionBody', project_id: 'str', **kwargs) -> 'V1ServiceExecution': # noqa: E501
|
|
392
|
-
"""endpoint_service_create_service_execution # noqa: E501
|
|
393
|
-
|
|
394
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
395
|
-
asynchronous HTTP request, please pass async_req=True
|
|
396
|
-
>>> thread = api.endpoint_service_create_service_execution_with_http_info(body, project_id, async_req=True)
|
|
397
|
-
>>> result = thread.get()
|
|
398
|
-
|
|
399
|
-
:param async_req bool
|
|
400
|
-
:param ProjectIdServiceexecutionBody body: (required)
|
|
401
|
-
:param str project_id: (required)
|
|
402
|
-
:return: V1ServiceExecution
|
|
403
|
-
If the method is called asynchronously,
|
|
404
|
-
returns the request thread.
|
|
405
|
-
"""
|
|
406
|
-
|
|
407
|
-
all_params = ['body', 'project_id'] # noqa: E501
|
|
408
|
-
all_params.append('async_req')
|
|
409
|
-
all_params.append('_return_http_data_only')
|
|
410
|
-
all_params.append('_preload_content')
|
|
411
|
-
all_params.append('_request_timeout')
|
|
412
|
-
|
|
413
|
-
params = locals()
|
|
414
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
415
|
-
if key not in all_params:
|
|
416
|
-
raise TypeError(
|
|
417
|
-
"Got an unexpected keyword argument '%s'"
|
|
418
|
-
" to method endpoint_service_create_service_execution" % key
|
|
419
|
-
)
|
|
420
|
-
params[key] = val
|
|
421
|
-
del params['kwargs']
|
|
422
|
-
# verify the required parameter 'body' is set
|
|
423
|
-
if ('body' not in params or
|
|
424
|
-
params['body'] is None):
|
|
425
|
-
raise ValueError("Missing the required parameter `body` when calling `endpoint_service_create_service_execution`") # noqa: E501
|
|
426
|
-
# verify the required parameter 'project_id' is set
|
|
427
|
-
if ('project_id' not in params or
|
|
428
|
-
params['project_id'] is None):
|
|
429
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_create_service_execution`") # noqa: E501
|
|
430
|
-
|
|
431
|
-
collection_formats = {}
|
|
432
|
-
|
|
433
|
-
path_params = {}
|
|
434
|
-
if 'project_id' in params:
|
|
435
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
436
|
-
|
|
437
|
-
query_params = []
|
|
438
|
-
|
|
439
|
-
header_params = {}
|
|
440
|
-
|
|
441
|
-
form_params = []
|
|
442
|
-
local_var_files = {}
|
|
443
|
-
|
|
444
|
-
body_params = None
|
|
445
|
-
if 'body' in params:
|
|
446
|
-
body_params = params['body']
|
|
447
|
-
# HTTP header `Accept`
|
|
448
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
449
|
-
['application/json']) # noqa: E501
|
|
450
|
-
|
|
451
|
-
# HTTP header `Content-Type`
|
|
452
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
453
|
-
['application/json']) # noqa: E501
|
|
454
|
-
|
|
455
|
-
# Authentication setting
|
|
456
|
-
auth_settings = [] # noqa: E501
|
|
457
|
-
|
|
458
|
-
return self.api_client.call_api(
|
|
459
|
-
'/v1/projects/{projectId}/service-execution', 'POST',
|
|
460
|
-
path_params,
|
|
461
|
-
query_params,
|
|
462
|
-
header_params,
|
|
463
|
-
body=body_params,
|
|
464
|
-
post_params=form_params,
|
|
465
|
-
files=local_var_files,
|
|
466
|
-
response_type='V1ServiceExecution', # noqa: E501
|
|
467
|
-
auth_settings=auth_settings,
|
|
468
|
-
async_req=params.get('async_req'),
|
|
469
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
470
|
-
_preload_content=params.get('_preload_content', True),
|
|
471
|
-
_request_timeout=params.get('_request_timeout'),
|
|
472
|
-
collection_formats=collection_formats)
|
|
473
|
-
|
|
474
|
-
def endpoint_service_delete_endpoint(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteEndpointResponse': # noqa: E501
|
|
475
|
-
"""endpoint_service_delete_endpoint # noqa: E501
|
|
476
|
-
|
|
477
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
478
|
-
asynchronous HTTP request, please pass async_req=True
|
|
479
|
-
>>> thread = api.endpoint_service_delete_endpoint(project_id, id, async_req=True)
|
|
480
|
-
>>> result = thread.get()
|
|
481
|
-
|
|
482
|
-
:param async_req bool
|
|
483
|
-
:param str project_id: (required)
|
|
484
|
-
:param str id: (required)
|
|
485
|
-
:return: V1DeleteEndpointResponse
|
|
486
|
-
If the method is called asynchronously,
|
|
487
|
-
returns the request thread.
|
|
488
|
-
"""
|
|
489
|
-
kwargs['_return_http_data_only'] = True
|
|
490
|
-
if kwargs.get('async_req'):
|
|
491
|
-
return self.endpoint_service_delete_endpoint_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
492
|
-
else:
|
|
493
|
-
(data) = self.endpoint_service_delete_endpoint_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
494
|
-
return data
|
|
495
|
-
|
|
496
|
-
def endpoint_service_delete_endpoint_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteEndpointResponse': # noqa: E501
|
|
497
|
-
"""endpoint_service_delete_endpoint # noqa: E501
|
|
498
|
-
|
|
499
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
500
|
-
asynchronous HTTP request, please pass async_req=True
|
|
501
|
-
>>> thread = api.endpoint_service_delete_endpoint_with_http_info(project_id, id, async_req=True)
|
|
502
|
-
>>> result = thread.get()
|
|
503
|
-
|
|
504
|
-
:param async_req bool
|
|
505
|
-
:param str project_id: (required)
|
|
506
|
-
:param str id: (required)
|
|
507
|
-
:return: V1DeleteEndpointResponse
|
|
508
|
-
If the method is called asynchronously,
|
|
509
|
-
returns the request thread.
|
|
510
|
-
"""
|
|
511
|
-
|
|
512
|
-
all_params = ['project_id', 'id'] # noqa: E501
|
|
513
|
-
all_params.append('async_req')
|
|
514
|
-
all_params.append('_return_http_data_only')
|
|
515
|
-
all_params.append('_preload_content')
|
|
516
|
-
all_params.append('_request_timeout')
|
|
517
|
-
|
|
518
|
-
params = locals()
|
|
519
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
520
|
-
if key not in all_params:
|
|
521
|
-
raise TypeError(
|
|
522
|
-
"Got an unexpected keyword argument '%s'"
|
|
523
|
-
" to method endpoint_service_delete_endpoint" % key
|
|
524
|
-
)
|
|
525
|
-
params[key] = val
|
|
526
|
-
del params['kwargs']
|
|
527
|
-
# verify the required parameter 'project_id' is set
|
|
528
|
-
if ('project_id' not in params or
|
|
529
|
-
params['project_id'] is None):
|
|
530
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_delete_endpoint`") # noqa: E501
|
|
531
|
-
# verify the required parameter 'id' is set
|
|
532
|
-
if ('id' not in params or
|
|
533
|
-
params['id'] is None):
|
|
534
|
-
raise ValueError("Missing the required parameter `id` when calling `endpoint_service_delete_endpoint`") # noqa: E501
|
|
535
|
-
|
|
536
|
-
collection_formats = {}
|
|
537
|
-
|
|
538
|
-
path_params = {}
|
|
539
|
-
if 'project_id' in params:
|
|
540
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
541
|
-
if 'id' in params:
|
|
542
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
543
|
-
|
|
544
|
-
query_params = []
|
|
545
|
-
|
|
546
|
-
header_params = {}
|
|
547
|
-
|
|
548
|
-
form_params = []
|
|
549
|
-
local_var_files = {}
|
|
550
|
-
|
|
551
|
-
body_params = None
|
|
552
|
-
# HTTP header `Accept`
|
|
553
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
554
|
-
['application/json']) # noqa: E501
|
|
555
|
-
|
|
556
|
-
# Authentication setting
|
|
557
|
-
auth_settings = [] # noqa: E501
|
|
558
|
-
|
|
559
|
-
return self.api_client.call_api(
|
|
560
|
-
'/v1/projects/{projectId}/endpoints/{id}', 'DELETE',
|
|
561
|
-
path_params,
|
|
562
|
-
query_params,
|
|
563
|
-
header_params,
|
|
564
|
-
body=body_params,
|
|
565
|
-
post_params=form_params,
|
|
566
|
-
files=local_var_files,
|
|
567
|
-
response_type='V1DeleteEndpointResponse', # noqa: E501
|
|
568
|
-
auth_settings=auth_settings,
|
|
569
|
-
async_req=params.get('async_req'),
|
|
570
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
571
|
-
_preload_content=params.get('_preload_content', True),
|
|
572
|
-
_request_timeout=params.get('_request_timeout'),
|
|
573
|
-
collection_formats=collection_formats)
|
|
574
|
-
|
|
575
|
-
def endpoint_service_delete_file_endpoint(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteFileEndpointResponse': # noqa: E501
|
|
576
|
-
"""endpoint_service_delete_file_endpoint # noqa: E501
|
|
577
|
-
|
|
578
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
579
|
-
asynchronous HTTP request, please pass async_req=True
|
|
580
|
-
>>> thread = api.endpoint_service_delete_file_endpoint(project_id, id, async_req=True)
|
|
581
|
-
>>> result = thread.get()
|
|
582
|
-
|
|
583
|
-
:param async_req bool
|
|
584
|
-
:param str project_id: (required)
|
|
585
|
-
:param str id: (required)
|
|
586
|
-
:param str cloudspace_id:
|
|
587
|
-
:return: V1DeleteFileEndpointResponse
|
|
588
|
-
If the method is called asynchronously,
|
|
589
|
-
returns the request thread.
|
|
590
|
-
"""
|
|
591
|
-
kwargs['_return_http_data_only'] = True
|
|
592
|
-
if kwargs.get('async_req'):
|
|
593
|
-
return self.endpoint_service_delete_file_endpoint_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
594
|
-
else:
|
|
595
|
-
(data) = self.endpoint_service_delete_file_endpoint_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
596
|
-
return data
|
|
597
|
-
|
|
598
|
-
def endpoint_service_delete_file_endpoint_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteFileEndpointResponse': # noqa: E501
|
|
599
|
-
"""endpoint_service_delete_file_endpoint # noqa: E501
|
|
600
|
-
|
|
601
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
602
|
-
asynchronous HTTP request, please pass async_req=True
|
|
603
|
-
>>> thread = api.endpoint_service_delete_file_endpoint_with_http_info(project_id, id, async_req=True)
|
|
604
|
-
>>> result = thread.get()
|
|
605
|
-
|
|
606
|
-
:param async_req bool
|
|
607
|
-
:param str project_id: (required)
|
|
608
|
-
:param str id: (required)
|
|
609
|
-
:param str cloudspace_id:
|
|
610
|
-
:return: V1DeleteFileEndpointResponse
|
|
611
|
-
If the method is called asynchronously,
|
|
612
|
-
returns the request thread.
|
|
613
|
-
"""
|
|
614
|
-
|
|
615
|
-
all_params = ['project_id', 'id', 'cloudspace_id'] # noqa: E501
|
|
616
|
-
all_params.append('async_req')
|
|
617
|
-
all_params.append('_return_http_data_only')
|
|
618
|
-
all_params.append('_preload_content')
|
|
619
|
-
all_params.append('_request_timeout')
|
|
620
|
-
|
|
621
|
-
params = locals()
|
|
622
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
623
|
-
if key not in all_params:
|
|
624
|
-
raise TypeError(
|
|
625
|
-
"Got an unexpected keyword argument '%s'"
|
|
626
|
-
" to method endpoint_service_delete_file_endpoint" % key
|
|
627
|
-
)
|
|
628
|
-
params[key] = val
|
|
629
|
-
del params['kwargs']
|
|
630
|
-
# verify the required parameter 'project_id' is set
|
|
631
|
-
if ('project_id' not in params or
|
|
632
|
-
params['project_id'] is None):
|
|
633
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_delete_file_endpoint`") # noqa: E501
|
|
634
|
-
# verify the required parameter 'id' is set
|
|
635
|
-
if ('id' not in params or
|
|
636
|
-
params['id'] is None):
|
|
637
|
-
raise ValueError("Missing the required parameter `id` when calling `endpoint_service_delete_file_endpoint`") # noqa: E501
|
|
638
|
-
|
|
639
|
-
collection_formats = {}
|
|
640
|
-
|
|
641
|
-
path_params = {}
|
|
642
|
-
if 'project_id' in params:
|
|
643
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
644
|
-
if 'id' in params:
|
|
645
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
646
|
-
|
|
647
|
-
query_params = []
|
|
648
|
-
if 'cloudspace_id' in params:
|
|
649
|
-
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
650
|
-
|
|
651
|
-
header_params = {}
|
|
652
|
-
|
|
653
|
-
form_params = []
|
|
654
|
-
local_var_files = {}
|
|
655
|
-
|
|
656
|
-
body_params = None
|
|
657
|
-
# HTTP header `Accept`
|
|
658
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
659
|
-
['application/json']) # noqa: E501
|
|
660
|
-
|
|
661
|
-
# Authentication setting
|
|
662
|
-
auth_settings = [] # noqa: E501
|
|
663
|
-
|
|
664
|
-
return self.api_client.call_api(
|
|
665
|
-
'/v1/projects/{projectId}/file-endpoints/{id}', 'DELETE',
|
|
666
|
-
path_params,
|
|
667
|
-
query_params,
|
|
668
|
-
header_params,
|
|
669
|
-
body=body_params,
|
|
670
|
-
post_params=form_params,
|
|
671
|
-
files=local_var_files,
|
|
672
|
-
response_type='V1DeleteFileEndpointResponse', # noqa: E501
|
|
673
|
-
auth_settings=auth_settings,
|
|
674
|
-
async_req=params.get('async_req'),
|
|
675
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
676
|
-
_preload_content=params.get('_preload_content', True),
|
|
677
|
-
_request_timeout=params.get('_request_timeout'),
|
|
678
|
-
collection_formats=collection_formats)
|
|
679
|
-
|
|
680
|
-
def endpoint_service_delete_service_execution(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteServiceExecutionResponse': # noqa: E501
|
|
681
|
-
"""endpoint_service_delete_service_execution # noqa: E501
|
|
682
|
-
|
|
683
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
684
|
-
asynchronous HTTP request, please pass async_req=True
|
|
685
|
-
>>> thread = api.endpoint_service_delete_service_execution(project_id, id, async_req=True)
|
|
686
|
-
>>> result = thread.get()
|
|
687
|
-
|
|
688
|
-
:param async_req bool
|
|
689
|
-
:param str project_id: (required)
|
|
690
|
-
:param str id: (required)
|
|
691
|
-
:return: V1DeleteServiceExecutionResponse
|
|
692
|
-
If the method is called asynchronously,
|
|
693
|
-
returns the request thread.
|
|
694
|
-
"""
|
|
695
|
-
kwargs['_return_http_data_only'] = True
|
|
696
|
-
if kwargs.get('async_req'):
|
|
697
|
-
return self.endpoint_service_delete_service_execution_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
698
|
-
else:
|
|
699
|
-
(data) = self.endpoint_service_delete_service_execution_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
700
|
-
return data
|
|
701
|
-
|
|
702
|
-
def endpoint_service_delete_service_execution_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteServiceExecutionResponse': # noqa: E501
|
|
703
|
-
"""endpoint_service_delete_service_execution # noqa: E501
|
|
704
|
-
|
|
705
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
706
|
-
asynchronous HTTP request, please pass async_req=True
|
|
707
|
-
>>> thread = api.endpoint_service_delete_service_execution_with_http_info(project_id, id, async_req=True)
|
|
708
|
-
>>> result = thread.get()
|
|
709
|
-
|
|
710
|
-
:param async_req bool
|
|
711
|
-
:param str project_id: (required)
|
|
712
|
-
:param str id: (required)
|
|
713
|
-
:return: V1DeleteServiceExecutionResponse
|
|
714
|
-
If the method is called asynchronously,
|
|
715
|
-
returns the request thread.
|
|
716
|
-
"""
|
|
717
|
-
|
|
718
|
-
all_params = ['project_id', 'id'] # noqa: E501
|
|
719
|
-
all_params.append('async_req')
|
|
720
|
-
all_params.append('_return_http_data_only')
|
|
721
|
-
all_params.append('_preload_content')
|
|
722
|
-
all_params.append('_request_timeout')
|
|
723
|
-
|
|
724
|
-
params = locals()
|
|
725
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
726
|
-
if key not in all_params:
|
|
727
|
-
raise TypeError(
|
|
728
|
-
"Got an unexpected keyword argument '%s'"
|
|
729
|
-
" to method endpoint_service_delete_service_execution" % key
|
|
730
|
-
)
|
|
731
|
-
params[key] = val
|
|
732
|
-
del params['kwargs']
|
|
733
|
-
# verify the required parameter 'project_id' is set
|
|
734
|
-
if ('project_id' not in params or
|
|
735
|
-
params['project_id'] is None):
|
|
736
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_delete_service_execution`") # noqa: E501
|
|
737
|
-
# verify the required parameter 'id' is set
|
|
738
|
-
if ('id' not in params or
|
|
739
|
-
params['id'] is None):
|
|
740
|
-
raise ValueError("Missing the required parameter `id` when calling `endpoint_service_delete_service_execution`") # noqa: E501
|
|
741
|
-
|
|
742
|
-
collection_formats = {}
|
|
743
|
-
|
|
744
|
-
path_params = {}
|
|
745
|
-
if 'project_id' in params:
|
|
746
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
747
|
-
if 'id' in params:
|
|
748
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
749
|
-
|
|
750
|
-
query_params = []
|
|
751
|
-
|
|
752
|
-
header_params = {}
|
|
753
|
-
|
|
754
|
-
form_params = []
|
|
755
|
-
local_var_files = {}
|
|
756
|
-
|
|
757
|
-
body_params = None
|
|
758
|
-
# HTTP header `Accept`
|
|
759
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
760
|
-
['application/json']) # noqa: E501
|
|
761
|
-
|
|
762
|
-
# Authentication setting
|
|
763
|
-
auth_settings = [] # noqa: E501
|
|
764
|
-
|
|
765
|
-
return self.api_client.call_api(
|
|
766
|
-
'/v1/projects/{projectId}/service-execution/{id}', 'DELETE',
|
|
767
|
-
path_params,
|
|
768
|
-
query_params,
|
|
769
|
-
header_params,
|
|
770
|
-
body=body_params,
|
|
771
|
-
post_params=form_params,
|
|
772
|
-
files=local_var_files,
|
|
773
|
-
response_type='V1DeleteServiceExecutionResponse', # noqa: E501
|
|
774
|
-
auth_settings=auth_settings,
|
|
775
|
-
async_req=params.get('async_req'),
|
|
776
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
777
|
-
_preload_content=params.get('_preload_content', True),
|
|
778
|
-
_request_timeout=params.get('_request_timeout'),
|
|
779
|
-
collection_formats=collection_formats)
|
|
780
|
-
|
|
781
|
-
def endpoint_service_download_service_execution_artifact(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DownloadServiceExecutionArtifactResponse': # noqa: E501
|
|
782
|
-
"""endpoint_service_download_service_execution_artifact # noqa: E501
|
|
783
|
-
|
|
784
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
785
|
-
asynchronous HTTP request, please pass async_req=True
|
|
786
|
-
>>> thread = api.endpoint_service_download_service_execution_artifact(project_id, id, async_req=True)
|
|
787
|
-
>>> result = thread.get()
|
|
788
|
-
|
|
789
|
-
:param async_req bool
|
|
790
|
-
:param str project_id: (required)
|
|
791
|
-
:param str id: (required)
|
|
792
|
-
:param str page_token:
|
|
793
|
-
:param str filepath:
|
|
794
|
-
:return: V1DownloadServiceExecutionArtifactResponse
|
|
795
|
-
If the method is called asynchronously,
|
|
796
|
-
returns the request thread.
|
|
797
|
-
"""
|
|
798
|
-
kwargs['_return_http_data_only'] = True
|
|
799
|
-
if kwargs.get('async_req'):
|
|
800
|
-
return self.endpoint_service_download_service_execution_artifact_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
801
|
-
else:
|
|
802
|
-
(data) = self.endpoint_service_download_service_execution_artifact_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
803
|
-
return data
|
|
804
|
-
|
|
805
|
-
def endpoint_service_download_service_execution_artifact_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DownloadServiceExecutionArtifactResponse': # noqa: E501
|
|
806
|
-
"""endpoint_service_download_service_execution_artifact # noqa: E501
|
|
807
|
-
|
|
808
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
809
|
-
asynchronous HTTP request, please pass async_req=True
|
|
810
|
-
>>> thread = api.endpoint_service_download_service_execution_artifact_with_http_info(project_id, id, async_req=True)
|
|
811
|
-
>>> result = thread.get()
|
|
812
|
-
|
|
813
|
-
:param async_req bool
|
|
814
|
-
:param str project_id: (required)
|
|
815
|
-
:param str id: (required)
|
|
816
|
-
:param str page_token:
|
|
817
|
-
:param str filepath:
|
|
818
|
-
:return: V1DownloadServiceExecutionArtifactResponse
|
|
819
|
-
If the method is called asynchronously,
|
|
820
|
-
returns the request thread.
|
|
821
|
-
"""
|
|
822
|
-
|
|
823
|
-
all_params = ['project_id', 'id', 'page_token', 'filepath'] # noqa: E501
|
|
824
|
-
all_params.append('async_req')
|
|
825
|
-
all_params.append('_return_http_data_only')
|
|
826
|
-
all_params.append('_preload_content')
|
|
827
|
-
all_params.append('_request_timeout')
|
|
828
|
-
|
|
829
|
-
params = locals()
|
|
830
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
831
|
-
if key not in all_params:
|
|
832
|
-
raise TypeError(
|
|
833
|
-
"Got an unexpected keyword argument '%s'"
|
|
834
|
-
" to method endpoint_service_download_service_execution_artifact" % key
|
|
835
|
-
)
|
|
836
|
-
params[key] = val
|
|
837
|
-
del params['kwargs']
|
|
838
|
-
# verify the required parameter 'project_id' is set
|
|
839
|
-
if ('project_id' not in params or
|
|
840
|
-
params['project_id'] is None):
|
|
841
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_download_service_execution_artifact`") # noqa: E501
|
|
842
|
-
# verify the required parameter 'id' is set
|
|
843
|
-
if ('id' not in params or
|
|
844
|
-
params['id'] is None):
|
|
845
|
-
raise ValueError("Missing the required parameter `id` when calling `endpoint_service_download_service_execution_artifact`") # noqa: E501
|
|
846
|
-
|
|
847
|
-
collection_formats = {}
|
|
848
|
-
|
|
849
|
-
path_params = {}
|
|
850
|
-
if 'project_id' in params:
|
|
851
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
852
|
-
if 'id' in params:
|
|
853
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
854
|
-
|
|
855
|
-
query_params = []
|
|
856
|
-
if 'page_token' in params:
|
|
857
|
-
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
858
|
-
if 'filepath' in params:
|
|
859
|
-
query_params.append(('filepath', params['filepath'])) # noqa: E501
|
|
860
|
-
|
|
861
|
-
header_params = {}
|
|
862
|
-
|
|
863
|
-
form_params = []
|
|
864
|
-
local_var_files = {}
|
|
865
|
-
|
|
866
|
-
body_params = None
|
|
867
|
-
# HTTP header `Accept`
|
|
868
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
869
|
-
['application/json']) # noqa: E501
|
|
870
|
-
|
|
871
|
-
# Authentication setting
|
|
872
|
-
auth_settings = [] # noqa: E501
|
|
873
|
-
|
|
874
|
-
return self.api_client.call_api(
|
|
875
|
-
'/v1/projects/{projectId}/service-execution/{id}/storage', 'GET',
|
|
876
|
-
path_params,
|
|
877
|
-
query_params,
|
|
878
|
-
header_params,
|
|
879
|
-
body=body_params,
|
|
880
|
-
post_params=form_params,
|
|
881
|
-
files=local_var_files,
|
|
882
|
-
response_type='V1DownloadServiceExecutionArtifactResponse', # noqa: E501
|
|
883
|
-
auth_settings=auth_settings,
|
|
884
|
-
async_req=params.get('async_req'),
|
|
885
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
886
|
-
_preload_content=params.get('_preload_content', True),
|
|
887
|
-
_request_timeout=params.get('_request_timeout'),
|
|
888
|
-
collection_formats=collection_formats)
|
|
889
|
-
|
|
890
|
-
def endpoint_service_get_endpoint(self, project_id: 'str', ref: 'str', **kwargs) -> 'V1Endpoint': # noqa: E501
|
|
891
|
-
"""endpoint_service_get_endpoint # noqa: E501
|
|
892
|
-
|
|
893
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
894
|
-
asynchronous HTTP request, please pass async_req=True
|
|
895
|
-
>>> thread = api.endpoint_service_get_endpoint(project_id, ref, async_req=True)
|
|
896
|
-
>>> result = thread.get()
|
|
897
|
-
|
|
898
|
-
:param async_req bool
|
|
899
|
-
:param str project_id: (required)
|
|
900
|
-
:param str ref: (required)
|
|
901
|
-
:param str ref_type:
|
|
902
|
-
:return: V1Endpoint
|
|
903
|
-
If the method is called asynchronously,
|
|
904
|
-
returns the request thread.
|
|
905
|
-
"""
|
|
906
|
-
kwargs['_return_http_data_only'] = True
|
|
907
|
-
if kwargs.get('async_req'):
|
|
908
|
-
return self.endpoint_service_get_endpoint_with_http_info(project_id, ref, **kwargs) # noqa: E501
|
|
909
|
-
else:
|
|
910
|
-
(data) = self.endpoint_service_get_endpoint_with_http_info(project_id, ref, **kwargs) # noqa: E501
|
|
911
|
-
return data
|
|
912
|
-
|
|
913
|
-
def endpoint_service_get_endpoint_with_http_info(self, project_id: 'str', ref: 'str', **kwargs) -> 'V1Endpoint': # noqa: E501
|
|
914
|
-
"""endpoint_service_get_endpoint # noqa: E501
|
|
915
|
-
|
|
916
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
917
|
-
asynchronous HTTP request, please pass async_req=True
|
|
918
|
-
>>> thread = api.endpoint_service_get_endpoint_with_http_info(project_id, ref, async_req=True)
|
|
919
|
-
>>> result = thread.get()
|
|
920
|
-
|
|
921
|
-
:param async_req bool
|
|
922
|
-
:param str project_id: (required)
|
|
923
|
-
:param str ref: (required)
|
|
924
|
-
:param str ref_type:
|
|
925
|
-
:return: V1Endpoint
|
|
926
|
-
If the method is called asynchronously,
|
|
927
|
-
returns the request thread.
|
|
928
|
-
"""
|
|
929
|
-
|
|
930
|
-
all_params = ['project_id', 'ref', 'ref_type'] # noqa: E501
|
|
931
|
-
all_params.append('async_req')
|
|
932
|
-
all_params.append('_return_http_data_only')
|
|
933
|
-
all_params.append('_preload_content')
|
|
934
|
-
all_params.append('_request_timeout')
|
|
935
|
-
|
|
936
|
-
params = locals()
|
|
937
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
938
|
-
if key not in all_params:
|
|
939
|
-
raise TypeError(
|
|
940
|
-
"Got an unexpected keyword argument '%s'"
|
|
941
|
-
" to method endpoint_service_get_endpoint" % key
|
|
942
|
-
)
|
|
943
|
-
params[key] = val
|
|
944
|
-
del params['kwargs']
|
|
945
|
-
# verify the required parameter 'project_id' is set
|
|
946
|
-
if ('project_id' not in params or
|
|
947
|
-
params['project_id'] is None):
|
|
948
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_get_endpoint`") # noqa: E501
|
|
949
|
-
# verify the required parameter 'ref' is set
|
|
950
|
-
if ('ref' not in params or
|
|
951
|
-
params['ref'] is None):
|
|
952
|
-
raise ValueError("Missing the required parameter `ref` when calling `endpoint_service_get_endpoint`") # noqa: E501
|
|
953
|
-
|
|
954
|
-
collection_formats = {}
|
|
955
|
-
|
|
956
|
-
path_params = {}
|
|
957
|
-
if 'project_id' in params:
|
|
958
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
959
|
-
if 'ref' in params:
|
|
960
|
-
path_params['ref'] = params['ref'] # noqa: E501
|
|
961
|
-
|
|
962
|
-
query_params = []
|
|
963
|
-
if 'ref_type' in params:
|
|
964
|
-
query_params.append(('refType', params['ref_type'])) # noqa: E501
|
|
965
|
-
|
|
966
|
-
header_params = {}
|
|
967
|
-
|
|
968
|
-
form_params = []
|
|
969
|
-
local_var_files = {}
|
|
970
|
-
|
|
971
|
-
body_params = None
|
|
972
|
-
# HTTP header `Accept`
|
|
973
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
974
|
-
['application/json']) # noqa: E501
|
|
975
|
-
|
|
976
|
-
# Authentication setting
|
|
977
|
-
auth_settings = [] # noqa: E501
|
|
978
|
-
|
|
979
|
-
return self.api_client.call_api(
|
|
980
|
-
'/v1/projects/{projectId}/endpoints/{ref}', 'GET',
|
|
981
|
-
path_params,
|
|
982
|
-
query_params,
|
|
983
|
-
header_params,
|
|
984
|
-
body=body_params,
|
|
985
|
-
post_params=form_params,
|
|
986
|
-
files=local_var_files,
|
|
987
|
-
response_type='V1Endpoint', # noqa: E501
|
|
988
|
-
auth_settings=auth_settings,
|
|
989
|
-
async_req=params.get('async_req'),
|
|
990
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
991
|
-
_preload_content=params.get('_preload_content', True),
|
|
992
|
-
_request_timeout=params.get('_request_timeout'),
|
|
993
|
-
collection_formats=collection_formats)
|
|
994
|
-
|
|
995
|
-
def endpoint_service_get_file_endpoint(self, project_id: 'str', id: 'str', **kwargs) -> 'V1FileEndpoint': # noqa: E501
|
|
996
|
-
"""endpoint_service_get_file_endpoint # noqa: E501
|
|
997
|
-
|
|
998
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
999
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1000
|
-
>>> thread = api.endpoint_service_get_file_endpoint(project_id, id, async_req=True)
|
|
1001
|
-
>>> result = thread.get()
|
|
1002
|
-
|
|
1003
|
-
:param async_req bool
|
|
1004
|
-
:param str project_id: (required)
|
|
1005
|
-
:param str id: (required)
|
|
1006
|
-
:return: V1FileEndpoint
|
|
1007
|
-
If the method is called asynchronously,
|
|
1008
|
-
returns the request thread.
|
|
1009
|
-
"""
|
|
1010
|
-
kwargs['_return_http_data_only'] = True
|
|
1011
|
-
if kwargs.get('async_req'):
|
|
1012
|
-
return self.endpoint_service_get_file_endpoint_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1013
|
-
else:
|
|
1014
|
-
(data) = self.endpoint_service_get_file_endpoint_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1015
|
-
return data
|
|
1016
|
-
|
|
1017
|
-
def endpoint_service_get_file_endpoint_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1FileEndpoint': # noqa: E501
|
|
1018
|
-
"""endpoint_service_get_file_endpoint # noqa: E501
|
|
1019
|
-
|
|
1020
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1021
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1022
|
-
>>> thread = api.endpoint_service_get_file_endpoint_with_http_info(project_id, id, async_req=True)
|
|
1023
|
-
>>> result = thread.get()
|
|
1024
|
-
|
|
1025
|
-
:param async_req bool
|
|
1026
|
-
:param str project_id: (required)
|
|
1027
|
-
:param str id: (required)
|
|
1028
|
-
:return: V1FileEndpoint
|
|
1029
|
-
If the method is called asynchronously,
|
|
1030
|
-
returns the request thread.
|
|
1031
|
-
"""
|
|
1032
|
-
|
|
1033
|
-
all_params = ['project_id', 'id'] # noqa: E501
|
|
1034
|
-
all_params.append('async_req')
|
|
1035
|
-
all_params.append('_return_http_data_only')
|
|
1036
|
-
all_params.append('_preload_content')
|
|
1037
|
-
all_params.append('_request_timeout')
|
|
1038
|
-
|
|
1039
|
-
params = locals()
|
|
1040
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1041
|
-
if key not in all_params:
|
|
1042
|
-
raise TypeError(
|
|
1043
|
-
"Got an unexpected keyword argument '%s'"
|
|
1044
|
-
" to method endpoint_service_get_file_endpoint" % key
|
|
1045
|
-
)
|
|
1046
|
-
params[key] = val
|
|
1047
|
-
del params['kwargs']
|
|
1048
|
-
# verify the required parameter 'project_id' is set
|
|
1049
|
-
if ('project_id' not in params or
|
|
1050
|
-
params['project_id'] is None):
|
|
1051
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_get_file_endpoint`") # noqa: E501
|
|
1052
|
-
# verify the required parameter 'id' is set
|
|
1053
|
-
if ('id' not in params or
|
|
1054
|
-
params['id'] is None):
|
|
1055
|
-
raise ValueError("Missing the required parameter `id` when calling `endpoint_service_get_file_endpoint`") # noqa: E501
|
|
1056
|
-
|
|
1057
|
-
collection_formats = {}
|
|
1058
|
-
|
|
1059
|
-
path_params = {}
|
|
1060
|
-
if 'project_id' in params:
|
|
1061
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1062
|
-
if 'id' in params:
|
|
1063
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
1064
|
-
|
|
1065
|
-
query_params = []
|
|
1066
|
-
|
|
1067
|
-
header_params = {}
|
|
1068
|
-
|
|
1069
|
-
form_params = []
|
|
1070
|
-
local_var_files = {}
|
|
1071
|
-
|
|
1072
|
-
body_params = None
|
|
1073
|
-
# HTTP header `Accept`
|
|
1074
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1075
|
-
['application/json']) # noqa: E501
|
|
1076
|
-
|
|
1077
|
-
# Authentication setting
|
|
1078
|
-
auth_settings = [] # noqa: E501
|
|
1079
|
-
|
|
1080
|
-
return self.api_client.call_api(
|
|
1081
|
-
'/v1/projects/{projectId}/file-endpoints/{id}', 'GET',
|
|
1082
|
-
path_params,
|
|
1083
|
-
query_params,
|
|
1084
|
-
header_params,
|
|
1085
|
-
body=body_params,
|
|
1086
|
-
post_params=form_params,
|
|
1087
|
-
files=local_var_files,
|
|
1088
|
-
response_type='V1FileEndpoint', # noqa: E501
|
|
1089
|
-
auth_settings=auth_settings,
|
|
1090
|
-
async_req=params.get('async_req'),
|
|
1091
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1092
|
-
_preload_content=params.get('_preload_content', True),
|
|
1093
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1094
|
-
collection_formats=collection_formats)
|
|
1095
|
-
|
|
1096
|
-
def endpoint_service_get_file_endpoint_by_name(self, project_id: 'str', **kwargs) -> 'V1FileEndpoint': # noqa: E501
|
|
1097
|
-
"""endpoint_service_get_file_endpoint_by_name # noqa: E501
|
|
1098
|
-
|
|
1099
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1100
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1101
|
-
>>> thread = api.endpoint_service_get_file_endpoint_by_name(project_id, async_req=True)
|
|
1102
|
-
>>> result = thread.get()
|
|
1103
|
-
|
|
1104
|
-
:param async_req bool
|
|
1105
|
-
:param str project_id: (required)
|
|
1106
|
-
:param str name:
|
|
1107
|
-
:return: V1FileEndpoint
|
|
1108
|
-
If the method is called asynchronously,
|
|
1109
|
-
returns the request thread.
|
|
1110
|
-
"""
|
|
1111
|
-
kwargs['_return_http_data_only'] = True
|
|
1112
|
-
if kwargs.get('async_req'):
|
|
1113
|
-
return self.endpoint_service_get_file_endpoint_by_name_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1114
|
-
else:
|
|
1115
|
-
(data) = self.endpoint_service_get_file_endpoint_by_name_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1116
|
-
return data
|
|
1117
|
-
|
|
1118
|
-
def endpoint_service_get_file_endpoint_by_name_with_http_info(self, project_id: 'str', **kwargs) -> 'V1FileEndpoint': # noqa: E501
|
|
1119
|
-
"""endpoint_service_get_file_endpoint_by_name # noqa: E501
|
|
1120
|
-
|
|
1121
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1122
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1123
|
-
>>> thread = api.endpoint_service_get_file_endpoint_by_name_with_http_info(project_id, async_req=True)
|
|
1124
|
-
>>> result = thread.get()
|
|
1125
|
-
|
|
1126
|
-
:param async_req bool
|
|
1127
|
-
:param str project_id: (required)
|
|
1128
|
-
:param str name:
|
|
1129
|
-
:return: V1FileEndpoint
|
|
1130
|
-
If the method is called asynchronously,
|
|
1131
|
-
returns the request thread.
|
|
1132
|
-
"""
|
|
1133
|
-
|
|
1134
|
-
all_params = ['project_id', 'name'] # noqa: E501
|
|
1135
|
-
all_params.append('async_req')
|
|
1136
|
-
all_params.append('_return_http_data_only')
|
|
1137
|
-
all_params.append('_preload_content')
|
|
1138
|
-
all_params.append('_request_timeout')
|
|
1139
|
-
|
|
1140
|
-
params = locals()
|
|
1141
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1142
|
-
if key not in all_params:
|
|
1143
|
-
raise TypeError(
|
|
1144
|
-
"Got an unexpected keyword argument '%s'"
|
|
1145
|
-
" to method endpoint_service_get_file_endpoint_by_name" % key
|
|
1146
|
-
)
|
|
1147
|
-
params[key] = val
|
|
1148
|
-
del params['kwargs']
|
|
1149
|
-
# verify the required parameter 'project_id' is set
|
|
1150
|
-
if ('project_id' not in params or
|
|
1151
|
-
params['project_id'] is None):
|
|
1152
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_get_file_endpoint_by_name`") # noqa: E501
|
|
1153
|
-
|
|
1154
|
-
collection_formats = {}
|
|
1155
|
-
|
|
1156
|
-
path_params = {}
|
|
1157
|
-
if 'project_id' in params:
|
|
1158
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1159
|
-
|
|
1160
|
-
query_params = []
|
|
1161
|
-
if 'name' in params:
|
|
1162
|
-
query_params.append(('name', params['name'])) # noqa: E501
|
|
1163
|
-
|
|
1164
|
-
header_params = {}
|
|
1165
|
-
|
|
1166
|
-
form_params = []
|
|
1167
|
-
local_var_files = {}
|
|
1168
|
-
|
|
1169
|
-
body_params = None
|
|
1170
|
-
# HTTP header `Accept`
|
|
1171
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1172
|
-
['application/json']) # noqa: E501
|
|
1173
|
-
|
|
1174
|
-
# Authentication setting
|
|
1175
|
-
auth_settings = [] # noqa: E501
|
|
1176
|
-
|
|
1177
|
-
return self.api_client.call_api(
|
|
1178
|
-
'/v1/projects/{projectId}/file-endpoints-name', 'GET',
|
|
1179
|
-
path_params,
|
|
1180
|
-
query_params,
|
|
1181
|
-
header_params,
|
|
1182
|
-
body=body_params,
|
|
1183
|
-
post_params=form_params,
|
|
1184
|
-
files=local_var_files,
|
|
1185
|
-
response_type='V1FileEndpoint', # noqa: E501
|
|
1186
|
-
auth_settings=auth_settings,
|
|
1187
|
-
async_req=params.get('async_req'),
|
|
1188
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1189
|
-
_preload_content=params.get('_preload_content', True),
|
|
1190
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1191
|
-
collection_formats=collection_formats)
|
|
1192
|
-
|
|
1193
|
-
def endpoint_service_get_service_execution(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ServiceExecution': # noqa: E501
|
|
1194
|
-
"""endpoint_service_get_service_execution # noqa: E501
|
|
1195
|
-
|
|
1196
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1197
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1198
|
-
>>> thread = api.endpoint_service_get_service_execution(project_id, id, async_req=True)
|
|
1199
|
-
>>> result = thread.get()
|
|
1200
|
-
|
|
1201
|
-
:param async_req bool
|
|
1202
|
-
:param str project_id: (required)
|
|
1203
|
-
:param str id: (required)
|
|
1204
|
-
:return: V1ServiceExecution
|
|
1205
|
-
If the method is called asynchronously,
|
|
1206
|
-
returns the request thread.
|
|
1207
|
-
"""
|
|
1208
|
-
kwargs['_return_http_data_only'] = True
|
|
1209
|
-
if kwargs.get('async_req'):
|
|
1210
|
-
return self.endpoint_service_get_service_execution_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1211
|
-
else:
|
|
1212
|
-
(data) = self.endpoint_service_get_service_execution_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1213
|
-
return data
|
|
1214
|
-
|
|
1215
|
-
def endpoint_service_get_service_execution_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ServiceExecution': # noqa: E501
|
|
1216
|
-
"""endpoint_service_get_service_execution # noqa: E501
|
|
1217
|
-
|
|
1218
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1219
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1220
|
-
>>> thread = api.endpoint_service_get_service_execution_with_http_info(project_id, id, async_req=True)
|
|
1221
|
-
>>> result = thread.get()
|
|
1222
|
-
|
|
1223
|
-
:param async_req bool
|
|
1224
|
-
:param str project_id: (required)
|
|
1225
|
-
:param str id: (required)
|
|
1226
|
-
:return: V1ServiceExecution
|
|
1227
|
-
If the method is called asynchronously,
|
|
1228
|
-
returns the request thread.
|
|
1229
|
-
"""
|
|
1230
|
-
|
|
1231
|
-
all_params = ['project_id', 'id'] # noqa: E501
|
|
1232
|
-
all_params.append('async_req')
|
|
1233
|
-
all_params.append('_return_http_data_only')
|
|
1234
|
-
all_params.append('_preload_content')
|
|
1235
|
-
all_params.append('_request_timeout')
|
|
1236
|
-
|
|
1237
|
-
params = locals()
|
|
1238
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1239
|
-
if key not in all_params:
|
|
1240
|
-
raise TypeError(
|
|
1241
|
-
"Got an unexpected keyword argument '%s'"
|
|
1242
|
-
" to method endpoint_service_get_service_execution" % key
|
|
1243
|
-
)
|
|
1244
|
-
params[key] = val
|
|
1245
|
-
del params['kwargs']
|
|
1246
|
-
# verify the required parameter 'project_id' is set
|
|
1247
|
-
if ('project_id' not in params or
|
|
1248
|
-
params['project_id'] is None):
|
|
1249
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_get_service_execution`") # noqa: E501
|
|
1250
|
-
# verify the required parameter 'id' is set
|
|
1251
|
-
if ('id' not in params or
|
|
1252
|
-
params['id'] is None):
|
|
1253
|
-
raise ValueError("Missing the required parameter `id` when calling `endpoint_service_get_service_execution`") # noqa: E501
|
|
1254
|
-
|
|
1255
|
-
collection_formats = {}
|
|
1256
|
-
|
|
1257
|
-
path_params = {}
|
|
1258
|
-
if 'project_id' in params:
|
|
1259
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1260
|
-
if 'id' in params:
|
|
1261
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
1262
|
-
|
|
1263
|
-
query_params = []
|
|
1264
|
-
|
|
1265
|
-
header_params = {}
|
|
1266
|
-
|
|
1267
|
-
form_params = []
|
|
1268
|
-
local_var_files = {}
|
|
1269
|
-
|
|
1270
|
-
body_params = None
|
|
1271
|
-
# HTTP header `Accept`
|
|
1272
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1273
|
-
['application/json']) # noqa: E501
|
|
1274
|
-
|
|
1275
|
-
# Authentication setting
|
|
1276
|
-
auth_settings = [] # noqa: E501
|
|
1277
|
-
|
|
1278
|
-
return self.api_client.call_api(
|
|
1279
|
-
'/v1/projects/{projectId}/service-execution/{id}', 'GET',
|
|
1280
|
-
path_params,
|
|
1281
|
-
query_params,
|
|
1282
|
-
header_params,
|
|
1283
|
-
body=body_params,
|
|
1284
|
-
post_params=form_params,
|
|
1285
|
-
files=local_var_files,
|
|
1286
|
-
response_type='V1ServiceExecution', # noqa: E501
|
|
1287
|
-
auth_settings=auth_settings,
|
|
1288
|
-
async_req=params.get('async_req'),
|
|
1289
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1290
|
-
_preload_content=params.get('_preload_content', True),
|
|
1291
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1292
|
-
collection_formats=collection_formats)
|
|
1293
|
-
|
|
1294
|
-
def endpoint_service_get_service_execution_status(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1GetServiceExecutionStatusResponse': # noqa: E501
|
|
1295
|
-
"""endpoint_service_get_service_execution_status # noqa: E501
|
|
1296
|
-
|
|
1297
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1298
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1299
|
-
>>> thread = api.endpoint_service_get_service_execution_status(body, project_id, id, async_req=True)
|
|
1300
|
-
>>> result = thread.get()
|
|
1301
|
-
|
|
1302
|
-
:param async_req bool
|
|
1303
|
-
:param object body: (required)
|
|
1304
|
-
:param str project_id: (required)
|
|
1305
|
-
:param str id: (required)
|
|
1306
|
-
:return: V1GetServiceExecutionStatusResponse
|
|
1307
|
-
If the method is called asynchronously,
|
|
1308
|
-
returns the request thread.
|
|
1309
|
-
"""
|
|
1310
|
-
kwargs['_return_http_data_only'] = True
|
|
1311
|
-
if kwargs.get('async_req'):
|
|
1312
|
-
return self.endpoint_service_get_service_execution_status_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
1313
|
-
else:
|
|
1314
|
-
(data) = self.endpoint_service_get_service_execution_status_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
1315
|
-
return data
|
|
1316
|
-
|
|
1317
|
-
def endpoint_service_get_service_execution_status_with_http_info(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1GetServiceExecutionStatusResponse': # noqa: E501
|
|
1318
|
-
"""endpoint_service_get_service_execution_status # noqa: E501
|
|
1319
|
-
|
|
1320
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1321
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1322
|
-
>>> thread = api.endpoint_service_get_service_execution_status_with_http_info(body, project_id, id, async_req=True)
|
|
1323
|
-
>>> result = thread.get()
|
|
1324
|
-
|
|
1325
|
-
:param async_req bool
|
|
1326
|
-
:param object body: (required)
|
|
1327
|
-
:param str project_id: (required)
|
|
1328
|
-
:param str id: (required)
|
|
1329
|
-
:return: V1GetServiceExecutionStatusResponse
|
|
1330
|
-
If the method is called asynchronously,
|
|
1331
|
-
returns the request thread.
|
|
1332
|
-
"""
|
|
1333
|
-
|
|
1334
|
-
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
1335
|
-
all_params.append('async_req')
|
|
1336
|
-
all_params.append('_return_http_data_only')
|
|
1337
|
-
all_params.append('_preload_content')
|
|
1338
|
-
all_params.append('_request_timeout')
|
|
1339
|
-
|
|
1340
|
-
params = locals()
|
|
1341
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1342
|
-
if key not in all_params:
|
|
1343
|
-
raise TypeError(
|
|
1344
|
-
"Got an unexpected keyword argument '%s'"
|
|
1345
|
-
" to method endpoint_service_get_service_execution_status" % key
|
|
1346
|
-
)
|
|
1347
|
-
params[key] = val
|
|
1348
|
-
del params['kwargs']
|
|
1349
|
-
# verify the required parameter 'body' is set
|
|
1350
|
-
if ('body' not in params or
|
|
1351
|
-
params['body'] is None):
|
|
1352
|
-
raise ValueError("Missing the required parameter `body` when calling `endpoint_service_get_service_execution_status`") # noqa: E501
|
|
1353
|
-
# verify the required parameter 'project_id' is set
|
|
1354
|
-
if ('project_id' not in params or
|
|
1355
|
-
params['project_id'] is None):
|
|
1356
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_get_service_execution_status`") # noqa: E501
|
|
1357
|
-
# verify the required parameter 'id' is set
|
|
1358
|
-
if ('id' not in params or
|
|
1359
|
-
params['id'] is None):
|
|
1360
|
-
raise ValueError("Missing the required parameter `id` when calling `endpoint_service_get_service_execution_status`") # noqa: E501
|
|
1361
|
-
|
|
1362
|
-
collection_formats = {}
|
|
1363
|
-
|
|
1364
|
-
path_params = {}
|
|
1365
|
-
if 'project_id' in params:
|
|
1366
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1367
|
-
if 'id' in params:
|
|
1368
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
1369
|
-
|
|
1370
|
-
query_params = []
|
|
1371
|
-
|
|
1372
|
-
header_params = {}
|
|
1373
|
-
|
|
1374
|
-
form_params = []
|
|
1375
|
-
local_var_files = {}
|
|
1376
|
-
|
|
1377
|
-
body_params = None
|
|
1378
|
-
if 'body' in params:
|
|
1379
|
-
body_params = params['body']
|
|
1380
|
-
# HTTP header `Accept`
|
|
1381
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1382
|
-
['application/json']) # noqa: E501
|
|
1383
|
-
|
|
1384
|
-
# HTTP header `Content-Type`
|
|
1385
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1386
|
-
['application/json']) # noqa: E501
|
|
1387
|
-
|
|
1388
|
-
# Authentication setting
|
|
1389
|
-
auth_settings = [] # noqa: E501
|
|
1390
|
-
|
|
1391
|
-
return self.api_client.call_api(
|
|
1392
|
-
'/v1/projects/{projectId}/service-execution-status/{id}', 'POST',
|
|
1393
|
-
path_params,
|
|
1394
|
-
query_params,
|
|
1395
|
-
header_params,
|
|
1396
|
-
body=body_params,
|
|
1397
|
-
post_params=form_params,
|
|
1398
|
-
files=local_var_files,
|
|
1399
|
-
response_type='V1GetServiceExecutionStatusResponse', # noqa: E501
|
|
1400
|
-
auth_settings=auth_settings,
|
|
1401
|
-
async_req=params.get('async_req'),
|
|
1402
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1403
|
-
_preload_content=params.get('_preload_content', True),
|
|
1404
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1405
|
-
collection_formats=collection_formats)
|
|
1406
|
-
|
|
1407
|
-
def endpoint_service_list_endpoints(self, project_id: 'str', **kwargs) -> 'V1ListEndpointsResponse': # noqa: E501
|
|
1408
|
-
"""endpoint_service_list_endpoints # noqa: E501
|
|
1409
|
-
|
|
1410
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1411
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1412
|
-
>>> thread = api.endpoint_service_list_endpoints(project_id, async_req=True)
|
|
1413
|
-
>>> result = thread.get()
|
|
1414
|
-
|
|
1415
|
-
:param async_req bool
|
|
1416
|
-
:param str project_id: (required)
|
|
1417
|
-
:param str cloudspace_id:
|
|
1418
|
-
:param bool auto_start:
|
|
1419
|
-
:param str cluster_id:
|
|
1420
|
-
:param list[str] ids:
|
|
1421
|
-
:param bool active_cloudspaces:
|
|
1422
|
-
:param bool active_jobs:
|
|
1423
|
-
:param list[str] cloudspace_ids:
|
|
1424
|
-
:param list[str] job_ids:
|
|
1425
|
-
:return: V1ListEndpointsResponse
|
|
1426
|
-
If the method is called asynchronously,
|
|
1427
|
-
returns the request thread.
|
|
1428
|
-
"""
|
|
1429
|
-
kwargs['_return_http_data_only'] = True
|
|
1430
|
-
if kwargs.get('async_req'):
|
|
1431
|
-
return self.endpoint_service_list_endpoints_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1432
|
-
else:
|
|
1433
|
-
(data) = self.endpoint_service_list_endpoints_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1434
|
-
return data
|
|
1435
|
-
|
|
1436
|
-
def endpoint_service_list_endpoints_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListEndpointsResponse': # noqa: E501
|
|
1437
|
-
"""endpoint_service_list_endpoints # noqa: E501
|
|
1438
|
-
|
|
1439
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1440
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1441
|
-
>>> thread = api.endpoint_service_list_endpoints_with_http_info(project_id, async_req=True)
|
|
1442
|
-
>>> result = thread.get()
|
|
1443
|
-
|
|
1444
|
-
:param async_req bool
|
|
1445
|
-
:param str project_id: (required)
|
|
1446
|
-
:param str cloudspace_id:
|
|
1447
|
-
:param bool auto_start:
|
|
1448
|
-
:param str cluster_id:
|
|
1449
|
-
:param list[str] ids:
|
|
1450
|
-
:param bool active_cloudspaces:
|
|
1451
|
-
:param bool active_jobs:
|
|
1452
|
-
:param list[str] cloudspace_ids:
|
|
1453
|
-
:param list[str] job_ids:
|
|
1454
|
-
:return: V1ListEndpointsResponse
|
|
1455
|
-
If the method is called asynchronously,
|
|
1456
|
-
returns the request thread.
|
|
1457
|
-
"""
|
|
1458
|
-
|
|
1459
|
-
all_params = ['project_id', 'cloudspace_id', 'auto_start', 'cluster_id', 'ids', 'active_cloudspaces', 'active_jobs', 'cloudspace_ids', 'job_ids'] # noqa: E501
|
|
1460
|
-
all_params.append('async_req')
|
|
1461
|
-
all_params.append('_return_http_data_only')
|
|
1462
|
-
all_params.append('_preload_content')
|
|
1463
|
-
all_params.append('_request_timeout')
|
|
1464
|
-
|
|
1465
|
-
params = locals()
|
|
1466
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1467
|
-
if key not in all_params:
|
|
1468
|
-
raise TypeError(
|
|
1469
|
-
"Got an unexpected keyword argument '%s'"
|
|
1470
|
-
" to method endpoint_service_list_endpoints" % key
|
|
1471
|
-
)
|
|
1472
|
-
params[key] = val
|
|
1473
|
-
del params['kwargs']
|
|
1474
|
-
# verify the required parameter 'project_id' is set
|
|
1475
|
-
if ('project_id' not in params or
|
|
1476
|
-
params['project_id'] is None):
|
|
1477
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_list_endpoints`") # noqa: E501
|
|
1478
|
-
|
|
1479
|
-
collection_formats = {}
|
|
1480
|
-
|
|
1481
|
-
path_params = {}
|
|
1482
|
-
if 'project_id' in params:
|
|
1483
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1484
|
-
|
|
1485
|
-
query_params = []
|
|
1486
|
-
if 'cloudspace_id' in params:
|
|
1487
|
-
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
1488
|
-
if 'auto_start' in params:
|
|
1489
|
-
query_params.append(('autoStart', params['auto_start'])) # noqa: E501
|
|
1490
|
-
if 'cluster_id' in params:
|
|
1491
|
-
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
1492
|
-
if 'ids' in params:
|
|
1493
|
-
query_params.append(('ids', params['ids'])) # noqa: E501
|
|
1494
|
-
collection_formats['ids'] = 'multi' # noqa: E501
|
|
1495
|
-
if 'active_cloudspaces' in params:
|
|
1496
|
-
query_params.append(('activeCloudspaces', params['active_cloudspaces'])) # noqa: E501
|
|
1497
|
-
if 'active_jobs' in params:
|
|
1498
|
-
query_params.append(('activeJobs', params['active_jobs'])) # noqa: E501
|
|
1499
|
-
if 'cloudspace_ids' in params:
|
|
1500
|
-
query_params.append(('cloudspaceIds', params['cloudspace_ids'])) # noqa: E501
|
|
1501
|
-
collection_formats['cloudspaceIds'] = 'multi' # noqa: E501
|
|
1502
|
-
if 'job_ids' in params:
|
|
1503
|
-
query_params.append(('jobIds', params['job_ids'])) # noqa: E501
|
|
1504
|
-
collection_formats['jobIds'] = 'multi' # noqa: E501
|
|
1505
|
-
|
|
1506
|
-
header_params = {}
|
|
1507
|
-
|
|
1508
|
-
form_params = []
|
|
1509
|
-
local_var_files = {}
|
|
1510
|
-
|
|
1511
|
-
body_params = None
|
|
1512
|
-
# HTTP header `Accept`
|
|
1513
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1514
|
-
['application/json']) # noqa: E501
|
|
1515
|
-
|
|
1516
|
-
# Authentication setting
|
|
1517
|
-
auth_settings = [] # noqa: E501
|
|
1518
|
-
|
|
1519
|
-
return self.api_client.call_api(
|
|
1520
|
-
'/v1/projects/{projectId}/endpoints', 'GET',
|
|
1521
|
-
path_params,
|
|
1522
|
-
query_params,
|
|
1523
|
-
header_params,
|
|
1524
|
-
body=body_params,
|
|
1525
|
-
post_params=form_params,
|
|
1526
|
-
files=local_var_files,
|
|
1527
|
-
response_type='V1ListEndpointsResponse', # noqa: E501
|
|
1528
|
-
auth_settings=auth_settings,
|
|
1529
|
-
async_req=params.get('async_req'),
|
|
1530
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1531
|
-
_preload_content=params.get('_preload_content', True),
|
|
1532
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1533
|
-
collection_formats=collection_formats)
|
|
1534
|
-
|
|
1535
|
-
def endpoint_service_list_file_endpoints(self, project_id: 'str', **kwargs) -> 'V1ListFileEndpointsResponse': # noqa: E501
|
|
1536
|
-
"""endpoint_service_list_file_endpoints # noqa: E501
|
|
1537
|
-
|
|
1538
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1539
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1540
|
-
>>> thread = api.endpoint_service_list_file_endpoints(project_id, async_req=True)
|
|
1541
|
-
>>> result = thread.get()
|
|
1542
|
-
|
|
1543
|
-
:param async_req bool
|
|
1544
|
-
:param str project_id: (required)
|
|
1545
|
-
:param str cloudspace_id:
|
|
1546
|
-
:return: V1ListFileEndpointsResponse
|
|
1547
|
-
If the method is called asynchronously,
|
|
1548
|
-
returns the request thread.
|
|
1549
|
-
"""
|
|
1550
|
-
kwargs['_return_http_data_only'] = True
|
|
1551
|
-
if kwargs.get('async_req'):
|
|
1552
|
-
return self.endpoint_service_list_file_endpoints_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1553
|
-
else:
|
|
1554
|
-
(data) = self.endpoint_service_list_file_endpoints_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1555
|
-
return data
|
|
1556
|
-
|
|
1557
|
-
def endpoint_service_list_file_endpoints_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListFileEndpointsResponse': # noqa: E501
|
|
1558
|
-
"""endpoint_service_list_file_endpoints # noqa: E501
|
|
1559
|
-
|
|
1560
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1561
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1562
|
-
>>> thread = api.endpoint_service_list_file_endpoints_with_http_info(project_id, async_req=True)
|
|
1563
|
-
>>> result = thread.get()
|
|
1564
|
-
|
|
1565
|
-
:param async_req bool
|
|
1566
|
-
:param str project_id: (required)
|
|
1567
|
-
:param str cloudspace_id:
|
|
1568
|
-
:return: V1ListFileEndpointsResponse
|
|
1569
|
-
If the method is called asynchronously,
|
|
1570
|
-
returns the request thread.
|
|
1571
|
-
"""
|
|
1572
|
-
|
|
1573
|
-
all_params = ['project_id', 'cloudspace_id'] # noqa: E501
|
|
1574
|
-
all_params.append('async_req')
|
|
1575
|
-
all_params.append('_return_http_data_only')
|
|
1576
|
-
all_params.append('_preload_content')
|
|
1577
|
-
all_params.append('_request_timeout')
|
|
1578
|
-
|
|
1579
|
-
params = locals()
|
|
1580
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1581
|
-
if key not in all_params:
|
|
1582
|
-
raise TypeError(
|
|
1583
|
-
"Got an unexpected keyword argument '%s'"
|
|
1584
|
-
" to method endpoint_service_list_file_endpoints" % key
|
|
1585
|
-
)
|
|
1586
|
-
params[key] = val
|
|
1587
|
-
del params['kwargs']
|
|
1588
|
-
# verify the required parameter 'project_id' is set
|
|
1589
|
-
if ('project_id' not in params or
|
|
1590
|
-
params['project_id'] is None):
|
|
1591
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_list_file_endpoints`") # noqa: E501
|
|
1592
|
-
|
|
1593
|
-
collection_formats = {}
|
|
1594
|
-
|
|
1595
|
-
path_params = {}
|
|
1596
|
-
if 'project_id' in params:
|
|
1597
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1598
|
-
|
|
1599
|
-
query_params = []
|
|
1600
|
-
if 'cloudspace_id' in params:
|
|
1601
|
-
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
1602
|
-
|
|
1603
|
-
header_params = {}
|
|
1604
|
-
|
|
1605
|
-
form_params = []
|
|
1606
|
-
local_var_files = {}
|
|
1607
|
-
|
|
1608
|
-
body_params = None
|
|
1609
|
-
# HTTP header `Accept`
|
|
1610
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1611
|
-
['application/json']) # noqa: E501
|
|
1612
|
-
|
|
1613
|
-
# Authentication setting
|
|
1614
|
-
auth_settings = [] # noqa: E501
|
|
1615
|
-
|
|
1616
|
-
return self.api_client.call_api(
|
|
1617
|
-
'/v1/projects/{projectId}/file-endpoints', 'GET',
|
|
1618
|
-
path_params,
|
|
1619
|
-
query_params,
|
|
1620
|
-
header_params,
|
|
1621
|
-
body=body_params,
|
|
1622
|
-
post_params=form_params,
|
|
1623
|
-
files=local_var_files,
|
|
1624
|
-
response_type='V1ListFileEndpointsResponse', # noqa: E501
|
|
1625
|
-
auth_settings=auth_settings,
|
|
1626
|
-
async_req=params.get('async_req'),
|
|
1627
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1628
|
-
_preload_content=params.get('_preload_content', True),
|
|
1629
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1630
|
-
collection_formats=collection_formats)
|
|
1631
|
-
|
|
1632
|
-
def endpoint_service_list_published_file_endpoints(self, project_id: 'str', **kwargs) -> 'V1ListFileEndpointsResponse': # noqa: E501
|
|
1633
|
-
"""endpoint_service_list_published_file_endpoints # noqa: E501
|
|
1634
|
-
|
|
1635
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1636
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1637
|
-
>>> thread = api.endpoint_service_list_published_file_endpoints(project_id, async_req=True)
|
|
1638
|
-
>>> result = thread.get()
|
|
1639
|
-
|
|
1640
|
-
:param async_req bool
|
|
1641
|
-
:param str project_id: (required)
|
|
1642
|
-
:param str cloudspace_id:
|
|
1643
|
-
:return: V1ListFileEndpointsResponse
|
|
1644
|
-
If the method is called asynchronously,
|
|
1645
|
-
returns the request thread.
|
|
1646
|
-
"""
|
|
1647
|
-
kwargs['_return_http_data_only'] = True
|
|
1648
|
-
if kwargs.get('async_req'):
|
|
1649
|
-
return self.endpoint_service_list_published_file_endpoints_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1650
|
-
else:
|
|
1651
|
-
(data) = self.endpoint_service_list_published_file_endpoints_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1652
|
-
return data
|
|
1653
|
-
|
|
1654
|
-
def endpoint_service_list_published_file_endpoints_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListFileEndpointsResponse': # noqa: E501
|
|
1655
|
-
"""endpoint_service_list_published_file_endpoints # noqa: E501
|
|
1656
|
-
|
|
1657
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1658
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1659
|
-
>>> thread = api.endpoint_service_list_published_file_endpoints_with_http_info(project_id, async_req=True)
|
|
1660
|
-
>>> result = thread.get()
|
|
1661
|
-
|
|
1662
|
-
:param async_req bool
|
|
1663
|
-
:param str project_id: (required)
|
|
1664
|
-
:param str cloudspace_id:
|
|
1665
|
-
:return: V1ListFileEndpointsResponse
|
|
1666
|
-
If the method is called asynchronously,
|
|
1667
|
-
returns the request thread.
|
|
1668
|
-
"""
|
|
1669
|
-
|
|
1670
|
-
all_params = ['project_id', 'cloudspace_id'] # noqa: E501
|
|
1671
|
-
all_params.append('async_req')
|
|
1672
|
-
all_params.append('_return_http_data_only')
|
|
1673
|
-
all_params.append('_preload_content')
|
|
1674
|
-
all_params.append('_request_timeout')
|
|
1675
|
-
|
|
1676
|
-
params = locals()
|
|
1677
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1678
|
-
if key not in all_params:
|
|
1679
|
-
raise TypeError(
|
|
1680
|
-
"Got an unexpected keyword argument '%s'"
|
|
1681
|
-
" to method endpoint_service_list_published_file_endpoints" % key
|
|
1682
|
-
)
|
|
1683
|
-
params[key] = val
|
|
1684
|
-
del params['kwargs']
|
|
1685
|
-
# verify the required parameter 'project_id' is set
|
|
1686
|
-
if ('project_id' not in params or
|
|
1687
|
-
params['project_id'] is None):
|
|
1688
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_list_published_file_endpoints`") # noqa: E501
|
|
1689
|
-
|
|
1690
|
-
collection_formats = {}
|
|
1691
|
-
|
|
1692
|
-
path_params = {}
|
|
1693
|
-
if 'project_id' in params:
|
|
1694
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1695
|
-
|
|
1696
|
-
query_params = []
|
|
1697
|
-
if 'cloudspace_id' in params:
|
|
1698
|
-
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
1699
|
-
|
|
1700
|
-
header_params = {}
|
|
1701
|
-
|
|
1702
|
-
form_params = []
|
|
1703
|
-
local_var_files = {}
|
|
1704
|
-
|
|
1705
|
-
body_params = None
|
|
1706
|
-
# HTTP header `Accept`
|
|
1707
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1708
|
-
['application/json']) # noqa: E501
|
|
1709
|
-
|
|
1710
|
-
# Authentication setting
|
|
1711
|
-
auth_settings = [] # noqa: E501
|
|
1712
|
-
|
|
1713
|
-
return self.api_client.call_api(
|
|
1714
|
-
'/v1/projects/{projectId}/file-endpoints-published', 'GET',
|
|
1715
|
-
path_params,
|
|
1716
|
-
query_params,
|
|
1717
|
-
header_params,
|
|
1718
|
-
body=body_params,
|
|
1719
|
-
post_params=form_params,
|
|
1720
|
-
files=local_var_files,
|
|
1721
|
-
response_type='V1ListFileEndpointsResponse', # noqa: E501
|
|
1722
|
-
auth_settings=auth_settings,
|
|
1723
|
-
async_req=params.get('async_req'),
|
|
1724
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1725
|
-
_preload_content=params.get('_preload_content', True),
|
|
1726
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1727
|
-
collection_formats=collection_formats)
|
|
1728
|
-
|
|
1729
|
-
def endpoint_service_list_service_execution_lightningapp_instances(self, project_id: 'str', **kwargs) -> 'V1ListServiceExecutionLightningappInstancesResponse': # noqa: E501
|
|
1730
|
-
"""endpoint_service_list_service_execution_lightningapp_instances # noqa: E501
|
|
1731
|
-
|
|
1732
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1733
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1734
|
-
>>> thread = api.endpoint_service_list_service_execution_lightningapp_instances(project_id, async_req=True)
|
|
1735
|
-
>>> result = thread.get()
|
|
1736
|
-
|
|
1737
|
-
:param async_req bool
|
|
1738
|
-
:param str project_id: (required)
|
|
1739
|
-
:param str id:
|
|
1740
|
-
:param str user_id:
|
|
1741
|
-
:return: V1ListServiceExecutionLightningappInstancesResponse
|
|
1742
|
-
If the method is called asynchronously,
|
|
1743
|
-
returns the request thread.
|
|
1744
|
-
"""
|
|
1745
|
-
kwargs['_return_http_data_only'] = True
|
|
1746
|
-
if kwargs.get('async_req'):
|
|
1747
|
-
return self.endpoint_service_list_service_execution_lightningapp_instances_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1748
|
-
else:
|
|
1749
|
-
(data) = self.endpoint_service_list_service_execution_lightningapp_instances_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1750
|
-
return data
|
|
1751
|
-
|
|
1752
|
-
def endpoint_service_list_service_execution_lightningapp_instances_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListServiceExecutionLightningappInstancesResponse': # noqa: E501
|
|
1753
|
-
"""endpoint_service_list_service_execution_lightningapp_instances # noqa: E501
|
|
1754
|
-
|
|
1755
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1756
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1757
|
-
>>> thread = api.endpoint_service_list_service_execution_lightningapp_instances_with_http_info(project_id, async_req=True)
|
|
1758
|
-
>>> result = thread.get()
|
|
1759
|
-
|
|
1760
|
-
:param async_req bool
|
|
1761
|
-
:param str project_id: (required)
|
|
1762
|
-
:param str id:
|
|
1763
|
-
:param str user_id:
|
|
1764
|
-
:return: V1ListServiceExecutionLightningappInstancesResponse
|
|
1765
|
-
If the method is called asynchronously,
|
|
1766
|
-
returns the request thread.
|
|
1767
|
-
"""
|
|
1768
|
-
|
|
1769
|
-
all_params = ['project_id', 'id', 'user_id'] # noqa: E501
|
|
1770
|
-
all_params.append('async_req')
|
|
1771
|
-
all_params.append('_return_http_data_only')
|
|
1772
|
-
all_params.append('_preload_content')
|
|
1773
|
-
all_params.append('_request_timeout')
|
|
1774
|
-
|
|
1775
|
-
params = locals()
|
|
1776
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1777
|
-
if key not in all_params:
|
|
1778
|
-
raise TypeError(
|
|
1779
|
-
"Got an unexpected keyword argument '%s'"
|
|
1780
|
-
" to method endpoint_service_list_service_execution_lightningapp_instances" % key
|
|
1781
|
-
)
|
|
1782
|
-
params[key] = val
|
|
1783
|
-
del params['kwargs']
|
|
1784
|
-
# verify the required parameter 'project_id' is set
|
|
1785
|
-
if ('project_id' not in params or
|
|
1786
|
-
params['project_id'] is None):
|
|
1787
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_list_service_execution_lightningapp_instances`") # noqa: E501
|
|
1788
|
-
|
|
1789
|
-
collection_formats = {}
|
|
1790
|
-
|
|
1791
|
-
path_params = {}
|
|
1792
|
-
if 'project_id' in params:
|
|
1793
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1794
|
-
|
|
1795
|
-
query_params = []
|
|
1796
|
-
if 'id' in params:
|
|
1797
|
-
query_params.append(('id', params['id'])) # noqa: E501
|
|
1798
|
-
if 'user_id' in params:
|
|
1799
|
-
query_params.append(('userId', params['user_id'])) # noqa: E501
|
|
1800
|
-
|
|
1801
|
-
header_params = {}
|
|
1802
|
-
|
|
1803
|
-
form_params = []
|
|
1804
|
-
local_var_files = {}
|
|
1805
|
-
|
|
1806
|
-
body_params = None
|
|
1807
|
-
# HTTP header `Accept`
|
|
1808
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1809
|
-
['application/json']) # noqa: E501
|
|
1810
|
-
|
|
1811
|
-
# Authentication setting
|
|
1812
|
-
auth_settings = [] # noqa: E501
|
|
1813
|
-
|
|
1814
|
-
return self.api_client.call_api(
|
|
1815
|
-
'/v1/projects/{projectId}/service-execution-appinstances', 'GET',
|
|
1816
|
-
path_params,
|
|
1817
|
-
query_params,
|
|
1818
|
-
header_params,
|
|
1819
|
-
body=body_params,
|
|
1820
|
-
post_params=form_params,
|
|
1821
|
-
files=local_var_files,
|
|
1822
|
-
response_type='V1ListServiceExecutionLightningappInstancesResponse', # noqa: E501
|
|
1823
|
-
auth_settings=auth_settings,
|
|
1824
|
-
async_req=params.get('async_req'),
|
|
1825
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1826
|
-
_preload_content=params.get('_preload_content', True),
|
|
1827
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1828
|
-
collection_formats=collection_formats)
|
|
1829
|
-
|
|
1830
|
-
def endpoint_service_list_service_executions(self, project_id: 'str', **kwargs) -> 'V1ListServiceExecutionsResponse': # noqa: E501
|
|
1831
|
-
"""endpoint_service_list_service_executions # noqa: E501
|
|
1832
|
-
|
|
1833
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1834
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1835
|
-
>>> thread = api.endpoint_service_list_service_executions(project_id, async_req=True)
|
|
1836
|
-
>>> result = thread.get()
|
|
1837
|
-
|
|
1838
|
-
:param async_req bool
|
|
1839
|
-
:param str project_id: (required)
|
|
1840
|
-
:return: V1ListServiceExecutionsResponse
|
|
1841
|
-
If the method is called asynchronously,
|
|
1842
|
-
returns the request thread.
|
|
1843
|
-
"""
|
|
1844
|
-
kwargs['_return_http_data_only'] = True
|
|
1845
|
-
if kwargs.get('async_req'):
|
|
1846
|
-
return self.endpoint_service_list_service_executions_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1847
|
-
else:
|
|
1848
|
-
(data) = self.endpoint_service_list_service_executions_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1849
|
-
return data
|
|
1850
|
-
|
|
1851
|
-
def endpoint_service_list_service_executions_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListServiceExecutionsResponse': # noqa: E501
|
|
1852
|
-
"""endpoint_service_list_service_executions # noqa: E501
|
|
1853
|
-
|
|
1854
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1855
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1856
|
-
>>> thread = api.endpoint_service_list_service_executions_with_http_info(project_id, async_req=True)
|
|
1857
|
-
>>> result = thread.get()
|
|
1858
|
-
|
|
1859
|
-
:param async_req bool
|
|
1860
|
-
:param str project_id: (required)
|
|
1861
|
-
:return: V1ListServiceExecutionsResponse
|
|
1862
|
-
If the method is called asynchronously,
|
|
1863
|
-
returns the request thread.
|
|
1864
|
-
"""
|
|
1865
|
-
|
|
1866
|
-
all_params = ['project_id'] # noqa: E501
|
|
1867
|
-
all_params.append('async_req')
|
|
1868
|
-
all_params.append('_return_http_data_only')
|
|
1869
|
-
all_params.append('_preload_content')
|
|
1870
|
-
all_params.append('_request_timeout')
|
|
1871
|
-
|
|
1872
|
-
params = locals()
|
|
1873
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1874
|
-
if key not in all_params:
|
|
1875
|
-
raise TypeError(
|
|
1876
|
-
"Got an unexpected keyword argument '%s'"
|
|
1877
|
-
" to method endpoint_service_list_service_executions" % key
|
|
1878
|
-
)
|
|
1879
|
-
params[key] = val
|
|
1880
|
-
del params['kwargs']
|
|
1881
|
-
# verify the required parameter 'project_id' is set
|
|
1882
|
-
if ('project_id' not in params or
|
|
1883
|
-
params['project_id'] is None):
|
|
1884
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_list_service_executions`") # noqa: E501
|
|
1885
|
-
|
|
1886
|
-
collection_formats = {}
|
|
1887
|
-
|
|
1888
|
-
path_params = {}
|
|
1889
|
-
if 'project_id' in params:
|
|
1890
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1891
|
-
|
|
1892
|
-
query_params = []
|
|
1893
|
-
|
|
1894
|
-
header_params = {}
|
|
1895
|
-
|
|
1896
|
-
form_params = []
|
|
1897
|
-
local_var_files = {}
|
|
1898
|
-
|
|
1899
|
-
body_params = None
|
|
1900
|
-
# HTTP header `Accept`
|
|
1901
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1902
|
-
['application/json']) # noqa: E501
|
|
1903
|
-
|
|
1904
|
-
# Authentication setting
|
|
1905
|
-
auth_settings = [] # noqa: E501
|
|
1906
|
-
|
|
1907
|
-
return self.api_client.call_api(
|
|
1908
|
-
'/v1/projects/{projectId}/service-execution', 'GET',
|
|
1909
|
-
path_params,
|
|
1910
|
-
query_params,
|
|
1911
|
-
header_params,
|
|
1912
|
-
body=body_params,
|
|
1913
|
-
post_params=form_params,
|
|
1914
|
-
files=local_var_files,
|
|
1915
|
-
response_type='V1ListServiceExecutionsResponse', # noqa: E501
|
|
1916
|
-
auth_settings=auth_settings,
|
|
1917
|
-
async_req=params.get('async_req'),
|
|
1918
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1919
|
-
_preload_content=params.get('_preload_content', True),
|
|
1920
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1921
|
-
collection_formats=collection_formats)
|
|
1922
|
-
|
|
1923
|
-
def endpoint_service_run_service_execution(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1ServiceExecution': # noqa: E501
|
|
1924
|
-
"""endpoint_service_run_service_execution # noqa: E501
|
|
1925
|
-
|
|
1926
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1927
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1928
|
-
>>> thread = api.endpoint_service_run_service_execution(body, project_id, id, async_req=True)
|
|
1929
|
-
>>> result = thread.get()
|
|
1930
|
-
|
|
1931
|
-
:param async_req bool
|
|
1932
|
-
:param object body: (required)
|
|
1933
|
-
:param str project_id: (required)
|
|
1934
|
-
:param str id: (required)
|
|
1935
|
-
:return: V1ServiceExecution
|
|
1936
|
-
If the method is called asynchronously,
|
|
1937
|
-
returns the request thread.
|
|
1938
|
-
"""
|
|
1939
|
-
kwargs['_return_http_data_only'] = True
|
|
1940
|
-
if kwargs.get('async_req'):
|
|
1941
|
-
return self.endpoint_service_run_service_execution_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
1942
|
-
else:
|
|
1943
|
-
(data) = self.endpoint_service_run_service_execution_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
1944
|
-
return data
|
|
1945
|
-
|
|
1946
|
-
def endpoint_service_run_service_execution_with_http_info(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1ServiceExecution': # noqa: E501
|
|
1947
|
-
"""endpoint_service_run_service_execution # noqa: E501
|
|
1948
|
-
|
|
1949
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1950
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1951
|
-
>>> thread = api.endpoint_service_run_service_execution_with_http_info(body, project_id, id, async_req=True)
|
|
1952
|
-
>>> result = thread.get()
|
|
1953
|
-
|
|
1954
|
-
:param async_req bool
|
|
1955
|
-
:param object body: (required)
|
|
1956
|
-
:param str project_id: (required)
|
|
1957
|
-
:param str id: (required)
|
|
1958
|
-
:return: V1ServiceExecution
|
|
1959
|
-
If the method is called asynchronously,
|
|
1960
|
-
returns the request thread.
|
|
1961
|
-
"""
|
|
1962
|
-
|
|
1963
|
-
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
1964
|
-
all_params.append('async_req')
|
|
1965
|
-
all_params.append('_return_http_data_only')
|
|
1966
|
-
all_params.append('_preload_content')
|
|
1967
|
-
all_params.append('_request_timeout')
|
|
1968
|
-
|
|
1969
|
-
params = locals()
|
|
1970
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1971
|
-
if key not in all_params:
|
|
1972
|
-
raise TypeError(
|
|
1973
|
-
"Got an unexpected keyword argument '%s'"
|
|
1974
|
-
" to method endpoint_service_run_service_execution" % key
|
|
1975
|
-
)
|
|
1976
|
-
params[key] = val
|
|
1977
|
-
del params['kwargs']
|
|
1978
|
-
# verify the required parameter 'body' is set
|
|
1979
|
-
if ('body' not in params or
|
|
1980
|
-
params['body'] is None):
|
|
1981
|
-
raise ValueError("Missing the required parameter `body` when calling `endpoint_service_run_service_execution`") # noqa: E501
|
|
1982
|
-
# verify the required parameter 'project_id' is set
|
|
1983
|
-
if ('project_id' not in params or
|
|
1984
|
-
params['project_id'] is None):
|
|
1985
|
-
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_run_service_execution`") # noqa: E501
|
|
1986
|
-
# verify the required parameter 'id' is set
|
|
1987
|
-
if ('id' not in params or
|
|
1988
|
-
params['id'] is None):
|
|
1989
|
-
raise ValueError("Missing the required parameter `id` when calling `endpoint_service_run_service_execution`") # noqa: E501
|
|
1990
|
-
|
|
1991
|
-
collection_formats = {}
|
|
1992
|
-
|
|
1993
|
-
path_params = {}
|
|
1994
|
-
if 'project_id' in params:
|
|
1995
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1996
|
-
if 'id' in params:
|
|
1997
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
1998
|
-
|
|
1999
|
-
query_params = []
|
|
2000
|
-
|
|
2001
|
-
header_params = {}
|
|
2002
|
-
|
|
2003
|
-
form_params = []
|
|
2004
|
-
local_var_files = {}
|
|
2005
|
-
|
|
2006
|
-
body_params = None
|
|
2007
|
-
if 'body' in params:
|
|
2008
|
-
body_params = params['body']
|
|
2009
|
-
# HTTP header `Accept`
|
|
2010
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2011
|
-
['application/json']) # noqa: E501
|
|
2012
|
-
|
|
2013
|
-
# HTTP header `Content-Type`
|
|
2014
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2015
|
-
['application/json']) # noqa: E501
|
|
2016
|
-
|
|
2017
|
-
# Authentication setting
|
|
2018
|
-
auth_settings = [] # noqa: E501
|
|
2019
|
-
|
|
2020
|
-
return self.api_client.call_api(
|
|
2021
|
-
'/v1/projects/{projectId}/service-execution/{id}/run', 'POST',
|
|
2022
|
-
path_params,
|
|
2023
|
-
query_params,
|
|
2024
|
-
header_params,
|
|
2025
|
-
body=body_params,
|
|
2026
|
-
post_params=form_params,
|
|
2027
|
-
files=local_var_files,
|
|
2028
|
-
response_type='V1ServiceExecution', # noqa: E501
|
|
2029
|
-
auth_settings=auth_settings,
|
|
2030
|
-
async_req=params.get('async_req'),
|
|
2031
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2032
|
-
_preload_content=params.get('_preload_content', True),
|
|
2033
|
-
_request_timeout=params.get('_request_timeout'),
|
|
2034
|
-
collection_formats=collection_formats)
|
|
2035
|
-
|
|
2036
|
-
def endpoint_service_update_endpoint(self, body: 'EndpointsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Endpoint': # noqa: E501
|
|
2037
|
-
"""endpoint_service_update_endpoint # noqa: E501
|
|
46
|
+
def endpoint_service_create_endpoint(self, body: 'ProjectIdEndpointsBody', project_id: 'str', **kwargs) -> 'V1Endpoint': # noqa: E501
|
|
47
|
+
"""endpoint_service_create_endpoint # noqa: E501
|
|
2038
48
|
|
|
2039
49
|
This method makes a synchronous HTTP request by default. To make an
|
|
2040
50
|
asynchronous HTTP request, please pass async_req=True
|
|
2041
|
-
>>> thread = api.
|
|
51
|
+
>>> thread = api.endpoint_service_create_endpoint(body, project_id, async_req=True)
|
|
2042
52
|
>>> result = thread.get()
|
|
2043
53
|
|
|
2044
54
|
:param async_req bool
|
|
2045
|
-
:param
|
|
55
|
+
:param ProjectIdEndpointsBody body: (required)
|
|
2046
56
|
:param str project_id: (required)
|
|
2047
|
-
:param str id: (required)
|
|
2048
57
|
:return: V1Endpoint
|
|
2049
58
|
If the method is called asynchronously,
|
|
2050
59
|
returns the request thread.
|
|
2051
60
|
"""
|
|
2052
61
|
kwargs['_return_http_data_only'] = True
|
|
2053
62
|
if kwargs.get('async_req'):
|
|
2054
|
-
return self.
|
|
63
|
+
return self.endpoint_service_create_endpoint_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
2055
64
|
else:
|
|
2056
|
-
(data) = self.
|
|
65
|
+
(data) = self.endpoint_service_create_endpoint_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
2057
66
|
return data
|
|
2058
67
|
|
|
2059
|
-
def
|
|
2060
|
-
"""
|
|
68
|
+
def endpoint_service_create_endpoint_with_http_info(self, body: 'ProjectIdEndpointsBody', project_id: 'str', **kwargs) -> 'V1Endpoint': # noqa: E501
|
|
69
|
+
"""endpoint_service_create_endpoint # noqa: E501
|
|
2061
70
|
|
|
2062
71
|
This method makes a synchronous HTTP request by default. To make an
|
|
2063
72
|
asynchronous HTTP request, please pass async_req=True
|
|
2064
|
-
>>> thread = api.
|
|
73
|
+
>>> thread = api.endpoint_service_create_endpoint_with_http_info(body, project_id, async_req=True)
|
|
2065
74
|
>>> result = thread.get()
|
|
2066
75
|
|
|
2067
76
|
:param async_req bool
|
|
2068
|
-
:param
|
|
77
|
+
:param ProjectIdEndpointsBody body: (required)
|
|
2069
78
|
:param str project_id: (required)
|
|
2070
|
-
:param str id: (required)
|
|
2071
79
|
:return: V1Endpoint
|
|
2072
80
|
If the method is called asynchronously,
|
|
2073
81
|
returns the request thread.
|
|
2074
82
|
"""
|
|
2075
83
|
|
|
2076
|
-
all_params = ['body', 'project_id'
|
|
84
|
+
all_params = ['body', 'project_id'] # noqa: E501
|
|
2077
85
|
all_params.append('async_req')
|
|
2078
86
|
all_params.append('_return_http_data_only')
|
|
2079
87
|
all_params.append('_preload_content')
|
|
@@ -2084,30 +92,24 @@ class EndpointServiceApi(object):
|
|
|
2084
92
|
if key not in all_params:
|
|
2085
93
|
raise TypeError(
|
|
2086
94
|
"Got an unexpected keyword argument '%s'"
|
|
2087
|
-
" to method
|
|
95
|
+
" to method endpoint_service_create_endpoint" % key
|
|
2088
96
|
)
|
|
2089
97
|
params[key] = val
|
|
2090
98
|
del params['kwargs']
|
|
2091
99
|
# verify the required parameter 'body' is set
|
|
2092
100
|
if ('body' not in params or
|
|
2093
101
|
params['body'] is None):
|
|
2094
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
102
|
+
raise ValueError("Missing the required parameter `body` when calling `endpoint_service_create_endpoint`") # noqa: E501
|
|
2095
103
|
# verify the required parameter 'project_id' is set
|
|
2096
104
|
if ('project_id' not in params or
|
|
2097
105
|
params['project_id'] is None):
|
|
2098
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
2099
|
-
# verify the required parameter 'id' is set
|
|
2100
|
-
if ('id' not in params or
|
|
2101
|
-
params['id'] is None):
|
|
2102
|
-
raise ValueError("Missing the required parameter `id` when calling `endpoint_service_update_endpoint`") # noqa: E501
|
|
106
|
+
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_create_endpoint`") # noqa: E501
|
|
2103
107
|
|
|
2104
108
|
collection_formats = {}
|
|
2105
109
|
|
|
2106
110
|
path_params = {}
|
|
2107
111
|
if 'project_id' in params:
|
|
2108
112
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2109
|
-
if 'id' in params:
|
|
2110
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
2111
113
|
|
|
2112
114
|
query_params = []
|
|
2113
115
|
|
|
@@ -2131,7 +133,7 @@ class EndpointServiceApi(object):
|
|
|
2131
133
|
auth_settings = [] # noqa: E501
|
|
2132
134
|
|
|
2133
135
|
return self.api_client.call_api(
|
|
2134
|
-
'/v1/projects/{projectId}/endpoints
|
|
136
|
+
'/v1/projects/{projectId}/endpoints', 'POST',
|
|
2135
137
|
path_params,
|
|
2136
138
|
query_params,
|
|
2137
139
|
header_params,
|
|
@@ -2146,47 +148,45 @@ class EndpointServiceApi(object):
|
|
|
2146
148
|
_request_timeout=params.get('_request_timeout'),
|
|
2147
149
|
collection_formats=collection_formats)
|
|
2148
150
|
|
|
2149
|
-
def
|
|
2150
|
-
"""
|
|
151
|
+
def endpoint_service_delete_endpoint(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteEndpointResponse': # noqa: E501
|
|
152
|
+
"""endpoint_service_delete_endpoint # noqa: E501
|
|
2151
153
|
|
|
2152
154
|
This method makes a synchronous HTTP request by default. To make an
|
|
2153
155
|
asynchronous HTTP request, please pass async_req=True
|
|
2154
|
-
>>> thread = api.
|
|
156
|
+
>>> thread = api.endpoint_service_delete_endpoint(project_id, id, async_req=True)
|
|
2155
157
|
>>> result = thread.get()
|
|
2156
158
|
|
|
2157
159
|
:param async_req bool
|
|
2158
|
-
:param FileendpointsIdBody body: (required)
|
|
2159
160
|
:param str project_id: (required)
|
|
2160
161
|
:param str id: (required)
|
|
2161
|
-
:return:
|
|
162
|
+
:return: V1DeleteEndpointResponse
|
|
2162
163
|
If the method is called asynchronously,
|
|
2163
164
|
returns the request thread.
|
|
2164
165
|
"""
|
|
2165
166
|
kwargs['_return_http_data_only'] = True
|
|
2166
167
|
if kwargs.get('async_req'):
|
|
2167
|
-
return self.
|
|
168
|
+
return self.endpoint_service_delete_endpoint_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
2168
169
|
else:
|
|
2169
|
-
(data) = self.
|
|
170
|
+
(data) = self.endpoint_service_delete_endpoint_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
2170
171
|
return data
|
|
2171
172
|
|
|
2172
|
-
def
|
|
2173
|
-
"""
|
|
173
|
+
def endpoint_service_delete_endpoint_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteEndpointResponse': # noqa: E501
|
|
174
|
+
"""endpoint_service_delete_endpoint # noqa: E501
|
|
2174
175
|
|
|
2175
176
|
This method makes a synchronous HTTP request by default. To make an
|
|
2176
177
|
asynchronous HTTP request, please pass async_req=True
|
|
2177
|
-
>>> thread = api.
|
|
178
|
+
>>> thread = api.endpoint_service_delete_endpoint_with_http_info(project_id, id, async_req=True)
|
|
2178
179
|
>>> result = thread.get()
|
|
2179
180
|
|
|
2180
181
|
:param async_req bool
|
|
2181
|
-
:param FileendpointsIdBody body: (required)
|
|
2182
182
|
:param str project_id: (required)
|
|
2183
183
|
:param str id: (required)
|
|
2184
|
-
:return:
|
|
184
|
+
:return: V1DeleteEndpointResponse
|
|
2185
185
|
If the method is called asynchronously,
|
|
2186
186
|
returns the request thread.
|
|
2187
187
|
"""
|
|
2188
188
|
|
|
2189
|
-
all_params = ['
|
|
189
|
+
all_params = ['project_id', 'id'] # noqa: E501
|
|
2190
190
|
all_params.append('async_req')
|
|
2191
191
|
all_params.append('_return_http_data_only')
|
|
2192
192
|
all_params.append('_preload_content')
|
|
@@ -2197,22 +197,18 @@ class EndpointServiceApi(object):
|
|
|
2197
197
|
if key not in all_params:
|
|
2198
198
|
raise TypeError(
|
|
2199
199
|
"Got an unexpected keyword argument '%s'"
|
|
2200
|
-
" to method
|
|
200
|
+
" to method endpoint_service_delete_endpoint" % key
|
|
2201
201
|
)
|
|
2202
202
|
params[key] = val
|
|
2203
203
|
del params['kwargs']
|
|
2204
|
-
# verify the required parameter 'body' is set
|
|
2205
|
-
if ('body' not in params or
|
|
2206
|
-
params['body'] is None):
|
|
2207
|
-
raise ValueError("Missing the required parameter `body` when calling `endpoint_service_update_file_endpoint`") # noqa: E501
|
|
2208
204
|
# verify the required parameter 'project_id' is set
|
|
2209
205
|
if ('project_id' not in params or
|
|
2210
206
|
params['project_id'] is None):
|
|
2211
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
207
|
+
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_delete_endpoint`") # noqa: E501
|
|
2212
208
|
# verify the required parameter 'id' is set
|
|
2213
209
|
if ('id' not in params or
|
|
2214
210
|
params['id'] is None):
|
|
2215
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
211
|
+
raise ValueError("Missing the required parameter `id` when calling `endpoint_service_delete_endpoint`") # noqa: E501
|
|
2216
212
|
|
|
2217
213
|
collection_formats = {}
|
|
2218
214
|
|
|
@@ -2230,28 +226,22 @@ class EndpointServiceApi(object):
|
|
|
2230
226
|
local_var_files = {}
|
|
2231
227
|
|
|
2232
228
|
body_params = None
|
|
2233
|
-
if 'body' in params:
|
|
2234
|
-
body_params = params['body']
|
|
2235
229
|
# HTTP header `Accept`
|
|
2236
230
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2237
231
|
['application/json']) # noqa: E501
|
|
2238
232
|
|
|
2239
|
-
# HTTP header `Content-Type`
|
|
2240
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2241
|
-
['application/json']) # noqa: E501
|
|
2242
|
-
|
|
2243
233
|
# Authentication setting
|
|
2244
234
|
auth_settings = [] # noqa: E501
|
|
2245
235
|
|
|
2246
236
|
return self.api_client.call_api(
|
|
2247
|
-
'/v1/projects/{projectId}/
|
|
237
|
+
'/v1/projects/{projectId}/endpoints/{id}', 'DELETE',
|
|
2248
238
|
path_params,
|
|
2249
239
|
query_params,
|
|
2250
240
|
header_params,
|
|
2251
241
|
body=body_params,
|
|
2252
242
|
post_params=form_params,
|
|
2253
243
|
files=local_var_files,
|
|
2254
|
-
response_type='
|
|
244
|
+
response_type='V1DeleteEndpointResponse', # noqa: E501
|
|
2255
245
|
auth_settings=auth_settings,
|
|
2256
246
|
async_req=params.get('async_req'),
|
|
2257
247
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2259,47 +249,47 @@ class EndpointServiceApi(object):
|
|
|
2259
249
|
_request_timeout=params.get('_request_timeout'),
|
|
2260
250
|
collection_formats=collection_formats)
|
|
2261
251
|
|
|
2262
|
-
def
|
|
2263
|
-
"""
|
|
252
|
+
def endpoint_service_get_endpoint(self, project_id: 'str', ref: 'str', **kwargs) -> 'V1Endpoint': # noqa: E501
|
|
253
|
+
"""endpoint_service_get_endpoint # noqa: E501
|
|
2264
254
|
|
|
2265
255
|
This method makes a synchronous HTTP request by default. To make an
|
|
2266
256
|
asynchronous HTTP request, please pass async_req=True
|
|
2267
|
-
>>> thread = api.
|
|
257
|
+
>>> thread = api.endpoint_service_get_endpoint(project_id, ref, async_req=True)
|
|
2268
258
|
>>> result = thread.get()
|
|
2269
259
|
|
|
2270
260
|
:param async_req bool
|
|
2271
|
-
:param ServiceexecutionIdBody body: (required)
|
|
2272
261
|
:param str project_id: (required)
|
|
2273
|
-
:param str
|
|
2274
|
-
:
|
|
262
|
+
:param str ref: (required)
|
|
263
|
+
:param str ref_type:
|
|
264
|
+
:return: V1Endpoint
|
|
2275
265
|
If the method is called asynchronously,
|
|
2276
266
|
returns the request thread.
|
|
2277
267
|
"""
|
|
2278
268
|
kwargs['_return_http_data_only'] = True
|
|
2279
269
|
if kwargs.get('async_req'):
|
|
2280
|
-
return self.
|
|
270
|
+
return self.endpoint_service_get_endpoint_with_http_info(project_id, ref, **kwargs) # noqa: E501
|
|
2281
271
|
else:
|
|
2282
|
-
(data) = self.
|
|
272
|
+
(data) = self.endpoint_service_get_endpoint_with_http_info(project_id, ref, **kwargs) # noqa: E501
|
|
2283
273
|
return data
|
|
2284
274
|
|
|
2285
|
-
def
|
|
2286
|
-
"""
|
|
275
|
+
def endpoint_service_get_endpoint_with_http_info(self, project_id: 'str', ref: 'str', **kwargs) -> 'V1Endpoint': # noqa: E501
|
|
276
|
+
"""endpoint_service_get_endpoint # noqa: E501
|
|
2287
277
|
|
|
2288
278
|
This method makes a synchronous HTTP request by default. To make an
|
|
2289
279
|
asynchronous HTTP request, please pass async_req=True
|
|
2290
|
-
>>> thread = api.
|
|
280
|
+
>>> thread = api.endpoint_service_get_endpoint_with_http_info(project_id, ref, async_req=True)
|
|
2291
281
|
>>> result = thread.get()
|
|
2292
282
|
|
|
2293
283
|
:param async_req bool
|
|
2294
|
-
:param ServiceexecutionIdBody body: (required)
|
|
2295
284
|
:param str project_id: (required)
|
|
2296
|
-
:param str
|
|
2297
|
-
:
|
|
285
|
+
:param str ref: (required)
|
|
286
|
+
:param str ref_type:
|
|
287
|
+
:return: V1Endpoint
|
|
2298
288
|
If the method is called asynchronously,
|
|
2299
289
|
returns the request thread.
|
|
2300
290
|
"""
|
|
2301
291
|
|
|
2302
|
-
all_params = ['
|
|
292
|
+
all_params = ['project_id', 'ref', 'ref_type'] # noqa: E501
|
|
2303
293
|
all_params.append('async_req')
|
|
2304
294
|
all_params.append('_return_http_data_only')
|
|
2305
295
|
all_params.append('_preload_content')
|
|
@@ -2310,32 +300,30 @@ class EndpointServiceApi(object):
|
|
|
2310
300
|
if key not in all_params:
|
|
2311
301
|
raise TypeError(
|
|
2312
302
|
"Got an unexpected keyword argument '%s'"
|
|
2313
|
-
" to method
|
|
303
|
+
" to method endpoint_service_get_endpoint" % key
|
|
2314
304
|
)
|
|
2315
305
|
params[key] = val
|
|
2316
306
|
del params['kwargs']
|
|
2317
|
-
# verify the required parameter 'body' is set
|
|
2318
|
-
if ('body' not in params or
|
|
2319
|
-
params['body'] is None):
|
|
2320
|
-
raise ValueError("Missing the required parameter `body` when calling `endpoint_service_update_service_execution`") # noqa: E501
|
|
2321
307
|
# verify the required parameter 'project_id' is set
|
|
2322
308
|
if ('project_id' not in params or
|
|
2323
309
|
params['project_id'] is None):
|
|
2324
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
2325
|
-
# verify the required parameter '
|
|
2326
|
-
if ('
|
|
2327
|
-
params['
|
|
2328
|
-
raise ValueError("Missing the required parameter `
|
|
310
|
+
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_get_endpoint`") # noqa: E501
|
|
311
|
+
# verify the required parameter 'ref' is set
|
|
312
|
+
if ('ref' not in params or
|
|
313
|
+
params['ref'] is None):
|
|
314
|
+
raise ValueError("Missing the required parameter `ref` when calling `endpoint_service_get_endpoint`") # noqa: E501
|
|
2329
315
|
|
|
2330
316
|
collection_formats = {}
|
|
2331
317
|
|
|
2332
318
|
path_params = {}
|
|
2333
319
|
if 'project_id' in params:
|
|
2334
320
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2335
|
-
if '
|
|
2336
|
-
path_params['
|
|
321
|
+
if 'ref' in params:
|
|
322
|
+
path_params['ref'] = params['ref'] # noqa: E501
|
|
2337
323
|
|
|
2338
324
|
query_params = []
|
|
325
|
+
if 'ref_type' in params:
|
|
326
|
+
query_params.append(('refType', params['ref_type'])) # noqa: E501
|
|
2339
327
|
|
|
2340
328
|
header_params = {}
|
|
2341
329
|
|
|
@@ -2343,28 +331,22 @@ class EndpointServiceApi(object):
|
|
|
2343
331
|
local_var_files = {}
|
|
2344
332
|
|
|
2345
333
|
body_params = None
|
|
2346
|
-
if 'body' in params:
|
|
2347
|
-
body_params = params['body']
|
|
2348
334
|
# HTTP header `Accept`
|
|
2349
335
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2350
336
|
['application/json']) # noqa: E501
|
|
2351
337
|
|
|
2352
|
-
# HTTP header `Content-Type`
|
|
2353
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2354
|
-
['application/json']) # noqa: E501
|
|
2355
|
-
|
|
2356
338
|
# Authentication setting
|
|
2357
339
|
auth_settings = [] # noqa: E501
|
|
2358
340
|
|
|
2359
341
|
return self.api_client.call_api(
|
|
2360
|
-
'/v1/projects/{projectId}/
|
|
342
|
+
'/v1/projects/{projectId}/endpoints/{ref}', 'GET',
|
|
2361
343
|
path_params,
|
|
2362
344
|
query_params,
|
|
2363
345
|
header_params,
|
|
2364
346
|
body=body_params,
|
|
2365
347
|
post_params=form_params,
|
|
2366
348
|
files=local_var_files,
|
|
2367
|
-
response_type='
|
|
349
|
+
response_type='V1Endpoint', # noqa: E501
|
|
2368
350
|
auth_settings=auth_settings,
|
|
2369
351
|
async_req=params.get('async_req'),
|
|
2370
352
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2372,47 +354,59 @@ class EndpointServiceApi(object):
|
|
|
2372
354
|
_request_timeout=params.get('_request_timeout'),
|
|
2373
355
|
collection_formats=collection_formats)
|
|
2374
356
|
|
|
2375
|
-
def
|
|
2376
|
-
"""
|
|
357
|
+
def endpoint_service_list_endpoints(self, project_id: 'str', **kwargs) -> 'V1ListEndpointsResponse': # noqa: E501
|
|
358
|
+
"""endpoint_service_list_endpoints # noqa: E501
|
|
2377
359
|
|
|
2378
360
|
This method makes a synchronous HTTP request by default. To make an
|
|
2379
361
|
asynchronous HTTP request, please pass async_req=True
|
|
2380
|
-
>>> thread = api.
|
|
362
|
+
>>> thread = api.endpoint_service_list_endpoints(project_id, async_req=True)
|
|
2381
363
|
>>> result = thread.get()
|
|
2382
364
|
|
|
2383
365
|
:param async_req bool
|
|
2384
|
-
:param IdStorageBody body: (required)
|
|
2385
366
|
:param str project_id: (required)
|
|
2386
|
-
:param str
|
|
2387
|
-
:
|
|
367
|
+
:param str cloudspace_id:
|
|
368
|
+
:param bool auto_start:
|
|
369
|
+
:param str cluster_id:
|
|
370
|
+
:param list[str] ids:
|
|
371
|
+
:param bool active_cloudspaces:
|
|
372
|
+
:param bool active_jobs:
|
|
373
|
+
:param list[str] cloudspace_ids:
|
|
374
|
+
:param list[str] job_ids:
|
|
375
|
+
:return: V1ListEndpointsResponse
|
|
2388
376
|
If the method is called asynchronously,
|
|
2389
377
|
returns the request thread.
|
|
2390
378
|
"""
|
|
2391
379
|
kwargs['_return_http_data_only'] = True
|
|
2392
380
|
if kwargs.get('async_req'):
|
|
2393
|
-
return self.
|
|
381
|
+
return self.endpoint_service_list_endpoints_with_http_info(project_id, **kwargs) # noqa: E501
|
|
2394
382
|
else:
|
|
2395
|
-
(data) = self.
|
|
383
|
+
(data) = self.endpoint_service_list_endpoints_with_http_info(project_id, **kwargs) # noqa: E501
|
|
2396
384
|
return data
|
|
2397
385
|
|
|
2398
|
-
def
|
|
2399
|
-
"""
|
|
386
|
+
def endpoint_service_list_endpoints_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListEndpointsResponse': # noqa: E501
|
|
387
|
+
"""endpoint_service_list_endpoints # noqa: E501
|
|
2400
388
|
|
|
2401
389
|
This method makes a synchronous HTTP request by default. To make an
|
|
2402
390
|
asynchronous HTTP request, please pass async_req=True
|
|
2403
|
-
>>> thread = api.
|
|
391
|
+
>>> thread = api.endpoint_service_list_endpoints_with_http_info(project_id, async_req=True)
|
|
2404
392
|
>>> result = thread.get()
|
|
2405
393
|
|
|
2406
394
|
:param async_req bool
|
|
2407
|
-
:param IdStorageBody body: (required)
|
|
2408
395
|
:param str project_id: (required)
|
|
2409
|
-
:param str
|
|
2410
|
-
:
|
|
396
|
+
:param str cloudspace_id:
|
|
397
|
+
:param bool auto_start:
|
|
398
|
+
:param str cluster_id:
|
|
399
|
+
:param list[str] ids:
|
|
400
|
+
:param bool active_cloudspaces:
|
|
401
|
+
:param bool active_jobs:
|
|
402
|
+
:param list[str] cloudspace_ids:
|
|
403
|
+
:param list[str] job_ids:
|
|
404
|
+
:return: V1ListEndpointsResponse
|
|
2411
405
|
If the method is called asynchronously,
|
|
2412
406
|
returns the request thread.
|
|
2413
407
|
"""
|
|
2414
408
|
|
|
2415
|
-
all_params = ['
|
|
409
|
+
all_params = ['project_id', 'cloudspace_id', 'auto_start', 'cluster_id', 'ids', 'active_cloudspaces', 'active_jobs', 'cloudspace_ids', 'job_ids'] # noqa: E501
|
|
2416
410
|
all_params.append('async_req')
|
|
2417
411
|
all_params.append('_return_http_data_only')
|
|
2418
412
|
all_params.append('_preload_content')
|
|
@@ -2423,32 +417,41 @@ class EndpointServiceApi(object):
|
|
|
2423
417
|
if key not in all_params:
|
|
2424
418
|
raise TypeError(
|
|
2425
419
|
"Got an unexpected keyword argument '%s'"
|
|
2426
|
-
" to method
|
|
420
|
+
" to method endpoint_service_list_endpoints" % key
|
|
2427
421
|
)
|
|
2428
422
|
params[key] = val
|
|
2429
423
|
del params['kwargs']
|
|
2430
|
-
# verify the required parameter 'body' is set
|
|
2431
|
-
if ('body' not in params or
|
|
2432
|
-
params['body'] is None):
|
|
2433
|
-
raise ValueError("Missing the required parameter `body` when calling `endpoint_service_upload_service_execution_artifact`") # noqa: E501
|
|
2434
424
|
# verify the required parameter 'project_id' is set
|
|
2435
425
|
if ('project_id' not in params or
|
|
2436
426
|
params['project_id'] is None):
|
|
2437
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
2438
|
-
# verify the required parameter 'id' is set
|
|
2439
|
-
if ('id' not in params or
|
|
2440
|
-
params['id'] is None):
|
|
2441
|
-
raise ValueError("Missing the required parameter `id` when calling `endpoint_service_upload_service_execution_artifact`") # noqa: E501
|
|
427
|
+
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_list_endpoints`") # noqa: E501
|
|
2442
428
|
|
|
2443
429
|
collection_formats = {}
|
|
2444
430
|
|
|
2445
431
|
path_params = {}
|
|
2446
432
|
if 'project_id' in params:
|
|
2447
433
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2448
|
-
if 'id' in params:
|
|
2449
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
2450
434
|
|
|
2451
435
|
query_params = []
|
|
436
|
+
if 'cloudspace_id' in params:
|
|
437
|
+
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
438
|
+
if 'auto_start' in params:
|
|
439
|
+
query_params.append(('autoStart', params['auto_start'])) # noqa: E501
|
|
440
|
+
if 'cluster_id' in params:
|
|
441
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
442
|
+
if 'ids' in params:
|
|
443
|
+
query_params.append(('ids', params['ids'])) # noqa: E501
|
|
444
|
+
collection_formats['ids'] = 'multi' # noqa: E501
|
|
445
|
+
if 'active_cloudspaces' in params:
|
|
446
|
+
query_params.append(('activeCloudspaces', params['active_cloudspaces'])) # noqa: E501
|
|
447
|
+
if 'active_jobs' in params:
|
|
448
|
+
query_params.append(('activeJobs', params['active_jobs'])) # noqa: E501
|
|
449
|
+
if 'cloudspace_ids' in params:
|
|
450
|
+
query_params.append(('cloudspaceIds', params['cloudspace_ids'])) # noqa: E501
|
|
451
|
+
collection_formats['cloudspaceIds'] = 'multi' # noqa: E501
|
|
452
|
+
if 'job_ids' in params:
|
|
453
|
+
query_params.append(('jobIds', params['job_ids'])) # noqa: E501
|
|
454
|
+
collection_formats['jobIds'] = 'multi' # noqa: E501
|
|
2452
455
|
|
|
2453
456
|
header_params = {}
|
|
2454
457
|
|
|
@@ -2456,28 +459,22 @@ class EndpointServiceApi(object):
|
|
|
2456
459
|
local_var_files = {}
|
|
2457
460
|
|
|
2458
461
|
body_params = None
|
|
2459
|
-
if 'body' in params:
|
|
2460
|
-
body_params = params['body']
|
|
2461
462
|
# HTTP header `Accept`
|
|
2462
463
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2463
464
|
['application/json']) # noqa: E501
|
|
2464
465
|
|
|
2465
|
-
# HTTP header `Content-Type`
|
|
2466
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2467
|
-
['application/json']) # noqa: E501
|
|
2468
|
-
|
|
2469
466
|
# Authentication setting
|
|
2470
467
|
auth_settings = [] # noqa: E501
|
|
2471
468
|
|
|
2472
469
|
return self.api_client.call_api(
|
|
2473
|
-
'/v1/projects/{projectId}/
|
|
470
|
+
'/v1/projects/{projectId}/endpoints', 'GET',
|
|
2474
471
|
path_params,
|
|
2475
472
|
query_params,
|
|
2476
473
|
header_params,
|
|
2477
474
|
body=body_params,
|
|
2478
475
|
post_params=form_params,
|
|
2479
476
|
files=local_var_files,
|
|
2480
|
-
response_type='
|
|
477
|
+
response_type='V1ListEndpointsResponse', # noqa: E501
|
|
2481
478
|
auth_settings=auth_settings,
|
|
2482
479
|
async_req=params.get('async_req'),
|
|
2483
480
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2485,42 +482,42 @@ class EndpointServiceApi(object):
|
|
|
2485
482
|
_request_timeout=params.get('_request_timeout'),
|
|
2486
483
|
collection_formats=collection_formats)
|
|
2487
484
|
|
|
2488
|
-
def
|
|
2489
|
-
"""
|
|
485
|
+
def endpoint_service_update_endpoint(self, body: 'EndpointsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Endpoint': # noqa: E501
|
|
486
|
+
"""endpoint_service_update_endpoint # noqa: E501
|
|
2490
487
|
|
|
2491
488
|
This method makes a synchronous HTTP request by default. To make an
|
|
2492
489
|
asynchronous HTTP request, please pass async_req=True
|
|
2493
|
-
>>> thread = api.
|
|
490
|
+
>>> thread = api.endpoint_service_update_endpoint(body, project_id, id, async_req=True)
|
|
2494
491
|
>>> result = thread.get()
|
|
2495
492
|
|
|
2496
493
|
:param async_req bool
|
|
2497
|
-
:param
|
|
494
|
+
:param EndpointsIdBody body: (required)
|
|
2498
495
|
:param str project_id: (required)
|
|
2499
496
|
:param str id: (required)
|
|
2500
|
-
:return:
|
|
497
|
+
:return: V1Endpoint
|
|
2501
498
|
If the method is called asynchronously,
|
|
2502
499
|
returns the request thread.
|
|
2503
500
|
"""
|
|
2504
501
|
kwargs['_return_http_data_only'] = True
|
|
2505
502
|
if kwargs.get('async_req'):
|
|
2506
|
-
return self.
|
|
503
|
+
return self.endpoint_service_update_endpoint_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
2507
504
|
else:
|
|
2508
|
-
(data) = self.
|
|
505
|
+
(data) = self.endpoint_service_update_endpoint_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
2509
506
|
return data
|
|
2510
507
|
|
|
2511
|
-
def
|
|
2512
|
-
"""
|
|
508
|
+
def endpoint_service_update_endpoint_with_http_info(self, body: 'EndpointsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Endpoint': # noqa: E501
|
|
509
|
+
"""endpoint_service_update_endpoint # noqa: E501
|
|
2513
510
|
|
|
2514
511
|
This method makes a synchronous HTTP request by default. To make an
|
|
2515
512
|
asynchronous HTTP request, please pass async_req=True
|
|
2516
|
-
>>> thread = api.
|
|
513
|
+
>>> thread = api.endpoint_service_update_endpoint_with_http_info(body, project_id, id, async_req=True)
|
|
2517
514
|
>>> result = thread.get()
|
|
2518
515
|
|
|
2519
516
|
:param async_req bool
|
|
2520
|
-
:param
|
|
517
|
+
:param EndpointsIdBody body: (required)
|
|
2521
518
|
:param str project_id: (required)
|
|
2522
519
|
:param str id: (required)
|
|
2523
|
-
:return:
|
|
520
|
+
:return: V1Endpoint
|
|
2524
521
|
If the method is called asynchronously,
|
|
2525
522
|
returns the request thread.
|
|
2526
523
|
"""
|
|
@@ -2536,22 +533,22 @@ class EndpointServiceApi(object):
|
|
|
2536
533
|
if key not in all_params:
|
|
2537
534
|
raise TypeError(
|
|
2538
535
|
"Got an unexpected keyword argument '%s'"
|
|
2539
|
-
" to method
|
|
536
|
+
" to method endpoint_service_update_endpoint" % key
|
|
2540
537
|
)
|
|
2541
538
|
params[key] = val
|
|
2542
539
|
del params['kwargs']
|
|
2543
540
|
# verify the required parameter 'body' is set
|
|
2544
541
|
if ('body' not in params or
|
|
2545
542
|
params['body'] is None):
|
|
2546
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
543
|
+
raise ValueError("Missing the required parameter `body` when calling `endpoint_service_update_endpoint`") # noqa: E501
|
|
2547
544
|
# verify the required parameter 'project_id' is set
|
|
2548
545
|
if ('project_id' not in params or
|
|
2549
546
|
params['project_id'] is None):
|
|
2550
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
547
|
+
raise ValueError("Missing the required parameter `project_id` when calling `endpoint_service_update_endpoint`") # noqa: E501
|
|
2551
548
|
# verify the required parameter 'id' is set
|
|
2552
549
|
if ('id' not in params or
|
|
2553
550
|
params['id'] is None):
|
|
2554
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
551
|
+
raise ValueError("Missing the required parameter `id` when calling `endpoint_service_update_endpoint`") # noqa: E501
|
|
2555
552
|
|
|
2556
553
|
collection_formats = {}
|
|
2557
554
|
|
|
@@ -2583,14 +580,14 @@ class EndpointServiceApi(object):
|
|
|
2583
580
|
auth_settings = [] # noqa: E501
|
|
2584
581
|
|
|
2585
582
|
return self.api_client.call_api(
|
|
2586
|
-
'/v1/projects/{projectId}/
|
|
583
|
+
'/v1/projects/{projectId}/endpoints/{id}', 'PUT',
|
|
2587
584
|
path_params,
|
|
2588
585
|
query_params,
|
|
2589
586
|
header_params,
|
|
2590
587
|
body=body_params,
|
|
2591
588
|
post_params=form_params,
|
|
2592
589
|
files=local_var_files,
|
|
2593
|
-
response_type='
|
|
590
|
+
response_type='V1Endpoint', # noqa: E501
|
|
2594
591
|
auth_settings=auth_settings,
|
|
2595
592
|
async_req=params.get('async_req'),
|
|
2596
593
|
_return_http_data_only=params.get('_return_http_data_only'),
|