lightning-sdk 2025.10.31__py3-none-any.whl → 2025.11.13__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.
Files changed (53) hide show
  1. lightning_sdk/__init__.py +6 -6
  2. lightning_sdk/__version__.py +3 -0
  3. lightning_sdk/agents.py +2 -1
  4. lightning_sdk/ai_hub.py +2 -1
  5. lightning_sdk/api/cloud_account_api.py +2 -2
  6. lightning_sdk/api/deployment_api.py +11 -1
  7. lightning_sdk/api/utils.py +58 -1
  8. lightning_sdk/cli/legacy/deploy/serve.py +16 -2
  9. lightning_sdk/cli/studio/__init__.py +2 -0
  10. lightning_sdk/cli/studio/cp.py +138 -0
  11. lightning_sdk/cli/utils/logging.py +2 -1
  12. lightning_sdk/cli/utils/studio_selection.py +3 -3
  13. lightning_sdk/deployment/__init__.py +2 -0
  14. lightning_sdk/deployment/deployment.py +33 -5
  15. lightning_sdk/helpers.py +1 -1
  16. lightning_sdk/job/base.py +2 -1
  17. lightning_sdk/job/job.py +7 -1
  18. lightning_sdk/lightning_cloud/openapi/__init__.py +5 -2
  19. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  20. lightning_sdk/lightning_cloud/openapi/api/incidents_service_api.py +1058 -0
  21. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +415 -1508
  22. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +105 -0
  23. lightning_sdk/lightning_cloud/openapi/models/__init__.py +4 -2
  24. lightning_sdk/lightning_cloud/openapi/models/{project_id_kubernetestemplates_body.py → cluster_id_kubernetestemplates_body.py} +23 -49
  25. lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +3 -29
  26. lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +1 -27
  27. lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +3 -29
  28. lightning_sdk/lightning_cloud/openapi/models/storagetransfers_validate_body.py +149 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +1 -1
  30. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_metrics.py +287 -1
  31. lightning_sdk/lightning_cloud/openapi/models/{project_id_incidents_body.py → v1_create_incident_request.py} +61 -35
  32. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  33. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +1 -27
  34. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -53
  36. lightning_sdk/lightning_cloud/openapi/models/v1_validate_storage_transfer_response.py +123 -0
  37. lightning_sdk/lit_container.py +9 -0
  38. lightning_sdk/machine.py +8 -0
  39. lightning_sdk/mmt/mmt.py +8 -4
  40. lightning_sdk/models.py +8 -0
  41. lightning_sdk/owner.py +2 -1
  42. lightning_sdk/pipeline/pipeline.py +3 -0
  43. lightning_sdk/plugin.py +2 -1
  44. lightning_sdk/serve.py +3 -1
  45. lightning_sdk/studio.py +10 -5
  46. lightning_sdk/teamspace.py +17 -1
  47. lightning_sdk/utils/logging.py +8 -1
  48. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/METADATA +1 -1
  49. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/RECORD +53 -48
  50. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/LICENSE +0 -0
  51. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/WHEEL +0 -0
  52. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/entry_points.txt +0 -0
  53. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/top_level.txt +0 -0
@@ -43,780 +43,45 @@ class K8SClusterServiceApi(object):
43
43
  api_client = ApiClient()
44
44
  self.api_client = api_client
45
45
 
46
- def k8_s_cluster_service_create_incident(self, body: 'ProjectIdIncidentsBody', project_id: 'str', **kwargs) -> 'V1Incident': # noqa: E501
47
- """k8_s_cluster_service_create_incident # noqa: E501
48
-
49
- This method makes a synchronous HTTP request by default. To make an
50
- asynchronous HTTP request, please pass async_req=True
51
- >>> thread = api.k8_s_cluster_service_create_incident(body, project_id, async_req=True)
52
- >>> result = thread.get()
53
-
54
- :param async_req bool
55
- :param ProjectIdIncidentsBody body: (required)
56
- :param str project_id: (required)
57
- :return: V1Incident
58
- If the method is called asynchronously,
59
- returns the request thread.
60
- """
61
- kwargs['_return_http_data_only'] = True
62
- if kwargs.get('async_req'):
63
- return self.k8_s_cluster_service_create_incident_with_http_info(body, project_id, **kwargs) # noqa: E501
64
- else:
65
- (data) = self.k8_s_cluster_service_create_incident_with_http_info(body, project_id, **kwargs) # noqa: E501
66
- return data
67
-
68
- def k8_s_cluster_service_create_incident_with_http_info(self, body: 'ProjectIdIncidentsBody', project_id: 'str', **kwargs) -> 'V1Incident': # noqa: E501
69
- """k8_s_cluster_service_create_incident # noqa: E501
70
-
71
- This method makes a synchronous HTTP request by default. To make an
72
- asynchronous HTTP request, please pass async_req=True
73
- >>> thread = api.k8_s_cluster_service_create_incident_with_http_info(body, project_id, async_req=True)
74
- >>> result = thread.get()
75
-
76
- :param async_req bool
77
- :param ProjectIdIncidentsBody body: (required)
78
- :param str project_id: (required)
79
- :return: V1Incident
80
- If the method is called asynchronously,
81
- returns the request thread.
82
- """
83
-
84
- all_params = ['body', 'project_id'] # noqa: E501
85
- all_params.append('async_req')
86
- all_params.append('_return_http_data_only')
87
- all_params.append('_preload_content')
88
- all_params.append('_request_timeout')
89
-
90
- params = locals()
91
- for key, val in six.iteritems(params['kwargs']):
92
- if key not in all_params:
93
- raise TypeError(
94
- "Got an unexpected keyword argument '%s'"
95
- " to method k8_s_cluster_service_create_incident" % key
96
- )
97
- params[key] = val
98
- del params['kwargs']
99
- # verify the required parameter 'body' is set
100
- if ('body' not in params or
101
- params['body'] is None):
102
- raise ValueError("Missing the required parameter `body` when calling `k8_s_cluster_service_create_incident`") # noqa: E501
103
- # verify the required parameter 'project_id' is set
104
- if ('project_id' not in params or
105
- params['project_id'] is None):
106
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_create_incident`") # noqa: E501
107
-
108
- collection_formats = {}
109
-
110
- path_params = {}
111
- if 'project_id' in params:
112
- path_params['projectId'] = params['project_id'] # noqa: E501
113
-
114
- query_params = []
115
-
116
- header_params = {}
117
-
118
- form_params = []
119
- local_var_files = {}
120
-
121
- body_params = None
122
- if 'body' in params:
123
- body_params = params['body']
124
- # HTTP header `Accept`
125
- header_params['Accept'] = self.api_client.select_header_accept(
126
- ['application/json']) # noqa: E501
127
-
128
- # HTTP header `Content-Type`
129
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
130
- ['application/json']) # noqa: E501
131
-
132
- # Authentication setting
133
- auth_settings = [] # noqa: E501
134
-
135
- return self.api_client.call_api(
136
- '/v1/projects/{projectId}/incidents', 'POST',
137
- path_params,
138
- query_params,
139
- header_params,
140
- body=body_params,
141
- post_params=form_params,
142
- files=local_var_files,
143
- response_type='V1Incident', # noqa: E501
144
- auth_settings=auth_settings,
145
- async_req=params.get('async_req'),
146
- _return_http_data_only=params.get('_return_http_data_only'),
147
- _preload_content=params.get('_preload_content', True),
148
- _request_timeout=params.get('_request_timeout'),
149
- collection_formats=collection_formats)
150
-
151
- def k8_s_cluster_service_create_incident_message(self, body: 'IncidentIdMessagesBody', project_id: 'str', incident_id: 'str', **kwargs) -> 'V1IncidentMessage': # noqa: E501
152
- """k8_s_cluster_service_create_incident_message # noqa: E501
153
-
154
- This method makes a synchronous HTTP request by default. To make an
155
- asynchronous HTTP request, please pass async_req=True
156
- >>> thread = api.k8_s_cluster_service_create_incident_message(body, project_id, incident_id, async_req=True)
157
- >>> result = thread.get()
158
-
159
- :param async_req bool
160
- :param IncidentIdMessagesBody body: (required)
161
- :param str project_id: (required)
162
- :param str incident_id: (required)
163
- :return: V1IncidentMessage
164
- If the method is called asynchronously,
165
- returns the request thread.
166
- """
167
- kwargs['_return_http_data_only'] = True
168
- if kwargs.get('async_req'):
169
- return self.k8_s_cluster_service_create_incident_message_with_http_info(body, project_id, incident_id, **kwargs) # noqa: E501
170
- else:
171
- (data) = self.k8_s_cluster_service_create_incident_message_with_http_info(body, project_id, incident_id, **kwargs) # noqa: E501
172
- return data
173
-
174
- def k8_s_cluster_service_create_incident_message_with_http_info(self, body: 'IncidentIdMessagesBody', project_id: 'str', incident_id: 'str', **kwargs) -> 'V1IncidentMessage': # noqa: E501
175
- """k8_s_cluster_service_create_incident_message # noqa: E501
176
-
177
- This method makes a synchronous HTTP request by default. To make an
178
- asynchronous HTTP request, please pass async_req=True
179
- >>> thread = api.k8_s_cluster_service_create_incident_message_with_http_info(body, project_id, incident_id, async_req=True)
180
- >>> result = thread.get()
181
-
182
- :param async_req bool
183
- :param IncidentIdMessagesBody body: (required)
184
- :param str project_id: (required)
185
- :param str incident_id: (required)
186
- :return: V1IncidentMessage
187
- If the method is called asynchronously,
188
- returns the request thread.
189
- """
190
-
191
- all_params = ['body', 'project_id', 'incident_id'] # noqa: E501
192
- all_params.append('async_req')
193
- all_params.append('_return_http_data_only')
194
- all_params.append('_preload_content')
195
- all_params.append('_request_timeout')
196
-
197
- params = locals()
198
- for key, val in six.iteritems(params['kwargs']):
199
- if key not in all_params:
200
- raise TypeError(
201
- "Got an unexpected keyword argument '%s'"
202
- " to method k8_s_cluster_service_create_incident_message" % key
203
- )
204
- params[key] = val
205
- del params['kwargs']
206
- # verify the required parameter 'body' is set
207
- if ('body' not in params or
208
- params['body'] is None):
209
- raise ValueError("Missing the required parameter `body` when calling `k8_s_cluster_service_create_incident_message`") # noqa: E501
210
- # verify the required parameter 'project_id' is set
211
- if ('project_id' not in params or
212
- params['project_id'] is None):
213
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_create_incident_message`") # noqa: E501
214
- # verify the required parameter 'incident_id' is set
215
- if ('incident_id' not in params or
216
- params['incident_id'] is None):
217
- raise ValueError("Missing the required parameter `incident_id` when calling `k8_s_cluster_service_create_incident_message`") # noqa: E501
218
-
219
- collection_formats = {}
220
-
221
- path_params = {}
222
- if 'project_id' in params:
223
- path_params['projectId'] = params['project_id'] # noqa: E501
224
- if 'incident_id' in params:
225
- path_params['incidentId'] = params['incident_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}/incidents/{incidentId}/messages', '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='V1IncidentMessage', # 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 k8_s_cluster_service_create_kubernetes_template(self, body: 'ProjectIdKubernetestemplatesBody', project_id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
265
- """k8_s_cluster_service_create_kubernetes_template # 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.k8_s_cluster_service_create_kubernetes_template(body, project_id, async_req=True)
270
- >>> result = thread.get()
271
-
272
- :param async_req bool
273
- :param ProjectIdKubernetestemplatesBody body: (required)
274
- :param str project_id: (required)
275
- :return: V1KubernetesTemplate
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.k8_s_cluster_service_create_kubernetes_template_with_http_info(body, project_id, **kwargs) # noqa: E501
282
- else:
283
- (data) = self.k8_s_cluster_service_create_kubernetes_template_with_http_info(body, project_id, **kwargs) # noqa: E501
284
- return data
285
-
286
- def k8_s_cluster_service_create_kubernetes_template_with_http_info(self, body: 'ProjectIdKubernetestemplatesBody', project_id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
287
- """k8_s_cluster_service_create_kubernetes_template # 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.k8_s_cluster_service_create_kubernetes_template_with_http_info(body, project_id, async_req=True)
292
- >>> result = thread.get()
293
-
294
- :param async_req bool
295
- :param ProjectIdKubernetestemplatesBody body: (required)
296
- :param str project_id: (required)
297
- :return: V1KubernetesTemplate
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 k8_s_cluster_service_create_kubernetes_template" % 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 `k8_s_cluster_service_create_kubernetes_template`") # 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 `k8_s_cluster_service_create_kubernetes_template`") # 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}/kubernetes-templates', '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='V1KubernetesTemplate', # 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 k8_s_cluster_service_delete_incident(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteIncidentResponse': # noqa: E501
370
- """k8_s_cluster_service_delete_incident # 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.k8_s_cluster_service_delete_incident(project_id, id, async_req=True)
375
- >>> result = thread.get()
376
-
377
- :param async_req bool
378
- :param str project_id: (required)
379
- :param str id: (required)
380
- :return: V1DeleteIncidentResponse
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.k8_s_cluster_service_delete_incident_with_http_info(project_id, id, **kwargs) # noqa: E501
387
- else:
388
- (data) = self.k8_s_cluster_service_delete_incident_with_http_info(project_id, id, **kwargs) # noqa: E501
389
- return data
390
-
391
- def k8_s_cluster_service_delete_incident_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteIncidentResponse': # noqa: E501
392
- """k8_s_cluster_service_delete_incident # 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.k8_s_cluster_service_delete_incident_with_http_info(project_id, id, async_req=True)
397
- >>> result = thread.get()
398
-
399
- :param async_req bool
400
- :param str project_id: (required)
401
- :param str id: (required)
402
- :return: V1DeleteIncidentResponse
403
- If the method is called asynchronously,
404
- returns the request thread.
405
- """
406
-
407
- all_params = ['project_id', '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 k8_s_cluster_service_delete_incident" % key
419
- )
420
- params[key] = val
421
- del params['kwargs']
422
- # verify the required parameter 'project_id' is set
423
- if ('project_id' not in params or
424
- params['project_id'] is None):
425
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_delete_incident`") # noqa: E501
426
- # verify the required parameter 'id' is set
427
- if ('id' not in params or
428
- params['id'] is None):
429
- raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_delete_incident`") # 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
- if 'id' in params:
437
- path_params['id'] = params['id'] # noqa: E501
438
-
439
- query_params = []
440
-
441
- header_params = {}
442
-
443
- form_params = []
444
- local_var_files = {}
445
-
446
- body_params = None
447
- # HTTP header `Accept`
448
- header_params['Accept'] = self.api_client.select_header_accept(
449
- ['application/json']) # noqa: E501
450
-
451
- # Authentication setting
452
- auth_settings = [] # noqa: E501
453
-
454
- return self.api_client.call_api(
455
- '/v1/projects/{projectId}/incidents/{id}', 'DELETE',
456
- path_params,
457
- query_params,
458
- header_params,
459
- body=body_params,
460
- post_params=form_params,
461
- files=local_var_files,
462
- response_type='V1DeleteIncidentResponse', # noqa: E501
463
- auth_settings=auth_settings,
464
- async_req=params.get('async_req'),
465
- _return_http_data_only=params.get('_return_http_data_only'),
466
- _preload_content=params.get('_preload_content', True),
467
- _request_timeout=params.get('_request_timeout'),
468
- collection_formats=collection_formats)
469
-
470
- def k8_s_cluster_service_delete_incident_message(self, project_id: 'str', incident_id: 'str', message_id: 'str', **kwargs) -> 'V1DeleteIncidentMessageResponse': # noqa: E501
471
- """k8_s_cluster_service_delete_incident_message # noqa: E501
472
-
473
- This method makes a synchronous HTTP request by default. To make an
474
- asynchronous HTTP request, please pass async_req=True
475
- >>> thread = api.k8_s_cluster_service_delete_incident_message(project_id, incident_id, message_id, async_req=True)
476
- >>> result = thread.get()
477
-
478
- :param async_req bool
479
- :param str project_id: (required)
480
- :param str incident_id: (required)
481
- :param str message_id: (required)
482
- :return: V1DeleteIncidentMessageResponse
483
- If the method is called asynchronously,
484
- returns the request thread.
485
- """
486
- kwargs['_return_http_data_only'] = True
487
- if kwargs.get('async_req'):
488
- return self.k8_s_cluster_service_delete_incident_message_with_http_info(project_id, incident_id, message_id, **kwargs) # noqa: E501
489
- else:
490
- (data) = self.k8_s_cluster_service_delete_incident_message_with_http_info(project_id, incident_id, message_id, **kwargs) # noqa: E501
491
- return data
492
-
493
- def k8_s_cluster_service_delete_incident_message_with_http_info(self, project_id: 'str', incident_id: 'str', message_id: 'str', **kwargs) -> 'V1DeleteIncidentMessageResponse': # noqa: E501
494
- """k8_s_cluster_service_delete_incident_message # noqa: E501
495
-
496
- This method makes a synchronous HTTP request by default. To make an
497
- asynchronous HTTP request, please pass async_req=True
498
- >>> thread = api.k8_s_cluster_service_delete_incident_message_with_http_info(project_id, incident_id, message_id, async_req=True)
499
- >>> result = thread.get()
500
-
501
- :param async_req bool
502
- :param str project_id: (required)
503
- :param str incident_id: (required)
504
- :param str message_id: (required)
505
- :return: V1DeleteIncidentMessageResponse
506
- If the method is called asynchronously,
507
- returns the request thread.
508
- """
509
-
510
- all_params = ['project_id', 'incident_id', 'message_id'] # noqa: E501
511
- all_params.append('async_req')
512
- all_params.append('_return_http_data_only')
513
- all_params.append('_preload_content')
514
- all_params.append('_request_timeout')
515
-
516
- params = locals()
517
- for key, val in six.iteritems(params['kwargs']):
518
- if key not in all_params:
519
- raise TypeError(
520
- "Got an unexpected keyword argument '%s'"
521
- " to method k8_s_cluster_service_delete_incident_message" % key
522
- )
523
- params[key] = val
524
- del params['kwargs']
525
- # verify the required parameter 'project_id' is set
526
- if ('project_id' not in params or
527
- params['project_id'] is None):
528
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_delete_incident_message`") # noqa: E501
529
- # verify the required parameter 'incident_id' is set
530
- if ('incident_id' not in params or
531
- params['incident_id'] is None):
532
- raise ValueError("Missing the required parameter `incident_id` when calling `k8_s_cluster_service_delete_incident_message`") # noqa: E501
533
- # verify the required parameter 'message_id' is set
534
- if ('message_id' not in params or
535
- params['message_id'] is None):
536
- raise ValueError("Missing the required parameter `message_id` when calling `k8_s_cluster_service_delete_incident_message`") # noqa: E501
537
-
538
- collection_formats = {}
539
-
540
- path_params = {}
541
- if 'project_id' in params:
542
- path_params['projectId'] = params['project_id'] # noqa: E501
543
- if 'incident_id' in params:
544
- path_params['incidentId'] = params['incident_id'] # noqa: E501
545
- if 'message_id' in params:
546
- path_params['messageId'] = params['message_id'] # noqa: E501
547
-
548
- query_params = []
549
-
550
- header_params = {}
551
-
552
- form_params = []
553
- local_var_files = {}
554
-
555
- body_params = None
556
- # HTTP header `Accept`
557
- header_params['Accept'] = self.api_client.select_header_accept(
558
- ['application/json']) # noqa: E501
559
-
560
- # Authentication setting
561
- auth_settings = [] # noqa: E501
562
-
563
- return self.api_client.call_api(
564
- '/v1/projects/{projectId}/incidents/{incidentId}/messages/{messageId}', 'DELETE',
565
- path_params,
566
- query_params,
567
- header_params,
568
- body=body_params,
569
- post_params=form_params,
570
- files=local_var_files,
571
- response_type='V1DeleteIncidentMessageResponse', # noqa: E501
572
- auth_settings=auth_settings,
573
- async_req=params.get('async_req'),
574
- _return_http_data_only=params.get('_return_http_data_only'),
575
- _preload_content=params.get('_preload_content', True),
576
- _request_timeout=params.get('_request_timeout'),
577
- collection_formats=collection_formats)
578
-
579
- def k8_s_cluster_service_delete_kubernetes_template(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteKubernetesTemplateResponse': # noqa: E501
580
- """k8_s_cluster_service_delete_kubernetes_template # noqa: E501
581
-
582
- This method makes a synchronous HTTP request by default. To make an
583
- asynchronous HTTP request, please pass async_req=True
584
- >>> thread = api.k8_s_cluster_service_delete_kubernetes_template(project_id, id, async_req=True)
585
- >>> result = thread.get()
586
-
587
- :param async_req bool
588
- :param str project_id: (required)
589
- :param str id: (required)
590
- :return: V1DeleteKubernetesTemplateResponse
591
- If the method is called asynchronously,
592
- returns the request thread.
593
- """
594
- kwargs['_return_http_data_only'] = True
595
- if kwargs.get('async_req'):
596
- return self.k8_s_cluster_service_delete_kubernetes_template_with_http_info(project_id, id, **kwargs) # noqa: E501
597
- else:
598
- (data) = self.k8_s_cluster_service_delete_kubernetes_template_with_http_info(project_id, id, **kwargs) # noqa: E501
599
- return data
600
-
601
- def k8_s_cluster_service_delete_kubernetes_template_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteKubernetesTemplateResponse': # noqa: E501
602
- """k8_s_cluster_service_delete_kubernetes_template # noqa: E501
603
-
604
- This method makes a synchronous HTTP request by default. To make an
605
- asynchronous HTTP request, please pass async_req=True
606
- >>> thread = api.k8_s_cluster_service_delete_kubernetes_template_with_http_info(project_id, id, async_req=True)
607
- >>> result = thread.get()
608
-
609
- :param async_req bool
610
- :param str project_id: (required)
611
- :param str id: (required)
612
- :return: V1DeleteKubernetesTemplateResponse
613
- If the method is called asynchronously,
614
- returns the request thread.
615
- """
616
-
617
- all_params = ['project_id', 'id'] # noqa: E501
618
- all_params.append('async_req')
619
- all_params.append('_return_http_data_only')
620
- all_params.append('_preload_content')
621
- all_params.append('_request_timeout')
622
-
623
- params = locals()
624
- for key, val in six.iteritems(params['kwargs']):
625
- if key not in all_params:
626
- raise TypeError(
627
- "Got an unexpected keyword argument '%s'"
628
- " to method k8_s_cluster_service_delete_kubernetes_template" % key
629
- )
630
- params[key] = val
631
- del params['kwargs']
632
- # verify the required parameter 'project_id' is set
633
- if ('project_id' not in params or
634
- params['project_id'] is None):
635
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_delete_kubernetes_template`") # noqa: E501
636
- # verify the required parameter 'id' is set
637
- if ('id' not in params or
638
- params['id'] is None):
639
- raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_delete_kubernetes_template`") # noqa: E501
640
-
641
- collection_formats = {}
642
-
643
- path_params = {}
644
- if 'project_id' in params:
645
- path_params['projectId'] = params['project_id'] # noqa: E501
646
- if 'id' in params:
647
- path_params['id'] = params['id'] # noqa: E501
648
-
649
- query_params = []
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}/kubernetes-templates/{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='V1DeleteKubernetesTemplateResponse', # 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 k8_s_cluster_service_get_incident(self, project_id: 'str', id: 'str', **kwargs) -> 'V1Incident': # noqa: E501
681
- """k8_s_cluster_service_get_incident # 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.k8_s_cluster_service_get_incident(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: V1Incident
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.k8_s_cluster_service_get_incident_with_http_info(project_id, id, **kwargs) # noqa: E501
698
- else:
699
- (data) = self.k8_s_cluster_service_get_incident_with_http_info(project_id, id, **kwargs) # noqa: E501
700
- return data
701
-
702
- def k8_s_cluster_service_get_incident_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1Incident': # noqa: E501
703
- """k8_s_cluster_service_get_incident # 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.k8_s_cluster_service_get_incident_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: V1Incident
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 k8_s_cluster_service_get_incident" % 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 `k8_s_cluster_service_get_incident`") # 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 `k8_s_cluster_service_get_incident`") # 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}/incidents/{id}', 'GET',
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='V1Incident', # 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 k8_s_cluster_service_get_kubernetes_template(self, project_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
782
- """k8_s_cluster_service_get_kubernetes_template # noqa: E501
46
+ def k8_s_cluster_service_create_kubernetes_template(self, body: 'ClusterIdKubernetestemplatesBody', cluster_id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
47
+ """k8_s_cluster_service_create_kubernetes_template # noqa: E501
783
48
 
784
49
  This method makes a synchronous HTTP request by default. To make an
785
50
  asynchronous HTTP request, please pass async_req=True
786
- >>> thread = api.k8_s_cluster_service_get_kubernetes_template(project_id, id, async_req=True)
51
+ >>> thread = api.k8_s_cluster_service_create_kubernetes_template(body, cluster_id, async_req=True)
787
52
  >>> result = thread.get()
788
53
 
789
54
  :param async_req bool
790
- :param str project_id: (required)
791
- :param str id: (required)
55
+ :param ClusterIdKubernetestemplatesBody body: (required)
56
+ :param str cluster_id: (required)
792
57
  :return: V1KubernetesTemplate
793
58
  If the method is called asynchronously,
794
59
  returns the request thread.
795
60
  """
796
61
  kwargs['_return_http_data_only'] = True
797
62
  if kwargs.get('async_req'):
798
- return self.k8_s_cluster_service_get_kubernetes_template_with_http_info(project_id, id, **kwargs) # noqa: E501
63
+ return self.k8_s_cluster_service_create_kubernetes_template_with_http_info(body, cluster_id, **kwargs) # noqa: E501
799
64
  else:
800
- (data) = self.k8_s_cluster_service_get_kubernetes_template_with_http_info(project_id, id, **kwargs) # noqa: E501
65
+ (data) = self.k8_s_cluster_service_create_kubernetes_template_with_http_info(body, cluster_id, **kwargs) # noqa: E501
801
66
  return data
802
67
 
803
- def k8_s_cluster_service_get_kubernetes_template_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
804
- """k8_s_cluster_service_get_kubernetes_template # noqa: E501
68
+ def k8_s_cluster_service_create_kubernetes_template_with_http_info(self, body: 'ClusterIdKubernetestemplatesBody', cluster_id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
69
+ """k8_s_cluster_service_create_kubernetes_template # noqa: E501
805
70
 
806
71
  This method makes a synchronous HTTP request by default. To make an
807
72
  asynchronous HTTP request, please pass async_req=True
808
- >>> thread = api.k8_s_cluster_service_get_kubernetes_template_with_http_info(project_id, id, async_req=True)
73
+ >>> thread = api.k8_s_cluster_service_create_kubernetes_template_with_http_info(body, cluster_id, async_req=True)
809
74
  >>> result = thread.get()
810
75
 
811
76
  :param async_req bool
812
- :param str project_id: (required)
813
- :param str id: (required)
77
+ :param ClusterIdKubernetestemplatesBody body: (required)
78
+ :param str cluster_id: (required)
814
79
  :return: V1KubernetesTemplate
815
80
  If the method is called asynchronously,
816
81
  returns the request thread.
817
82
  """
818
83
 
819
- all_params = ['project_id', 'id'] # noqa: E501
84
+ all_params = ['body', 'cluster_id'] # noqa: E501
820
85
  all_params.append('async_req')
821
86
  all_params.append('_return_http_data_only')
822
87
  all_params.append('_preload_content')
@@ -827,26 +92,24 @@ class K8SClusterServiceApi(object):
827
92
  if key not in all_params:
828
93
  raise TypeError(
829
94
  "Got an unexpected keyword argument '%s'"
830
- " to method k8_s_cluster_service_get_kubernetes_template" % key
95
+ " to method k8_s_cluster_service_create_kubernetes_template" % key
831
96
  )
832
97
  params[key] = val
833
98
  del params['kwargs']
834
- # verify the required parameter 'project_id' is set
835
- if ('project_id' not in params or
836
- params['project_id'] is None):
837
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_get_kubernetes_template`") # noqa: E501
838
- # verify the required parameter 'id' is set
839
- if ('id' not in params or
840
- params['id'] is None):
841
- raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_get_kubernetes_template`") # noqa: E501
99
+ # verify the required parameter 'body' is set
100
+ if ('body' not in params or
101
+ params['body'] is None):
102
+ raise ValueError("Missing the required parameter `body` when calling `k8_s_cluster_service_create_kubernetes_template`") # noqa: E501
103
+ # verify the required parameter 'cluster_id' is set
104
+ if ('cluster_id' not in params or
105
+ params['cluster_id'] is None):
106
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_create_kubernetes_template`") # noqa: E501
842
107
 
843
108
  collection_formats = {}
844
109
 
845
110
  path_params = {}
846
- if 'project_id' in params:
847
- path_params['projectId'] = params['project_id'] # noqa: E501
848
- if 'id' in params:
849
- path_params['id'] = params['id'] # noqa: E501
111
+ if 'cluster_id' in params:
112
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
850
113
 
851
114
  query_params = []
852
115
 
@@ -856,15 +119,21 @@ class K8SClusterServiceApi(object):
856
119
  local_var_files = {}
857
120
 
858
121
  body_params = None
122
+ if 'body' in params:
123
+ body_params = params['body']
859
124
  # HTTP header `Accept`
860
125
  header_params['Accept'] = self.api_client.select_header_accept(
861
126
  ['application/json']) # noqa: E501
862
127
 
128
+ # HTTP header `Content-Type`
129
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
130
+ ['application/json']) # noqa: E501
131
+
863
132
  # Authentication setting
864
133
  auth_settings = [] # noqa: E501
865
134
 
866
135
  return self.api_client.call_api(
867
- '/v1/projects/{projectId}/kubernetes-templates/{id}', 'GET',
136
+ '/v1/k8s-clusters/{clusterId}/kubernetes-templates', 'POST',
868
137
  path_params,
869
138
  query_params,
870
139
  header_params,
@@ -879,51 +148,45 @@ class K8SClusterServiceApi(object):
879
148
  _request_timeout=params.get('_request_timeout'),
880
149
  collection_formats=collection_formats)
881
150
 
882
- def k8_s_cluster_service_list_aggregated_node_metrics(self, project_id: 'str', cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
883
- """k8_s_cluster_service_list_aggregated_node_metrics # noqa: E501
151
+ def k8_s_cluster_service_delete_kubernetes_template(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteKubernetesTemplateResponse': # noqa: E501
152
+ """k8_s_cluster_service_delete_kubernetes_template # noqa: E501
884
153
 
885
154
  This method makes a synchronous HTTP request by default. To make an
886
155
  asynchronous HTTP request, please pass async_req=True
887
- >>> thread = api.k8_s_cluster_service_list_aggregated_node_metrics(project_id, cluster_id, node_name, async_req=True)
156
+ >>> thread = api.k8_s_cluster_service_delete_kubernetes_template(cluster_id, id, async_req=True)
888
157
  >>> result = thread.get()
889
158
 
890
159
  :param async_req bool
891
- :param str project_id: (required)
892
160
  :param str cluster_id: (required)
893
- :param str node_name: (required)
894
- :param datetime start: Date range.
895
- :param datetime end:
896
- :return: V1ListNodeMetricsResponse
161
+ :param str id: (required)
162
+ :return: V1DeleteKubernetesTemplateResponse
897
163
  If the method is called asynchronously,
898
164
  returns the request thread.
899
165
  """
900
166
  kwargs['_return_http_data_only'] = True
901
167
  if kwargs.get('async_req'):
902
- return self.k8_s_cluster_service_list_aggregated_node_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
168
+ return self.k8_s_cluster_service_delete_kubernetes_template_with_http_info(cluster_id, id, **kwargs) # noqa: E501
903
169
  else:
904
- (data) = self.k8_s_cluster_service_list_aggregated_node_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
170
+ (data) = self.k8_s_cluster_service_delete_kubernetes_template_with_http_info(cluster_id, id, **kwargs) # noqa: E501
905
171
  return data
906
172
 
907
- def k8_s_cluster_service_list_aggregated_node_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
908
- """k8_s_cluster_service_list_aggregated_node_metrics # noqa: E501
173
+ def k8_s_cluster_service_delete_kubernetes_template_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteKubernetesTemplateResponse': # noqa: E501
174
+ """k8_s_cluster_service_delete_kubernetes_template # noqa: E501
909
175
 
910
176
  This method makes a synchronous HTTP request by default. To make an
911
177
  asynchronous HTTP request, please pass async_req=True
912
- >>> thread = api.k8_s_cluster_service_list_aggregated_node_metrics_with_http_info(project_id, cluster_id, node_name, async_req=True)
178
+ >>> thread = api.k8_s_cluster_service_delete_kubernetes_template_with_http_info(cluster_id, id, async_req=True)
913
179
  >>> result = thread.get()
914
180
 
915
181
  :param async_req bool
916
- :param str project_id: (required)
917
182
  :param str cluster_id: (required)
918
- :param str node_name: (required)
919
- :param datetime start: Date range.
920
- :param datetime end:
921
- :return: V1ListNodeMetricsResponse
183
+ :param str id: (required)
184
+ :return: V1DeleteKubernetesTemplateResponse
922
185
  If the method is called asynchronously,
923
186
  returns the request thread.
924
187
  """
925
188
 
926
- all_params = ['project_id', 'cluster_id', 'node_name', 'start', 'end'] # noqa: E501
189
+ all_params = ['cluster_id', 'id'] # noqa: E501
927
190
  all_params.append('async_req')
928
191
  all_params.append('_return_http_data_only')
929
192
  all_params.append('_preload_content')
@@ -934,38 +197,28 @@ class K8SClusterServiceApi(object):
934
197
  if key not in all_params:
935
198
  raise TypeError(
936
199
  "Got an unexpected keyword argument '%s'"
937
- " to method k8_s_cluster_service_list_aggregated_node_metrics" % key
200
+ " to method k8_s_cluster_service_delete_kubernetes_template" % key
938
201
  )
939
202
  params[key] = val
940
203
  del params['kwargs']
941
- # verify the required parameter 'project_id' is set
942
- if ('project_id' not in params or
943
- params['project_id'] is None):
944
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_aggregated_node_metrics`") # noqa: E501
945
204
  # verify the required parameter 'cluster_id' is set
946
205
  if ('cluster_id' not in params or
947
206
  params['cluster_id'] is None):
948
- raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_aggregated_node_metrics`") # noqa: E501
949
- # verify the required parameter 'node_name' is set
950
- if ('node_name' not in params or
951
- params['node_name'] is None):
952
- raise ValueError("Missing the required parameter `node_name` when calling `k8_s_cluster_service_list_aggregated_node_metrics`") # noqa: E501
207
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_delete_kubernetes_template`") # noqa: E501
208
+ # verify the required parameter 'id' is set
209
+ if ('id' not in params or
210
+ params['id'] is None):
211
+ raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_delete_kubernetes_template`") # noqa: E501
953
212
 
954
213
  collection_formats = {}
955
214
 
956
215
  path_params = {}
957
- if 'project_id' in params:
958
- path_params['projectId'] = params['project_id'] # noqa: E501
959
216
  if 'cluster_id' in params:
960
217
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
961
- if 'node_name' in params:
962
- path_params['nodeName'] = params['node_name'] # noqa: E501
218
+ if 'id' in params:
219
+ path_params['id'] = params['id'] # noqa: E501
963
220
 
964
221
  query_params = []
965
- if 'start' in params:
966
- query_params.append(('start', params['start'])) # noqa: E501
967
- if 'end' in params:
968
- query_params.append(('end', params['end'])) # noqa: E501
969
222
 
970
223
  header_params = {}
971
224
 
@@ -981,14 +234,14 @@ class K8SClusterServiceApi(object):
981
234
  auth_settings = [] # noqa: E501
982
235
 
983
236
  return self.api_client.call_api(
984
- '/v1/projects/{projectId}/clusters/{clusterId}/aggregated-metrics/nodes/{nodeName}', 'GET',
237
+ '/v1/k8s-clusters/{clusterId}/kubernetes-templates/{id}', 'DELETE',
985
238
  path_params,
986
239
  query_params,
987
240
  header_params,
988
241
  body=body_params,
989
242
  post_params=form_params,
990
243
  files=local_var_files,
991
- response_type='V1ListNodeMetricsResponse', # noqa: E501
244
+ response_type='V1DeleteKubernetesTemplateResponse', # noqa: E501
992
245
  auth_settings=auth_settings,
993
246
  async_req=params.get('async_req'),
994
247
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -996,51 +249,45 @@ class K8SClusterServiceApi(object):
996
249
  _request_timeout=params.get('_request_timeout'),
997
250
  collection_formats=collection_formats)
998
251
 
999
- def k8_s_cluster_service_list_aggregated_pod_metrics(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListAggregatedPodMetricsResponse': # noqa: E501
1000
- """k8_s_cluster_service_list_aggregated_pod_metrics # noqa: E501
252
+ def k8_s_cluster_service_get_kubernetes_template(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
253
+ """k8_s_cluster_service_get_kubernetes_template # noqa: E501
1001
254
 
1002
255
  This method makes a synchronous HTTP request by default. To make an
1003
256
  asynchronous HTTP request, please pass async_req=True
1004
- >>> thread = api.k8_s_cluster_service_list_aggregated_pod_metrics(project_id, cluster_id, async_req=True)
257
+ >>> thread = api.k8_s_cluster_service_get_kubernetes_template(cluster_id, id, async_req=True)
1005
258
  >>> result = thread.get()
1006
259
 
1007
260
  :param async_req bool
1008
- :param str project_id: (required)
1009
261
  :param str cluster_id: (required)
1010
- :param str namespace:
1011
- :param datetime start: Date range.
1012
- :param datetime end:
1013
- :return: V1ListAggregatedPodMetricsResponse
262
+ :param str id: (required)
263
+ :return: V1KubernetesTemplate
1014
264
  If the method is called asynchronously,
1015
265
  returns the request thread.
1016
266
  """
1017
267
  kwargs['_return_http_data_only'] = True
1018
268
  if kwargs.get('async_req'):
1019
- return self.k8_s_cluster_service_list_aggregated_pod_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
269
+ return self.k8_s_cluster_service_get_kubernetes_template_with_http_info(cluster_id, id, **kwargs) # noqa: E501
1020
270
  else:
1021
- (data) = self.k8_s_cluster_service_list_aggregated_pod_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
271
+ (data) = self.k8_s_cluster_service_get_kubernetes_template_with_http_info(cluster_id, id, **kwargs) # noqa: E501
1022
272
  return data
1023
273
 
1024
- def k8_s_cluster_service_list_aggregated_pod_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListAggregatedPodMetricsResponse': # noqa: E501
1025
- """k8_s_cluster_service_list_aggregated_pod_metrics # noqa: E501
274
+ def k8_s_cluster_service_get_kubernetes_template_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
275
+ """k8_s_cluster_service_get_kubernetes_template # noqa: E501
1026
276
 
1027
277
  This method makes a synchronous HTTP request by default. To make an
1028
278
  asynchronous HTTP request, please pass async_req=True
1029
- >>> thread = api.k8_s_cluster_service_list_aggregated_pod_metrics_with_http_info(project_id, cluster_id, async_req=True)
279
+ >>> thread = api.k8_s_cluster_service_get_kubernetes_template_with_http_info(cluster_id, id, async_req=True)
1030
280
  >>> result = thread.get()
1031
281
 
1032
282
  :param async_req bool
1033
- :param str project_id: (required)
1034
283
  :param str cluster_id: (required)
1035
- :param str namespace:
1036
- :param datetime start: Date range.
1037
- :param datetime end:
1038
- :return: V1ListAggregatedPodMetricsResponse
284
+ :param str id: (required)
285
+ :return: V1KubernetesTemplate
1039
286
  If the method is called asynchronously,
1040
287
  returns the request thread.
1041
288
  """
1042
289
 
1043
- all_params = ['project_id', 'cluster_id', 'namespace', 'start', 'end'] # noqa: E501
290
+ all_params = ['cluster_id', 'id'] # noqa: E501
1044
291
  all_params.append('async_req')
1045
292
  all_params.append('_return_http_data_only')
1046
293
  all_params.append('_preload_content')
@@ -1051,34 +298,28 @@ class K8SClusterServiceApi(object):
1051
298
  if key not in all_params:
1052
299
  raise TypeError(
1053
300
  "Got an unexpected keyword argument '%s'"
1054
- " to method k8_s_cluster_service_list_aggregated_pod_metrics" % key
301
+ " to method k8_s_cluster_service_get_kubernetes_template" % key
1055
302
  )
1056
303
  params[key] = val
1057
304
  del params['kwargs']
1058
- # verify the required parameter 'project_id' is set
1059
- if ('project_id' not in params or
1060
- params['project_id'] is None):
1061
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_aggregated_pod_metrics`") # noqa: E501
1062
305
  # verify the required parameter 'cluster_id' is set
1063
306
  if ('cluster_id' not in params or
1064
307
  params['cluster_id'] is None):
1065
- raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_aggregated_pod_metrics`") # noqa: E501
308
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_get_kubernetes_template`") # noqa: E501
309
+ # verify the required parameter 'id' is set
310
+ if ('id' not in params or
311
+ params['id'] is None):
312
+ raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_get_kubernetes_template`") # noqa: E501
1066
313
 
1067
314
  collection_formats = {}
1068
315
 
1069
316
  path_params = {}
1070
- if 'project_id' in params:
1071
- path_params['projectId'] = params['project_id'] # noqa: E501
1072
317
  if 'cluster_id' in params:
1073
318
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
319
+ if 'id' in params:
320
+ path_params['id'] = params['id'] # noqa: E501
1074
321
 
1075
322
  query_params = []
1076
- if 'namespace' in params:
1077
- query_params.append(('namespace', params['namespace'])) # noqa: E501
1078
- if 'start' in params:
1079
- query_params.append(('start', params['start'])) # noqa: E501
1080
- if 'end' in params:
1081
- query_params.append(('end', params['end'])) # noqa: E501
1082
323
 
1083
324
  header_params = {}
1084
325
 
@@ -1094,14 +335,14 @@ class K8SClusterServiceApi(object):
1094
335
  auth_settings = [] # noqa: E501
1095
336
 
1096
337
  return self.api_client.call_api(
1097
- '/v1/projects/{projectId}/clusters/{clusterId}/aggregated-metrics/pods', 'GET',
338
+ '/v1/k8s-clusters/{clusterId}/kubernetes-templates/{id}', 'GET',
1098
339
  path_params,
1099
340
  query_params,
1100
341
  header_params,
1101
342
  body=body_params,
1102
343
  post_params=form_params,
1103
344
  files=local_var_files,
1104
- response_type='V1ListAggregatedPodMetricsResponse', # noqa: E501
345
+ response_type='V1KubernetesTemplate', # noqa: E501
1105
346
  auth_settings=auth_settings,
1106
347
  async_req=params.get('async_req'),
1107
348
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1109,45 +350,49 @@ class K8SClusterServiceApi(object):
1109
350
  _request_timeout=params.get('_request_timeout'),
1110
351
  collection_formats=collection_formats)
1111
352
 
1112
- def k8_s_cluster_service_list_cluster_metric_timestamps(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricTimestampsResponse': # noqa: E501
1113
- """k8_s_cluster_service_list_cluster_metric_timestamps # noqa: E501
353
+ def k8_s_cluster_service_list_aggregated_node_metrics(self, cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
354
+ """k8_s_cluster_service_list_aggregated_node_metrics # noqa: E501
1114
355
 
1115
356
  This method makes a synchronous HTTP request by default. To make an
1116
357
  asynchronous HTTP request, please pass async_req=True
1117
- >>> thread = api.k8_s_cluster_service_list_cluster_metric_timestamps(project_id, cluster_id, async_req=True)
358
+ >>> thread = api.k8_s_cluster_service_list_aggregated_node_metrics(cluster_id, node_name, async_req=True)
1118
359
  >>> result = thread.get()
1119
360
 
1120
361
  :param async_req bool
1121
- :param str project_id: (required)
1122
362
  :param str cluster_id: (required)
1123
- :return: V1ListClusterMetricTimestampsResponse
363
+ :param str node_name: (required)
364
+ :param datetime start: Date range.
365
+ :param datetime end:
366
+ :return: V1ListNodeMetricsResponse
1124
367
  If the method is called asynchronously,
1125
368
  returns the request thread.
1126
369
  """
1127
370
  kwargs['_return_http_data_only'] = True
1128
371
  if kwargs.get('async_req'):
1129
- return self.k8_s_cluster_service_list_cluster_metric_timestamps_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
372
+ return self.k8_s_cluster_service_list_aggregated_node_metrics_with_http_info(cluster_id, node_name, **kwargs) # noqa: E501
1130
373
  else:
1131
- (data) = self.k8_s_cluster_service_list_cluster_metric_timestamps_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
374
+ (data) = self.k8_s_cluster_service_list_aggregated_node_metrics_with_http_info(cluster_id, node_name, **kwargs) # noqa: E501
1132
375
  return data
1133
376
 
1134
- def k8_s_cluster_service_list_cluster_metric_timestamps_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricTimestampsResponse': # noqa: E501
1135
- """k8_s_cluster_service_list_cluster_metric_timestamps # noqa: E501
377
+ def k8_s_cluster_service_list_aggregated_node_metrics_with_http_info(self, cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
378
+ """k8_s_cluster_service_list_aggregated_node_metrics # noqa: E501
1136
379
 
1137
380
  This method makes a synchronous HTTP request by default. To make an
1138
381
  asynchronous HTTP request, please pass async_req=True
1139
- >>> thread = api.k8_s_cluster_service_list_cluster_metric_timestamps_with_http_info(project_id, cluster_id, async_req=True)
382
+ >>> thread = api.k8_s_cluster_service_list_aggregated_node_metrics_with_http_info(cluster_id, node_name, async_req=True)
1140
383
  >>> result = thread.get()
1141
384
 
1142
385
  :param async_req bool
1143
- :param str project_id: (required)
1144
386
  :param str cluster_id: (required)
1145
- :return: V1ListClusterMetricTimestampsResponse
387
+ :param str node_name: (required)
388
+ :param datetime start: Date range.
389
+ :param datetime end:
390
+ :return: V1ListNodeMetricsResponse
1146
391
  If the method is called asynchronously,
1147
392
  returns the request thread.
1148
393
  """
1149
394
 
1150
- all_params = ['project_id', 'cluster_id'] # noqa: E501
395
+ all_params = ['cluster_id', 'node_name', 'start', 'end'] # noqa: E501
1151
396
  all_params.append('async_req')
1152
397
  all_params.append('_return_http_data_only')
1153
398
  all_params.append('_preload_content')
@@ -1158,28 +403,32 @@ class K8SClusterServiceApi(object):
1158
403
  if key not in all_params:
1159
404
  raise TypeError(
1160
405
  "Got an unexpected keyword argument '%s'"
1161
- " to method k8_s_cluster_service_list_cluster_metric_timestamps" % key
406
+ " to method k8_s_cluster_service_list_aggregated_node_metrics" % key
1162
407
  )
1163
408
  params[key] = val
1164
409
  del params['kwargs']
1165
- # verify the required parameter 'project_id' is set
1166
- if ('project_id' not in params or
1167
- params['project_id'] is None):
1168
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_cluster_metric_timestamps`") # noqa: E501
1169
410
  # verify the required parameter 'cluster_id' is set
1170
411
  if ('cluster_id' not in params or
1171
412
  params['cluster_id'] is None):
1172
- raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_metric_timestamps`") # noqa: E501
413
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_aggregated_node_metrics`") # noqa: E501
414
+ # verify the required parameter 'node_name' is set
415
+ if ('node_name' not in params or
416
+ params['node_name'] is None):
417
+ raise ValueError("Missing the required parameter `node_name` when calling `k8_s_cluster_service_list_aggregated_node_metrics`") # noqa: E501
1173
418
 
1174
419
  collection_formats = {}
1175
420
 
1176
421
  path_params = {}
1177
- if 'project_id' in params:
1178
- path_params['projectId'] = params['project_id'] # noqa: E501
1179
422
  if 'cluster_id' in params:
1180
423
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
424
+ if 'node_name' in params:
425
+ path_params['nodeName'] = params['node_name'] # noqa: E501
1181
426
 
1182
427
  query_params = []
428
+ if 'start' in params:
429
+ query_params.append(('start', params['start'])) # noqa: E501
430
+ if 'end' in params:
431
+ query_params.append(('end', params['end'])) # noqa: E501
1183
432
 
1184
433
  header_params = {}
1185
434
 
@@ -1195,14 +444,14 @@ class K8SClusterServiceApi(object):
1195
444
  auth_settings = [] # noqa: E501
1196
445
 
1197
446
  return self.api_client.call_api(
1198
- '/v1/projects/{projectId}/clusters/{clusterId}/cluster-metrics-timestamps', 'GET',
447
+ '/v1/k8s-clusters/{clusterId}/aggregated-metrics/nodes/{nodeName}', 'GET',
1199
448
  path_params,
1200
449
  query_params,
1201
450
  header_params,
1202
451
  body=body_params,
1203
452
  post_params=form_params,
1204
453
  files=local_var_files,
1205
- response_type='V1ListClusterMetricTimestampsResponse', # noqa: E501
454
+ response_type='V1ListNodeMetricsResponse', # noqa: E501
1206
455
  auth_settings=auth_settings,
1207
456
  async_req=params.get('async_req'),
1208
457
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1210,49 +459,49 @@ class K8SClusterServiceApi(object):
1210
459
  _request_timeout=params.get('_request_timeout'),
1211
460
  collection_formats=collection_formats)
1212
461
 
1213
- def k8_s_cluster_service_list_cluster_metrics(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricsResponse': # noqa: E501
1214
- """k8_s_cluster_service_list_cluster_metrics # noqa: E501
462
+ def k8_s_cluster_service_list_aggregated_pod_metrics(self, cluster_id: 'str', **kwargs) -> 'V1ListAggregatedPodMetricsResponse': # noqa: E501
463
+ """k8_s_cluster_service_list_aggregated_pod_metrics # noqa: E501
1215
464
 
1216
465
  This method makes a synchronous HTTP request by default. To make an
1217
466
  asynchronous HTTP request, please pass async_req=True
1218
- >>> thread = api.k8_s_cluster_service_list_cluster_metrics(project_id, cluster_id, async_req=True)
467
+ >>> thread = api.k8_s_cluster_service_list_aggregated_pod_metrics(cluster_id, async_req=True)
1219
468
  >>> result = thread.get()
1220
469
 
1221
470
  :param async_req bool
1222
- :param str project_id: (required)
1223
471
  :param str cluster_id: (required)
472
+ :param str namespace:
1224
473
  :param datetime start: Date range.
1225
474
  :param datetime end:
1226
- :return: V1ListClusterMetricsResponse
475
+ :return: V1ListAggregatedPodMetricsResponse
1227
476
  If the method is called asynchronously,
1228
477
  returns the request thread.
1229
478
  """
1230
479
  kwargs['_return_http_data_only'] = True
1231
480
  if kwargs.get('async_req'):
1232
- return self.k8_s_cluster_service_list_cluster_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
481
+ return self.k8_s_cluster_service_list_aggregated_pod_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
1233
482
  else:
1234
- (data) = self.k8_s_cluster_service_list_cluster_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
483
+ (data) = self.k8_s_cluster_service_list_aggregated_pod_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
1235
484
  return data
1236
485
 
1237
- def k8_s_cluster_service_list_cluster_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricsResponse': # noqa: E501
1238
- """k8_s_cluster_service_list_cluster_metrics # noqa: E501
486
+ def k8_s_cluster_service_list_aggregated_pod_metrics_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListAggregatedPodMetricsResponse': # noqa: E501
487
+ """k8_s_cluster_service_list_aggregated_pod_metrics # noqa: E501
1239
488
 
1240
489
  This method makes a synchronous HTTP request by default. To make an
1241
490
  asynchronous HTTP request, please pass async_req=True
1242
- >>> thread = api.k8_s_cluster_service_list_cluster_metrics_with_http_info(project_id, cluster_id, async_req=True)
491
+ >>> thread = api.k8_s_cluster_service_list_aggregated_pod_metrics_with_http_info(cluster_id, async_req=True)
1243
492
  >>> result = thread.get()
1244
493
 
1245
494
  :param async_req bool
1246
- :param str project_id: (required)
1247
495
  :param str cluster_id: (required)
496
+ :param str namespace:
1248
497
  :param datetime start: Date range.
1249
498
  :param datetime end:
1250
- :return: V1ListClusterMetricsResponse
499
+ :return: V1ListAggregatedPodMetricsResponse
1251
500
  If the method is called asynchronously,
1252
501
  returns the request thread.
1253
502
  """
1254
503
 
1255
- all_params = ['project_id', 'cluster_id', 'start', 'end'] # noqa: E501
504
+ all_params = ['cluster_id', 'namespace', 'start', 'end'] # noqa: E501
1256
505
  all_params.append('async_req')
1257
506
  all_params.append('_return_http_data_only')
1258
507
  all_params.append('_preload_content')
@@ -1263,28 +512,24 @@ class K8SClusterServiceApi(object):
1263
512
  if key not in all_params:
1264
513
  raise TypeError(
1265
514
  "Got an unexpected keyword argument '%s'"
1266
- " to method k8_s_cluster_service_list_cluster_metrics" % key
515
+ " to method k8_s_cluster_service_list_aggregated_pod_metrics" % key
1267
516
  )
1268
517
  params[key] = val
1269
518
  del params['kwargs']
1270
- # verify the required parameter 'project_id' is set
1271
- if ('project_id' not in params or
1272
- params['project_id'] is None):
1273
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_cluster_metrics`") # noqa: E501
1274
519
  # verify the required parameter 'cluster_id' is set
1275
520
  if ('cluster_id' not in params or
1276
521
  params['cluster_id'] is None):
1277
- raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_metrics`") # noqa: E501
522
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_aggregated_pod_metrics`") # noqa: E501
1278
523
 
1279
524
  collection_formats = {}
1280
525
 
1281
526
  path_params = {}
1282
- if 'project_id' in params:
1283
- path_params['projectId'] = params['project_id'] # noqa: E501
1284
527
  if 'cluster_id' in params:
1285
528
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
1286
529
 
1287
530
  query_params = []
531
+ if 'namespace' in params:
532
+ query_params.append(('namespace', params['namespace'])) # noqa: E501
1288
533
  if 'start' in params:
1289
534
  query_params.append(('start', params['start'])) # noqa: E501
1290
535
  if 'end' in params:
@@ -1304,14 +549,14 @@ class K8SClusterServiceApi(object):
1304
549
  auth_settings = [] # noqa: E501
1305
550
 
1306
551
  return self.api_client.call_api(
1307
- '/v1/projects/{projectId}/clusters/{clusterId}/cluster-metrics', 'GET',
552
+ '/v1/k8s-clusters/{clusterId}/aggregated-metrics/pods', 'GET',
1308
553
  path_params,
1309
554
  query_params,
1310
555
  header_params,
1311
556
  body=body_params,
1312
557
  post_params=form_params,
1313
558
  files=local_var_files,
1314
- response_type='V1ListClusterMetricsResponse', # noqa: E501
559
+ response_type='V1ListAggregatedPodMetricsResponse', # noqa: E501
1315
560
  auth_settings=auth_settings,
1316
561
  async_req=params.get('async_req'),
1317
562
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1319,51 +564,45 @@ class K8SClusterServiceApi(object):
1319
564
  _request_timeout=params.get('_request_timeout'),
1320
565
  collection_formats=collection_formats)
1321
566
 
1322
- def k8_s_cluster_service_list_cluster_namespace_metrics(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterNamespaceMetricsResponse': # noqa: E501
1323
- """k8_s_cluster_service_list_cluster_namespace_metrics # noqa: E501
567
+ def k8_s_cluster_service_list_cluster_metric_timestamps(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricTimestampsResponse': # noqa: E501
568
+ """k8_s_cluster_service_list_cluster_metric_timestamps # noqa: E501
1324
569
 
1325
570
  This method makes a synchronous HTTP request by default. To make an
1326
571
  asynchronous HTTP request, please pass async_req=True
1327
- >>> thread = api.k8_s_cluster_service_list_cluster_namespace_metrics(project_id, cluster_id, async_req=True)
572
+ >>> thread = api.k8_s_cluster_service_list_cluster_metric_timestamps(cluster_id, async_req=True)
1328
573
  >>> result = thread.get()
1329
574
 
1330
575
  :param async_req bool
1331
- :param str project_id: (required)
1332
576
  :param str cluster_id: (required)
1333
- :param str namespace:
1334
- :param datetime start: Date range.
1335
- :param datetime end:
1336
- :return: V1ListClusterNamespaceMetricsResponse
577
+ :param str project_id:
578
+ :return: V1ListClusterMetricTimestampsResponse
1337
579
  If the method is called asynchronously,
1338
580
  returns the request thread.
1339
581
  """
1340
582
  kwargs['_return_http_data_only'] = True
1341
583
  if kwargs.get('async_req'):
1342
- return self.k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
584
+ return self.k8_s_cluster_service_list_cluster_metric_timestamps_with_http_info(cluster_id, **kwargs) # noqa: E501
1343
585
  else:
1344
- (data) = self.k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
586
+ (data) = self.k8_s_cluster_service_list_cluster_metric_timestamps_with_http_info(cluster_id, **kwargs) # noqa: E501
1345
587
  return data
1346
588
 
1347
- def k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterNamespaceMetricsResponse': # noqa: E501
1348
- """k8_s_cluster_service_list_cluster_namespace_metrics # noqa: E501
589
+ def k8_s_cluster_service_list_cluster_metric_timestamps_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricTimestampsResponse': # noqa: E501
590
+ """k8_s_cluster_service_list_cluster_metric_timestamps # noqa: E501
1349
591
 
1350
592
  This method makes a synchronous HTTP request by default. To make an
1351
593
  asynchronous HTTP request, please pass async_req=True
1352
- >>> thread = api.k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(project_id, cluster_id, async_req=True)
594
+ >>> thread = api.k8_s_cluster_service_list_cluster_metric_timestamps_with_http_info(cluster_id, async_req=True)
1353
595
  >>> result = thread.get()
1354
596
 
1355
597
  :param async_req bool
1356
- :param str project_id: (required)
1357
598
  :param str cluster_id: (required)
1358
- :param str namespace:
1359
- :param datetime start: Date range.
1360
- :param datetime end:
1361
- :return: V1ListClusterNamespaceMetricsResponse
599
+ :param str project_id:
600
+ :return: V1ListClusterMetricTimestampsResponse
1362
601
  If the method is called asynchronously,
1363
602
  returns the request thread.
1364
603
  """
1365
604
 
1366
- all_params = ['project_id', 'cluster_id', 'namespace', 'start', 'end'] # noqa: E501
605
+ all_params = ['cluster_id', 'project_id'] # noqa: E501
1367
606
  all_params.append('async_req')
1368
607
  all_params.append('_return_http_data_only')
1369
608
  all_params.append('_preload_content')
@@ -1374,34 +613,24 @@ class K8SClusterServiceApi(object):
1374
613
  if key not in all_params:
1375
614
  raise TypeError(
1376
615
  "Got an unexpected keyword argument '%s'"
1377
- " to method k8_s_cluster_service_list_cluster_namespace_metrics" % key
616
+ " to method k8_s_cluster_service_list_cluster_metric_timestamps" % key
1378
617
  )
1379
618
  params[key] = val
1380
619
  del params['kwargs']
1381
- # verify the required parameter 'project_id' is set
1382
- if ('project_id' not in params or
1383
- params['project_id'] is None):
1384
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_cluster_namespace_metrics`") # noqa: E501
1385
620
  # verify the required parameter 'cluster_id' is set
1386
621
  if ('cluster_id' not in params or
1387
622
  params['cluster_id'] is None):
1388
- raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_namespace_metrics`") # noqa: E501
623
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_metric_timestamps`") # noqa: E501
1389
624
 
1390
625
  collection_formats = {}
1391
626
 
1392
- path_params = {}
1393
- if 'project_id' in params:
1394
- path_params['projectId'] = params['project_id'] # noqa: E501
627
+ path_params = {}
1395
628
  if 'cluster_id' in params:
1396
629
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
1397
630
 
1398
631
  query_params = []
1399
- if 'namespace' in params:
1400
- query_params.append(('namespace', params['namespace'])) # noqa: E501
1401
- if 'start' in params:
1402
- query_params.append(('start', params['start'])) # noqa: E501
1403
- if 'end' in params:
1404
- query_params.append(('end', params['end'])) # noqa: E501
632
+ if 'project_id' in params:
633
+ query_params.append(('projectId', params['project_id'])) # noqa: E501
1405
634
 
1406
635
  header_params = {}
1407
636
 
@@ -1417,14 +646,14 @@ class K8SClusterServiceApi(object):
1417
646
  auth_settings = [] # noqa: E501
1418
647
 
1419
648
  return self.api_client.call_api(
1420
- '/v1/projects/{projectId}/clusters/{clusterId}/cluster-namespace-metrics', 'GET',
649
+ '/v1/k8s-clusters/{clusterId}/cluster-metrics-timestamps', 'GET',
1421
650
  path_params,
1422
651
  query_params,
1423
652
  header_params,
1424
653
  body=body_params,
1425
654
  post_params=form_params,
1426
655
  files=local_var_files,
1427
- response_type='V1ListClusterNamespaceMetricsResponse', # noqa: E501
656
+ response_type='V1ListClusterMetricTimestampsResponse', # noqa: E501
1428
657
  auth_settings=auth_settings,
1429
658
  async_req=params.get('async_req'),
1430
659
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1432,53 +661,45 @@ class K8SClusterServiceApi(object):
1432
661
  _request_timeout=params.get('_request_timeout'),
1433
662
  collection_formats=collection_formats)
1434
663
 
1435
- def k8_s_cluster_service_list_cluster_namespace_user_metrics(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterNamespaceUserMetricsResponse': # noqa: E501
1436
- """k8_s_cluster_service_list_cluster_namespace_user_metrics # noqa: E501
664
+ def k8_s_cluster_service_list_cluster_metric_timestamps2(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricTimestampsResponse': # noqa: E501
665
+ """k8_s_cluster_service_list_cluster_metric_timestamps2 # noqa: E501
1437
666
 
1438
667
  This method makes a synchronous HTTP request by default. To make an
1439
668
  asynchronous HTTP request, please pass async_req=True
1440
- >>> thread = api.k8_s_cluster_service_list_cluster_namespace_user_metrics(project_id, cluster_id, async_req=True)
669
+ >>> thread = api.k8_s_cluster_service_list_cluster_metric_timestamps2(project_id, cluster_id, async_req=True)
1441
670
  >>> result = thread.get()
1442
671
 
1443
672
  :param async_req bool
1444
673
  :param str project_id: (required)
1445
674
  :param str cluster_id: (required)
1446
- :param str namespace:
1447
- :param str user_id:
1448
- :param datetime start: Date range.
1449
- :param datetime end:
1450
- :return: V1ListClusterNamespaceUserMetricsResponse
675
+ :return: V1ListClusterMetricTimestampsResponse
1451
676
  If the method is called asynchronously,
1452
677
  returns the request thread.
1453
678
  """
1454
679
  kwargs['_return_http_data_only'] = True
1455
680
  if kwargs.get('async_req'):
1456
- return self.k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
681
+ return self.k8_s_cluster_service_list_cluster_metric_timestamps2_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
1457
682
  else:
1458
- (data) = self.k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
683
+ (data) = self.k8_s_cluster_service_list_cluster_metric_timestamps2_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
1459
684
  return data
1460
685
 
1461
- def k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterNamespaceUserMetricsResponse': # noqa: E501
1462
- """k8_s_cluster_service_list_cluster_namespace_user_metrics # noqa: E501
686
+ def k8_s_cluster_service_list_cluster_metric_timestamps2_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricTimestampsResponse': # noqa: E501
687
+ """k8_s_cluster_service_list_cluster_metric_timestamps2 # noqa: E501
1463
688
 
1464
689
  This method makes a synchronous HTTP request by default. To make an
1465
690
  asynchronous HTTP request, please pass async_req=True
1466
- >>> thread = api.k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(project_id, cluster_id, async_req=True)
691
+ >>> thread = api.k8_s_cluster_service_list_cluster_metric_timestamps2_with_http_info(project_id, cluster_id, async_req=True)
1467
692
  >>> result = thread.get()
1468
693
 
1469
694
  :param async_req bool
1470
695
  :param str project_id: (required)
1471
696
  :param str cluster_id: (required)
1472
- :param str namespace:
1473
- :param str user_id:
1474
- :param datetime start: Date range.
1475
- :param datetime end:
1476
- :return: V1ListClusterNamespaceUserMetricsResponse
697
+ :return: V1ListClusterMetricTimestampsResponse
1477
698
  If the method is called asynchronously,
1478
699
  returns the request thread.
1479
700
  """
1480
701
 
1481
- all_params = ['project_id', 'cluster_id', 'namespace', 'user_id', 'start', 'end'] # noqa: E501
702
+ all_params = ['project_id', 'cluster_id'] # noqa: E501
1482
703
  all_params.append('async_req')
1483
704
  all_params.append('_return_http_data_only')
1484
705
  all_params.append('_preload_content')
@@ -1489,18 +710,18 @@ class K8SClusterServiceApi(object):
1489
710
  if key not in all_params:
1490
711
  raise TypeError(
1491
712
  "Got an unexpected keyword argument '%s'"
1492
- " to method k8_s_cluster_service_list_cluster_namespace_user_metrics" % key
713
+ " to method k8_s_cluster_service_list_cluster_metric_timestamps2" % key
1493
714
  )
1494
715
  params[key] = val
1495
716
  del params['kwargs']
1496
717
  # verify the required parameter 'project_id' is set
1497
718
  if ('project_id' not in params or
1498
719
  params['project_id'] is None):
1499
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_cluster_namespace_user_metrics`") # noqa: E501
720
+ raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_cluster_metric_timestamps2`") # noqa: E501
1500
721
  # verify the required parameter 'cluster_id' is set
1501
722
  if ('cluster_id' not in params or
1502
723
  params['cluster_id'] is None):
1503
- raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_namespace_user_metrics`") # noqa: E501
724
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_metric_timestamps2`") # noqa: E501
1504
725
 
1505
726
  collection_formats = {}
1506
727
 
@@ -1511,14 +732,6 @@ class K8SClusterServiceApi(object):
1511
732
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
1512
733
 
1513
734
  query_params = []
1514
- if 'namespace' in params:
1515
- query_params.append(('namespace', params['namespace'])) # noqa: E501
1516
- if 'user_id' in params:
1517
- query_params.append(('userId', params['user_id'])) # noqa: E501
1518
- if 'start' in params:
1519
- query_params.append(('start', params['start'])) # noqa: E501
1520
- if 'end' in params:
1521
- query_params.append(('end', params['end'])) # noqa: E501
1522
735
 
1523
736
  header_params = {}
1524
737
 
@@ -1534,14 +747,14 @@ class K8SClusterServiceApi(object):
1534
747
  auth_settings = [] # noqa: E501
1535
748
 
1536
749
  return self.api_client.call_api(
1537
- '/v1/projects/{projectId}/clusters/{clusterId}/cluster-namespace-user-metrics', 'GET',
750
+ '/v1/projects/{projectId}/clusters/{clusterId}/cluster-metrics-timestamps', 'GET',
1538
751
  path_params,
1539
752
  query_params,
1540
753
  header_params,
1541
754
  body=body_params,
1542
755
  post_params=form_params,
1543
756
  files=local_var_files,
1544
- response_type='V1ListClusterNamespaceUserMetricsResponse', # noqa: E501
757
+ response_type='V1ListClusterMetricTimestampsResponse', # noqa: E501
1545
758
  auth_settings=auth_settings,
1546
759
  async_req=params.get('async_req'),
1547
760
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1549,53 +762,47 @@ class K8SClusterServiceApi(object):
1549
762
  _request_timeout=params.get('_request_timeout'),
1550
763
  collection_formats=collection_formats)
1551
764
 
1552
- def k8_s_cluster_service_list_container_metrics(self, project_id: 'str', cluster_id: 'str', pod_id: 'str', container_id: 'str', **kwargs) -> 'V1ListContainerMetricsResponse': # noqa: E501
1553
- """k8_s_cluster_service_list_container_metrics # noqa: E501
765
+ def k8_s_cluster_service_list_cluster_metrics(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricsResponse': # noqa: E501
766
+ """k8_s_cluster_service_list_cluster_metrics # noqa: E501
1554
767
 
1555
768
  This method makes a synchronous HTTP request by default. To make an
1556
769
  asynchronous HTTP request, please pass async_req=True
1557
- >>> thread = api.k8_s_cluster_service_list_container_metrics(project_id, cluster_id, pod_id, container_id, async_req=True)
770
+ >>> thread = api.k8_s_cluster_service_list_cluster_metrics(cluster_id, async_req=True)
1558
771
  >>> result = thread.get()
1559
772
 
1560
773
  :param async_req bool
1561
- :param str project_id: (required)
1562
774
  :param str cluster_id: (required)
1563
- :param str pod_id: (required)
1564
- :param str container_id: (required)
1565
775
  :param datetime start: Date range.
1566
776
  :param datetime end:
1567
- :return: V1ListContainerMetricsResponse
777
+ :return: V1ListClusterMetricsResponse
1568
778
  If the method is called asynchronously,
1569
779
  returns the request thread.
1570
780
  """
1571
781
  kwargs['_return_http_data_only'] = True
1572
782
  if kwargs.get('async_req'):
1573
- return self.k8_s_cluster_service_list_container_metrics_with_http_info(project_id, cluster_id, pod_id, container_id, **kwargs) # noqa: E501
783
+ return self.k8_s_cluster_service_list_cluster_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
1574
784
  else:
1575
- (data) = self.k8_s_cluster_service_list_container_metrics_with_http_info(project_id, cluster_id, pod_id, container_id, **kwargs) # noqa: E501
785
+ (data) = self.k8_s_cluster_service_list_cluster_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
1576
786
  return data
1577
787
 
1578
- def k8_s_cluster_service_list_container_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', pod_id: 'str', container_id: 'str', **kwargs) -> 'V1ListContainerMetricsResponse': # noqa: E501
1579
- """k8_s_cluster_service_list_container_metrics # noqa: E501
788
+ def k8_s_cluster_service_list_cluster_metrics_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricsResponse': # noqa: E501
789
+ """k8_s_cluster_service_list_cluster_metrics # noqa: E501
1580
790
 
1581
791
  This method makes a synchronous HTTP request by default. To make an
1582
792
  asynchronous HTTP request, please pass async_req=True
1583
- >>> thread = api.k8_s_cluster_service_list_container_metrics_with_http_info(project_id, cluster_id, pod_id, container_id, async_req=True)
793
+ >>> thread = api.k8_s_cluster_service_list_cluster_metrics_with_http_info(cluster_id, async_req=True)
1584
794
  >>> result = thread.get()
1585
795
 
1586
796
  :param async_req bool
1587
- :param str project_id: (required)
1588
797
  :param str cluster_id: (required)
1589
- :param str pod_id: (required)
1590
- :param str container_id: (required)
1591
798
  :param datetime start: Date range.
1592
799
  :param datetime end:
1593
- :return: V1ListContainerMetricsResponse
800
+ :return: V1ListClusterMetricsResponse
1594
801
  If the method is called asynchronously,
1595
802
  returns the request thread.
1596
803
  """
1597
804
 
1598
- all_params = ['project_id', 'cluster_id', 'pod_id', 'container_id', 'start', 'end'] # noqa: E501
805
+ all_params = ['cluster_id', 'start', 'end'] # noqa: E501
1599
806
  all_params.append('async_req')
1600
807
  all_params.append('_return_http_data_only')
1601
808
  all_params.append('_preload_content')
@@ -1606,38 +813,20 @@ class K8SClusterServiceApi(object):
1606
813
  if key not in all_params:
1607
814
  raise TypeError(
1608
815
  "Got an unexpected keyword argument '%s'"
1609
- " to method k8_s_cluster_service_list_container_metrics" % key
816
+ " to method k8_s_cluster_service_list_cluster_metrics" % key
1610
817
  )
1611
818
  params[key] = val
1612
819
  del params['kwargs']
1613
- # verify the required parameter 'project_id' is set
1614
- if ('project_id' not in params or
1615
- params['project_id'] is None):
1616
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
1617
820
  # verify the required parameter 'cluster_id' is set
1618
821
  if ('cluster_id' not in params or
1619
822
  params['cluster_id'] is None):
1620
- raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
1621
- # verify the required parameter 'pod_id' is set
1622
- if ('pod_id' not in params or
1623
- params['pod_id'] is None):
1624
- raise ValueError("Missing the required parameter `pod_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
1625
- # verify the required parameter 'container_id' is set
1626
- if ('container_id' not in params or
1627
- params['container_id'] is None):
1628
- raise ValueError("Missing the required parameter `container_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
823
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_metrics`") # noqa: E501
1629
824
 
1630
825
  collection_formats = {}
1631
826
 
1632
827
  path_params = {}
1633
- if 'project_id' in params:
1634
- path_params['projectId'] = params['project_id'] # noqa: E501
1635
828
  if 'cluster_id' in params:
1636
829
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
1637
- if 'pod_id' in params:
1638
- path_params['podId'] = params['pod_id'] # noqa: E501
1639
- if 'container_id' in params:
1640
- path_params['containerId'] = params['container_id'] # noqa: E501
1641
830
 
1642
831
  query_params = []
1643
832
  if 'start' in params:
@@ -1659,14 +848,14 @@ class K8SClusterServiceApi(object):
1659
848
  auth_settings = [] # noqa: E501
1660
849
 
1661
850
  return self.api_client.call_api(
1662
- '/v1/projects/{projectId}/clusters/{clusterId}/metrics/pods/{podId}/containers/{containerId}', 'GET',
851
+ '/v1/k8s-clusters/{clusterId}/cluster-metrics', 'GET',
1663
852
  path_params,
1664
853
  query_params,
1665
854
  header_params,
1666
855
  body=body_params,
1667
856
  post_params=form_params,
1668
857
  files=local_var_files,
1669
- response_type='V1ListContainerMetricsResponse', # noqa: E501
858
+ response_type='V1ListClusterMetricsResponse', # noqa: E501
1670
859
  auth_settings=auth_settings,
1671
860
  async_req=params.get('async_req'),
1672
861
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1674,53 +863,49 @@ class K8SClusterServiceApi(object):
1674
863
  _request_timeout=params.get('_request_timeout'),
1675
864
  collection_formats=collection_formats)
1676
865
 
1677
- def k8_s_cluster_service_list_filesystem_metrics(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListFilesystemMetricsResponse': # noqa: E501
1678
- """k8_s_cluster_service_list_filesystem_metrics # noqa: E501
866
+ def k8_s_cluster_service_list_cluster_namespace_metrics(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterNamespaceMetricsResponse': # noqa: E501
867
+ """k8_s_cluster_service_list_cluster_namespace_metrics # noqa: E501
1679
868
 
1680
869
  This method makes a synchronous HTTP request by default. To make an
1681
870
  asynchronous HTTP request, please pass async_req=True
1682
- >>> thread = api.k8_s_cluster_service_list_filesystem_metrics(project_id, cluster_id, async_req=True)
871
+ >>> thread = api.k8_s_cluster_service_list_cluster_namespace_metrics(cluster_id, async_req=True)
1683
872
  >>> result = thread.get()
1684
873
 
1685
874
  :param async_req bool
1686
- :param str project_id: (required)
1687
875
  :param str cluster_id: (required)
1688
- :param str fstype:
1689
- :param str mountpoint:
876
+ :param str namespace:
1690
877
  :param datetime start: Date range.
1691
878
  :param datetime end:
1692
- :return: V1ListFilesystemMetricsResponse
879
+ :return: V1ListClusterNamespaceMetricsResponse
1693
880
  If the method is called asynchronously,
1694
881
  returns the request thread.
1695
882
  """
1696
883
  kwargs['_return_http_data_only'] = True
1697
884
  if kwargs.get('async_req'):
1698
- return self.k8_s_cluster_service_list_filesystem_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
885
+ return self.k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
1699
886
  else:
1700
- (data) = self.k8_s_cluster_service_list_filesystem_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
887
+ (data) = self.k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
1701
888
  return data
1702
889
 
1703
- def k8_s_cluster_service_list_filesystem_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListFilesystemMetricsResponse': # noqa: E501
1704
- """k8_s_cluster_service_list_filesystem_metrics # noqa: E501
890
+ def k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterNamespaceMetricsResponse': # noqa: E501
891
+ """k8_s_cluster_service_list_cluster_namespace_metrics # noqa: E501
1705
892
 
1706
893
  This method makes a synchronous HTTP request by default. To make an
1707
894
  asynchronous HTTP request, please pass async_req=True
1708
- >>> thread = api.k8_s_cluster_service_list_filesystem_metrics_with_http_info(project_id, cluster_id, async_req=True)
895
+ >>> thread = api.k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(cluster_id, async_req=True)
1709
896
  >>> result = thread.get()
1710
897
 
1711
898
  :param async_req bool
1712
- :param str project_id: (required)
1713
899
  :param str cluster_id: (required)
1714
- :param str fstype:
1715
- :param str mountpoint:
900
+ :param str namespace:
1716
901
  :param datetime start: Date range.
1717
902
  :param datetime end:
1718
- :return: V1ListFilesystemMetricsResponse
903
+ :return: V1ListClusterNamespaceMetricsResponse
1719
904
  If the method is called asynchronously,
1720
905
  returns the request thread.
1721
906
  """
1722
907
 
1723
- all_params = ['project_id', 'cluster_id', 'fstype', 'mountpoint', 'start', 'end'] # noqa: E501
908
+ all_params = ['cluster_id', 'namespace', 'start', 'end'] # noqa: E501
1724
909
  all_params.append('async_req')
1725
910
  all_params.append('_return_http_data_only')
1726
911
  all_params.append('_preload_content')
@@ -1731,32 +916,24 @@ class K8SClusterServiceApi(object):
1731
916
  if key not in all_params:
1732
917
  raise TypeError(
1733
918
  "Got an unexpected keyword argument '%s'"
1734
- " to method k8_s_cluster_service_list_filesystem_metrics" % key
919
+ " to method k8_s_cluster_service_list_cluster_namespace_metrics" % key
1735
920
  )
1736
921
  params[key] = val
1737
922
  del params['kwargs']
1738
- # verify the required parameter 'project_id' is set
1739
- if ('project_id' not in params or
1740
- params['project_id'] is None):
1741
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_filesystem_metrics`") # noqa: E501
1742
923
  # verify the required parameter 'cluster_id' is set
1743
924
  if ('cluster_id' not in params or
1744
925
  params['cluster_id'] is None):
1745
- raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_filesystem_metrics`") # noqa: E501
926
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_namespace_metrics`") # noqa: E501
1746
927
 
1747
928
  collection_formats = {}
1748
929
 
1749
930
  path_params = {}
1750
- if 'project_id' in params:
1751
- path_params['projectId'] = params['project_id'] # noqa: E501
1752
931
  if 'cluster_id' in params:
1753
932
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
1754
933
 
1755
934
  query_params = []
1756
- if 'fstype' in params:
1757
- query_params.append(('fstype', params['fstype'])) # noqa: E501
1758
- if 'mountpoint' in params:
1759
- query_params.append(('mountpoint', params['mountpoint'])) # noqa: E501
935
+ if 'namespace' in params:
936
+ query_params.append(('namespace', params['namespace'])) # noqa: E501
1760
937
  if 'start' in params:
1761
938
  query_params.append(('start', params['start'])) # noqa: E501
1762
939
  if 'end' in params:
@@ -1776,14 +953,14 @@ class K8SClusterServiceApi(object):
1776
953
  auth_settings = [] # noqa: E501
1777
954
 
1778
955
  return self.api_client.call_api(
1779
- '/v1/projects/{projectId}/clusters/{clusterId}/filesystem', 'GET',
956
+ '/v1/k8s-clusters/{clusterId}/cluster-namespace-metrics', 'GET',
1780
957
  path_params,
1781
958
  query_params,
1782
959
  header_params,
1783
960
  body=body_params,
1784
961
  post_params=form_params,
1785
962
  files=local_var_files,
1786
- response_type='V1ListFilesystemMetricsResponse', # noqa: E501
963
+ response_type='V1ListClusterNamespaceMetricsResponse', # noqa: E501
1787
964
  auth_settings=auth_settings,
1788
965
  async_req=params.get('async_req'),
1789
966
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1791,53 +968,51 @@ class K8SClusterServiceApi(object):
1791
968
  _request_timeout=params.get('_request_timeout'),
1792
969
  collection_formats=collection_formats)
1793
970
 
1794
- def k8_s_cluster_service_list_group_pod_metrics(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListGroupPodMetricsResponse': # noqa: E501
1795
- """k8_s_cluster_service_list_group_pod_metrics # noqa: E501
971
+ def k8_s_cluster_service_list_cluster_namespace_user_metrics(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterNamespaceUserMetricsResponse': # noqa: E501
972
+ """k8_s_cluster_service_list_cluster_namespace_user_metrics # noqa: E501
1796
973
 
1797
974
  This method makes a synchronous HTTP request by default. To make an
1798
975
  asynchronous HTTP request, please pass async_req=True
1799
- >>> thread = api.k8_s_cluster_service_list_group_pod_metrics(project_id, cluster_id, async_req=True)
976
+ >>> thread = api.k8_s_cluster_service_list_cluster_namespace_user_metrics(cluster_id, async_req=True)
1800
977
  >>> result = thread.get()
1801
978
 
1802
979
  :param async_req bool
1803
- :param str project_id: (required)
1804
980
  :param str cluster_id: (required)
1805
- :param str key:
1806
- :param str value:
981
+ :param str namespace:
982
+ :param str user_id:
1807
983
  :param datetime start: Date range.
1808
984
  :param datetime end:
1809
- :return: V1ListGroupPodMetricsResponse
985
+ :return: V1ListClusterNamespaceUserMetricsResponse
1810
986
  If the method is called asynchronously,
1811
987
  returns the request thread.
1812
988
  """
1813
989
  kwargs['_return_http_data_only'] = True
1814
990
  if kwargs.get('async_req'):
1815
- return self.k8_s_cluster_service_list_group_pod_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
991
+ return self.k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
1816
992
  else:
1817
- (data) = self.k8_s_cluster_service_list_group_pod_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
993
+ (data) = self.k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
1818
994
  return data
1819
995
 
1820
- def k8_s_cluster_service_list_group_pod_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListGroupPodMetricsResponse': # noqa: E501
1821
- """k8_s_cluster_service_list_group_pod_metrics # noqa: E501
996
+ def k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterNamespaceUserMetricsResponse': # noqa: E501
997
+ """k8_s_cluster_service_list_cluster_namespace_user_metrics # noqa: E501
1822
998
 
1823
999
  This method makes a synchronous HTTP request by default. To make an
1824
1000
  asynchronous HTTP request, please pass async_req=True
1825
- >>> thread = api.k8_s_cluster_service_list_group_pod_metrics_with_http_info(project_id, cluster_id, async_req=True)
1001
+ >>> thread = api.k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(cluster_id, async_req=True)
1826
1002
  >>> result = thread.get()
1827
1003
 
1828
1004
  :param async_req bool
1829
- :param str project_id: (required)
1830
1005
  :param str cluster_id: (required)
1831
- :param str key:
1832
- :param str value:
1006
+ :param str namespace:
1007
+ :param str user_id:
1833
1008
  :param datetime start: Date range.
1834
1009
  :param datetime end:
1835
- :return: V1ListGroupPodMetricsResponse
1010
+ :return: V1ListClusterNamespaceUserMetricsResponse
1836
1011
  If the method is called asynchronously,
1837
1012
  returns the request thread.
1838
1013
  """
1839
1014
 
1840
- all_params = ['project_id', 'cluster_id', 'key', 'value', 'start', 'end'] # noqa: E501
1015
+ all_params = ['cluster_id', 'namespace', 'user_id', 'start', 'end'] # noqa: E501
1841
1016
  all_params.append('async_req')
1842
1017
  all_params.append('_return_http_data_only')
1843
1018
  all_params.append('_preload_content')
@@ -1848,32 +1023,26 @@ class K8SClusterServiceApi(object):
1848
1023
  if key not in all_params:
1849
1024
  raise TypeError(
1850
1025
  "Got an unexpected keyword argument '%s'"
1851
- " to method k8_s_cluster_service_list_group_pod_metrics" % key
1026
+ " to method k8_s_cluster_service_list_cluster_namespace_user_metrics" % key
1852
1027
  )
1853
1028
  params[key] = val
1854
1029
  del params['kwargs']
1855
- # verify the required parameter 'project_id' is set
1856
- if ('project_id' not in params or
1857
- params['project_id'] is None):
1858
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_group_pod_metrics`") # noqa: E501
1859
1030
  # verify the required parameter 'cluster_id' is set
1860
1031
  if ('cluster_id' not in params or
1861
1032
  params['cluster_id'] is None):
1862
- raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_group_pod_metrics`") # noqa: E501
1033
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_namespace_user_metrics`") # noqa: E501
1863
1034
 
1864
1035
  collection_formats = {}
1865
1036
 
1866
1037
  path_params = {}
1867
- if 'project_id' in params:
1868
- path_params['projectId'] = params['project_id'] # noqa: E501
1869
1038
  if 'cluster_id' in params:
1870
1039
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
1871
1040
 
1872
1041
  query_params = []
1873
- if 'key' in params:
1874
- query_params.append(('key', params['key'])) # noqa: E501
1875
- if 'value' in params:
1876
- query_params.append(('value', params['value'])) # noqa: E501
1042
+ if 'namespace' in params:
1043
+ query_params.append(('namespace', params['namespace'])) # noqa: E501
1044
+ if 'user_id' in params:
1045
+ query_params.append(('userId', params['user_id'])) # noqa: E501
1877
1046
  if 'start' in params:
1878
1047
  query_params.append(('start', params['start'])) # noqa: E501
1879
1048
  if 'end' in params:
@@ -1893,14 +1062,14 @@ class K8SClusterServiceApi(object):
1893
1062
  auth_settings = [] # noqa: E501
1894
1063
 
1895
1064
  return self.api_client.call_api(
1896
- '/v1/projects/{projectId}/clusters/{clusterId}/metrics/group-pod', 'GET',
1065
+ '/v1/k8s-clusters/{clusterId}/cluster-namespace-user-metrics', 'GET',
1897
1066
  path_params,
1898
1067
  query_params,
1899
1068
  header_params,
1900
1069
  body=body_params,
1901
1070
  post_params=form_params,
1902
1071
  files=local_var_files,
1903
- response_type='V1ListGroupPodMetricsResponse', # noqa: E501
1072
+ response_type='V1ListClusterNamespaceUserMetricsResponse', # noqa: E501
1904
1073
  auth_settings=auth_settings,
1905
1074
  async_req=params.get('async_req'),
1906
1075
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1908,45 +1077,51 @@ class K8SClusterServiceApi(object):
1908
1077
  _request_timeout=params.get('_request_timeout'),
1909
1078
  collection_formats=collection_formats)
1910
1079
 
1911
- def k8_s_cluster_service_list_incident_events(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListIncidentEventsResponse': # noqa: E501
1912
- """k8_s_cluster_service_list_incident_events # noqa: E501
1080
+ def k8_s_cluster_service_list_container_metrics(self, cluster_id: 'str', pod_id: 'str', container_id: 'str', **kwargs) -> 'V1ListContainerMetricsResponse': # noqa: E501
1081
+ """k8_s_cluster_service_list_container_metrics # noqa: E501
1913
1082
 
1914
1083
  This method makes a synchronous HTTP request by default. To make an
1915
1084
  asynchronous HTTP request, please pass async_req=True
1916
- >>> thread = api.k8_s_cluster_service_list_incident_events(project_id, cluster_id, async_req=True)
1085
+ >>> thread = api.k8_s_cluster_service_list_container_metrics(cluster_id, pod_id, container_id, async_req=True)
1917
1086
  >>> result = thread.get()
1918
1087
 
1919
1088
  :param async_req bool
1920
- :param str project_id: (required)
1921
1089
  :param str cluster_id: (required)
1922
- :return: V1ListIncidentEventsResponse
1090
+ :param str pod_id: (required)
1091
+ :param str container_id: (required)
1092
+ :param datetime start: Date range.
1093
+ :param datetime end:
1094
+ :return: V1ListContainerMetricsResponse
1923
1095
  If the method is called asynchronously,
1924
1096
  returns the request thread.
1925
1097
  """
1926
1098
  kwargs['_return_http_data_only'] = True
1927
1099
  if kwargs.get('async_req'):
1928
- return self.k8_s_cluster_service_list_incident_events_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
1100
+ return self.k8_s_cluster_service_list_container_metrics_with_http_info(cluster_id, pod_id, container_id, **kwargs) # noqa: E501
1929
1101
  else:
1930
- (data) = self.k8_s_cluster_service_list_incident_events_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
1102
+ (data) = self.k8_s_cluster_service_list_container_metrics_with_http_info(cluster_id, pod_id, container_id, **kwargs) # noqa: E501
1931
1103
  return data
1932
1104
 
1933
- def k8_s_cluster_service_list_incident_events_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListIncidentEventsResponse': # noqa: E501
1934
- """k8_s_cluster_service_list_incident_events # noqa: E501
1105
+ def k8_s_cluster_service_list_container_metrics_with_http_info(self, cluster_id: 'str', pod_id: 'str', container_id: 'str', **kwargs) -> 'V1ListContainerMetricsResponse': # noqa: E501
1106
+ """k8_s_cluster_service_list_container_metrics # noqa: E501
1935
1107
 
1936
1108
  This method makes a synchronous HTTP request by default. To make an
1937
1109
  asynchronous HTTP request, please pass async_req=True
1938
- >>> thread = api.k8_s_cluster_service_list_incident_events_with_http_info(project_id, cluster_id, async_req=True)
1110
+ >>> thread = api.k8_s_cluster_service_list_container_metrics_with_http_info(cluster_id, pod_id, container_id, async_req=True)
1939
1111
  >>> result = thread.get()
1940
1112
 
1941
1113
  :param async_req bool
1942
- :param str project_id: (required)
1943
1114
  :param str cluster_id: (required)
1944
- :return: V1ListIncidentEventsResponse
1115
+ :param str pod_id: (required)
1116
+ :param str container_id: (required)
1117
+ :param datetime start: Date range.
1118
+ :param datetime end:
1119
+ :return: V1ListContainerMetricsResponse
1945
1120
  If the method is called asynchronously,
1946
1121
  returns the request thread.
1947
1122
  """
1948
1123
 
1949
- all_params = ['project_id', 'cluster_id'] # noqa: E501
1124
+ all_params = ['cluster_id', 'pod_id', 'container_id', 'start', 'end'] # noqa: E501
1950
1125
  all_params.append('async_req')
1951
1126
  all_params.append('_return_http_data_only')
1952
1127
  all_params.append('_preload_content')
@@ -1957,28 +1132,38 @@ class K8SClusterServiceApi(object):
1957
1132
  if key not in all_params:
1958
1133
  raise TypeError(
1959
1134
  "Got an unexpected keyword argument '%s'"
1960
- " to method k8_s_cluster_service_list_incident_events" % key
1135
+ " to method k8_s_cluster_service_list_container_metrics" % key
1961
1136
  )
1962
1137
  params[key] = val
1963
1138
  del params['kwargs']
1964
- # verify the required parameter 'project_id' is set
1965
- if ('project_id' not in params or
1966
- params['project_id'] is None):
1967
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_incident_events`") # noqa: E501
1968
1139
  # verify the required parameter 'cluster_id' is set
1969
1140
  if ('cluster_id' not in params or
1970
1141
  params['cluster_id'] is None):
1971
- raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_incident_events`") # noqa: E501
1142
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
1143
+ # verify the required parameter 'pod_id' is set
1144
+ if ('pod_id' not in params or
1145
+ params['pod_id'] is None):
1146
+ raise ValueError("Missing the required parameter `pod_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
1147
+ # verify the required parameter 'container_id' is set
1148
+ if ('container_id' not in params or
1149
+ params['container_id'] is None):
1150
+ raise ValueError("Missing the required parameter `container_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
1972
1151
 
1973
1152
  collection_formats = {}
1974
1153
 
1975
1154
  path_params = {}
1976
- if 'project_id' in params:
1977
- path_params['projectId'] = params['project_id'] # noqa: E501
1978
1155
  if 'cluster_id' in params:
1979
1156
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
1157
+ if 'pod_id' in params:
1158
+ path_params['podId'] = params['pod_id'] # noqa: E501
1159
+ if 'container_id' in params:
1160
+ path_params['containerId'] = params['container_id'] # noqa: E501
1980
1161
 
1981
1162
  query_params = []
1163
+ if 'start' in params:
1164
+ query_params.append(('start', params['start'])) # noqa: E501
1165
+ if 'end' in params:
1166
+ query_params.append(('end', params['end'])) # noqa: E501
1982
1167
 
1983
1168
  header_params = {}
1984
1169
 
@@ -1994,14 +1179,14 @@ class K8SClusterServiceApi(object):
1994
1179
  auth_settings = [] # noqa: E501
1995
1180
 
1996
1181
  return self.api_client.call_api(
1997
- '/v1/projects/{projectId}/clusters/{clusterId}/incident-events', 'GET',
1182
+ '/v1/k8s-clusters/{clusterId}/metrics/pods/{podId}/containers/{containerId}', 'GET',
1998
1183
  path_params,
1999
1184
  query_params,
2000
1185
  header_params,
2001
1186
  body=body_params,
2002
1187
  post_params=form_params,
2003
1188
  files=local_var_files,
2004
- response_type='V1ListIncidentEventsResponse', # noqa: E501
1189
+ response_type='V1ListContainerMetricsResponse', # noqa: E501
2005
1190
  auth_settings=auth_settings,
2006
1191
  async_req=params.get('async_req'),
2007
1192
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -2009,49 +1194,51 @@ class K8SClusterServiceApi(object):
2009
1194
  _request_timeout=params.get('_request_timeout'),
2010
1195
  collection_formats=collection_formats)
2011
1196
 
2012
- def k8_s_cluster_service_list_incident_messages(self, project_id: 'str', incident_id: 'str', **kwargs) -> 'V1ListIncidentMessagesResponse': # noqa: E501
2013
- """k8_s_cluster_service_list_incident_messages # noqa: E501
1197
+ def k8_s_cluster_service_list_filesystem_metrics(self, cluster_id: 'str', **kwargs) -> 'V1ListFilesystemMetricsResponse': # noqa: E501
1198
+ """k8_s_cluster_service_list_filesystem_metrics # noqa: E501
2014
1199
 
2015
1200
  This method makes a synchronous HTTP request by default. To make an
2016
1201
  asynchronous HTTP request, please pass async_req=True
2017
- >>> thread = api.k8_s_cluster_service_list_incident_messages(project_id, incident_id, async_req=True)
1202
+ >>> thread = api.k8_s_cluster_service_list_filesystem_metrics(cluster_id, async_req=True)
2018
1203
  >>> result = thread.get()
2019
1204
 
2020
1205
  :param async_req bool
2021
- :param str project_id: (required)
2022
- :param str incident_id: (required)
2023
- :param int page_size:
2024
- :param str page_token:
2025
- :return: V1ListIncidentMessagesResponse
1206
+ :param str cluster_id: (required)
1207
+ :param str fstype:
1208
+ :param str mountpoint:
1209
+ :param datetime start: Date range.
1210
+ :param datetime end:
1211
+ :return: V1ListFilesystemMetricsResponse
2026
1212
  If the method is called asynchronously,
2027
1213
  returns the request thread.
2028
1214
  """
2029
1215
  kwargs['_return_http_data_only'] = True
2030
1216
  if kwargs.get('async_req'):
2031
- return self.k8_s_cluster_service_list_incident_messages_with_http_info(project_id, incident_id, **kwargs) # noqa: E501
1217
+ return self.k8_s_cluster_service_list_filesystem_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
2032
1218
  else:
2033
- (data) = self.k8_s_cluster_service_list_incident_messages_with_http_info(project_id, incident_id, **kwargs) # noqa: E501
1219
+ (data) = self.k8_s_cluster_service_list_filesystem_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
2034
1220
  return data
2035
1221
 
2036
- def k8_s_cluster_service_list_incident_messages_with_http_info(self, project_id: 'str', incident_id: 'str', **kwargs) -> 'V1ListIncidentMessagesResponse': # noqa: E501
2037
- """k8_s_cluster_service_list_incident_messages # noqa: E501
1222
+ def k8_s_cluster_service_list_filesystem_metrics_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListFilesystemMetricsResponse': # noqa: E501
1223
+ """k8_s_cluster_service_list_filesystem_metrics # noqa: E501
2038
1224
 
2039
1225
  This method makes a synchronous HTTP request by default. To make an
2040
1226
  asynchronous HTTP request, please pass async_req=True
2041
- >>> thread = api.k8_s_cluster_service_list_incident_messages_with_http_info(project_id, incident_id, async_req=True)
1227
+ >>> thread = api.k8_s_cluster_service_list_filesystem_metrics_with_http_info(cluster_id, async_req=True)
2042
1228
  >>> result = thread.get()
2043
1229
 
2044
1230
  :param async_req bool
2045
- :param str project_id: (required)
2046
- :param str incident_id: (required)
2047
- :param int page_size:
2048
- :param str page_token:
2049
- :return: V1ListIncidentMessagesResponse
1231
+ :param str cluster_id: (required)
1232
+ :param str fstype:
1233
+ :param str mountpoint:
1234
+ :param datetime start: Date range.
1235
+ :param datetime end:
1236
+ :return: V1ListFilesystemMetricsResponse
2050
1237
  If the method is called asynchronously,
2051
1238
  returns the request thread.
2052
1239
  """
2053
1240
 
2054
- all_params = ['project_id', 'incident_id', 'page_size', 'page_token'] # noqa: E501
1241
+ all_params = ['cluster_id', 'fstype', 'mountpoint', 'start', 'end'] # noqa: E501
2055
1242
  all_params.append('async_req')
2056
1243
  all_params.append('_return_http_data_only')
2057
1244
  all_params.append('_preload_content')
@@ -2062,32 +1249,30 @@ class K8SClusterServiceApi(object):
2062
1249
  if key not in all_params:
2063
1250
  raise TypeError(
2064
1251
  "Got an unexpected keyword argument '%s'"
2065
- " to method k8_s_cluster_service_list_incident_messages" % key
1252
+ " to method k8_s_cluster_service_list_filesystem_metrics" % key
2066
1253
  )
2067
1254
  params[key] = val
2068
1255
  del params['kwargs']
2069
- # verify the required parameter 'project_id' is set
2070
- if ('project_id' not in params or
2071
- params['project_id'] is None):
2072
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_incident_messages`") # noqa: E501
2073
- # verify the required parameter 'incident_id' is set
2074
- if ('incident_id' not in params or
2075
- params['incident_id'] is None):
2076
- raise ValueError("Missing the required parameter `incident_id` when calling `k8_s_cluster_service_list_incident_messages`") # noqa: E501
1256
+ # verify the required parameter 'cluster_id' is set
1257
+ if ('cluster_id' not in params or
1258
+ params['cluster_id'] is None):
1259
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_filesystem_metrics`") # noqa: E501
2077
1260
 
2078
1261
  collection_formats = {}
2079
1262
 
2080
1263
  path_params = {}
2081
- if 'project_id' in params:
2082
- path_params['projectId'] = params['project_id'] # noqa: E501
2083
- if 'incident_id' in params:
2084
- path_params['incidentId'] = params['incident_id'] # noqa: E501
1264
+ if 'cluster_id' in params:
1265
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
2085
1266
 
2086
1267
  query_params = []
2087
- if 'page_size' in params:
2088
- query_params.append(('pageSize', params['page_size'])) # noqa: E501
2089
- if 'page_token' in params:
2090
- query_params.append(('pageToken', params['page_token'])) # noqa: E501
1268
+ if 'fstype' in params:
1269
+ query_params.append(('fstype', params['fstype'])) # noqa: E501
1270
+ if 'mountpoint' in params:
1271
+ query_params.append(('mountpoint', params['mountpoint'])) # noqa: E501
1272
+ if 'start' in params:
1273
+ query_params.append(('start', params['start'])) # noqa: E501
1274
+ if 'end' in params:
1275
+ query_params.append(('end', params['end'])) # noqa: E501
2091
1276
 
2092
1277
  header_params = {}
2093
1278
 
@@ -2103,14 +1288,14 @@ class K8SClusterServiceApi(object):
2103
1288
  auth_settings = [] # noqa: E501
2104
1289
 
2105
1290
  return self.api_client.call_api(
2106
- '/v1/projects/{projectId}/incidents/{incidentId}/messages', 'GET',
1291
+ '/v1/k8s-clusters/{clusterId}/filesystem', 'GET',
2107
1292
  path_params,
2108
1293
  query_params,
2109
1294
  header_params,
2110
1295
  body=body_params,
2111
1296
  post_params=form_params,
2112
1297
  files=local_var_files,
2113
- response_type='V1ListIncidentMessagesResponse', # noqa: E501
1298
+ response_type='V1ListFilesystemMetricsResponse', # noqa: E501
2114
1299
  auth_settings=auth_settings,
2115
1300
  async_req=params.get('async_req'),
2116
1301
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -2118,55 +1303,51 @@ class K8SClusterServiceApi(object):
2118
1303
  _request_timeout=params.get('_request_timeout'),
2119
1304
  collection_formats=collection_formats)
2120
1305
 
2121
- def k8_s_cluster_service_list_incidents(self, project_id: 'str', **kwargs) -> 'V1ListIncidentsResponse': # noqa: E501
2122
- """k8_s_cluster_service_list_incidents # noqa: E501
1306
+ def k8_s_cluster_service_list_group_pod_metrics(self, cluster_id: 'str', **kwargs) -> 'V1ListGroupPodMetricsResponse': # noqa: E501
1307
+ """k8_s_cluster_service_list_group_pod_metrics # noqa: E501
2123
1308
 
2124
1309
  This method makes a synchronous HTTP request by default. To make an
2125
1310
  asynchronous HTTP request, please pass async_req=True
2126
- >>> thread = api.k8_s_cluster_service_list_incidents(project_id, async_req=True)
1311
+ >>> thread = api.k8_s_cluster_service_list_group_pod_metrics(cluster_id, async_req=True)
2127
1312
  >>> result = thread.get()
2128
1313
 
2129
1314
  :param async_req bool
2130
- :param str project_id: (required)
2131
- :param str cluster_id:
2132
- :param str status:
2133
- :param str type:
2134
- :param str severity:
2135
- :param int page_size:
2136
- :param str page_token:
2137
- :return: V1ListIncidentsResponse
1315
+ :param str cluster_id: (required)
1316
+ :param str key:
1317
+ :param str value:
1318
+ :param datetime start: Date range.
1319
+ :param datetime end:
1320
+ :return: V1ListGroupPodMetricsResponse
2138
1321
  If the method is called asynchronously,
2139
1322
  returns the request thread.
2140
1323
  """
2141
1324
  kwargs['_return_http_data_only'] = True
2142
1325
  if kwargs.get('async_req'):
2143
- return self.k8_s_cluster_service_list_incidents_with_http_info(project_id, **kwargs) # noqa: E501
1326
+ return self.k8_s_cluster_service_list_group_pod_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
2144
1327
  else:
2145
- (data) = self.k8_s_cluster_service_list_incidents_with_http_info(project_id, **kwargs) # noqa: E501
1328
+ (data) = self.k8_s_cluster_service_list_group_pod_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
2146
1329
  return data
2147
1330
 
2148
- def k8_s_cluster_service_list_incidents_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListIncidentsResponse': # noqa: E501
2149
- """k8_s_cluster_service_list_incidents # noqa: E501
1331
+ def k8_s_cluster_service_list_group_pod_metrics_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListGroupPodMetricsResponse': # noqa: E501
1332
+ """k8_s_cluster_service_list_group_pod_metrics # noqa: E501
2150
1333
 
2151
1334
  This method makes a synchronous HTTP request by default. To make an
2152
1335
  asynchronous HTTP request, please pass async_req=True
2153
- >>> thread = api.k8_s_cluster_service_list_incidents_with_http_info(project_id, async_req=True)
1336
+ >>> thread = api.k8_s_cluster_service_list_group_pod_metrics_with_http_info(cluster_id, async_req=True)
2154
1337
  >>> result = thread.get()
2155
1338
 
2156
1339
  :param async_req bool
2157
- :param str project_id: (required)
2158
- :param str cluster_id:
2159
- :param str status:
2160
- :param str type:
2161
- :param str severity:
2162
- :param int page_size:
2163
- :param str page_token:
2164
- :return: V1ListIncidentsResponse
1340
+ :param str cluster_id: (required)
1341
+ :param str key:
1342
+ :param str value:
1343
+ :param datetime start: Date range.
1344
+ :param datetime end:
1345
+ :return: V1ListGroupPodMetricsResponse
2165
1346
  If the method is called asynchronously,
2166
1347
  returns the request thread.
2167
1348
  """
2168
1349
 
2169
- all_params = ['project_id', 'cluster_id', 'status', 'type', 'severity', 'page_size', 'page_token'] # noqa: E501
1350
+ all_params = ['cluster_id', 'key', 'value', 'start', 'end'] # noqa: E501
2170
1351
  all_params.append('async_req')
2171
1352
  all_params.append('_return_http_data_only')
2172
1353
  all_params.append('_preload_content')
@@ -2177,34 +1358,30 @@ class K8SClusterServiceApi(object):
2177
1358
  if key not in all_params:
2178
1359
  raise TypeError(
2179
1360
  "Got an unexpected keyword argument '%s'"
2180
- " to method k8_s_cluster_service_list_incidents" % key
1361
+ " to method k8_s_cluster_service_list_group_pod_metrics" % key
2181
1362
  )
2182
1363
  params[key] = val
2183
1364
  del params['kwargs']
2184
- # verify the required parameter 'project_id' is set
2185
- if ('project_id' not in params or
2186
- params['project_id'] is None):
2187
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_incidents`") # noqa: E501
1365
+ # verify the required parameter 'cluster_id' is set
1366
+ if ('cluster_id' not in params or
1367
+ params['cluster_id'] is None):
1368
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_group_pod_metrics`") # noqa: E501
2188
1369
 
2189
1370
  collection_formats = {}
2190
1371
 
2191
1372
  path_params = {}
2192
- if 'project_id' in params:
2193
- path_params['projectId'] = params['project_id'] # noqa: E501
1373
+ if 'cluster_id' in params:
1374
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
2194
1375
 
2195
1376
  query_params = []
2196
- if 'cluster_id' in params:
2197
- query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
2198
- if 'status' in params:
2199
- query_params.append(('status', params['status'])) # noqa: E501
2200
- if 'type' in params:
2201
- query_params.append(('type', params['type'])) # noqa: E501
2202
- if 'severity' in params:
2203
- query_params.append(('severity', params['severity'])) # noqa: E501
2204
- if 'page_size' in params:
2205
- query_params.append(('pageSize', params['page_size'])) # noqa: E501
2206
- if 'page_token' in params:
2207
- query_params.append(('pageToken', params['page_token'])) # noqa: E501
1377
+ if 'key' in params:
1378
+ query_params.append(('key', params['key'])) # noqa: E501
1379
+ if 'value' in params:
1380
+ query_params.append(('value', params['value'])) # noqa: E501
1381
+ if 'start' in params:
1382
+ query_params.append(('start', params['start'])) # noqa: E501
1383
+ if 'end' in params:
1384
+ query_params.append(('end', params['end'])) # noqa: E501
2208
1385
 
2209
1386
  header_params = {}
2210
1387
 
@@ -2220,14 +1397,14 @@ class K8SClusterServiceApi(object):
2220
1397
  auth_settings = [] # noqa: E501
2221
1398
 
2222
1399
  return self.api_client.call_api(
2223
- '/v1/projects/{projectId}/incidents', 'GET',
1400
+ '/v1/k8s-clusters/{clusterId}/metrics/group-pod', 'GET',
2224
1401
  path_params,
2225
1402
  query_params,
2226
1403
  header_params,
2227
1404
  body=body_params,
2228
1405
  post_params=form_params,
2229
1406
  files=local_var_files,
2230
- response_type='V1ListIncidentsResponse', # noqa: E501
1407
+ response_type='V1ListGroupPodMetricsResponse', # noqa: E501
2231
1408
  auth_settings=auth_settings,
2232
1409
  async_req=params.get('async_req'),
2233
1410
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -2235,16 +1412,15 @@ class K8SClusterServiceApi(object):
2235
1412
  _request_timeout=params.get('_request_timeout'),
2236
1413
  collection_formats=collection_formats)
2237
1414
 
2238
- def k8_s_cluster_service_list_kai_scheduler_queues_metrics(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListKaiSchedulerQueuesMetricsResponse': # noqa: E501
1415
+ def k8_s_cluster_service_list_kai_scheduler_queues_metrics(self, cluster_id: 'str', **kwargs) -> 'V1ListKaiSchedulerQueuesMetricsResponse': # noqa: E501
2239
1416
  """k8_s_cluster_service_list_kai_scheduler_queues_metrics # noqa: E501
2240
1417
 
2241
1418
  This method makes a synchronous HTTP request by default. To make an
2242
1419
  asynchronous HTTP request, please pass async_req=True
2243
- >>> thread = api.k8_s_cluster_service_list_kai_scheduler_queues_metrics(project_id, cluster_id, async_req=True)
1420
+ >>> thread = api.k8_s_cluster_service_list_kai_scheduler_queues_metrics(cluster_id, async_req=True)
2244
1421
  >>> result = thread.get()
2245
1422
 
2246
1423
  :param async_req bool
2247
- :param str project_id: (required)
2248
1424
  :param str cluster_id: (required)
2249
1425
  :param str namespace:
2250
1426
  :param str user_id:
@@ -2256,21 +1432,20 @@ class K8SClusterServiceApi(object):
2256
1432
  """
2257
1433
  kwargs['_return_http_data_only'] = True
2258
1434
  if kwargs.get('async_req'):
2259
- return self.k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
1435
+ return self.k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
2260
1436
  else:
2261
- (data) = self.k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
1437
+ (data) = self.k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
2262
1438
  return data
2263
1439
 
2264
- def k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListKaiSchedulerQueuesMetricsResponse': # noqa: E501
1440
+ def k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListKaiSchedulerQueuesMetricsResponse': # noqa: E501
2265
1441
  """k8_s_cluster_service_list_kai_scheduler_queues_metrics # noqa: E501
2266
1442
 
2267
1443
  This method makes a synchronous HTTP request by default. To make an
2268
1444
  asynchronous HTTP request, please pass async_req=True
2269
- >>> thread = api.k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(project_id, cluster_id, async_req=True)
1445
+ >>> thread = api.k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(cluster_id, async_req=True)
2270
1446
  >>> result = thread.get()
2271
1447
 
2272
1448
  :param async_req bool
2273
- :param str project_id: (required)
2274
1449
  :param str cluster_id: (required)
2275
1450
  :param str namespace:
2276
1451
  :param str user_id:
@@ -2281,7 +1456,7 @@ class K8SClusterServiceApi(object):
2281
1456
  returns the request thread.
2282
1457
  """
2283
1458
 
2284
- all_params = ['project_id', 'cluster_id', 'namespace', 'user_id', 'start', 'end'] # noqa: E501
1459
+ all_params = ['cluster_id', 'namespace', 'user_id', 'start', 'end'] # noqa: E501
2285
1460
  all_params.append('async_req')
2286
1461
  all_params.append('_return_http_data_only')
2287
1462
  all_params.append('_preload_content')
@@ -2296,10 +1471,6 @@ class K8SClusterServiceApi(object):
2296
1471
  )
2297
1472
  params[key] = val
2298
1473
  del params['kwargs']
2299
- # verify the required parameter 'project_id' is set
2300
- if ('project_id' not in params or
2301
- params['project_id'] is None):
2302
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_kai_scheduler_queues_metrics`") # noqa: E501
2303
1474
  # verify the required parameter 'cluster_id' is set
2304
1475
  if ('cluster_id' not in params or
2305
1476
  params['cluster_id'] is None):
@@ -2308,8 +1479,6 @@ class K8SClusterServiceApi(object):
2308
1479
  collection_formats = {}
2309
1480
 
2310
1481
  path_params = {}
2311
- if 'project_id' in params:
2312
- path_params['projectId'] = params['project_id'] # noqa: E501
2313
1482
  if 'cluster_id' in params:
2314
1483
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
2315
1484
 
@@ -2337,7 +1506,7 @@ class K8SClusterServiceApi(object):
2337
1506
  auth_settings = [] # noqa: E501
2338
1507
 
2339
1508
  return self.api_client.call_api(
2340
- '/v1/projects/{projectId}/clusters/{clusterId}/cluster-kai-scheduler-queues-metrics', 'GET',
1509
+ '/v1/k8s-clusters/{clusterId}/cluster-kai-scheduler-queues-metrics', 'GET',
2341
1510
  path_params,
2342
1511
  query_params,
2343
1512
  header_params,
@@ -2352,45 +1521,43 @@ class K8SClusterServiceApi(object):
2352
1521
  _request_timeout=params.get('_request_timeout'),
2353
1522
  collection_formats=collection_formats)
2354
1523
 
2355
- def k8_s_cluster_service_list_kubernetes_templates(self, project_id: 'str', **kwargs) -> 'V1ListKubernetesTemplatesResponse': # noqa: E501
1524
+ def k8_s_cluster_service_list_kubernetes_templates(self, cluster_id: 'str', **kwargs) -> 'V1ListKubernetesTemplatesResponse': # noqa: E501
2356
1525
  """k8_s_cluster_service_list_kubernetes_templates # noqa: E501
2357
1526
 
2358
1527
  This method makes a synchronous HTTP request by default. To make an
2359
1528
  asynchronous HTTP request, please pass async_req=True
2360
- >>> thread = api.k8_s_cluster_service_list_kubernetes_templates(project_id, async_req=True)
1529
+ >>> thread = api.k8_s_cluster_service_list_kubernetes_templates(cluster_id, async_req=True)
2361
1530
  >>> result = thread.get()
2362
1531
 
2363
1532
  :param async_req bool
2364
- :param str project_id: (required)
2365
- :param str cluster_id:
1533
+ :param str cluster_id: (required)
2366
1534
  :return: V1ListKubernetesTemplatesResponse
2367
1535
  If the method is called asynchronously,
2368
1536
  returns the request thread.
2369
1537
  """
2370
1538
  kwargs['_return_http_data_only'] = True
2371
1539
  if kwargs.get('async_req'):
2372
- return self.k8_s_cluster_service_list_kubernetes_templates_with_http_info(project_id, **kwargs) # noqa: E501
1540
+ return self.k8_s_cluster_service_list_kubernetes_templates_with_http_info(cluster_id, **kwargs) # noqa: E501
2373
1541
  else:
2374
- (data) = self.k8_s_cluster_service_list_kubernetes_templates_with_http_info(project_id, **kwargs) # noqa: E501
1542
+ (data) = self.k8_s_cluster_service_list_kubernetes_templates_with_http_info(cluster_id, **kwargs) # noqa: E501
2375
1543
  return data
2376
1544
 
2377
- def k8_s_cluster_service_list_kubernetes_templates_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListKubernetesTemplatesResponse': # noqa: E501
1545
+ def k8_s_cluster_service_list_kubernetes_templates_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListKubernetesTemplatesResponse': # noqa: E501
2378
1546
  """k8_s_cluster_service_list_kubernetes_templates # noqa: E501
2379
1547
 
2380
1548
  This method makes a synchronous HTTP request by default. To make an
2381
1549
  asynchronous HTTP request, please pass async_req=True
2382
- >>> thread = api.k8_s_cluster_service_list_kubernetes_templates_with_http_info(project_id, async_req=True)
1550
+ >>> thread = api.k8_s_cluster_service_list_kubernetes_templates_with_http_info(cluster_id, async_req=True)
2383
1551
  >>> result = thread.get()
2384
1552
 
2385
1553
  :param async_req bool
2386
- :param str project_id: (required)
2387
- :param str cluster_id:
1554
+ :param str cluster_id: (required)
2388
1555
  :return: V1ListKubernetesTemplatesResponse
2389
1556
  If the method is called asynchronously,
2390
1557
  returns the request thread.
2391
1558
  """
2392
1559
 
2393
- all_params = ['project_id', 'cluster_id'] # noqa: E501
1560
+ all_params = ['cluster_id'] # noqa: E501
2394
1561
  all_params.append('async_req')
2395
1562
  all_params.append('_return_http_data_only')
2396
1563
  all_params.append('_preload_content')
@@ -2405,20 +1572,18 @@ class K8SClusterServiceApi(object):
2405
1572
  )
2406
1573
  params[key] = val
2407
1574
  del params['kwargs']
2408
- # verify the required parameter 'project_id' is set
2409
- if ('project_id' not in params or
2410
- params['project_id'] is None):
2411
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_kubernetes_templates`") # noqa: E501
1575
+ # verify the required parameter 'cluster_id' is set
1576
+ if ('cluster_id' not in params or
1577
+ params['cluster_id'] is None):
1578
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_kubernetes_templates`") # noqa: E501
2412
1579
 
2413
1580
  collection_formats = {}
2414
1581
 
2415
1582
  path_params = {}
2416
- if 'project_id' in params:
2417
- path_params['projectId'] = params['project_id'] # noqa: E501
1583
+ if 'cluster_id' in params:
1584
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
2418
1585
 
2419
1586
  query_params = []
2420
- if 'cluster_id' in params:
2421
- query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
2422
1587
 
2423
1588
  header_params = {}
2424
1589
 
@@ -2434,7 +1599,7 @@ class K8SClusterServiceApi(object):
2434
1599
  auth_settings = [] # noqa: E501
2435
1600
 
2436
1601
  return self.api_client.call_api(
2437
- '/v1/projects/{projectId}/kubernetes-templates', 'GET',
1602
+ '/v1/k8s-clusters/{clusterId}/kubernetes-templates', 'GET',
2438
1603
  path_params,
2439
1604
  query_params,
2440
1605
  header_params,
@@ -2449,16 +1614,15 @@ class K8SClusterServiceApi(object):
2449
1614
  _request_timeout=params.get('_request_timeout'),
2450
1615
  collection_formats=collection_formats)
2451
1616
 
2452
- def k8_s_cluster_service_list_node_file_system_metrics(self, project_id: 'str', cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeFileSystemMetricsResponse': # noqa: E501
1617
+ def k8_s_cluster_service_list_node_file_system_metrics(self, cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeFileSystemMetricsResponse': # noqa: E501
2453
1618
  """k8_s_cluster_service_list_node_file_system_metrics # noqa: E501
2454
1619
 
2455
1620
  This method makes a synchronous HTTP request by default. To make an
2456
1621
  asynchronous HTTP request, please pass async_req=True
2457
- >>> thread = api.k8_s_cluster_service_list_node_file_system_metrics(project_id, cluster_id, node_name, async_req=True)
1622
+ >>> thread = api.k8_s_cluster_service_list_node_file_system_metrics(cluster_id, node_name, async_req=True)
2458
1623
  >>> result = thread.get()
2459
1624
 
2460
1625
  :param async_req bool
2461
- :param str project_id: (required)
2462
1626
  :param str cluster_id: (required)
2463
1627
  :param str node_name: (required)
2464
1628
  :param datetime start: Date range.
@@ -2469,21 +1633,20 @@ class K8SClusterServiceApi(object):
2469
1633
  """
2470
1634
  kwargs['_return_http_data_only'] = True
2471
1635
  if kwargs.get('async_req'):
2472
- return self.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
1636
+ return self.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(cluster_id, node_name, **kwargs) # noqa: E501
2473
1637
  else:
2474
- (data) = self.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
1638
+ (data) = self.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(cluster_id, node_name, **kwargs) # noqa: E501
2475
1639
  return data
2476
1640
 
2477
- def k8_s_cluster_service_list_node_file_system_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeFileSystemMetricsResponse': # noqa: E501
1641
+ def k8_s_cluster_service_list_node_file_system_metrics_with_http_info(self, cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeFileSystemMetricsResponse': # noqa: E501
2478
1642
  """k8_s_cluster_service_list_node_file_system_metrics # noqa: E501
2479
1643
 
2480
1644
  This method makes a synchronous HTTP request by default. To make an
2481
1645
  asynchronous HTTP request, please pass async_req=True
2482
- >>> thread = api.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(project_id, cluster_id, node_name, async_req=True)
1646
+ >>> thread = api.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(cluster_id, node_name, async_req=True)
2483
1647
  >>> result = thread.get()
2484
1648
 
2485
1649
  :param async_req bool
2486
- :param str project_id: (required)
2487
1650
  :param str cluster_id: (required)
2488
1651
  :param str node_name: (required)
2489
1652
  :param datetime start: Date range.
@@ -2493,7 +1656,7 @@ class K8SClusterServiceApi(object):
2493
1656
  returns the request thread.
2494
1657
  """
2495
1658
 
2496
- all_params = ['project_id', 'cluster_id', 'node_name', 'start', 'end'] # noqa: E501
1659
+ all_params = ['cluster_id', 'node_name', 'start', 'end'] # noqa: E501
2497
1660
  all_params.append('async_req')
2498
1661
  all_params.append('_return_http_data_only')
2499
1662
  all_params.append('_preload_content')
@@ -2508,10 +1671,6 @@ class K8SClusterServiceApi(object):
2508
1671
  )
2509
1672
  params[key] = val
2510
1673
  del params['kwargs']
2511
- # verify the required parameter 'project_id' is set
2512
- if ('project_id' not in params or
2513
- params['project_id'] is None):
2514
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_node_file_system_metrics`") # noqa: E501
2515
1674
  # verify the required parameter 'cluster_id' is set
2516
1675
  if ('cluster_id' not in params or
2517
1676
  params['cluster_id'] is None):
@@ -2524,8 +1683,6 @@ class K8SClusterServiceApi(object):
2524
1683
  collection_formats = {}
2525
1684
 
2526
1685
  path_params = {}
2527
- if 'project_id' in params:
2528
- path_params['projectId'] = params['project_id'] # noqa: E501
2529
1686
  if 'cluster_id' in params:
2530
1687
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
2531
1688
  if 'node_name' in params:
@@ -2551,7 +1708,7 @@ class K8SClusterServiceApi(object):
2551
1708
  auth_settings = [] # noqa: E501
2552
1709
 
2553
1710
  return self.api_client.call_api(
2554
- '/v1/projects/{projectId}/clusters/{clusterId}/metrics-filesystem/nodes/{nodeName}', 'GET',
1711
+ '/v1/k8s-clusters/{clusterId}/metrics-filesystem/nodes/{nodeName}', 'GET',
2555
1712
  path_params,
2556
1713
  query_params,
2557
1714
  header_params,
@@ -2566,16 +1723,15 @@ class K8SClusterServiceApi(object):
2566
1723
  _request_timeout=params.get('_request_timeout'),
2567
1724
  collection_formats=collection_formats)
2568
1725
 
2569
- def k8_s_cluster_service_list_node_metrics(self, project_id: 'str', cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
1726
+ def k8_s_cluster_service_list_node_metrics(self, cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
2570
1727
  """k8_s_cluster_service_list_node_metrics # noqa: E501
2571
1728
 
2572
1729
  This method makes a synchronous HTTP request by default. To make an
2573
1730
  asynchronous HTTP request, please pass async_req=True
2574
- >>> thread = api.k8_s_cluster_service_list_node_metrics(project_id, cluster_id, node_name, async_req=True)
1731
+ >>> thread = api.k8_s_cluster_service_list_node_metrics(cluster_id, node_name, async_req=True)
2575
1732
  >>> result = thread.get()
2576
1733
 
2577
1734
  :param async_req bool
2578
- :param str project_id: (required)
2579
1735
  :param str cluster_id: (required)
2580
1736
  :param str node_name: (required)
2581
1737
  :param datetime start: Date range.
@@ -2586,21 +1742,20 @@ class K8SClusterServiceApi(object):
2586
1742
  """
2587
1743
  kwargs['_return_http_data_only'] = True
2588
1744
  if kwargs.get('async_req'):
2589
- return self.k8_s_cluster_service_list_node_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
1745
+ return self.k8_s_cluster_service_list_node_metrics_with_http_info(cluster_id, node_name, **kwargs) # noqa: E501
2590
1746
  else:
2591
- (data) = self.k8_s_cluster_service_list_node_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
1747
+ (data) = self.k8_s_cluster_service_list_node_metrics_with_http_info(cluster_id, node_name, **kwargs) # noqa: E501
2592
1748
  return data
2593
1749
 
2594
- def k8_s_cluster_service_list_node_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
1750
+ def k8_s_cluster_service_list_node_metrics_with_http_info(self, cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
2595
1751
  """k8_s_cluster_service_list_node_metrics # noqa: E501
2596
1752
 
2597
1753
  This method makes a synchronous HTTP request by default. To make an
2598
1754
  asynchronous HTTP request, please pass async_req=True
2599
- >>> thread = api.k8_s_cluster_service_list_node_metrics_with_http_info(project_id, cluster_id, node_name, async_req=True)
1755
+ >>> thread = api.k8_s_cluster_service_list_node_metrics_with_http_info(cluster_id, node_name, async_req=True)
2600
1756
  >>> result = thread.get()
2601
1757
 
2602
1758
  :param async_req bool
2603
- :param str project_id: (required)
2604
1759
  :param str cluster_id: (required)
2605
1760
  :param str node_name: (required)
2606
1761
  :param datetime start: Date range.
@@ -2610,7 +1765,7 @@ class K8SClusterServiceApi(object):
2610
1765
  returns the request thread.
2611
1766
  """
2612
1767
 
2613
- all_params = ['project_id', 'cluster_id', 'node_name', 'start', 'end'] # noqa: E501
1768
+ all_params = ['cluster_id', 'node_name', 'start', 'end'] # noqa: E501
2614
1769
  all_params.append('async_req')
2615
1770
  all_params.append('_return_http_data_only')
2616
1771
  all_params.append('_preload_content')
@@ -2625,10 +1780,6 @@ class K8SClusterServiceApi(object):
2625
1780
  )
2626
1781
  params[key] = val
2627
1782
  del params['kwargs']
2628
- # verify the required parameter 'project_id' is set
2629
- if ('project_id' not in params or
2630
- params['project_id'] is None):
2631
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_node_metrics`") # noqa: E501
2632
1783
  # verify the required parameter 'cluster_id' is set
2633
1784
  if ('cluster_id' not in params or
2634
1785
  params['cluster_id'] is None):
@@ -2641,8 +1792,6 @@ class K8SClusterServiceApi(object):
2641
1792
  collection_formats = {}
2642
1793
 
2643
1794
  path_params = {}
2644
- if 'project_id' in params:
2645
- path_params['projectId'] = params['project_id'] # noqa: E501
2646
1795
  if 'cluster_id' in params:
2647
1796
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
2648
1797
  if 'node_name' in params:
@@ -2668,7 +1817,7 @@ class K8SClusterServiceApi(object):
2668
1817
  auth_settings = [] # noqa: E501
2669
1818
 
2670
1819
  return self.api_client.call_api(
2671
- '/v1/projects/{projectId}/clusters/{clusterId}/metrics/nodes/{nodeName}', 'GET',
1820
+ '/v1/k8s-clusters/{clusterId}/metrics/nodes/{nodeName}', 'GET',
2672
1821
  path_params,
2673
1822
  query_params,
2674
1823
  header_params,
@@ -2683,16 +1832,15 @@ class K8SClusterServiceApi(object):
2683
1832
  _request_timeout=params.get('_request_timeout'),
2684
1833
  collection_formats=collection_formats)
2685
1834
 
2686
- def k8_s_cluster_service_list_pod_metrics(self, project_id: 'str', cluster_id: 'str', pod_id: 'str', **kwargs) -> 'V1ListPodMetricsResponse': # noqa: E501
1835
+ def k8_s_cluster_service_list_pod_metrics(self, cluster_id: 'str', pod_id: 'str', **kwargs) -> 'V1ListPodMetricsResponse': # noqa: E501
2687
1836
  """k8_s_cluster_service_list_pod_metrics # noqa: E501
2688
1837
 
2689
1838
  This method makes a synchronous HTTP request by default. To make an
2690
1839
  asynchronous HTTP request, please pass async_req=True
2691
- >>> thread = api.k8_s_cluster_service_list_pod_metrics(project_id, cluster_id, pod_id, async_req=True)
1840
+ >>> thread = api.k8_s_cluster_service_list_pod_metrics(cluster_id, pod_id, async_req=True)
2692
1841
  >>> result = thread.get()
2693
1842
 
2694
1843
  :param async_req bool
2695
- :param str project_id: (required)
2696
1844
  :param str cluster_id: (required)
2697
1845
  :param str pod_id: (required)
2698
1846
  :param datetime start: Date range.
@@ -2703,21 +1851,20 @@ class K8SClusterServiceApi(object):
2703
1851
  """
2704
1852
  kwargs['_return_http_data_only'] = True
2705
1853
  if kwargs.get('async_req'):
2706
- return self.k8_s_cluster_service_list_pod_metrics_with_http_info(project_id, cluster_id, pod_id, **kwargs) # noqa: E501
1854
+ return self.k8_s_cluster_service_list_pod_metrics_with_http_info(cluster_id, pod_id, **kwargs) # noqa: E501
2707
1855
  else:
2708
- (data) = self.k8_s_cluster_service_list_pod_metrics_with_http_info(project_id, cluster_id, pod_id, **kwargs) # noqa: E501
1856
+ (data) = self.k8_s_cluster_service_list_pod_metrics_with_http_info(cluster_id, pod_id, **kwargs) # noqa: E501
2709
1857
  return data
2710
1858
 
2711
- def k8_s_cluster_service_list_pod_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', pod_id: 'str', **kwargs) -> 'V1ListPodMetricsResponse': # noqa: E501
1859
+ def k8_s_cluster_service_list_pod_metrics_with_http_info(self, cluster_id: 'str', pod_id: 'str', **kwargs) -> 'V1ListPodMetricsResponse': # noqa: E501
2712
1860
  """k8_s_cluster_service_list_pod_metrics # noqa: E501
2713
1861
 
2714
1862
  This method makes a synchronous HTTP request by default. To make an
2715
1863
  asynchronous HTTP request, please pass async_req=True
2716
- >>> thread = api.k8_s_cluster_service_list_pod_metrics_with_http_info(project_id, cluster_id, pod_id, async_req=True)
1864
+ >>> thread = api.k8_s_cluster_service_list_pod_metrics_with_http_info(cluster_id, pod_id, async_req=True)
2717
1865
  >>> result = thread.get()
2718
1866
 
2719
1867
  :param async_req bool
2720
- :param str project_id: (required)
2721
1868
  :param str cluster_id: (required)
2722
1869
  :param str pod_id: (required)
2723
1870
  :param datetime start: Date range.
@@ -2727,7 +1874,7 @@ class K8SClusterServiceApi(object):
2727
1874
  returns the request thread.
2728
1875
  """
2729
1876
 
2730
- all_params = ['project_id', 'cluster_id', 'pod_id', 'start', 'end'] # noqa: E501
1877
+ all_params = ['cluster_id', 'pod_id', 'start', 'end'] # noqa: E501
2731
1878
  all_params.append('async_req')
2732
1879
  all_params.append('_return_http_data_only')
2733
1880
  all_params.append('_preload_content')
@@ -2742,10 +1889,6 @@ class K8SClusterServiceApi(object):
2742
1889
  )
2743
1890
  params[key] = val
2744
1891
  del params['kwargs']
2745
- # verify the required parameter 'project_id' is set
2746
- if ('project_id' not in params or
2747
- params['project_id'] is None):
2748
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_pod_metrics`") # noqa: E501
2749
1892
  # verify the required parameter 'cluster_id' is set
2750
1893
  if ('cluster_id' not in params or
2751
1894
  params['cluster_id'] is None):
@@ -2758,8 +1901,6 @@ class K8SClusterServiceApi(object):
2758
1901
  collection_formats = {}
2759
1902
 
2760
1903
  path_params = {}
2761
- if 'project_id' in params:
2762
- path_params['projectId'] = params['project_id'] # noqa: E501
2763
1904
  if 'cluster_id' in params:
2764
1905
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
2765
1906
  if 'pod_id' in params:
@@ -2785,7 +1926,7 @@ class K8SClusterServiceApi(object):
2785
1926
  auth_settings = [] # noqa: E501
2786
1927
 
2787
1928
  return self.api_client.call_api(
2788
- '/v1/projects/{projectId}/clusters/{clusterId}/metrics/pods/{podId}', 'GET',
1929
+ '/v1/k8s-clusters/{clusterId}/metrics/pods/{podId}', 'GET',
2789
1930
  path_params,
2790
1931
  query_params,
2791
1932
  header_params,
@@ -2800,17 +1941,17 @@ class K8SClusterServiceApi(object):
2800
1941
  _request_timeout=params.get('_request_timeout'),
2801
1942
  collection_formats=collection_formats)
2802
1943
 
2803
- def k8_s_cluster_service_render_kubernetes_template(self, body: 'IdRenderBody', project_id: 'str', id: 'str', **kwargs) -> 'V1RenderKubernetesTemplateResponse': # noqa: E501
1944
+ def k8_s_cluster_service_render_kubernetes_template(self, body: 'IdRenderBody', cluster_id: 'str', id: 'str', **kwargs) -> 'V1RenderKubernetesTemplateResponse': # noqa: E501
2804
1945
  """k8_s_cluster_service_render_kubernetes_template # noqa: E501
2805
1946
 
2806
1947
  This method makes a synchronous HTTP request by default. To make an
2807
1948
  asynchronous HTTP request, please pass async_req=True
2808
- >>> thread = api.k8_s_cluster_service_render_kubernetes_template(body, project_id, id, async_req=True)
1949
+ >>> thread = api.k8_s_cluster_service_render_kubernetes_template(body, cluster_id, id, async_req=True)
2809
1950
  >>> result = thread.get()
2810
1951
 
2811
1952
  :param async_req bool
2812
1953
  :param IdRenderBody body: (required)
2813
- :param str project_id: (required)
1954
+ :param str cluster_id: (required)
2814
1955
  :param str id: (required)
2815
1956
  :return: V1RenderKubernetesTemplateResponse
2816
1957
  If the method is called asynchronously,
@@ -2818,29 +1959,29 @@ class K8SClusterServiceApi(object):
2818
1959
  """
2819
1960
  kwargs['_return_http_data_only'] = True
2820
1961
  if kwargs.get('async_req'):
2821
- return self.k8_s_cluster_service_render_kubernetes_template_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1962
+ return self.k8_s_cluster_service_render_kubernetes_template_with_http_info(body, cluster_id, id, **kwargs) # noqa: E501
2822
1963
  else:
2823
- (data) = self.k8_s_cluster_service_render_kubernetes_template_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1964
+ (data) = self.k8_s_cluster_service_render_kubernetes_template_with_http_info(body, cluster_id, id, **kwargs) # noqa: E501
2824
1965
  return data
2825
1966
 
2826
- def k8_s_cluster_service_render_kubernetes_template_with_http_info(self, body: 'IdRenderBody', project_id: 'str', id: 'str', **kwargs) -> 'V1RenderKubernetesTemplateResponse': # noqa: E501
1967
+ def k8_s_cluster_service_render_kubernetes_template_with_http_info(self, body: 'IdRenderBody', cluster_id: 'str', id: 'str', **kwargs) -> 'V1RenderKubernetesTemplateResponse': # noqa: E501
2827
1968
  """k8_s_cluster_service_render_kubernetes_template # noqa: E501
2828
1969
 
2829
1970
  This method makes a synchronous HTTP request by default. To make an
2830
1971
  asynchronous HTTP request, please pass async_req=True
2831
- >>> thread = api.k8_s_cluster_service_render_kubernetes_template_with_http_info(body, project_id, id, async_req=True)
1972
+ >>> thread = api.k8_s_cluster_service_render_kubernetes_template_with_http_info(body, cluster_id, id, async_req=True)
2832
1973
  >>> result = thread.get()
2833
1974
 
2834
1975
  :param async_req bool
2835
1976
  :param IdRenderBody body: (required)
2836
- :param str project_id: (required)
1977
+ :param str cluster_id: (required)
2837
1978
  :param str id: (required)
2838
1979
  :return: V1RenderKubernetesTemplateResponse
2839
1980
  If the method is called asynchronously,
2840
1981
  returns the request thread.
2841
1982
  """
2842
1983
 
2843
- all_params = ['body', 'project_id', 'id'] # noqa: E501
1984
+ all_params = ['body', 'cluster_id', 'id'] # noqa: E501
2844
1985
  all_params.append('async_req')
2845
1986
  all_params.append('_return_http_data_only')
2846
1987
  all_params.append('_preload_content')
@@ -2859,10 +2000,10 @@ class K8SClusterServiceApi(object):
2859
2000
  if ('body' not in params or
2860
2001
  params['body'] is None):
2861
2002
  raise ValueError("Missing the required parameter `body` when calling `k8_s_cluster_service_render_kubernetes_template`") # noqa: E501
2862
- # verify the required parameter 'project_id' is set
2863
- if ('project_id' not in params or
2864
- params['project_id'] is None):
2865
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_render_kubernetes_template`") # noqa: E501
2003
+ # verify the required parameter 'cluster_id' is set
2004
+ if ('cluster_id' not in params or
2005
+ params['cluster_id'] is None):
2006
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_render_kubernetes_template`") # noqa: E501
2866
2007
  # verify the required parameter 'id' is set
2867
2008
  if ('id' not in params or
2868
2009
  params['id'] is None):
@@ -2871,8 +2012,8 @@ class K8SClusterServiceApi(object):
2871
2012
  collection_formats = {}
2872
2013
 
2873
2014
  path_params = {}
2874
- if 'project_id' in params:
2875
- path_params['projectId'] = params['project_id'] # noqa: E501
2015
+ if 'cluster_id' in params:
2016
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
2876
2017
  if 'id' in params:
2877
2018
  path_params['id'] = params['id'] # noqa: E501
2878
2019
 
@@ -2898,7 +2039,7 @@ class K8SClusterServiceApi(object):
2898
2039
  auth_settings = [] # noqa: E501
2899
2040
 
2900
2041
  return self.api_client.call_api(
2901
- '/v1/projects/{projectId}/kubernetes-templates/{id}/render', 'POST',
2042
+ '/v1/k8s-clusters/{clusterId}/kubernetes-templates/{id}/render', 'POST',
2902
2043
  path_params,
2903
2044
  query_params,
2904
2045
  header_params,
@@ -3018,251 +2159,17 @@ class K8SClusterServiceApi(object):
3018
2159
  _request_timeout=params.get('_request_timeout'),
3019
2160
  collection_formats=collection_formats)
3020
2161
 
3021
- def k8_s_cluster_service_update_incident(self, body: 'IncidentsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Incident': # noqa: E501
3022
- """k8_s_cluster_service_update_incident # noqa: E501
3023
-
3024
- This method makes a synchronous HTTP request by default. To make an
3025
- asynchronous HTTP request, please pass async_req=True
3026
- >>> thread = api.k8_s_cluster_service_update_incident(body, project_id, id, async_req=True)
3027
- >>> result = thread.get()
3028
-
3029
- :param async_req bool
3030
- :param IncidentsIdBody body: (required)
3031
- :param str project_id: (required)
3032
- :param str id: (required)
3033
- :return: V1Incident
3034
- If the method is called asynchronously,
3035
- returns the request thread.
3036
- """
3037
- kwargs['_return_http_data_only'] = True
3038
- if kwargs.get('async_req'):
3039
- return self.k8_s_cluster_service_update_incident_with_http_info(body, project_id, id, **kwargs) # noqa: E501
3040
- else:
3041
- (data) = self.k8_s_cluster_service_update_incident_with_http_info(body, project_id, id, **kwargs) # noqa: E501
3042
- return data
3043
-
3044
- def k8_s_cluster_service_update_incident_with_http_info(self, body: 'IncidentsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Incident': # noqa: E501
3045
- """k8_s_cluster_service_update_incident # noqa: E501
3046
-
3047
- This method makes a synchronous HTTP request by default. To make an
3048
- asynchronous HTTP request, please pass async_req=True
3049
- >>> thread = api.k8_s_cluster_service_update_incident_with_http_info(body, project_id, id, async_req=True)
3050
- >>> result = thread.get()
3051
-
3052
- :param async_req bool
3053
- :param IncidentsIdBody body: (required)
3054
- :param str project_id: (required)
3055
- :param str id: (required)
3056
- :return: V1Incident
3057
- If the method is called asynchronously,
3058
- returns the request thread.
3059
- """
3060
-
3061
- all_params = ['body', 'project_id', 'id'] # noqa: E501
3062
- all_params.append('async_req')
3063
- all_params.append('_return_http_data_only')
3064
- all_params.append('_preload_content')
3065
- all_params.append('_request_timeout')
3066
-
3067
- params = locals()
3068
- for key, val in six.iteritems(params['kwargs']):
3069
- if key not in all_params:
3070
- raise TypeError(
3071
- "Got an unexpected keyword argument '%s'"
3072
- " to method k8_s_cluster_service_update_incident" % key
3073
- )
3074
- params[key] = val
3075
- del params['kwargs']
3076
- # verify the required parameter 'body' is set
3077
- if ('body' not in params or
3078
- params['body'] is None):
3079
- raise ValueError("Missing the required parameter `body` when calling `k8_s_cluster_service_update_incident`") # noqa: E501
3080
- # verify the required parameter 'project_id' is set
3081
- if ('project_id' not in params or
3082
- params['project_id'] is None):
3083
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_update_incident`") # noqa: E501
3084
- # verify the required parameter 'id' is set
3085
- if ('id' not in params or
3086
- params['id'] is None):
3087
- raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_update_incident`") # noqa: E501
3088
-
3089
- collection_formats = {}
3090
-
3091
- path_params = {}
3092
- if 'project_id' in params:
3093
- path_params['projectId'] = params['project_id'] # noqa: E501
3094
- if 'id' in params:
3095
- path_params['id'] = params['id'] # noqa: E501
3096
-
3097
- query_params = []
3098
-
3099
- header_params = {}
3100
-
3101
- form_params = []
3102
- local_var_files = {}
3103
-
3104
- body_params = None
3105
- if 'body' in params:
3106
- body_params = params['body']
3107
- # HTTP header `Accept`
3108
- header_params['Accept'] = self.api_client.select_header_accept(
3109
- ['application/json']) # noqa: E501
3110
-
3111
- # HTTP header `Content-Type`
3112
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3113
- ['application/json']) # noqa: E501
3114
-
3115
- # Authentication setting
3116
- auth_settings = [] # noqa: E501
3117
-
3118
- return self.api_client.call_api(
3119
- '/v1/projects/{projectId}/incidents/{id}', 'PUT',
3120
- path_params,
3121
- query_params,
3122
- header_params,
3123
- body=body_params,
3124
- post_params=form_params,
3125
- files=local_var_files,
3126
- response_type='V1Incident', # noqa: E501
3127
- auth_settings=auth_settings,
3128
- async_req=params.get('async_req'),
3129
- _return_http_data_only=params.get('_return_http_data_only'),
3130
- _preload_content=params.get('_preload_content', True),
3131
- _request_timeout=params.get('_request_timeout'),
3132
- collection_formats=collection_formats)
3133
-
3134
- def k8_s_cluster_service_update_incident_message(self, body: 'MessagesMessageIdBody', project_id: 'str', incident_id: 'str', message_id: 'str', **kwargs) -> 'V1IncidentMessage': # noqa: E501
3135
- """k8_s_cluster_service_update_incident_message # noqa: E501
3136
-
3137
- This method makes a synchronous HTTP request by default. To make an
3138
- asynchronous HTTP request, please pass async_req=True
3139
- >>> thread = api.k8_s_cluster_service_update_incident_message(body, project_id, incident_id, message_id, async_req=True)
3140
- >>> result = thread.get()
3141
-
3142
- :param async_req bool
3143
- :param MessagesMessageIdBody body: (required)
3144
- :param str project_id: (required)
3145
- :param str incident_id: (required)
3146
- :param str message_id: (required)
3147
- :return: V1IncidentMessage
3148
- If the method is called asynchronously,
3149
- returns the request thread.
3150
- """
3151
- kwargs['_return_http_data_only'] = True
3152
- if kwargs.get('async_req'):
3153
- return self.k8_s_cluster_service_update_incident_message_with_http_info(body, project_id, incident_id, message_id, **kwargs) # noqa: E501
3154
- else:
3155
- (data) = self.k8_s_cluster_service_update_incident_message_with_http_info(body, project_id, incident_id, message_id, **kwargs) # noqa: E501
3156
- return data
3157
-
3158
- def k8_s_cluster_service_update_incident_message_with_http_info(self, body: 'MessagesMessageIdBody', project_id: 'str', incident_id: 'str', message_id: 'str', **kwargs) -> 'V1IncidentMessage': # noqa: E501
3159
- """k8_s_cluster_service_update_incident_message # noqa: E501
3160
-
3161
- This method makes a synchronous HTTP request by default. To make an
3162
- asynchronous HTTP request, please pass async_req=True
3163
- >>> thread = api.k8_s_cluster_service_update_incident_message_with_http_info(body, project_id, incident_id, message_id, async_req=True)
3164
- >>> result = thread.get()
3165
-
3166
- :param async_req bool
3167
- :param MessagesMessageIdBody body: (required)
3168
- :param str project_id: (required)
3169
- :param str incident_id: (required)
3170
- :param str message_id: (required)
3171
- :return: V1IncidentMessage
3172
- If the method is called asynchronously,
3173
- returns the request thread.
3174
- """
3175
-
3176
- all_params = ['body', 'project_id', 'incident_id', 'message_id'] # noqa: E501
3177
- all_params.append('async_req')
3178
- all_params.append('_return_http_data_only')
3179
- all_params.append('_preload_content')
3180
- all_params.append('_request_timeout')
3181
-
3182
- params = locals()
3183
- for key, val in six.iteritems(params['kwargs']):
3184
- if key not in all_params:
3185
- raise TypeError(
3186
- "Got an unexpected keyword argument '%s'"
3187
- " to method k8_s_cluster_service_update_incident_message" % key
3188
- )
3189
- params[key] = val
3190
- del params['kwargs']
3191
- # verify the required parameter 'body' is set
3192
- if ('body' not in params or
3193
- params['body'] is None):
3194
- raise ValueError("Missing the required parameter `body` when calling `k8_s_cluster_service_update_incident_message`") # noqa: E501
3195
- # verify the required parameter 'project_id' is set
3196
- if ('project_id' not in params or
3197
- params['project_id'] is None):
3198
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_update_incident_message`") # noqa: E501
3199
- # verify the required parameter 'incident_id' is set
3200
- if ('incident_id' not in params or
3201
- params['incident_id'] is None):
3202
- raise ValueError("Missing the required parameter `incident_id` when calling `k8_s_cluster_service_update_incident_message`") # noqa: E501
3203
- # verify the required parameter 'message_id' is set
3204
- if ('message_id' not in params or
3205
- params['message_id'] is None):
3206
- raise ValueError("Missing the required parameter `message_id` when calling `k8_s_cluster_service_update_incident_message`") # noqa: E501
3207
-
3208
- collection_formats = {}
3209
-
3210
- path_params = {}
3211
- if 'project_id' in params:
3212
- path_params['projectId'] = params['project_id'] # noqa: E501
3213
- if 'incident_id' in params:
3214
- path_params['incidentId'] = params['incident_id'] # noqa: E501
3215
- if 'message_id' in params:
3216
- path_params['messageId'] = params['message_id'] # noqa: E501
3217
-
3218
- query_params = []
3219
-
3220
- header_params = {}
3221
-
3222
- form_params = []
3223
- local_var_files = {}
3224
-
3225
- body_params = None
3226
- if 'body' in params:
3227
- body_params = params['body']
3228
- # HTTP header `Accept`
3229
- header_params['Accept'] = self.api_client.select_header_accept(
3230
- ['application/json']) # noqa: E501
3231
-
3232
- # HTTP header `Content-Type`
3233
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3234
- ['application/json']) # noqa: E501
3235
-
3236
- # Authentication setting
3237
- auth_settings = [] # noqa: E501
3238
-
3239
- return self.api_client.call_api(
3240
- '/v1/projects/{projectId}/incidents/{incidentId}/messages/{messageId}', 'PUT',
3241
- path_params,
3242
- query_params,
3243
- header_params,
3244
- body=body_params,
3245
- post_params=form_params,
3246
- files=local_var_files,
3247
- response_type='V1IncidentMessage', # noqa: E501
3248
- auth_settings=auth_settings,
3249
- async_req=params.get('async_req'),
3250
- _return_http_data_only=params.get('_return_http_data_only'),
3251
- _preload_content=params.get('_preload_content', True),
3252
- _request_timeout=params.get('_request_timeout'),
3253
- collection_formats=collection_formats)
3254
-
3255
- def k8_s_cluster_service_update_kubernetes_template(self, body: 'KubernetestemplatesIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
2162
+ def k8_s_cluster_service_update_kubernetes_template(self, body: 'KubernetestemplatesIdBody', cluster_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
3256
2163
  """k8_s_cluster_service_update_kubernetes_template # noqa: E501
3257
2164
 
3258
2165
  This method makes a synchronous HTTP request by default. To make an
3259
2166
  asynchronous HTTP request, please pass async_req=True
3260
- >>> thread = api.k8_s_cluster_service_update_kubernetes_template(body, project_id, id, async_req=True)
2167
+ >>> thread = api.k8_s_cluster_service_update_kubernetes_template(body, cluster_id, id, async_req=True)
3261
2168
  >>> result = thread.get()
3262
2169
 
3263
2170
  :param async_req bool
3264
2171
  :param KubernetestemplatesIdBody body: (required)
3265
- :param str project_id: (required)
2172
+ :param str cluster_id: (required)
3266
2173
  :param str id: (required)
3267
2174
  :return: V1KubernetesTemplate
3268
2175
  If the method is called asynchronously,
@@ -3270,29 +2177,29 @@ class K8SClusterServiceApi(object):
3270
2177
  """
3271
2178
  kwargs['_return_http_data_only'] = True
3272
2179
  if kwargs.get('async_req'):
3273
- return self.k8_s_cluster_service_update_kubernetes_template_with_http_info(body, project_id, id, **kwargs) # noqa: E501
2180
+ return self.k8_s_cluster_service_update_kubernetes_template_with_http_info(body, cluster_id, id, **kwargs) # noqa: E501
3274
2181
  else:
3275
- (data) = self.k8_s_cluster_service_update_kubernetes_template_with_http_info(body, project_id, id, **kwargs) # noqa: E501
2182
+ (data) = self.k8_s_cluster_service_update_kubernetes_template_with_http_info(body, cluster_id, id, **kwargs) # noqa: E501
3276
2183
  return data
3277
2184
 
3278
- def k8_s_cluster_service_update_kubernetes_template_with_http_info(self, body: 'KubernetestemplatesIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
2185
+ def k8_s_cluster_service_update_kubernetes_template_with_http_info(self, body: 'KubernetestemplatesIdBody', cluster_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
3279
2186
  """k8_s_cluster_service_update_kubernetes_template # noqa: E501
3280
2187
 
3281
2188
  This method makes a synchronous HTTP request by default. To make an
3282
2189
  asynchronous HTTP request, please pass async_req=True
3283
- >>> thread = api.k8_s_cluster_service_update_kubernetes_template_with_http_info(body, project_id, id, async_req=True)
2190
+ >>> thread = api.k8_s_cluster_service_update_kubernetes_template_with_http_info(body, cluster_id, id, async_req=True)
3284
2191
  >>> result = thread.get()
3285
2192
 
3286
2193
  :param async_req bool
3287
2194
  :param KubernetestemplatesIdBody body: (required)
3288
- :param str project_id: (required)
2195
+ :param str cluster_id: (required)
3289
2196
  :param str id: (required)
3290
2197
  :return: V1KubernetesTemplate
3291
2198
  If the method is called asynchronously,
3292
2199
  returns the request thread.
3293
2200
  """
3294
2201
 
3295
- all_params = ['body', 'project_id', 'id'] # noqa: E501
2202
+ all_params = ['body', 'cluster_id', 'id'] # noqa: E501
3296
2203
  all_params.append('async_req')
3297
2204
  all_params.append('_return_http_data_only')
3298
2205
  all_params.append('_preload_content')
@@ -3311,10 +2218,10 @@ class K8SClusterServiceApi(object):
3311
2218
  if ('body' not in params or
3312
2219
  params['body'] is None):
3313
2220
  raise ValueError("Missing the required parameter `body` when calling `k8_s_cluster_service_update_kubernetes_template`") # noqa: E501
3314
- # verify the required parameter 'project_id' is set
3315
- if ('project_id' not in params or
3316
- params['project_id'] is None):
3317
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_update_kubernetes_template`") # noqa: E501
2221
+ # verify the required parameter 'cluster_id' is set
2222
+ if ('cluster_id' not in params or
2223
+ params['cluster_id'] is None):
2224
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_update_kubernetes_template`") # noqa: E501
3318
2225
  # verify the required parameter 'id' is set
3319
2226
  if ('id' not in params or
3320
2227
  params['id'] is None):
@@ -3323,8 +2230,8 @@ class K8SClusterServiceApi(object):
3323
2230
  collection_formats = {}
3324
2231
 
3325
2232
  path_params = {}
3326
- if 'project_id' in params:
3327
- path_params['projectId'] = params['project_id'] # noqa: E501
2233
+ if 'cluster_id' in params:
2234
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
3328
2235
  if 'id' in params:
3329
2236
  path_params['id'] = params['id'] # noqa: E501
3330
2237
 
@@ -3350,7 +2257,7 @@ class K8SClusterServiceApi(object):
3350
2257
  auth_settings = [] # noqa: E501
3351
2258
 
3352
2259
  return self.api_client.call_api(
3353
- '/v1/projects/{projectId}/kubernetes-templates/{id}', 'PUT',
2260
+ '/v1/k8s-clusters/{clusterId}/kubernetes-templates/{id}', 'PUT',
3354
2261
  path_params,
3355
2262
  query_params,
3356
2263
  header_params,