lightning-sdk 2025.9.4__py3-none-any.whl → 2025.9.11__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 (43) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/llm_api.py +19 -0
  3. lightning_sdk/api/studio_api.py +25 -4
  4. lightning_sdk/lightning_cloud/login.py +60 -0
  5. lightning_sdk/lightning_cloud/openapi/__init__.py +17 -0
  6. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +744 -13
  7. lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +105 -0
  8. lightning_sdk/lightning_cloud/openapi/models/__init__.py +17 -0
  9. lightning_sdk/lightning_cloud/openapi/models/id_render_body.py +123 -0
  10. lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +227 -0
  11. lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
  12. lightning_sdk/lightning_cloud/openapi/models/project_id_kubernetestemplates_body.py +227 -0
  13. lightning_sdk/lightning_cloud/openapi/models/project_tab_management_messages.py +123 -0
  14. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
  15. lightning_sdk/lightning_cloud/openapi/models/v1_ai_pod_v1.py +53 -1
  16. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  17. lightning_sdk/lightning_cloud/openapi/models/v1_delete_kubernetes_template_response.py +97 -0
  18. lightning_sdk/lightning_cloud/openapi/models/v1_firewall_rule.py +175 -0
  19. lightning_sdk/lightning_cloud/openapi/models/v1_incident_event.py +565 -0
  20. lightning_sdk/lightning_cloud/openapi/models/v1_incident_severity.py +105 -0
  21. lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +106 -0
  22. lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_indexes.py +149 -0
  23. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +383 -0
  24. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template_property.py +227 -0
  25. lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_events_response.py +123 -0
  26. lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_templates_response.py +123 -0
  27. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_project_tab.py +149 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_quote_annual_upsell_response.py +29 -3
  31. lightning_sdk/lightning_cloud/openapi/models/v1_render_kubernetes_template_response.py +123 -0
  32. lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_update_project_tab_order_response.py +123 -0
  34. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +154 -102
  35. lightning_sdk/llm/llm.py +91 -7
  36. lightning_sdk/llm/public_assistants.py +2 -2
  37. lightning_sdk/studio.py +30 -3
  38. {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.11.dist-info}/METADATA +1 -1
  39. {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.11.dist-info}/RECORD +43 -26
  40. {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.11.dist-info}/entry_points.txt +1 -0
  41. {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.11.dist-info}/LICENSE +0 -0
  42. {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.11.dist-info}/WHEEL +0 -0
  43. {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.11.dist-info}/top_level.txt +0 -0
@@ -43,6 +43,313 @@ class K8SClusterServiceApi(object):
43
43
  api_client = ApiClient()
44
44
  self.api_client = api_client
45
45
 
46
+ def k8_s_cluster_service_create_kubernetes_template(self, body: 'ProjectIdKubernetestemplatesBody', project_id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
47
+ """k8_s_cluster_service_create_kubernetes_template # 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_kubernetes_template(body, project_id, async_req=True)
52
+ >>> result = thread.get()
53
+
54
+ :param async_req bool
55
+ :param ProjectIdKubernetestemplatesBody body: (required)
56
+ :param str project_id: (required)
57
+ :return: V1KubernetesTemplate
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_kubernetes_template_with_http_info(body, project_id, **kwargs) # noqa: E501
64
+ else:
65
+ (data) = self.k8_s_cluster_service_create_kubernetes_template_with_http_info(body, project_id, **kwargs) # noqa: E501
66
+ return data
67
+
68
+ def k8_s_cluster_service_create_kubernetes_template_with_http_info(self, body: 'ProjectIdKubernetestemplatesBody', project_id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
69
+ """k8_s_cluster_service_create_kubernetes_template # 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_kubernetes_template_with_http_info(body, project_id, async_req=True)
74
+ >>> result = thread.get()
75
+
76
+ :param async_req bool
77
+ :param ProjectIdKubernetestemplatesBody body: (required)
78
+ :param str project_id: (required)
79
+ :return: V1KubernetesTemplate
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_kubernetes_template" % 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_kubernetes_template`") # 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_kubernetes_template`") # 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}/kubernetes-templates', '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='V1KubernetesTemplate', # 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_delete_kubernetes_template(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteKubernetesTemplateResponse': # noqa: E501
152
+ """k8_s_cluster_service_delete_kubernetes_template # 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_delete_kubernetes_template(project_id, id, async_req=True)
157
+ >>> result = thread.get()
158
+
159
+ :param async_req bool
160
+ :param str project_id: (required)
161
+ :param str id: (required)
162
+ :return: V1DeleteKubernetesTemplateResponse
163
+ If the method is called asynchronously,
164
+ returns the request thread.
165
+ """
166
+ kwargs['_return_http_data_only'] = True
167
+ if kwargs.get('async_req'):
168
+ return self.k8_s_cluster_service_delete_kubernetes_template_with_http_info(project_id, id, **kwargs) # noqa: E501
169
+ else:
170
+ (data) = self.k8_s_cluster_service_delete_kubernetes_template_with_http_info(project_id, id, **kwargs) # noqa: E501
171
+ return data
172
+
173
+ def k8_s_cluster_service_delete_kubernetes_template_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteKubernetesTemplateResponse': # noqa: E501
174
+ """k8_s_cluster_service_delete_kubernetes_template # noqa: E501
175
+
176
+ This method makes a synchronous HTTP request by default. To make an
177
+ asynchronous HTTP request, please pass async_req=True
178
+ >>> thread = api.k8_s_cluster_service_delete_kubernetes_template_with_http_info(project_id, id, async_req=True)
179
+ >>> result = thread.get()
180
+
181
+ :param async_req bool
182
+ :param str project_id: (required)
183
+ :param str id: (required)
184
+ :return: V1DeleteKubernetesTemplateResponse
185
+ If the method is called asynchronously,
186
+ returns the request thread.
187
+ """
188
+
189
+ all_params = ['project_id', 'id'] # noqa: E501
190
+ all_params.append('async_req')
191
+ all_params.append('_return_http_data_only')
192
+ all_params.append('_preload_content')
193
+ all_params.append('_request_timeout')
194
+
195
+ params = locals()
196
+ for key, val in six.iteritems(params['kwargs']):
197
+ if key not in all_params:
198
+ raise TypeError(
199
+ "Got an unexpected keyword argument '%s'"
200
+ " to method k8_s_cluster_service_delete_kubernetes_template" % key
201
+ )
202
+ params[key] = val
203
+ del params['kwargs']
204
+ # verify the required parameter 'project_id' is set
205
+ if ('project_id' not in params or
206
+ params['project_id'] is None):
207
+ raise ValueError("Missing the required parameter `project_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
212
+
213
+ collection_formats = {}
214
+
215
+ path_params = {}
216
+ if 'project_id' in params:
217
+ path_params['projectId'] = params['project_id'] # noqa: E501
218
+ if 'id' in params:
219
+ path_params['id'] = params['id'] # noqa: E501
220
+
221
+ query_params = []
222
+
223
+ header_params = {}
224
+
225
+ form_params = []
226
+ local_var_files = {}
227
+
228
+ body_params = None
229
+ # HTTP header `Accept`
230
+ header_params['Accept'] = self.api_client.select_header_accept(
231
+ ['application/json']) # noqa: E501
232
+
233
+ # Authentication setting
234
+ auth_settings = [] # noqa: E501
235
+
236
+ return self.api_client.call_api(
237
+ '/v1/projects/{projectId}/kubernetes-templates/{id}', 'DELETE',
238
+ path_params,
239
+ query_params,
240
+ header_params,
241
+ body=body_params,
242
+ post_params=form_params,
243
+ files=local_var_files,
244
+ response_type='V1DeleteKubernetesTemplateResponse', # noqa: E501
245
+ auth_settings=auth_settings,
246
+ async_req=params.get('async_req'),
247
+ _return_http_data_only=params.get('_return_http_data_only'),
248
+ _preload_content=params.get('_preload_content', True),
249
+ _request_timeout=params.get('_request_timeout'),
250
+ collection_formats=collection_formats)
251
+
252
+ def k8_s_cluster_service_get_kubernetes_template(self, project_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
253
+ """k8_s_cluster_service_get_kubernetes_template # noqa: E501
254
+
255
+ This method makes a synchronous HTTP request by default. To make an
256
+ asynchronous HTTP request, please pass async_req=True
257
+ >>> thread = api.k8_s_cluster_service_get_kubernetes_template(project_id, id, async_req=True)
258
+ >>> result = thread.get()
259
+
260
+ :param async_req bool
261
+ :param str project_id: (required)
262
+ :param str id: (required)
263
+ :return: V1KubernetesTemplate
264
+ If the method is called asynchronously,
265
+ returns the request thread.
266
+ """
267
+ kwargs['_return_http_data_only'] = True
268
+ if kwargs.get('async_req'):
269
+ return self.k8_s_cluster_service_get_kubernetes_template_with_http_info(project_id, id, **kwargs) # noqa: E501
270
+ else:
271
+ (data) = self.k8_s_cluster_service_get_kubernetes_template_with_http_info(project_id, id, **kwargs) # noqa: E501
272
+ return data
273
+
274
+ def k8_s_cluster_service_get_kubernetes_template_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
275
+ """k8_s_cluster_service_get_kubernetes_template # noqa: E501
276
+
277
+ This method makes a synchronous HTTP request by default. To make an
278
+ asynchronous HTTP request, please pass async_req=True
279
+ >>> thread = api.k8_s_cluster_service_get_kubernetes_template_with_http_info(project_id, id, async_req=True)
280
+ >>> result = thread.get()
281
+
282
+ :param async_req bool
283
+ :param str project_id: (required)
284
+ :param str id: (required)
285
+ :return: V1KubernetesTemplate
286
+ If the method is called asynchronously,
287
+ returns the request thread.
288
+ """
289
+
290
+ all_params = ['project_id', 'id'] # noqa: E501
291
+ all_params.append('async_req')
292
+ all_params.append('_return_http_data_only')
293
+ all_params.append('_preload_content')
294
+ all_params.append('_request_timeout')
295
+
296
+ params = locals()
297
+ for key, val in six.iteritems(params['kwargs']):
298
+ if key not in all_params:
299
+ raise TypeError(
300
+ "Got an unexpected keyword argument '%s'"
301
+ " to method k8_s_cluster_service_get_kubernetes_template" % key
302
+ )
303
+ params[key] = val
304
+ del params['kwargs']
305
+ # verify the required parameter 'project_id' is set
306
+ if ('project_id' not in params or
307
+ params['project_id'] is None):
308
+ raise ValueError("Missing the required parameter `project_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
313
+
314
+ collection_formats = {}
315
+
316
+ path_params = {}
317
+ if 'project_id' in params:
318
+ path_params['projectId'] = params['project_id'] # noqa: E501
319
+ if 'id' in params:
320
+ path_params['id'] = params['id'] # noqa: E501
321
+
322
+ query_params = []
323
+
324
+ header_params = {}
325
+
326
+ form_params = []
327
+ local_var_files = {}
328
+
329
+ body_params = None
330
+ # HTTP header `Accept`
331
+ header_params['Accept'] = self.api_client.select_header_accept(
332
+ ['application/json']) # noqa: E501
333
+
334
+ # Authentication setting
335
+ auth_settings = [] # noqa: E501
336
+
337
+ return self.api_client.call_api(
338
+ '/v1/projects/{projectId}/kubernetes-templates/{id}', 'GET',
339
+ path_params,
340
+ query_params,
341
+ header_params,
342
+ body=body_params,
343
+ post_params=form_params,
344
+ files=local_var_files,
345
+ response_type='V1KubernetesTemplate', # noqa: E501
346
+ auth_settings=auth_settings,
347
+ async_req=params.get('async_req'),
348
+ _return_http_data_only=params.get('_return_http_data_only'),
349
+ _preload_content=params.get('_preload_content', True),
350
+ _request_timeout=params.get('_request_timeout'),
351
+ collection_formats=collection_formats)
352
+
46
353
  def k8_s_cluster_service_list_aggregated_node_metrics(self, project_id: 'str', cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
47
354
  """k8_s_cluster_service_list_aggregated_node_metrics # noqa: E501
48
355
 
@@ -838,43 +1145,241 @@ class K8SClusterServiceApi(object):
838
1145
  _request_timeout=params.get('_request_timeout'),
839
1146
  collection_formats=collection_formats)
840
1147
 
841
- def k8_s_cluster_service_list_node_file_system_metrics(self, project_id: 'str', cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeFileSystemMetricsResponse': # noqa: E501
842
- """k8_s_cluster_service_list_node_file_system_metrics # noqa: E501
1148
+ def k8_s_cluster_service_list_incident_events(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListIncidentEventsResponse': # noqa: E501
1149
+ """k8_s_cluster_service_list_incident_events # noqa: E501
843
1150
 
844
1151
  This method makes a synchronous HTTP request by default. To make an
845
1152
  asynchronous HTTP request, please pass async_req=True
846
- >>> thread = api.k8_s_cluster_service_list_node_file_system_metrics(project_id, cluster_id, node_name, async_req=True)
1153
+ >>> thread = api.k8_s_cluster_service_list_incident_events(project_id, cluster_id, async_req=True)
847
1154
  >>> result = thread.get()
848
1155
 
849
1156
  :param async_req bool
850
1157
  :param str project_id: (required)
851
1158
  :param str cluster_id: (required)
852
- :param str node_name: (required)
853
- :param datetime start: Date range.
854
- :param datetime end:
855
- :return: V1ListNodeFileSystemMetricsResponse
1159
+ :return: V1ListIncidentEventsResponse
856
1160
  If the method is called asynchronously,
857
1161
  returns the request thread.
858
1162
  """
859
1163
  kwargs['_return_http_data_only'] = True
860
1164
  if kwargs.get('async_req'):
861
- return self.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
1165
+ return self.k8_s_cluster_service_list_incident_events_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
862
1166
  else:
863
- (data) = self.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
1167
+ (data) = self.k8_s_cluster_service_list_incident_events_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
864
1168
  return data
865
1169
 
866
- 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
867
- """k8_s_cluster_service_list_node_file_system_metrics # noqa: E501
1170
+ def k8_s_cluster_service_list_incident_events_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListIncidentEventsResponse': # noqa: E501
1171
+ """k8_s_cluster_service_list_incident_events # noqa: E501
868
1172
 
869
1173
  This method makes a synchronous HTTP request by default. To make an
870
1174
  asynchronous HTTP request, please pass async_req=True
871
- >>> thread = api.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(project_id, cluster_id, node_name, async_req=True)
1175
+ >>> thread = api.k8_s_cluster_service_list_incident_events_with_http_info(project_id, cluster_id, async_req=True)
872
1176
  >>> result = thread.get()
873
1177
 
874
1178
  :param async_req bool
875
1179
  :param str project_id: (required)
876
1180
  :param str cluster_id: (required)
877
- :param str node_name: (required)
1181
+ :return: V1ListIncidentEventsResponse
1182
+ If the method is called asynchronously,
1183
+ returns the request thread.
1184
+ """
1185
+
1186
+ all_params = ['project_id', 'cluster_id'] # noqa: E501
1187
+ all_params.append('async_req')
1188
+ all_params.append('_return_http_data_only')
1189
+ all_params.append('_preload_content')
1190
+ all_params.append('_request_timeout')
1191
+
1192
+ params = locals()
1193
+ for key, val in six.iteritems(params['kwargs']):
1194
+ if key not in all_params:
1195
+ raise TypeError(
1196
+ "Got an unexpected keyword argument '%s'"
1197
+ " to method k8_s_cluster_service_list_incident_events" % key
1198
+ )
1199
+ params[key] = val
1200
+ del params['kwargs']
1201
+ # verify the required parameter 'project_id' is set
1202
+ if ('project_id' not in params or
1203
+ params['project_id'] is None):
1204
+ raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_incident_events`") # noqa: E501
1205
+ # verify the required parameter 'cluster_id' is set
1206
+ if ('cluster_id' not in params or
1207
+ params['cluster_id'] is None):
1208
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_incident_events`") # noqa: E501
1209
+
1210
+ collection_formats = {}
1211
+
1212
+ path_params = {}
1213
+ if 'project_id' in params:
1214
+ path_params['projectId'] = params['project_id'] # noqa: E501
1215
+ if 'cluster_id' in params:
1216
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
1217
+
1218
+ query_params = []
1219
+
1220
+ header_params = {}
1221
+
1222
+ form_params = []
1223
+ local_var_files = {}
1224
+
1225
+ body_params = None
1226
+ # HTTP header `Accept`
1227
+ header_params['Accept'] = self.api_client.select_header_accept(
1228
+ ['application/json']) # noqa: E501
1229
+
1230
+ # Authentication setting
1231
+ auth_settings = [] # noqa: E501
1232
+
1233
+ return self.api_client.call_api(
1234
+ '/v1/projects/{projectId}/clusters/{clusterId}/incident-events', 'GET',
1235
+ path_params,
1236
+ query_params,
1237
+ header_params,
1238
+ body=body_params,
1239
+ post_params=form_params,
1240
+ files=local_var_files,
1241
+ response_type='V1ListIncidentEventsResponse', # noqa: E501
1242
+ auth_settings=auth_settings,
1243
+ async_req=params.get('async_req'),
1244
+ _return_http_data_only=params.get('_return_http_data_only'),
1245
+ _preload_content=params.get('_preload_content', True),
1246
+ _request_timeout=params.get('_request_timeout'),
1247
+ collection_formats=collection_formats)
1248
+
1249
+ def k8_s_cluster_service_list_kubernetes_templates(self, project_id: 'str', **kwargs) -> 'V1ListKubernetesTemplatesResponse': # noqa: E501
1250
+ """k8_s_cluster_service_list_kubernetes_templates # noqa: E501
1251
+
1252
+ This method makes a synchronous HTTP request by default. To make an
1253
+ asynchronous HTTP request, please pass async_req=True
1254
+ >>> thread = api.k8_s_cluster_service_list_kubernetes_templates(project_id, async_req=True)
1255
+ >>> result = thread.get()
1256
+
1257
+ :param async_req bool
1258
+ :param str project_id: (required)
1259
+ :param str cluster_id:
1260
+ :return: V1ListKubernetesTemplatesResponse
1261
+ If the method is called asynchronously,
1262
+ returns the request thread.
1263
+ """
1264
+ kwargs['_return_http_data_only'] = True
1265
+ if kwargs.get('async_req'):
1266
+ return self.k8_s_cluster_service_list_kubernetes_templates_with_http_info(project_id, **kwargs) # noqa: E501
1267
+ else:
1268
+ (data) = self.k8_s_cluster_service_list_kubernetes_templates_with_http_info(project_id, **kwargs) # noqa: E501
1269
+ return data
1270
+
1271
+ def k8_s_cluster_service_list_kubernetes_templates_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListKubernetesTemplatesResponse': # noqa: E501
1272
+ """k8_s_cluster_service_list_kubernetes_templates # noqa: E501
1273
+
1274
+ This method makes a synchronous HTTP request by default. To make an
1275
+ asynchronous HTTP request, please pass async_req=True
1276
+ >>> thread = api.k8_s_cluster_service_list_kubernetes_templates_with_http_info(project_id, async_req=True)
1277
+ >>> result = thread.get()
1278
+
1279
+ :param async_req bool
1280
+ :param str project_id: (required)
1281
+ :param str cluster_id:
1282
+ :return: V1ListKubernetesTemplatesResponse
1283
+ If the method is called asynchronously,
1284
+ returns the request thread.
1285
+ """
1286
+
1287
+ all_params = ['project_id', 'cluster_id'] # noqa: E501
1288
+ all_params.append('async_req')
1289
+ all_params.append('_return_http_data_only')
1290
+ all_params.append('_preload_content')
1291
+ all_params.append('_request_timeout')
1292
+
1293
+ params = locals()
1294
+ for key, val in six.iteritems(params['kwargs']):
1295
+ if key not in all_params:
1296
+ raise TypeError(
1297
+ "Got an unexpected keyword argument '%s'"
1298
+ " to method k8_s_cluster_service_list_kubernetes_templates" % key
1299
+ )
1300
+ params[key] = val
1301
+ del params['kwargs']
1302
+ # verify the required parameter 'project_id' is set
1303
+ if ('project_id' not in params or
1304
+ params['project_id'] is None):
1305
+ raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_kubernetes_templates`") # noqa: E501
1306
+
1307
+ collection_formats = {}
1308
+
1309
+ path_params = {}
1310
+ if 'project_id' in params:
1311
+ path_params['projectId'] = params['project_id'] # noqa: E501
1312
+
1313
+ query_params = []
1314
+ if 'cluster_id' in params:
1315
+ query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
1316
+
1317
+ header_params = {}
1318
+
1319
+ form_params = []
1320
+ local_var_files = {}
1321
+
1322
+ body_params = None
1323
+ # HTTP header `Accept`
1324
+ header_params['Accept'] = self.api_client.select_header_accept(
1325
+ ['application/json']) # noqa: E501
1326
+
1327
+ # Authentication setting
1328
+ auth_settings = [] # noqa: E501
1329
+
1330
+ return self.api_client.call_api(
1331
+ '/v1/projects/{projectId}/kubernetes-templates', 'GET',
1332
+ path_params,
1333
+ query_params,
1334
+ header_params,
1335
+ body=body_params,
1336
+ post_params=form_params,
1337
+ files=local_var_files,
1338
+ response_type='V1ListKubernetesTemplatesResponse', # noqa: E501
1339
+ auth_settings=auth_settings,
1340
+ async_req=params.get('async_req'),
1341
+ _return_http_data_only=params.get('_return_http_data_only'),
1342
+ _preload_content=params.get('_preload_content', True),
1343
+ _request_timeout=params.get('_request_timeout'),
1344
+ collection_formats=collection_formats)
1345
+
1346
+ def k8_s_cluster_service_list_node_file_system_metrics(self, project_id: 'str', cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeFileSystemMetricsResponse': # noqa: E501
1347
+ """k8_s_cluster_service_list_node_file_system_metrics # noqa: E501
1348
+
1349
+ This method makes a synchronous HTTP request by default. To make an
1350
+ asynchronous HTTP request, please pass async_req=True
1351
+ >>> thread = api.k8_s_cluster_service_list_node_file_system_metrics(project_id, cluster_id, node_name, async_req=True)
1352
+ >>> result = thread.get()
1353
+
1354
+ :param async_req bool
1355
+ :param str project_id: (required)
1356
+ :param str cluster_id: (required)
1357
+ :param str node_name: (required)
1358
+ :param datetime start: Date range.
1359
+ :param datetime end:
1360
+ :return: V1ListNodeFileSystemMetricsResponse
1361
+ If the method is called asynchronously,
1362
+ returns the request thread.
1363
+ """
1364
+ kwargs['_return_http_data_only'] = True
1365
+ if kwargs.get('async_req'):
1366
+ return self.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
1367
+ else:
1368
+ (data) = self.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
1369
+ return data
1370
+
1371
+ 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
1372
+ """k8_s_cluster_service_list_node_file_system_metrics # noqa: E501
1373
+
1374
+ This method makes a synchronous HTTP request by default. To make an
1375
+ asynchronous HTTP request, please pass async_req=True
1376
+ >>> thread = api.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(project_id, cluster_id, node_name, async_req=True)
1377
+ >>> result = thread.get()
1378
+
1379
+ :param async_req bool
1380
+ :param str project_id: (required)
1381
+ :param str cluster_id: (required)
1382
+ :param str node_name: (required)
878
1383
  :param datetime start: Date range.
879
1384
  :param datetime end:
880
1385
  :return: V1ListNodeFileSystemMetricsResponse
@@ -1189,6 +1694,119 @@ class K8SClusterServiceApi(object):
1189
1694
  _request_timeout=params.get('_request_timeout'),
1190
1695
  collection_formats=collection_formats)
1191
1696
 
1697
+ def k8_s_cluster_service_render_kubernetes_template(self, body: 'IdRenderBody', project_id: 'str', id: 'str', **kwargs) -> 'V1RenderKubernetesTemplateResponse': # noqa: E501
1698
+ """k8_s_cluster_service_render_kubernetes_template # noqa: E501
1699
+
1700
+ This method makes a synchronous HTTP request by default. To make an
1701
+ asynchronous HTTP request, please pass async_req=True
1702
+ >>> thread = api.k8_s_cluster_service_render_kubernetes_template(body, project_id, id, async_req=True)
1703
+ >>> result = thread.get()
1704
+
1705
+ :param async_req bool
1706
+ :param IdRenderBody body: (required)
1707
+ :param str project_id: (required)
1708
+ :param str id: (required)
1709
+ :return: V1RenderKubernetesTemplateResponse
1710
+ If the method is called asynchronously,
1711
+ returns the request thread.
1712
+ """
1713
+ kwargs['_return_http_data_only'] = True
1714
+ if kwargs.get('async_req'):
1715
+ return self.k8_s_cluster_service_render_kubernetes_template_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1716
+ else:
1717
+ (data) = self.k8_s_cluster_service_render_kubernetes_template_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1718
+ return data
1719
+
1720
+ def k8_s_cluster_service_render_kubernetes_template_with_http_info(self, body: 'IdRenderBody', project_id: 'str', id: 'str', **kwargs) -> 'V1RenderKubernetesTemplateResponse': # noqa: E501
1721
+ """k8_s_cluster_service_render_kubernetes_template # noqa: E501
1722
+
1723
+ This method makes a synchronous HTTP request by default. To make an
1724
+ asynchronous HTTP request, please pass async_req=True
1725
+ >>> thread = api.k8_s_cluster_service_render_kubernetes_template_with_http_info(body, project_id, id, async_req=True)
1726
+ >>> result = thread.get()
1727
+
1728
+ :param async_req bool
1729
+ :param IdRenderBody body: (required)
1730
+ :param str project_id: (required)
1731
+ :param str id: (required)
1732
+ :return: V1RenderKubernetesTemplateResponse
1733
+ If the method is called asynchronously,
1734
+ returns the request thread.
1735
+ """
1736
+
1737
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
1738
+ all_params.append('async_req')
1739
+ all_params.append('_return_http_data_only')
1740
+ all_params.append('_preload_content')
1741
+ all_params.append('_request_timeout')
1742
+
1743
+ params = locals()
1744
+ for key, val in six.iteritems(params['kwargs']):
1745
+ if key not in all_params:
1746
+ raise TypeError(
1747
+ "Got an unexpected keyword argument '%s'"
1748
+ " to method k8_s_cluster_service_render_kubernetes_template" % key
1749
+ )
1750
+ params[key] = val
1751
+ del params['kwargs']
1752
+ # verify the required parameter 'body' is set
1753
+ if ('body' not in params or
1754
+ params['body'] is None):
1755
+ raise ValueError("Missing the required parameter `body` when calling `k8_s_cluster_service_render_kubernetes_template`") # noqa: E501
1756
+ # verify the required parameter 'project_id' is set
1757
+ if ('project_id' not in params or
1758
+ params['project_id'] is None):
1759
+ raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_render_kubernetes_template`") # noqa: E501
1760
+ # verify the required parameter 'id' is set
1761
+ if ('id' not in params or
1762
+ params['id'] is None):
1763
+ raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_render_kubernetes_template`") # noqa: E501
1764
+
1765
+ collection_formats = {}
1766
+
1767
+ path_params = {}
1768
+ if 'project_id' in params:
1769
+ path_params['projectId'] = params['project_id'] # noqa: E501
1770
+ if 'id' in params:
1771
+ path_params['id'] = params['id'] # noqa: E501
1772
+
1773
+ query_params = []
1774
+
1775
+ header_params = {}
1776
+
1777
+ form_params = []
1778
+ local_var_files = {}
1779
+
1780
+ body_params = None
1781
+ if 'body' in params:
1782
+ body_params = params['body']
1783
+ # HTTP header `Accept`
1784
+ header_params['Accept'] = self.api_client.select_header_accept(
1785
+ ['application/json']) # noqa: E501
1786
+
1787
+ # HTTP header `Content-Type`
1788
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1789
+ ['application/json']) # noqa: E501
1790
+
1791
+ # Authentication setting
1792
+ auth_settings = [] # noqa: E501
1793
+
1794
+ return self.api_client.call_api(
1795
+ '/v1/projects/{projectId}/kubernetes-templates/{id}/render', 'POST',
1796
+ path_params,
1797
+ query_params,
1798
+ header_params,
1799
+ body=body_params,
1800
+ post_params=form_params,
1801
+ files=local_var_files,
1802
+ response_type='V1RenderKubernetesTemplateResponse', # noqa: E501
1803
+ auth_settings=auth_settings,
1804
+ async_req=params.get('async_req'),
1805
+ _return_http_data_only=params.get('_return_http_data_only'),
1806
+ _preload_content=params.get('_preload_content', True),
1807
+ _request_timeout=params.get('_request_timeout'),
1808
+ collection_formats=collection_formats)
1809
+
1192
1810
  def k8_s_cluster_service_report_k8_s_cluster_metrics(self, body: 'ClusterIdMetricsBody', cluster_id: 'str', **kwargs) -> 'V1ReportK8sClusterMetricsResponse': # noqa: E501
1193
1811
  """k8_s_cluster_service_report_k8_s_cluster_metrics # noqa: E501
1194
1812
 
@@ -1293,3 +1911,116 @@ class K8SClusterServiceApi(object):
1293
1911
  _preload_content=params.get('_preload_content', True),
1294
1912
  _request_timeout=params.get('_request_timeout'),
1295
1913
  collection_formats=collection_formats)
1914
+
1915
+ def k8_s_cluster_service_update_kubernetes_template(self, body: 'KubernetestemplatesIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
1916
+ """k8_s_cluster_service_update_kubernetes_template # noqa: E501
1917
+
1918
+ This method makes a synchronous HTTP request by default. To make an
1919
+ asynchronous HTTP request, please pass async_req=True
1920
+ >>> thread = api.k8_s_cluster_service_update_kubernetes_template(body, project_id, id, async_req=True)
1921
+ >>> result = thread.get()
1922
+
1923
+ :param async_req bool
1924
+ :param KubernetestemplatesIdBody body: (required)
1925
+ :param str project_id: (required)
1926
+ :param str id: (required)
1927
+ :return: V1KubernetesTemplate
1928
+ If the method is called asynchronously,
1929
+ returns the request thread.
1930
+ """
1931
+ kwargs['_return_http_data_only'] = True
1932
+ if kwargs.get('async_req'):
1933
+ return self.k8_s_cluster_service_update_kubernetes_template_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1934
+ else:
1935
+ (data) = self.k8_s_cluster_service_update_kubernetes_template_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1936
+ return data
1937
+
1938
+ def k8_s_cluster_service_update_kubernetes_template_with_http_info(self, body: 'KubernetestemplatesIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
1939
+ """k8_s_cluster_service_update_kubernetes_template # noqa: E501
1940
+
1941
+ This method makes a synchronous HTTP request by default. To make an
1942
+ asynchronous HTTP request, please pass async_req=True
1943
+ >>> thread = api.k8_s_cluster_service_update_kubernetes_template_with_http_info(body, project_id, id, async_req=True)
1944
+ >>> result = thread.get()
1945
+
1946
+ :param async_req bool
1947
+ :param KubernetestemplatesIdBody body: (required)
1948
+ :param str project_id: (required)
1949
+ :param str id: (required)
1950
+ :return: V1KubernetesTemplate
1951
+ If the method is called asynchronously,
1952
+ returns the request thread.
1953
+ """
1954
+
1955
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
1956
+ all_params.append('async_req')
1957
+ all_params.append('_return_http_data_only')
1958
+ all_params.append('_preload_content')
1959
+ all_params.append('_request_timeout')
1960
+
1961
+ params = locals()
1962
+ for key, val in six.iteritems(params['kwargs']):
1963
+ if key not in all_params:
1964
+ raise TypeError(
1965
+ "Got an unexpected keyword argument '%s'"
1966
+ " to method k8_s_cluster_service_update_kubernetes_template" % key
1967
+ )
1968
+ params[key] = val
1969
+ del params['kwargs']
1970
+ # verify the required parameter 'body' is set
1971
+ if ('body' not in params or
1972
+ params['body'] is None):
1973
+ raise ValueError("Missing the required parameter `body` when calling `k8_s_cluster_service_update_kubernetes_template`") # noqa: E501
1974
+ # verify the required parameter 'project_id' is set
1975
+ if ('project_id' not in params or
1976
+ params['project_id'] is None):
1977
+ raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_update_kubernetes_template`") # noqa: E501
1978
+ # verify the required parameter 'id' is set
1979
+ if ('id' not in params or
1980
+ params['id'] is None):
1981
+ raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_update_kubernetes_template`") # noqa: E501
1982
+
1983
+ collection_formats = {}
1984
+
1985
+ path_params = {}
1986
+ if 'project_id' in params:
1987
+ path_params['projectId'] = params['project_id'] # noqa: E501
1988
+ if 'id' in params:
1989
+ path_params['id'] = params['id'] # noqa: E501
1990
+
1991
+ query_params = []
1992
+
1993
+ header_params = {}
1994
+
1995
+ form_params = []
1996
+ local_var_files = {}
1997
+
1998
+ body_params = None
1999
+ if 'body' in params:
2000
+ body_params = params['body']
2001
+ # HTTP header `Accept`
2002
+ header_params['Accept'] = self.api_client.select_header_accept(
2003
+ ['application/json']) # noqa: E501
2004
+
2005
+ # HTTP header `Content-Type`
2006
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2007
+ ['application/json']) # noqa: E501
2008
+
2009
+ # Authentication setting
2010
+ auth_settings = [] # noqa: E501
2011
+
2012
+ return self.api_client.call_api(
2013
+ '/v1/projects/{projectId}/kubernetes-templates/{id}', 'PUT',
2014
+ path_params,
2015
+ query_params,
2016
+ header_params,
2017
+ body=body_params,
2018
+ post_params=form_params,
2019
+ files=local_var_files,
2020
+ response_type='V1KubernetesTemplate', # noqa: E501
2021
+ auth_settings=auth_settings,
2022
+ async_req=params.get('async_req'),
2023
+ _return_http_data_only=params.get('_return_http_data_only'),
2024
+ _preload_content=params.get('_preload_content', True),
2025
+ _request_timeout=params.get('_request_timeout'),
2026
+ collection_formats=collection_formats)