lightning-sdk 2025.9.30__py3-none-any.whl → 2025.10.14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/cloud_account_api.py +0 -2
- lightning_sdk/api/studio_api.py +8 -0
- lightning_sdk/base_studio.py +23 -12
- lightning_sdk/cli/base_studio/__init__.py +10 -0
- lightning_sdk/cli/base_studio/list.py +45 -0
- lightning_sdk/cli/entrypoint.py +2 -0
- lightning_sdk/cli/groups.py +7 -0
- lightning_sdk/cli/studio/connect.py +117 -22
- lightning_sdk/cli/studio/ssh.py +3 -6
- lightning_sdk/cli/utils/ssh_connection.py +8 -0
- lightning_sdk/job/job.py +5 -0
- lightning_sdk/job/v1.py +8 -0
- lightning_sdk/job/v2.py +8 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +20 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +19 -19
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +1463 -240
- lightning_sdk/lightning_cloud/openapi/api/sdk_command_history_service_api.py +141 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/incidents_id_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_incidents_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_message_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_transfer_estimate_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_group_pod_metrics.py +1241 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_message.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kai_scheduler_queue_metrics.py +627 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_group_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_messages_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incidents_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kai_scheduler_queues_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_severity.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -53
- lightning_sdk/machine.py +0 -1
- lightning_sdk/studio.py +42 -5
- lightning_sdk/utils/progress.py +32 -33
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/RECORD +69 -47
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/top_level.txt +0 -0
|
@@ -43,6 +43,224 @@ 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
|
+
|
|
46
264
|
def k8_s_cluster_service_create_kubernetes_template(self, body: 'ProjectIdKubernetestemplatesBody', project_id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
|
|
47
265
|
"""k8_s_cluster_service_create_kubernetes_template # noqa: E501
|
|
48
266
|
|
|
@@ -148,40 +366,40 @@ class K8SClusterServiceApi(object):
|
|
|
148
366
|
_request_timeout=params.get('_request_timeout'),
|
|
149
367
|
collection_formats=collection_formats)
|
|
150
368
|
|
|
151
|
-
def
|
|
152
|
-
"""
|
|
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
|
|
153
371
|
|
|
154
372
|
This method makes a synchronous HTTP request by default. To make an
|
|
155
373
|
asynchronous HTTP request, please pass async_req=True
|
|
156
|
-
>>> thread = api.
|
|
374
|
+
>>> thread = api.k8_s_cluster_service_delete_incident(project_id, id, async_req=True)
|
|
157
375
|
>>> result = thread.get()
|
|
158
376
|
|
|
159
377
|
:param async_req bool
|
|
160
378
|
:param str project_id: (required)
|
|
161
379
|
:param str id: (required)
|
|
162
|
-
:return:
|
|
380
|
+
:return: V1DeleteIncidentResponse
|
|
163
381
|
If the method is called asynchronously,
|
|
164
382
|
returns the request thread.
|
|
165
383
|
"""
|
|
166
384
|
kwargs['_return_http_data_only'] = True
|
|
167
385
|
if kwargs.get('async_req'):
|
|
168
|
-
return self.
|
|
386
|
+
return self.k8_s_cluster_service_delete_incident_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
169
387
|
else:
|
|
170
|
-
(data) = self.
|
|
388
|
+
(data) = self.k8_s_cluster_service_delete_incident_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
171
389
|
return data
|
|
172
390
|
|
|
173
|
-
def
|
|
174
|
-
"""
|
|
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
|
|
175
393
|
|
|
176
394
|
This method makes a synchronous HTTP request by default. To make an
|
|
177
395
|
asynchronous HTTP request, please pass async_req=True
|
|
178
|
-
>>> thread = api.
|
|
396
|
+
>>> thread = api.k8_s_cluster_service_delete_incident_with_http_info(project_id, id, async_req=True)
|
|
179
397
|
>>> result = thread.get()
|
|
180
398
|
|
|
181
399
|
:param async_req bool
|
|
182
400
|
:param str project_id: (required)
|
|
183
401
|
:param str id: (required)
|
|
184
|
-
:return:
|
|
402
|
+
:return: V1DeleteIncidentResponse
|
|
185
403
|
If the method is called asynchronously,
|
|
186
404
|
returns the request thread.
|
|
187
405
|
"""
|
|
@@ -197,18 +415,18 @@ class K8SClusterServiceApi(object):
|
|
|
197
415
|
if key not in all_params:
|
|
198
416
|
raise TypeError(
|
|
199
417
|
"Got an unexpected keyword argument '%s'"
|
|
200
|
-
" to method
|
|
418
|
+
" to method k8_s_cluster_service_delete_incident" % key
|
|
201
419
|
)
|
|
202
420
|
params[key] = val
|
|
203
421
|
del params['kwargs']
|
|
204
422
|
# verify the required parameter 'project_id' is set
|
|
205
423
|
if ('project_id' not in params or
|
|
206
424
|
params['project_id'] is None):
|
|
207
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
425
|
+
raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_delete_incident`") # noqa: E501
|
|
208
426
|
# verify the required parameter 'id' is set
|
|
209
427
|
if ('id' not in params or
|
|
210
428
|
params['id'] is None):
|
|
211
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
429
|
+
raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_delete_incident`") # noqa: E501
|
|
212
430
|
|
|
213
431
|
collection_formats = {}
|
|
214
432
|
|
|
@@ -234,14 +452,14 @@ class K8SClusterServiceApi(object):
|
|
|
234
452
|
auth_settings = [] # noqa: E501
|
|
235
453
|
|
|
236
454
|
return self.api_client.call_api(
|
|
237
|
-
'/v1/projects/{projectId}/
|
|
455
|
+
'/v1/projects/{projectId}/incidents/{id}', 'DELETE',
|
|
238
456
|
path_params,
|
|
239
457
|
query_params,
|
|
240
458
|
header_params,
|
|
241
459
|
body=body_params,
|
|
242
460
|
post_params=form_params,
|
|
243
461
|
files=local_var_files,
|
|
244
|
-
response_type='
|
|
462
|
+
response_type='V1DeleteIncidentResponse', # noqa: E501
|
|
245
463
|
auth_settings=auth_settings,
|
|
246
464
|
async_req=params.get('async_req'),
|
|
247
465
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -249,45 +467,47 @@ class K8SClusterServiceApi(object):
|
|
|
249
467
|
_request_timeout=params.get('_request_timeout'),
|
|
250
468
|
collection_formats=collection_formats)
|
|
251
469
|
|
|
252
|
-
def
|
|
253
|
-
"""
|
|
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
|
|
254
472
|
|
|
255
473
|
This method makes a synchronous HTTP request by default. To make an
|
|
256
474
|
asynchronous HTTP request, please pass async_req=True
|
|
257
|
-
>>> thread = api.
|
|
475
|
+
>>> thread = api.k8_s_cluster_service_delete_incident_message(project_id, incident_id, message_id, async_req=True)
|
|
258
476
|
>>> result = thread.get()
|
|
259
477
|
|
|
260
478
|
:param async_req bool
|
|
261
479
|
:param str project_id: (required)
|
|
262
|
-
:param str
|
|
263
|
-
:
|
|
480
|
+
:param str incident_id: (required)
|
|
481
|
+
:param str message_id: (required)
|
|
482
|
+
:return: V1DeleteIncidentMessageResponse
|
|
264
483
|
If the method is called asynchronously,
|
|
265
484
|
returns the request thread.
|
|
266
485
|
"""
|
|
267
486
|
kwargs['_return_http_data_only'] = True
|
|
268
487
|
if kwargs.get('async_req'):
|
|
269
|
-
return self.
|
|
488
|
+
return self.k8_s_cluster_service_delete_incident_message_with_http_info(project_id, incident_id, message_id, **kwargs) # noqa: E501
|
|
270
489
|
else:
|
|
271
|
-
(data) = self.
|
|
490
|
+
(data) = self.k8_s_cluster_service_delete_incident_message_with_http_info(project_id, incident_id, message_id, **kwargs) # noqa: E501
|
|
272
491
|
return data
|
|
273
492
|
|
|
274
|
-
def
|
|
275
|
-
"""
|
|
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
|
|
276
495
|
|
|
277
496
|
This method makes a synchronous HTTP request by default. To make an
|
|
278
497
|
asynchronous HTTP request, please pass async_req=True
|
|
279
|
-
>>> thread = api.
|
|
498
|
+
>>> thread = api.k8_s_cluster_service_delete_incident_message_with_http_info(project_id, incident_id, message_id, async_req=True)
|
|
280
499
|
>>> result = thread.get()
|
|
281
500
|
|
|
282
501
|
:param async_req bool
|
|
283
502
|
:param str project_id: (required)
|
|
284
|
-
:param str
|
|
285
|
-
:
|
|
503
|
+
:param str incident_id: (required)
|
|
504
|
+
:param str message_id: (required)
|
|
505
|
+
:return: V1DeleteIncidentMessageResponse
|
|
286
506
|
If the method is called asynchronously,
|
|
287
507
|
returns the request thread.
|
|
288
508
|
"""
|
|
289
509
|
|
|
290
|
-
all_params = ['project_id', '
|
|
510
|
+
all_params = ['project_id', 'incident_id', 'message_id'] # noqa: E501
|
|
291
511
|
all_params.append('async_req')
|
|
292
512
|
all_params.append('_return_http_data_only')
|
|
293
513
|
all_params.append('_preload_content')
|
|
@@ -298,28 +518,777 @@ class K8SClusterServiceApi(object):
|
|
|
298
518
|
if key not in all_params:
|
|
299
519
|
raise TypeError(
|
|
300
520
|
"Got an unexpected keyword argument '%s'"
|
|
301
|
-
" to method
|
|
521
|
+
" to method k8_s_cluster_service_delete_incident_message" % key
|
|
302
522
|
)
|
|
303
523
|
params[key] = val
|
|
304
524
|
del params['kwargs']
|
|
305
525
|
# verify the required parameter 'project_id' is set
|
|
306
526
|
if ('project_id' not in params or
|
|
307
527
|
params['project_id'] is None):
|
|
308
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
309
|
-
# verify the required parameter '
|
|
310
|
-
if ('
|
|
311
|
-
params['
|
|
312
|
-
raise ValueError("Missing the required parameter `
|
|
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
|
|
313
537
|
|
|
314
538
|
collection_formats = {}
|
|
315
539
|
|
|
316
540
|
path_params = {}
|
|
317
541
|
if 'project_id' in params:
|
|
318
542
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
319
|
-
if '
|
|
320
|
-
path_params['
|
|
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
|
|
783
|
+
|
|
784
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
785
|
+
asynchronous HTTP request, please pass async_req=True
|
|
786
|
+
>>> thread = api.k8_s_cluster_service_get_kubernetes_template(project_id, id, async_req=True)
|
|
787
|
+
>>> result = thread.get()
|
|
788
|
+
|
|
789
|
+
:param async_req bool
|
|
790
|
+
:param str project_id: (required)
|
|
791
|
+
:param str id: (required)
|
|
792
|
+
:return: V1KubernetesTemplate
|
|
793
|
+
If the method is called asynchronously,
|
|
794
|
+
returns the request thread.
|
|
795
|
+
"""
|
|
796
|
+
kwargs['_return_http_data_only'] = True
|
|
797
|
+
if kwargs.get('async_req'):
|
|
798
|
+
return self.k8_s_cluster_service_get_kubernetes_template_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
799
|
+
else:
|
|
800
|
+
(data) = self.k8_s_cluster_service_get_kubernetes_template_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
801
|
+
return data
|
|
802
|
+
|
|
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
|
|
805
|
+
|
|
806
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
807
|
+
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)
|
|
809
|
+
>>> result = thread.get()
|
|
810
|
+
|
|
811
|
+
:param async_req bool
|
|
812
|
+
:param str project_id: (required)
|
|
813
|
+
:param str id: (required)
|
|
814
|
+
:return: V1KubernetesTemplate
|
|
815
|
+
If the method is called asynchronously,
|
|
816
|
+
returns the request thread.
|
|
817
|
+
"""
|
|
818
|
+
|
|
819
|
+
all_params = ['project_id', 'id'] # noqa: E501
|
|
820
|
+
all_params.append('async_req')
|
|
821
|
+
all_params.append('_return_http_data_only')
|
|
822
|
+
all_params.append('_preload_content')
|
|
823
|
+
all_params.append('_request_timeout')
|
|
824
|
+
|
|
825
|
+
params = locals()
|
|
826
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
827
|
+
if key not in all_params:
|
|
828
|
+
raise TypeError(
|
|
829
|
+
"Got an unexpected keyword argument '%s'"
|
|
830
|
+
" to method k8_s_cluster_service_get_kubernetes_template" % key
|
|
831
|
+
)
|
|
832
|
+
params[key] = val
|
|
833
|
+
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
|
|
842
|
+
|
|
843
|
+
collection_formats = {}
|
|
844
|
+
|
|
845
|
+
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
|
|
850
|
+
|
|
851
|
+
query_params = []
|
|
852
|
+
|
|
853
|
+
header_params = {}
|
|
854
|
+
|
|
855
|
+
form_params = []
|
|
856
|
+
local_var_files = {}
|
|
857
|
+
|
|
858
|
+
body_params = None
|
|
859
|
+
# HTTP header `Accept`
|
|
860
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
861
|
+
['application/json']) # noqa: E501
|
|
862
|
+
|
|
863
|
+
# Authentication setting
|
|
864
|
+
auth_settings = [] # noqa: E501
|
|
865
|
+
|
|
866
|
+
return self.api_client.call_api(
|
|
867
|
+
'/v1/projects/{projectId}/kubernetes-templates/{id}', 'GET',
|
|
868
|
+
path_params,
|
|
869
|
+
query_params,
|
|
870
|
+
header_params,
|
|
871
|
+
body=body_params,
|
|
872
|
+
post_params=form_params,
|
|
873
|
+
files=local_var_files,
|
|
874
|
+
response_type='V1KubernetesTemplate', # noqa: E501
|
|
875
|
+
auth_settings=auth_settings,
|
|
876
|
+
async_req=params.get('async_req'),
|
|
877
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
878
|
+
_preload_content=params.get('_preload_content', True),
|
|
879
|
+
_request_timeout=params.get('_request_timeout'),
|
|
880
|
+
collection_formats=collection_formats)
|
|
881
|
+
|
|
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
|
|
884
|
+
|
|
885
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
886
|
+
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)
|
|
888
|
+
>>> result = thread.get()
|
|
889
|
+
|
|
890
|
+
:param async_req bool
|
|
891
|
+
:param str project_id: (required)
|
|
892
|
+
:param str cluster_id: (required)
|
|
893
|
+
:param str node_name: (required)
|
|
894
|
+
:param datetime start: Date range.
|
|
895
|
+
:param datetime end:
|
|
896
|
+
:return: V1ListNodeMetricsResponse
|
|
897
|
+
If the method is called asynchronously,
|
|
898
|
+
returns the request thread.
|
|
899
|
+
"""
|
|
900
|
+
kwargs['_return_http_data_only'] = True
|
|
901
|
+
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
|
|
903
|
+
else:
|
|
904
|
+
(data) = self.k8_s_cluster_service_list_aggregated_node_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
|
|
905
|
+
return data
|
|
906
|
+
|
|
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
|
|
909
|
+
|
|
910
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
911
|
+
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)
|
|
913
|
+
>>> result = thread.get()
|
|
914
|
+
|
|
915
|
+
:param async_req bool
|
|
916
|
+
:param str project_id: (required)
|
|
917
|
+
:param str cluster_id: (required)
|
|
918
|
+
:param str node_name: (required)
|
|
919
|
+
:param datetime start: Date range.
|
|
920
|
+
:param datetime end:
|
|
921
|
+
:return: V1ListNodeMetricsResponse
|
|
922
|
+
If the method is called asynchronously,
|
|
923
|
+
returns the request thread.
|
|
924
|
+
"""
|
|
925
|
+
|
|
926
|
+
all_params = ['project_id', 'cluster_id', 'node_name', 'start', 'end'] # noqa: E501
|
|
927
|
+
all_params.append('async_req')
|
|
928
|
+
all_params.append('_return_http_data_only')
|
|
929
|
+
all_params.append('_preload_content')
|
|
930
|
+
all_params.append('_request_timeout')
|
|
931
|
+
|
|
932
|
+
params = locals()
|
|
933
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
934
|
+
if key not in all_params:
|
|
935
|
+
raise TypeError(
|
|
936
|
+
"Got an unexpected keyword argument '%s'"
|
|
937
|
+
" to method k8_s_cluster_service_list_aggregated_node_metrics" % key
|
|
938
|
+
)
|
|
939
|
+
params[key] = val
|
|
940
|
+
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
|
+
# verify the required parameter 'cluster_id' is set
|
|
946
|
+
if ('cluster_id' not in params or
|
|
947
|
+
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
|
|
953
|
+
|
|
954
|
+
collection_formats = {}
|
|
955
|
+
|
|
956
|
+
path_params = {}
|
|
957
|
+
if 'project_id' in params:
|
|
958
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
959
|
+
if 'cluster_id' in params:
|
|
960
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
961
|
+
if 'node_name' in params:
|
|
962
|
+
path_params['nodeName'] = params['node_name'] # noqa: E501
|
|
963
|
+
|
|
964
|
+
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
|
+
|
|
970
|
+
header_params = {}
|
|
971
|
+
|
|
972
|
+
form_params = []
|
|
973
|
+
local_var_files = {}
|
|
974
|
+
|
|
975
|
+
body_params = None
|
|
976
|
+
# HTTP header `Accept`
|
|
977
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
978
|
+
['application/json']) # noqa: E501
|
|
979
|
+
|
|
980
|
+
# Authentication setting
|
|
981
|
+
auth_settings = [] # noqa: E501
|
|
982
|
+
|
|
983
|
+
return self.api_client.call_api(
|
|
984
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/aggregated-metrics/nodes/{nodeName}', 'GET',
|
|
985
|
+
path_params,
|
|
986
|
+
query_params,
|
|
987
|
+
header_params,
|
|
988
|
+
body=body_params,
|
|
989
|
+
post_params=form_params,
|
|
990
|
+
files=local_var_files,
|
|
991
|
+
response_type='V1ListNodeMetricsResponse', # noqa: E501
|
|
992
|
+
auth_settings=auth_settings,
|
|
993
|
+
async_req=params.get('async_req'),
|
|
994
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
995
|
+
_preload_content=params.get('_preload_content', True),
|
|
996
|
+
_request_timeout=params.get('_request_timeout'),
|
|
997
|
+
collection_formats=collection_formats)
|
|
998
|
+
|
|
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
|
|
1001
|
+
|
|
1002
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1003
|
+
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)
|
|
1005
|
+
>>> result = thread.get()
|
|
1006
|
+
|
|
1007
|
+
:param async_req bool
|
|
1008
|
+
:param str project_id: (required)
|
|
1009
|
+
:param str cluster_id: (required)
|
|
1010
|
+
:param str namespace:
|
|
1011
|
+
:param datetime start: Date range.
|
|
1012
|
+
:param datetime end:
|
|
1013
|
+
:return: V1ListAggregatedPodMetricsResponse
|
|
1014
|
+
If the method is called asynchronously,
|
|
1015
|
+
returns the request thread.
|
|
1016
|
+
"""
|
|
1017
|
+
kwargs['_return_http_data_only'] = True
|
|
1018
|
+
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
|
|
1020
|
+
else:
|
|
1021
|
+
(data) = self.k8_s_cluster_service_list_aggregated_pod_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
1022
|
+
return data
|
|
1023
|
+
|
|
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
|
|
1026
|
+
|
|
1027
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1028
|
+
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)
|
|
1030
|
+
>>> result = thread.get()
|
|
1031
|
+
|
|
1032
|
+
:param async_req bool
|
|
1033
|
+
:param str project_id: (required)
|
|
1034
|
+
:param str cluster_id: (required)
|
|
1035
|
+
:param str namespace:
|
|
1036
|
+
:param datetime start: Date range.
|
|
1037
|
+
:param datetime end:
|
|
1038
|
+
:return: V1ListAggregatedPodMetricsResponse
|
|
1039
|
+
If the method is called asynchronously,
|
|
1040
|
+
returns the request thread.
|
|
1041
|
+
"""
|
|
1042
|
+
|
|
1043
|
+
all_params = ['project_id', 'cluster_id', 'namespace', 'start', 'end'] # noqa: E501
|
|
1044
|
+
all_params.append('async_req')
|
|
1045
|
+
all_params.append('_return_http_data_only')
|
|
1046
|
+
all_params.append('_preload_content')
|
|
1047
|
+
all_params.append('_request_timeout')
|
|
1048
|
+
|
|
1049
|
+
params = locals()
|
|
1050
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1051
|
+
if key not in all_params:
|
|
1052
|
+
raise TypeError(
|
|
1053
|
+
"Got an unexpected keyword argument '%s'"
|
|
1054
|
+
" to method k8_s_cluster_service_list_aggregated_pod_metrics" % key
|
|
1055
|
+
)
|
|
1056
|
+
params[key] = val
|
|
1057
|
+
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
|
+
# verify the required parameter 'cluster_id' is set
|
|
1063
|
+
if ('cluster_id' not in params or
|
|
1064
|
+
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
|
|
1066
|
+
|
|
1067
|
+
collection_formats = {}
|
|
1068
|
+
|
|
1069
|
+
path_params = {}
|
|
1070
|
+
if 'project_id' in params:
|
|
1071
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1072
|
+
if 'cluster_id' in params:
|
|
1073
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1074
|
+
|
|
1075
|
+
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
|
+
|
|
1083
|
+
header_params = {}
|
|
1084
|
+
|
|
1085
|
+
form_params = []
|
|
1086
|
+
local_var_files = {}
|
|
1087
|
+
|
|
1088
|
+
body_params = None
|
|
1089
|
+
# HTTP header `Accept`
|
|
1090
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1091
|
+
['application/json']) # noqa: E501
|
|
1092
|
+
|
|
1093
|
+
# Authentication setting
|
|
1094
|
+
auth_settings = [] # noqa: E501
|
|
1095
|
+
|
|
1096
|
+
return self.api_client.call_api(
|
|
1097
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/aggregated-metrics/pods', 'GET',
|
|
1098
|
+
path_params,
|
|
1099
|
+
query_params,
|
|
1100
|
+
header_params,
|
|
1101
|
+
body=body_params,
|
|
1102
|
+
post_params=form_params,
|
|
1103
|
+
files=local_var_files,
|
|
1104
|
+
response_type='V1ListAggregatedPodMetricsResponse', # noqa: E501
|
|
1105
|
+
auth_settings=auth_settings,
|
|
1106
|
+
async_req=params.get('async_req'),
|
|
1107
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1108
|
+
_preload_content=params.get('_preload_content', True),
|
|
1109
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1110
|
+
collection_formats=collection_formats)
|
|
1111
|
+
|
|
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
|
|
1114
|
+
|
|
1115
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1116
|
+
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)
|
|
1118
|
+
>>> result = thread.get()
|
|
1119
|
+
|
|
1120
|
+
:param async_req bool
|
|
1121
|
+
:param str project_id: (required)
|
|
1122
|
+
:param str cluster_id: (required)
|
|
1123
|
+
:return: V1ListClusterMetricTimestampsResponse
|
|
1124
|
+
If the method is called asynchronously,
|
|
1125
|
+
returns the request thread.
|
|
1126
|
+
"""
|
|
1127
|
+
kwargs['_return_http_data_only'] = True
|
|
1128
|
+
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
|
|
1130
|
+
else:
|
|
1131
|
+
(data) = self.k8_s_cluster_service_list_cluster_metric_timestamps_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
1132
|
+
return data
|
|
1133
|
+
|
|
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
|
|
1136
|
+
|
|
1137
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1138
|
+
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)
|
|
1140
|
+
>>> result = thread.get()
|
|
1141
|
+
|
|
1142
|
+
:param async_req bool
|
|
1143
|
+
:param str project_id: (required)
|
|
1144
|
+
:param str cluster_id: (required)
|
|
1145
|
+
:return: V1ListClusterMetricTimestampsResponse
|
|
1146
|
+
If the method is called asynchronously,
|
|
1147
|
+
returns the request thread.
|
|
1148
|
+
"""
|
|
1149
|
+
|
|
1150
|
+
all_params = ['project_id', 'cluster_id'] # noqa: E501
|
|
1151
|
+
all_params.append('async_req')
|
|
1152
|
+
all_params.append('_return_http_data_only')
|
|
1153
|
+
all_params.append('_preload_content')
|
|
1154
|
+
all_params.append('_request_timeout')
|
|
1155
|
+
|
|
1156
|
+
params = locals()
|
|
1157
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1158
|
+
if key not in all_params:
|
|
1159
|
+
raise TypeError(
|
|
1160
|
+
"Got an unexpected keyword argument '%s'"
|
|
1161
|
+
" to method k8_s_cluster_service_list_cluster_metric_timestamps" % key
|
|
1162
|
+
)
|
|
1163
|
+
params[key] = val
|
|
1164
|
+
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
|
+
# verify the required parameter 'cluster_id' is set
|
|
1170
|
+
if ('cluster_id' not in params or
|
|
1171
|
+
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
|
|
1173
|
+
|
|
1174
|
+
collection_formats = {}
|
|
1175
|
+
|
|
1176
|
+
path_params = {}
|
|
1177
|
+
if 'project_id' in params:
|
|
1178
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1179
|
+
if 'cluster_id' in params:
|
|
1180
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1181
|
+
|
|
1182
|
+
query_params = []
|
|
1183
|
+
|
|
1184
|
+
header_params = {}
|
|
1185
|
+
|
|
1186
|
+
form_params = []
|
|
1187
|
+
local_var_files = {}
|
|
1188
|
+
|
|
1189
|
+
body_params = None
|
|
1190
|
+
# HTTP header `Accept`
|
|
1191
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1192
|
+
['application/json']) # noqa: E501
|
|
1193
|
+
|
|
1194
|
+
# Authentication setting
|
|
1195
|
+
auth_settings = [] # noqa: E501
|
|
1196
|
+
|
|
1197
|
+
return self.api_client.call_api(
|
|
1198
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/cluster-metrics-timestamps', 'GET',
|
|
1199
|
+
path_params,
|
|
1200
|
+
query_params,
|
|
1201
|
+
header_params,
|
|
1202
|
+
body=body_params,
|
|
1203
|
+
post_params=form_params,
|
|
1204
|
+
files=local_var_files,
|
|
1205
|
+
response_type='V1ListClusterMetricTimestampsResponse', # noqa: E501
|
|
1206
|
+
auth_settings=auth_settings,
|
|
1207
|
+
async_req=params.get('async_req'),
|
|
1208
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1209
|
+
_preload_content=params.get('_preload_content', True),
|
|
1210
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1211
|
+
collection_formats=collection_formats)
|
|
1212
|
+
|
|
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
|
|
1215
|
+
|
|
1216
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1217
|
+
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)
|
|
1219
|
+
>>> result = thread.get()
|
|
1220
|
+
|
|
1221
|
+
:param async_req bool
|
|
1222
|
+
:param str project_id: (required)
|
|
1223
|
+
:param str cluster_id: (required)
|
|
1224
|
+
:param datetime start: Date range.
|
|
1225
|
+
:param datetime end:
|
|
1226
|
+
:return: V1ListClusterMetricsResponse
|
|
1227
|
+
If the method is called asynchronously,
|
|
1228
|
+
returns the request thread.
|
|
1229
|
+
"""
|
|
1230
|
+
kwargs['_return_http_data_only'] = True
|
|
1231
|
+
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
|
|
1233
|
+
else:
|
|
1234
|
+
(data) = self.k8_s_cluster_service_list_cluster_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
1235
|
+
return data
|
|
1236
|
+
|
|
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
|
|
1239
|
+
|
|
1240
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1241
|
+
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)
|
|
1243
|
+
>>> result = thread.get()
|
|
1244
|
+
|
|
1245
|
+
:param async_req bool
|
|
1246
|
+
:param str project_id: (required)
|
|
1247
|
+
:param str cluster_id: (required)
|
|
1248
|
+
:param datetime start: Date range.
|
|
1249
|
+
:param datetime end:
|
|
1250
|
+
:return: V1ListClusterMetricsResponse
|
|
1251
|
+
If the method is called asynchronously,
|
|
1252
|
+
returns the request thread.
|
|
1253
|
+
"""
|
|
1254
|
+
|
|
1255
|
+
all_params = ['project_id', 'cluster_id', 'start', 'end'] # noqa: E501
|
|
1256
|
+
all_params.append('async_req')
|
|
1257
|
+
all_params.append('_return_http_data_only')
|
|
1258
|
+
all_params.append('_preload_content')
|
|
1259
|
+
all_params.append('_request_timeout')
|
|
1260
|
+
|
|
1261
|
+
params = locals()
|
|
1262
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1263
|
+
if key not in all_params:
|
|
1264
|
+
raise TypeError(
|
|
1265
|
+
"Got an unexpected keyword argument '%s'"
|
|
1266
|
+
" to method k8_s_cluster_service_list_cluster_metrics" % key
|
|
1267
|
+
)
|
|
1268
|
+
params[key] = val
|
|
1269
|
+
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
|
+
# verify the required parameter 'cluster_id' is set
|
|
1275
|
+
if ('cluster_id' not in params or
|
|
1276
|
+
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
|
|
1278
|
+
|
|
1279
|
+
collection_formats = {}
|
|
1280
|
+
|
|
1281
|
+
path_params = {}
|
|
1282
|
+
if 'project_id' in params:
|
|
1283
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1284
|
+
if 'cluster_id' in params:
|
|
1285
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
321
1286
|
|
|
322
1287
|
query_params = []
|
|
1288
|
+
if 'start' in params:
|
|
1289
|
+
query_params.append(('start', params['start'])) # noqa: E501
|
|
1290
|
+
if 'end' in params:
|
|
1291
|
+
query_params.append(('end', params['end'])) # noqa: E501
|
|
323
1292
|
|
|
324
1293
|
header_params = {}
|
|
325
1294
|
|
|
@@ -335,14 +1304,14 @@ class K8SClusterServiceApi(object):
|
|
|
335
1304
|
auth_settings = [] # noqa: E501
|
|
336
1305
|
|
|
337
1306
|
return self.api_client.call_api(
|
|
338
|
-
'/v1/projects/{projectId}/
|
|
1307
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/cluster-metrics', 'GET',
|
|
339
1308
|
path_params,
|
|
340
1309
|
query_params,
|
|
341
1310
|
header_params,
|
|
342
1311
|
body=body_params,
|
|
343
1312
|
post_params=form_params,
|
|
344
1313
|
files=local_var_files,
|
|
345
|
-
response_type='
|
|
1314
|
+
response_type='V1ListClusterMetricsResponse', # noqa: E501
|
|
346
1315
|
auth_settings=auth_settings,
|
|
347
1316
|
async_req=params.get('async_req'),
|
|
348
1317
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -350,51 +1319,51 @@ class K8SClusterServiceApi(object):
|
|
|
350
1319
|
_request_timeout=params.get('_request_timeout'),
|
|
351
1320
|
collection_formats=collection_formats)
|
|
352
1321
|
|
|
353
|
-
def
|
|
354
|
-
"""
|
|
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
|
|
355
1324
|
|
|
356
1325
|
This method makes a synchronous HTTP request by default. To make an
|
|
357
1326
|
asynchronous HTTP request, please pass async_req=True
|
|
358
|
-
>>> thread = api.
|
|
1327
|
+
>>> thread = api.k8_s_cluster_service_list_cluster_namespace_metrics(project_id, cluster_id, async_req=True)
|
|
359
1328
|
>>> result = thread.get()
|
|
360
1329
|
|
|
361
1330
|
:param async_req bool
|
|
362
1331
|
:param str project_id: (required)
|
|
363
1332
|
:param str cluster_id: (required)
|
|
364
|
-
:param str
|
|
1333
|
+
:param str namespace:
|
|
365
1334
|
:param datetime start: Date range.
|
|
366
1335
|
:param datetime end:
|
|
367
|
-
:return:
|
|
1336
|
+
:return: V1ListClusterNamespaceMetricsResponse
|
|
368
1337
|
If the method is called asynchronously,
|
|
369
1338
|
returns the request thread.
|
|
370
1339
|
"""
|
|
371
1340
|
kwargs['_return_http_data_only'] = True
|
|
372
1341
|
if kwargs.get('async_req'):
|
|
373
|
-
return self.
|
|
1342
|
+
return self.k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
374
1343
|
else:
|
|
375
|
-
(data) = self.
|
|
1344
|
+
(data) = self.k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
376
1345
|
return data
|
|
377
1346
|
|
|
378
|
-
def
|
|
379
|
-
"""
|
|
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
|
|
380
1349
|
|
|
381
1350
|
This method makes a synchronous HTTP request by default. To make an
|
|
382
1351
|
asynchronous HTTP request, please pass async_req=True
|
|
383
|
-
>>> thread = api.
|
|
1352
|
+
>>> thread = api.k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(project_id, cluster_id, async_req=True)
|
|
384
1353
|
>>> result = thread.get()
|
|
385
1354
|
|
|
386
1355
|
:param async_req bool
|
|
387
1356
|
:param str project_id: (required)
|
|
388
1357
|
:param str cluster_id: (required)
|
|
389
|
-
:param str
|
|
1358
|
+
:param str namespace:
|
|
390
1359
|
:param datetime start: Date range.
|
|
391
1360
|
:param datetime end:
|
|
392
|
-
:return:
|
|
1361
|
+
:return: V1ListClusterNamespaceMetricsResponse
|
|
393
1362
|
If the method is called asynchronously,
|
|
394
1363
|
returns the request thread.
|
|
395
1364
|
"""
|
|
396
1365
|
|
|
397
|
-
all_params = ['project_id', 'cluster_id', '
|
|
1366
|
+
all_params = ['project_id', 'cluster_id', 'namespace', 'start', 'end'] # noqa: E501
|
|
398
1367
|
all_params.append('async_req')
|
|
399
1368
|
all_params.append('_return_http_data_only')
|
|
400
1369
|
all_params.append('_preload_content')
|
|
@@ -405,22 +1374,18 @@ class K8SClusterServiceApi(object):
|
|
|
405
1374
|
if key not in all_params:
|
|
406
1375
|
raise TypeError(
|
|
407
1376
|
"Got an unexpected keyword argument '%s'"
|
|
408
|
-
" to method
|
|
1377
|
+
" to method k8_s_cluster_service_list_cluster_namespace_metrics" % key
|
|
409
1378
|
)
|
|
410
1379
|
params[key] = val
|
|
411
1380
|
del params['kwargs']
|
|
412
1381
|
# verify the required parameter 'project_id' is set
|
|
413
1382
|
if ('project_id' not in params or
|
|
414
1383
|
params['project_id'] is None):
|
|
415
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1384
|
+
raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_cluster_namespace_metrics`") # noqa: E501
|
|
416
1385
|
# verify the required parameter 'cluster_id' is set
|
|
417
1386
|
if ('cluster_id' not in params or
|
|
418
1387
|
params['cluster_id'] is None):
|
|
419
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `
|
|
420
|
-
# verify the required parameter 'node_name' is set
|
|
421
|
-
if ('node_name' not in params or
|
|
422
|
-
params['node_name'] is None):
|
|
423
|
-
raise ValueError("Missing the required parameter `node_name` when calling `k8_s_cluster_service_list_aggregated_node_metrics`") # noqa: E501
|
|
1388
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_namespace_metrics`") # noqa: E501
|
|
424
1389
|
|
|
425
1390
|
collection_formats = {}
|
|
426
1391
|
|
|
@@ -429,10 +1394,10 @@ class K8SClusterServiceApi(object):
|
|
|
429
1394
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
430
1395
|
if 'cluster_id' in params:
|
|
431
1396
|
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
432
|
-
if 'node_name' in params:
|
|
433
|
-
path_params['nodeName'] = params['node_name'] # noqa: E501
|
|
434
1397
|
|
|
435
1398
|
query_params = []
|
|
1399
|
+
if 'namespace' in params:
|
|
1400
|
+
query_params.append(('namespace', params['namespace'])) # noqa: E501
|
|
436
1401
|
if 'start' in params:
|
|
437
1402
|
query_params.append(('start', params['start'])) # noqa: E501
|
|
438
1403
|
if 'end' in params:
|
|
@@ -452,14 +1417,14 @@ class K8SClusterServiceApi(object):
|
|
|
452
1417
|
auth_settings = [] # noqa: E501
|
|
453
1418
|
|
|
454
1419
|
return self.api_client.call_api(
|
|
455
|
-
'/v1/projects/{projectId}/clusters/{clusterId}/
|
|
1420
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/cluster-namespace-metrics', 'GET',
|
|
456
1421
|
path_params,
|
|
457
1422
|
query_params,
|
|
458
1423
|
header_params,
|
|
459
1424
|
body=body_params,
|
|
460
1425
|
post_params=form_params,
|
|
461
1426
|
files=local_var_files,
|
|
462
|
-
response_type='
|
|
1427
|
+
response_type='V1ListClusterNamespaceMetricsResponse', # noqa: E501
|
|
463
1428
|
auth_settings=auth_settings,
|
|
464
1429
|
async_req=params.get('async_req'),
|
|
465
1430
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -467,51 +1432,53 @@ class K8SClusterServiceApi(object):
|
|
|
467
1432
|
_request_timeout=params.get('_request_timeout'),
|
|
468
1433
|
collection_formats=collection_formats)
|
|
469
1434
|
|
|
470
|
-
def
|
|
471
|
-
"""
|
|
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
|
|
472
1437
|
|
|
473
1438
|
This method makes a synchronous HTTP request by default. To make an
|
|
474
1439
|
asynchronous HTTP request, please pass async_req=True
|
|
475
|
-
>>> thread = api.
|
|
1440
|
+
>>> thread = api.k8_s_cluster_service_list_cluster_namespace_user_metrics(project_id, cluster_id, async_req=True)
|
|
476
1441
|
>>> result = thread.get()
|
|
477
1442
|
|
|
478
1443
|
:param async_req bool
|
|
479
1444
|
:param str project_id: (required)
|
|
480
1445
|
:param str cluster_id: (required)
|
|
481
1446
|
:param str namespace:
|
|
1447
|
+
:param str user_id:
|
|
482
1448
|
:param datetime start: Date range.
|
|
483
1449
|
:param datetime end:
|
|
484
|
-
:return:
|
|
1450
|
+
:return: V1ListClusterNamespaceUserMetricsResponse
|
|
485
1451
|
If the method is called asynchronously,
|
|
486
1452
|
returns the request thread.
|
|
487
1453
|
"""
|
|
488
1454
|
kwargs['_return_http_data_only'] = True
|
|
489
1455
|
if kwargs.get('async_req'):
|
|
490
|
-
return self.
|
|
1456
|
+
return self.k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
491
1457
|
else:
|
|
492
|
-
(data) = self.
|
|
1458
|
+
(data) = self.k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
493
1459
|
return data
|
|
494
1460
|
|
|
495
|
-
def
|
|
496
|
-
"""
|
|
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
|
|
497
1463
|
|
|
498
1464
|
This method makes a synchronous HTTP request by default. To make an
|
|
499
1465
|
asynchronous HTTP request, please pass async_req=True
|
|
500
|
-
>>> thread = api.
|
|
1466
|
+
>>> thread = api.k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(project_id, cluster_id, async_req=True)
|
|
501
1467
|
>>> result = thread.get()
|
|
502
1468
|
|
|
503
1469
|
:param async_req bool
|
|
504
1470
|
:param str project_id: (required)
|
|
505
1471
|
:param str cluster_id: (required)
|
|
506
1472
|
:param str namespace:
|
|
1473
|
+
:param str user_id:
|
|
507
1474
|
:param datetime start: Date range.
|
|
508
1475
|
:param datetime end:
|
|
509
|
-
:return:
|
|
1476
|
+
:return: V1ListClusterNamespaceUserMetricsResponse
|
|
510
1477
|
If the method is called asynchronously,
|
|
511
1478
|
returns the request thread.
|
|
512
1479
|
"""
|
|
513
1480
|
|
|
514
|
-
all_params = ['project_id', 'cluster_id', 'namespace', 'start', 'end'] # noqa: E501
|
|
1481
|
+
all_params = ['project_id', 'cluster_id', 'namespace', 'user_id', 'start', 'end'] # noqa: E501
|
|
515
1482
|
all_params.append('async_req')
|
|
516
1483
|
all_params.append('_return_http_data_only')
|
|
517
1484
|
all_params.append('_preload_content')
|
|
@@ -522,18 +1489,18 @@ class K8SClusterServiceApi(object):
|
|
|
522
1489
|
if key not in all_params:
|
|
523
1490
|
raise TypeError(
|
|
524
1491
|
"Got an unexpected keyword argument '%s'"
|
|
525
|
-
" to method
|
|
1492
|
+
" to method k8_s_cluster_service_list_cluster_namespace_user_metrics" % key
|
|
526
1493
|
)
|
|
527
1494
|
params[key] = val
|
|
528
1495
|
del params['kwargs']
|
|
529
1496
|
# verify the required parameter 'project_id' is set
|
|
530
1497
|
if ('project_id' not in params or
|
|
531
1498
|
params['project_id'] is None):
|
|
532
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1499
|
+
raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_cluster_namespace_user_metrics`") # noqa: E501
|
|
533
1500
|
# verify the required parameter 'cluster_id' is set
|
|
534
1501
|
if ('cluster_id' not in params or
|
|
535
1502
|
params['cluster_id'] is None):
|
|
536
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `
|
|
1503
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_namespace_user_metrics`") # noqa: E501
|
|
537
1504
|
|
|
538
1505
|
collection_formats = {}
|
|
539
1506
|
|
|
@@ -546,6 +1513,8 @@ class K8SClusterServiceApi(object):
|
|
|
546
1513
|
query_params = []
|
|
547
1514
|
if 'namespace' in params:
|
|
548
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
|
|
549
1518
|
if 'start' in params:
|
|
550
1519
|
query_params.append(('start', params['start'])) # noqa: E501
|
|
551
1520
|
if 'end' in params:
|
|
@@ -565,14 +1534,14 @@ class K8SClusterServiceApi(object):
|
|
|
565
1534
|
auth_settings = [] # noqa: E501
|
|
566
1535
|
|
|
567
1536
|
return self.api_client.call_api(
|
|
568
|
-
'/v1/projects/{projectId}/clusters/{clusterId}/
|
|
1537
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/cluster-namespace-user-metrics', 'GET',
|
|
569
1538
|
path_params,
|
|
570
1539
|
query_params,
|
|
571
1540
|
header_params,
|
|
572
1541
|
body=body_params,
|
|
573
1542
|
post_params=form_params,
|
|
574
1543
|
files=local_var_files,
|
|
575
|
-
response_type='
|
|
1544
|
+
response_type='V1ListClusterNamespaceUserMetricsResponse', # noqa: E501
|
|
576
1545
|
auth_settings=auth_settings,
|
|
577
1546
|
async_req=params.get('async_req'),
|
|
578
1547
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -580,45 +1549,53 @@ class K8SClusterServiceApi(object):
|
|
|
580
1549
|
_request_timeout=params.get('_request_timeout'),
|
|
581
1550
|
collection_formats=collection_formats)
|
|
582
1551
|
|
|
583
|
-
def
|
|
584
|
-
"""
|
|
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
|
|
585
1554
|
|
|
586
1555
|
This method makes a synchronous HTTP request by default. To make an
|
|
587
1556
|
asynchronous HTTP request, please pass async_req=True
|
|
588
|
-
>>> thread = api.
|
|
1557
|
+
>>> thread = api.k8_s_cluster_service_list_container_metrics(project_id, cluster_id, pod_id, container_id, async_req=True)
|
|
589
1558
|
>>> result = thread.get()
|
|
590
1559
|
|
|
591
1560
|
:param async_req bool
|
|
592
1561
|
:param str project_id: (required)
|
|
593
1562
|
:param str cluster_id: (required)
|
|
594
|
-
:
|
|
1563
|
+
:param str pod_id: (required)
|
|
1564
|
+
:param str container_id: (required)
|
|
1565
|
+
:param datetime start: Date range.
|
|
1566
|
+
:param datetime end:
|
|
1567
|
+
:return: V1ListContainerMetricsResponse
|
|
595
1568
|
If the method is called asynchronously,
|
|
596
1569
|
returns the request thread.
|
|
597
1570
|
"""
|
|
598
1571
|
kwargs['_return_http_data_only'] = True
|
|
599
1572
|
if kwargs.get('async_req'):
|
|
600
|
-
return self.
|
|
1573
|
+
return self.k8_s_cluster_service_list_container_metrics_with_http_info(project_id, cluster_id, pod_id, container_id, **kwargs) # noqa: E501
|
|
601
1574
|
else:
|
|
602
|
-
(data) = self.
|
|
1575
|
+
(data) = self.k8_s_cluster_service_list_container_metrics_with_http_info(project_id, cluster_id, pod_id, container_id, **kwargs) # noqa: E501
|
|
603
1576
|
return data
|
|
604
1577
|
|
|
605
|
-
def
|
|
606
|
-
"""
|
|
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
|
|
607
1580
|
|
|
608
1581
|
This method makes a synchronous HTTP request by default. To make an
|
|
609
1582
|
asynchronous HTTP request, please pass async_req=True
|
|
610
|
-
>>> thread = api.
|
|
1583
|
+
>>> thread = api.k8_s_cluster_service_list_container_metrics_with_http_info(project_id, cluster_id, pod_id, container_id, async_req=True)
|
|
611
1584
|
>>> result = thread.get()
|
|
612
1585
|
|
|
613
1586
|
:param async_req bool
|
|
614
1587
|
:param str project_id: (required)
|
|
615
1588
|
:param str cluster_id: (required)
|
|
616
|
-
:
|
|
1589
|
+
:param str pod_id: (required)
|
|
1590
|
+
:param str container_id: (required)
|
|
1591
|
+
:param datetime start: Date range.
|
|
1592
|
+
:param datetime end:
|
|
1593
|
+
:return: V1ListContainerMetricsResponse
|
|
617
1594
|
If the method is called asynchronously,
|
|
618
1595
|
returns the request thread.
|
|
619
1596
|
"""
|
|
620
1597
|
|
|
621
|
-
all_params = ['project_id', 'cluster_id'] # noqa: E501
|
|
1598
|
+
all_params = ['project_id', 'cluster_id', 'pod_id', 'container_id', 'start', 'end'] # noqa: E501
|
|
622
1599
|
all_params.append('async_req')
|
|
623
1600
|
all_params.append('_return_http_data_only')
|
|
624
1601
|
all_params.append('_preload_content')
|
|
@@ -629,18 +1606,26 @@ class K8SClusterServiceApi(object):
|
|
|
629
1606
|
if key not in all_params:
|
|
630
1607
|
raise TypeError(
|
|
631
1608
|
"Got an unexpected keyword argument '%s'"
|
|
632
|
-
" to method
|
|
1609
|
+
" to method k8_s_cluster_service_list_container_metrics" % key
|
|
633
1610
|
)
|
|
634
1611
|
params[key] = val
|
|
635
1612
|
del params['kwargs']
|
|
636
1613
|
# verify the required parameter 'project_id' is set
|
|
637
1614
|
if ('project_id' not in params or
|
|
638
1615
|
params['project_id'] is None):
|
|
639
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1616
|
+
raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
|
|
640
1617
|
# verify the required parameter 'cluster_id' is set
|
|
641
1618
|
if ('cluster_id' not in params or
|
|
642
1619
|
params['cluster_id'] is None):
|
|
643
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `
|
|
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
|
|
644
1629
|
|
|
645
1630
|
collection_formats = {}
|
|
646
1631
|
|
|
@@ -649,8 +1634,16 @@ class K8SClusterServiceApi(object):
|
|
|
649
1634
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
650
1635
|
if 'cluster_id' in params:
|
|
651
1636
|
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
|
|
652
1641
|
|
|
653
1642
|
query_params = []
|
|
1643
|
+
if 'start' in params:
|
|
1644
|
+
query_params.append(('start', params['start'])) # noqa: E501
|
|
1645
|
+
if 'end' in params:
|
|
1646
|
+
query_params.append(('end', params['end'])) # noqa: E501
|
|
654
1647
|
|
|
655
1648
|
header_params = {}
|
|
656
1649
|
|
|
@@ -666,14 +1659,14 @@ class K8SClusterServiceApi(object):
|
|
|
666
1659
|
auth_settings = [] # noqa: E501
|
|
667
1660
|
|
|
668
1661
|
return self.api_client.call_api(
|
|
669
|
-
'/v1/projects/{projectId}/clusters/{clusterId}/
|
|
1662
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/metrics/pods/{podId}/containers/{containerId}', 'GET',
|
|
670
1663
|
path_params,
|
|
671
1664
|
query_params,
|
|
672
1665
|
header_params,
|
|
673
1666
|
body=body_params,
|
|
674
1667
|
post_params=form_params,
|
|
675
1668
|
files=local_var_files,
|
|
676
|
-
response_type='
|
|
1669
|
+
response_type='V1ListContainerMetricsResponse', # noqa: E501
|
|
677
1670
|
auth_settings=auth_settings,
|
|
678
1671
|
async_req=params.get('async_req'),
|
|
679
1672
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -681,49 +1674,53 @@ class K8SClusterServiceApi(object):
|
|
|
681
1674
|
_request_timeout=params.get('_request_timeout'),
|
|
682
1675
|
collection_formats=collection_formats)
|
|
683
1676
|
|
|
684
|
-
def
|
|
685
|
-
"""
|
|
1677
|
+
def k8_s_cluster_service_list_group_pod_metrics(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListGroupPodMetricsResponse': # noqa: E501
|
|
1678
|
+
"""k8_s_cluster_service_list_group_pod_metrics # noqa: E501
|
|
686
1679
|
|
|
687
1680
|
This method makes a synchronous HTTP request by default. To make an
|
|
688
1681
|
asynchronous HTTP request, please pass async_req=True
|
|
689
|
-
>>> thread = api.
|
|
1682
|
+
>>> thread = api.k8_s_cluster_service_list_group_pod_metrics(project_id, cluster_id, async_req=True)
|
|
690
1683
|
>>> result = thread.get()
|
|
691
1684
|
|
|
692
1685
|
:param async_req bool
|
|
693
1686
|
:param str project_id: (required)
|
|
694
1687
|
:param str cluster_id: (required)
|
|
1688
|
+
:param str key:
|
|
1689
|
+
:param str value:
|
|
695
1690
|
:param datetime start: Date range.
|
|
696
1691
|
:param datetime end:
|
|
697
|
-
:return:
|
|
1692
|
+
:return: V1ListGroupPodMetricsResponse
|
|
698
1693
|
If the method is called asynchronously,
|
|
699
1694
|
returns the request thread.
|
|
700
1695
|
"""
|
|
701
1696
|
kwargs['_return_http_data_only'] = True
|
|
702
1697
|
if kwargs.get('async_req'):
|
|
703
|
-
return self.
|
|
1698
|
+
return self.k8_s_cluster_service_list_group_pod_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
704
1699
|
else:
|
|
705
|
-
(data) = self.
|
|
1700
|
+
(data) = self.k8_s_cluster_service_list_group_pod_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
706
1701
|
return data
|
|
707
1702
|
|
|
708
|
-
def
|
|
709
|
-
"""
|
|
1703
|
+
def k8_s_cluster_service_list_group_pod_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListGroupPodMetricsResponse': # noqa: E501
|
|
1704
|
+
"""k8_s_cluster_service_list_group_pod_metrics # noqa: E501
|
|
710
1705
|
|
|
711
1706
|
This method makes a synchronous HTTP request by default. To make an
|
|
712
1707
|
asynchronous HTTP request, please pass async_req=True
|
|
713
|
-
>>> thread = api.
|
|
1708
|
+
>>> thread = api.k8_s_cluster_service_list_group_pod_metrics_with_http_info(project_id, cluster_id, async_req=True)
|
|
714
1709
|
>>> result = thread.get()
|
|
715
1710
|
|
|
716
1711
|
:param async_req bool
|
|
717
1712
|
:param str project_id: (required)
|
|
718
1713
|
:param str cluster_id: (required)
|
|
1714
|
+
:param str key:
|
|
1715
|
+
:param str value:
|
|
719
1716
|
:param datetime start: Date range.
|
|
720
1717
|
:param datetime end:
|
|
721
|
-
:return:
|
|
1718
|
+
:return: V1ListGroupPodMetricsResponse
|
|
722
1719
|
If the method is called asynchronously,
|
|
723
1720
|
returns the request thread.
|
|
724
1721
|
"""
|
|
725
1722
|
|
|
726
|
-
all_params = ['project_id', 'cluster_id', 'start', 'end'] # noqa: E501
|
|
1723
|
+
all_params = ['project_id', 'cluster_id', 'key', 'value', 'start', 'end'] # noqa: E501
|
|
727
1724
|
all_params.append('async_req')
|
|
728
1725
|
all_params.append('_return_http_data_only')
|
|
729
1726
|
all_params.append('_preload_content')
|
|
@@ -734,18 +1731,18 @@ class K8SClusterServiceApi(object):
|
|
|
734
1731
|
if key not in all_params:
|
|
735
1732
|
raise TypeError(
|
|
736
1733
|
"Got an unexpected keyword argument '%s'"
|
|
737
|
-
" to method
|
|
1734
|
+
" to method k8_s_cluster_service_list_group_pod_metrics" % key
|
|
738
1735
|
)
|
|
739
1736
|
params[key] = val
|
|
740
1737
|
del params['kwargs']
|
|
741
1738
|
# verify the required parameter 'project_id' is set
|
|
742
1739
|
if ('project_id' not in params or
|
|
743
1740
|
params['project_id'] is None):
|
|
744
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1741
|
+
raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_group_pod_metrics`") # noqa: E501
|
|
745
1742
|
# verify the required parameter 'cluster_id' is set
|
|
746
1743
|
if ('cluster_id' not in params or
|
|
747
1744
|
params['cluster_id'] is None):
|
|
748
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `
|
|
1745
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_group_pod_metrics`") # noqa: E501
|
|
749
1746
|
|
|
750
1747
|
collection_formats = {}
|
|
751
1748
|
|
|
@@ -756,6 +1753,10 @@ class K8SClusterServiceApi(object):
|
|
|
756
1753
|
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
757
1754
|
|
|
758
1755
|
query_params = []
|
|
1756
|
+
if 'key' in params:
|
|
1757
|
+
query_params.append(('key', params['key'])) # noqa: E501
|
|
1758
|
+
if 'value' in params:
|
|
1759
|
+
query_params.append(('value', params['value'])) # noqa: E501
|
|
759
1760
|
if 'start' in params:
|
|
760
1761
|
query_params.append(('start', params['start'])) # noqa: E501
|
|
761
1762
|
if 'end' in params:
|
|
@@ -775,14 +1776,14 @@ class K8SClusterServiceApi(object):
|
|
|
775
1776
|
auth_settings = [] # noqa: E501
|
|
776
1777
|
|
|
777
1778
|
return self.api_client.call_api(
|
|
778
|
-
'/v1/projects/{projectId}/clusters/{clusterId}/
|
|
1779
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/metrics/group-pod', 'GET',
|
|
779
1780
|
path_params,
|
|
780
1781
|
query_params,
|
|
781
1782
|
header_params,
|
|
782
1783
|
body=body_params,
|
|
783
1784
|
post_params=form_params,
|
|
784
1785
|
files=local_var_files,
|
|
785
|
-
response_type='
|
|
1786
|
+
response_type='V1ListGroupPodMetricsResponse', # noqa: E501
|
|
786
1787
|
auth_settings=auth_settings,
|
|
787
1788
|
async_req=params.get('async_req'),
|
|
788
1789
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -790,51 +1791,45 @@ class K8SClusterServiceApi(object):
|
|
|
790
1791
|
_request_timeout=params.get('_request_timeout'),
|
|
791
1792
|
collection_formats=collection_formats)
|
|
792
1793
|
|
|
793
|
-
def
|
|
794
|
-
"""
|
|
1794
|
+
def k8_s_cluster_service_list_incident_events(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListIncidentEventsResponse': # noqa: E501
|
|
1795
|
+
"""k8_s_cluster_service_list_incident_events # noqa: E501
|
|
795
1796
|
|
|
796
1797
|
This method makes a synchronous HTTP request by default. To make an
|
|
797
1798
|
asynchronous HTTP request, please pass async_req=True
|
|
798
|
-
>>> thread = api.
|
|
1799
|
+
>>> thread = api.k8_s_cluster_service_list_incident_events(project_id, cluster_id, async_req=True)
|
|
799
1800
|
>>> result = thread.get()
|
|
800
1801
|
|
|
801
1802
|
:param async_req bool
|
|
802
1803
|
:param str project_id: (required)
|
|
803
1804
|
:param str cluster_id: (required)
|
|
804
|
-
:
|
|
805
|
-
:param datetime start: Date range.
|
|
806
|
-
:param datetime end:
|
|
807
|
-
:return: V1ListClusterNamespaceMetricsResponse
|
|
1805
|
+
:return: V1ListIncidentEventsResponse
|
|
808
1806
|
If the method is called asynchronously,
|
|
809
1807
|
returns the request thread.
|
|
810
1808
|
"""
|
|
811
1809
|
kwargs['_return_http_data_only'] = True
|
|
812
1810
|
if kwargs.get('async_req'):
|
|
813
|
-
return self.
|
|
1811
|
+
return self.k8_s_cluster_service_list_incident_events_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
814
1812
|
else:
|
|
815
|
-
(data) = self.
|
|
1813
|
+
(data) = self.k8_s_cluster_service_list_incident_events_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
816
1814
|
return data
|
|
817
1815
|
|
|
818
|
-
def
|
|
819
|
-
"""
|
|
1816
|
+
def k8_s_cluster_service_list_incident_events_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListIncidentEventsResponse': # noqa: E501
|
|
1817
|
+
"""k8_s_cluster_service_list_incident_events # noqa: E501
|
|
820
1818
|
|
|
821
1819
|
This method makes a synchronous HTTP request by default. To make an
|
|
822
1820
|
asynchronous HTTP request, please pass async_req=True
|
|
823
|
-
>>> thread = api.
|
|
1821
|
+
>>> thread = api.k8_s_cluster_service_list_incident_events_with_http_info(project_id, cluster_id, async_req=True)
|
|
824
1822
|
>>> result = thread.get()
|
|
825
1823
|
|
|
826
1824
|
:param async_req bool
|
|
827
1825
|
:param str project_id: (required)
|
|
828
1826
|
:param str cluster_id: (required)
|
|
829
|
-
:
|
|
830
|
-
:param datetime start: Date range.
|
|
831
|
-
:param datetime end:
|
|
832
|
-
:return: V1ListClusterNamespaceMetricsResponse
|
|
1827
|
+
:return: V1ListIncidentEventsResponse
|
|
833
1828
|
If the method is called asynchronously,
|
|
834
1829
|
returns the request thread.
|
|
835
1830
|
"""
|
|
836
1831
|
|
|
837
|
-
all_params = ['project_id', 'cluster_id'
|
|
1832
|
+
all_params = ['project_id', 'cluster_id'] # noqa: E501
|
|
838
1833
|
all_params.append('async_req')
|
|
839
1834
|
all_params.append('_return_http_data_only')
|
|
840
1835
|
all_params.append('_preload_content')
|
|
@@ -845,18 +1840,18 @@ class K8SClusterServiceApi(object):
|
|
|
845
1840
|
if key not in all_params:
|
|
846
1841
|
raise TypeError(
|
|
847
1842
|
"Got an unexpected keyword argument '%s'"
|
|
848
|
-
" to method
|
|
1843
|
+
" to method k8_s_cluster_service_list_incident_events" % key
|
|
849
1844
|
)
|
|
850
1845
|
params[key] = val
|
|
851
1846
|
del params['kwargs']
|
|
852
1847
|
# verify the required parameter 'project_id' is set
|
|
853
1848
|
if ('project_id' not in params or
|
|
854
1849
|
params['project_id'] is None):
|
|
855
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1850
|
+
raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_incident_events`") # noqa: E501
|
|
856
1851
|
# verify the required parameter 'cluster_id' is set
|
|
857
1852
|
if ('cluster_id' not in params or
|
|
858
1853
|
params['cluster_id'] is None):
|
|
859
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `
|
|
1854
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_incident_events`") # noqa: E501
|
|
860
1855
|
|
|
861
1856
|
collection_formats = {}
|
|
862
1857
|
|
|
@@ -867,12 +1862,6 @@ class K8SClusterServiceApi(object):
|
|
|
867
1862
|
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
868
1863
|
|
|
869
1864
|
query_params = []
|
|
870
|
-
if 'namespace' in params:
|
|
871
|
-
query_params.append(('namespace', params['namespace'])) # noqa: E501
|
|
872
|
-
if 'start' in params:
|
|
873
|
-
query_params.append(('start', params['start'])) # noqa: E501
|
|
874
|
-
if 'end' in params:
|
|
875
|
-
query_params.append(('end', params['end'])) # noqa: E501
|
|
876
1865
|
|
|
877
1866
|
header_params = {}
|
|
878
1867
|
|
|
@@ -888,14 +1877,14 @@ class K8SClusterServiceApi(object):
|
|
|
888
1877
|
auth_settings = [] # noqa: E501
|
|
889
1878
|
|
|
890
1879
|
return self.api_client.call_api(
|
|
891
|
-
'/v1/projects/{projectId}/clusters/{clusterId}/
|
|
1880
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/incident-events', 'GET',
|
|
892
1881
|
path_params,
|
|
893
1882
|
query_params,
|
|
894
1883
|
header_params,
|
|
895
1884
|
body=body_params,
|
|
896
1885
|
post_params=form_params,
|
|
897
1886
|
files=local_var_files,
|
|
898
|
-
response_type='
|
|
1887
|
+
response_type='V1ListIncidentEventsResponse', # noqa: E501
|
|
899
1888
|
auth_settings=auth_settings,
|
|
900
1889
|
async_req=params.get('async_req'),
|
|
901
1890
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -903,53 +1892,49 @@ class K8SClusterServiceApi(object):
|
|
|
903
1892
|
_request_timeout=params.get('_request_timeout'),
|
|
904
1893
|
collection_formats=collection_formats)
|
|
905
1894
|
|
|
906
|
-
def
|
|
907
|
-
"""
|
|
1895
|
+
def k8_s_cluster_service_list_incident_messages(self, project_id: 'str', incident_id: 'str', **kwargs) -> 'V1ListIncidentMessagesResponse': # noqa: E501
|
|
1896
|
+
"""k8_s_cluster_service_list_incident_messages # noqa: E501
|
|
908
1897
|
|
|
909
1898
|
This method makes a synchronous HTTP request by default. To make an
|
|
910
1899
|
asynchronous HTTP request, please pass async_req=True
|
|
911
|
-
>>> thread = api.
|
|
1900
|
+
>>> thread = api.k8_s_cluster_service_list_incident_messages(project_id, incident_id, async_req=True)
|
|
912
1901
|
>>> result = thread.get()
|
|
913
1902
|
|
|
914
1903
|
:param async_req bool
|
|
915
1904
|
:param str project_id: (required)
|
|
916
|
-
:param str
|
|
917
|
-
:param
|
|
918
|
-
:param str
|
|
919
|
-
:
|
|
920
|
-
:param datetime end:
|
|
921
|
-
:return: V1ListClusterNamespaceUserMetricsResponse
|
|
1905
|
+
:param str incident_id: (required)
|
|
1906
|
+
:param int page_size:
|
|
1907
|
+
:param str page_token:
|
|
1908
|
+
:return: V1ListIncidentMessagesResponse
|
|
922
1909
|
If the method is called asynchronously,
|
|
923
1910
|
returns the request thread.
|
|
924
1911
|
"""
|
|
925
1912
|
kwargs['_return_http_data_only'] = True
|
|
926
1913
|
if kwargs.get('async_req'):
|
|
927
|
-
return self.
|
|
1914
|
+
return self.k8_s_cluster_service_list_incident_messages_with_http_info(project_id, incident_id, **kwargs) # noqa: E501
|
|
928
1915
|
else:
|
|
929
|
-
(data) = self.
|
|
1916
|
+
(data) = self.k8_s_cluster_service_list_incident_messages_with_http_info(project_id, incident_id, **kwargs) # noqa: E501
|
|
930
1917
|
return data
|
|
931
1918
|
|
|
932
|
-
def
|
|
933
|
-
"""
|
|
1919
|
+
def k8_s_cluster_service_list_incident_messages_with_http_info(self, project_id: 'str', incident_id: 'str', **kwargs) -> 'V1ListIncidentMessagesResponse': # noqa: E501
|
|
1920
|
+
"""k8_s_cluster_service_list_incident_messages # noqa: E501
|
|
934
1921
|
|
|
935
1922
|
This method makes a synchronous HTTP request by default. To make an
|
|
936
1923
|
asynchronous HTTP request, please pass async_req=True
|
|
937
|
-
>>> thread = api.
|
|
1924
|
+
>>> thread = api.k8_s_cluster_service_list_incident_messages_with_http_info(project_id, incident_id, async_req=True)
|
|
938
1925
|
>>> result = thread.get()
|
|
939
1926
|
|
|
940
1927
|
:param async_req bool
|
|
941
1928
|
:param str project_id: (required)
|
|
942
|
-
:param str
|
|
943
|
-
:param
|
|
944
|
-
:param str
|
|
945
|
-
:
|
|
946
|
-
:param datetime end:
|
|
947
|
-
:return: V1ListClusterNamespaceUserMetricsResponse
|
|
1929
|
+
:param str incident_id: (required)
|
|
1930
|
+
:param int page_size:
|
|
1931
|
+
:param str page_token:
|
|
1932
|
+
:return: V1ListIncidentMessagesResponse
|
|
948
1933
|
If the method is called asynchronously,
|
|
949
1934
|
returns the request thread.
|
|
950
1935
|
"""
|
|
951
1936
|
|
|
952
|
-
all_params = ['project_id', '
|
|
1937
|
+
all_params = ['project_id', 'incident_id', 'page_size', 'page_token'] # noqa: E501
|
|
953
1938
|
all_params.append('async_req')
|
|
954
1939
|
all_params.append('_return_http_data_only')
|
|
955
1940
|
all_params.append('_preload_content')
|
|
@@ -960,36 +1945,32 @@ class K8SClusterServiceApi(object):
|
|
|
960
1945
|
if key not in all_params:
|
|
961
1946
|
raise TypeError(
|
|
962
1947
|
"Got an unexpected keyword argument '%s'"
|
|
963
|
-
" to method
|
|
1948
|
+
" to method k8_s_cluster_service_list_incident_messages" % key
|
|
964
1949
|
)
|
|
965
1950
|
params[key] = val
|
|
966
1951
|
del params['kwargs']
|
|
967
1952
|
# verify the required parameter 'project_id' is set
|
|
968
1953
|
if ('project_id' not in params or
|
|
969
1954
|
params['project_id'] is None):
|
|
970
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
971
|
-
# verify the required parameter '
|
|
972
|
-
if ('
|
|
973
|
-
params['
|
|
974
|
-
raise ValueError("Missing the required parameter `
|
|
1955
|
+
raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_incident_messages`") # noqa: E501
|
|
1956
|
+
# verify the required parameter 'incident_id' is set
|
|
1957
|
+
if ('incident_id' not in params or
|
|
1958
|
+
params['incident_id'] is None):
|
|
1959
|
+
raise ValueError("Missing the required parameter `incident_id` when calling `k8_s_cluster_service_list_incident_messages`") # noqa: E501
|
|
975
1960
|
|
|
976
1961
|
collection_formats = {}
|
|
977
1962
|
|
|
978
1963
|
path_params = {}
|
|
979
1964
|
if 'project_id' in params:
|
|
980
1965
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
981
|
-
if '
|
|
982
|
-
path_params['
|
|
1966
|
+
if 'incident_id' in params:
|
|
1967
|
+
path_params['incidentId'] = params['incident_id'] # noqa: E501
|
|
983
1968
|
|
|
984
1969
|
query_params = []
|
|
985
|
-
if '
|
|
986
|
-
query_params.append(('
|
|
987
|
-
if '
|
|
988
|
-
query_params.append(('
|
|
989
|
-
if 'start' in params:
|
|
990
|
-
query_params.append(('start', params['start'])) # noqa: E501
|
|
991
|
-
if 'end' in params:
|
|
992
|
-
query_params.append(('end', params['end'])) # noqa: E501
|
|
1970
|
+
if 'page_size' in params:
|
|
1971
|
+
query_params.append(('pageSize', params['page_size'])) # noqa: E501
|
|
1972
|
+
if 'page_token' in params:
|
|
1973
|
+
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
993
1974
|
|
|
994
1975
|
header_params = {}
|
|
995
1976
|
|
|
@@ -1005,14 +1986,14 @@ class K8SClusterServiceApi(object):
|
|
|
1005
1986
|
auth_settings = [] # noqa: E501
|
|
1006
1987
|
|
|
1007
1988
|
return self.api_client.call_api(
|
|
1008
|
-
'/v1/projects/{projectId}/
|
|
1989
|
+
'/v1/projects/{projectId}/incidents/{incidentId}/messages', 'GET',
|
|
1009
1990
|
path_params,
|
|
1010
1991
|
query_params,
|
|
1011
1992
|
header_params,
|
|
1012
1993
|
body=body_params,
|
|
1013
1994
|
post_params=form_params,
|
|
1014
1995
|
files=local_var_files,
|
|
1015
|
-
response_type='
|
|
1996
|
+
response_type='V1ListIncidentMessagesResponse', # noqa: E501
|
|
1016
1997
|
auth_settings=auth_settings,
|
|
1017
1998
|
async_req=params.get('async_req'),
|
|
1018
1999
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1020,53 +2001,55 @@ class K8SClusterServiceApi(object):
|
|
|
1020
2001
|
_request_timeout=params.get('_request_timeout'),
|
|
1021
2002
|
collection_formats=collection_formats)
|
|
1022
2003
|
|
|
1023
|
-
def
|
|
1024
|
-
"""
|
|
2004
|
+
def k8_s_cluster_service_list_incidents(self, project_id: 'str', **kwargs) -> 'V1ListIncidentsResponse': # noqa: E501
|
|
2005
|
+
"""k8_s_cluster_service_list_incidents # noqa: E501
|
|
1025
2006
|
|
|
1026
2007
|
This method makes a synchronous HTTP request by default. To make an
|
|
1027
2008
|
asynchronous HTTP request, please pass async_req=True
|
|
1028
|
-
>>> thread = api.
|
|
2009
|
+
>>> thread = api.k8_s_cluster_service_list_incidents(project_id, async_req=True)
|
|
1029
2010
|
>>> result = thread.get()
|
|
1030
2011
|
|
|
1031
2012
|
:param async_req bool
|
|
1032
2013
|
:param str project_id: (required)
|
|
1033
|
-
:param str cluster_id:
|
|
1034
|
-
:param str
|
|
1035
|
-
:param str
|
|
1036
|
-
:param
|
|
1037
|
-
:param
|
|
1038
|
-
:
|
|
2014
|
+
:param str cluster_id:
|
|
2015
|
+
:param str status:
|
|
2016
|
+
:param str type:
|
|
2017
|
+
:param str severity:
|
|
2018
|
+
:param int page_size:
|
|
2019
|
+
:param str page_token:
|
|
2020
|
+
:return: V1ListIncidentsResponse
|
|
1039
2021
|
If the method is called asynchronously,
|
|
1040
2022
|
returns the request thread.
|
|
1041
2023
|
"""
|
|
1042
2024
|
kwargs['_return_http_data_only'] = True
|
|
1043
2025
|
if kwargs.get('async_req'):
|
|
1044
|
-
return self.
|
|
2026
|
+
return self.k8_s_cluster_service_list_incidents_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1045
2027
|
else:
|
|
1046
|
-
(data) = self.
|
|
2028
|
+
(data) = self.k8_s_cluster_service_list_incidents_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1047
2029
|
return data
|
|
1048
2030
|
|
|
1049
|
-
def
|
|
1050
|
-
"""
|
|
2031
|
+
def k8_s_cluster_service_list_incidents_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListIncidentsResponse': # noqa: E501
|
|
2032
|
+
"""k8_s_cluster_service_list_incidents # noqa: E501
|
|
1051
2033
|
|
|
1052
2034
|
This method makes a synchronous HTTP request by default. To make an
|
|
1053
2035
|
asynchronous HTTP request, please pass async_req=True
|
|
1054
|
-
>>> thread = api.
|
|
2036
|
+
>>> thread = api.k8_s_cluster_service_list_incidents_with_http_info(project_id, async_req=True)
|
|
1055
2037
|
>>> result = thread.get()
|
|
1056
2038
|
|
|
1057
2039
|
:param async_req bool
|
|
1058
2040
|
:param str project_id: (required)
|
|
1059
|
-
:param str cluster_id:
|
|
1060
|
-
:param str
|
|
1061
|
-
:param str
|
|
1062
|
-
:param
|
|
1063
|
-
:param
|
|
1064
|
-
:
|
|
2041
|
+
:param str cluster_id:
|
|
2042
|
+
:param str status:
|
|
2043
|
+
:param str type:
|
|
2044
|
+
:param str severity:
|
|
2045
|
+
:param int page_size:
|
|
2046
|
+
:param str page_token:
|
|
2047
|
+
:return: V1ListIncidentsResponse
|
|
1065
2048
|
If the method is called asynchronously,
|
|
1066
2049
|
returns the request thread.
|
|
1067
2050
|
"""
|
|
1068
2051
|
|
|
1069
|
-
all_params = ['project_id', 'cluster_id', '
|
|
2052
|
+
all_params = ['project_id', 'cluster_id', 'status', 'type', 'severity', 'page_size', 'page_token'] # noqa: E501
|
|
1070
2053
|
all_params.append('async_req')
|
|
1071
2054
|
all_params.append('_return_http_data_only')
|
|
1072
2055
|
all_params.append('_preload_content')
|
|
@@ -1077,44 +2060,34 @@ class K8SClusterServiceApi(object):
|
|
|
1077
2060
|
if key not in all_params:
|
|
1078
2061
|
raise TypeError(
|
|
1079
2062
|
"Got an unexpected keyword argument '%s'"
|
|
1080
|
-
" to method
|
|
2063
|
+
" to method k8_s_cluster_service_list_incidents" % key
|
|
1081
2064
|
)
|
|
1082
2065
|
params[key] = val
|
|
1083
2066
|
del params['kwargs']
|
|
1084
2067
|
# verify the required parameter 'project_id' is set
|
|
1085
2068
|
if ('project_id' not in params or
|
|
1086
2069
|
params['project_id'] is None):
|
|
1087
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1088
|
-
# verify the required parameter 'cluster_id' is set
|
|
1089
|
-
if ('cluster_id' not in params or
|
|
1090
|
-
params['cluster_id'] is None):
|
|
1091
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
|
|
1092
|
-
# verify the required parameter 'pod_id' is set
|
|
1093
|
-
if ('pod_id' not in params or
|
|
1094
|
-
params['pod_id'] is None):
|
|
1095
|
-
raise ValueError("Missing the required parameter `pod_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
|
|
1096
|
-
# verify the required parameter 'container_id' is set
|
|
1097
|
-
if ('container_id' not in params or
|
|
1098
|
-
params['container_id'] is None):
|
|
1099
|
-
raise ValueError("Missing the required parameter `container_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
|
|
2070
|
+
raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_incidents`") # noqa: E501
|
|
1100
2071
|
|
|
1101
2072
|
collection_formats = {}
|
|
1102
2073
|
|
|
1103
2074
|
path_params = {}
|
|
1104
2075
|
if 'project_id' in params:
|
|
1105
2076
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1106
|
-
if 'cluster_id' in params:
|
|
1107
|
-
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1108
|
-
if 'pod_id' in params:
|
|
1109
|
-
path_params['podId'] = params['pod_id'] # noqa: E501
|
|
1110
|
-
if 'container_id' in params:
|
|
1111
|
-
path_params['containerId'] = params['container_id'] # noqa: E501
|
|
1112
2077
|
|
|
1113
2078
|
query_params = []
|
|
1114
|
-
if '
|
|
1115
|
-
query_params.append(('
|
|
1116
|
-
if '
|
|
1117
|
-
query_params.append(('
|
|
2079
|
+
if 'cluster_id' in params:
|
|
2080
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
2081
|
+
if 'status' in params:
|
|
2082
|
+
query_params.append(('status', params['status'])) # noqa: E501
|
|
2083
|
+
if 'type' in params:
|
|
2084
|
+
query_params.append(('type', params['type'])) # noqa: E501
|
|
2085
|
+
if 'severity' in params:
|
|
2086
|
+
query_params.append(('severity', params['severity'])) # noqa: E501
|
|
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
|
|
1118
2091
|
|
|
1119
2092
|
header_params = {}
|
|
1120
2093
|
|
|
@@ -1130,14 +2103,14 @@ class K8SClusterServiceApi(object):
|
|
|
1130
2103
|
auth_settings = [] # noqa: E501
|
|
1131
2104
|
|
|
1132
2105
|
return self.api_client.call_api(
|
|
1133
|
-
'/v1/projects/{projectId}/
|
|
2106
|
+
'/v1/projects/{projectId}/incidents', 'GET',
|
|
1134
2107
|
path_params,
|
|
1135
2108
|
query_params,
|
|
1136
2109
|
header_params,
|
|
1137
2110
|
body=body_params,
|
|
1138
2111
|
post_params=form_params,
|
|
1139
2112
|
files=local_var_files,
|
|
1140
|
-
response_type='
|
|
2113
|
+
response_type='V1ListIncidentsResponse', # noqa: E501
|
|
1141
2114
|
auth_settings=auth_settings,
|
|
1142
2115
|
async_req=params.get('async_req'),
|
|
1143
2116
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1145,45 +2118,53 @@ class K8SClusterServiceApi(object):
|
|
|
1145
2118
|
_request_timeout=params.get('_request_timeout'),
|
|
1146
2119
|
collection_formats=collection_formats)
|
|
1147
2120
|
|
|
1148
|
-
def
|
|
1149
|
-
"""
|
|
2121
|
+
def k8_s_cluster_service_list_kai_scheduler_queues_metrics(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListKaiSchedulerQueuesMetricsResponse': # noqa: E501
|
|
2122
|
+
"""k8_s_cluster_service_list_kai_scheduler_queues_metrics # noqa: E501
|
|
1150
2123
|
|
|
1151
2124
|
This method makes a synchronous HTTP request by default. To make an
|
|
1152
2125
|
asynchronous HTTP request, please pass async_req=True
|
|
1153
|
-
>>> thread = api.
|
|
2126
|
+
>>> thread = api.k8_s_cluster_service_list_kai_scheduler_queues_metrics(project_id, cluster_id, async_req=True)
|
|
1154
2127
|
>>> result = thread.get()
|
|
1155
2128
|
|
|
1156
2129
|
:param async_req bool
|
|
1157
2130
|
:param str project_id: (required)
|
|
1158
2131
|
:param str cluster_id: (required)
|
|
1159
|
-
:
|
|
2132
|
+
:param str namespace:
|
|
2133
|
+
:param str user_id:
|
|
2134
|
+
:param datetime start: Date range.
|
|
2135
|
+
:param datetime end:
|
|
2136
|
+
:return: V1ListKaiSchedulerQueuesMetricsResponse
|
|
1160
2137
|
If the method is called asynchronously,
|
|
1161
2138
|
returns the request thread.
|
|
1162
2139
|
"""
|
|
1163
2140
|
kwargs['_return_http_data_only'] = True
|
|
1164
2141
|
if kwargs.get('async_req'):
|
|
1165
|
-
return self.
|
|
2142
|
+
return self.k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
1166
2143
|
else:
|
|
1167
|
-
(data) = self.
|
|
2144
|
+
(data) = self.k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
1168
2145
|
return data
|
|
1169
2146
|
|
|
1170
|
-
def
|
|
1171
|
-
"""
|
|
2147
|
+
def k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListKaiSchedulerQueuesMetricsResponse': # noqa: E501
|
|
2148
|
+
"""k8_s_cluster_service_list_kai_scheduler_queues_metrics # noqa: E501
|
|
1172
2149
|
|
|
1173
2150
|
This method makes a synchronous HTTP request by default. To make an
|
|
1174
2151
|
asynchronous HTTP request, please pass async_req=True
|
|
1175
|
-
>>> thread = api.
|
|
2152
|
+
>>> thread = api.k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(project_id, cluster_id, async_req=True)
|
|
1176
2153
|
>>> result = thread.get()
|
|
1177
2154
|
|
|
1178
2155
|
:param async_req bool
|
|
1179
2156
|
:param str project_id: (required)
|
|
1180
2157
|
:param str cluster_id: (required)
|
|
1181
|
-
:
|
|
2158
|
+
:param str namespace:
|
|
2159
|
+
:param str user_id:
|
|
2160
|
+
:param datetime start: Date range.
|
|
2161
|
+
:param datetime end:
|
|
2162
|
+
:return: V1ListKaiSchedulerQueuesMetricsResponse
|
|
1182
2163
|
If the method is called asynchronously,
|
|
1183
2164
|
returns the request thread.
|
|
1184
2165
|
"""
|
|
1185
2166
|
|
|
1186
|
-
all_params = ['project_id', 'cluster_id'] # noqa: E501
|
|
2167
|
+
all_params = ['project_id', 'cluster_id', 'namespace', 'user_id', 'start', 'end'] # noqa: E501
|
|
1187
2168
|
all_params.append('async_req')
|
|
1188
2169
|
all_params.append('_return_http_data_only')
|
|
1189
2170
|
all_params.append('_preload_content')
|
|
@@ -1194,18 +2175,18 @@ class K8SClusterServiceApi(object):
|
|
|
1194
2175
|
if key not in all_params:
|
|
1195
2176
|
raise TypeError(
|
|
1196
2177
|
"Got an unexpected keyword argument '%s'"
|
|
1197
|
-
" to method
|
|
2178
|
+
" to method k8_s_cluster_service_list_kai_scheduler_queues_metrics" % key
|
|
1198
2179
|
)
|
|
1199
2180
|
params[key] = val
|
|
1200
2181
|
del params['kwargs']
|
|
1201
2182
|
# verify the required parameter 'project_id' is set
|
|
1202
2183
|
if ('project_id' not in params or
|
|
1203
2184
|
params['project_id'] is None):
|
|
1204
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
2185
|
+
raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_kai_scheduler_queues_metrics`") # noqa: E501
|
|
1205
2186
|
# verify the required parameter 'cluster_id' is set
|
|
1206
2187
|
if ('cluster_id' not in params or
|
|
1207
2188
|
params['cluster_id'] is None):
|
|
1208
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `
|
|
2189
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_kai_scheduler_queues_metrics`") # noqa: E501
|
|
1209
2190
|
|
|
1210
2191
|
collection_formats = {}
|
|
1211
2192
|
|
|
@@ -1216,6 +2197,14 @@ class K8SClusterServiceApi(object):
|
|
|
1216
2197
|
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1217
2198
|
|
|
1218
2199
|
query_params = []
|
|
2200
|
+
if 'namespace' in params:
|
|
2201
|
+
query_params.append(('namespace', params['namespace'])) # noqa: E501
|
|
2202
|
+
if 'user_id' in params:
|
|
2203
|
+
query_params.append(('userId', params['user_id'])) # noqa: E501
|
|
2204
|
+
if 'start' in params:
|
|
2205
|
+
query_params.append(('start', params['start'])) # noqa: E501
|
|
2206
|
+
if 'end' in params:
|
|
2207
|
+
query_params.append(('end', params['end'])) # noqa: E501
|
|
1219
2208
|
|
|
1220
2209
|
header_params = {}
|
|
1221
2210
|
|
|
@@ -1231,14 +2220,14 @@ class K8SClusterServiceApi(object):
|
|
|
1231
2220
|
auth_settings = [] # noqa: E501
|
|
1232
2221
|
|
|
1233
2222
|
return self.api_client.call_api(
|
|
1234
|
-
'/v1/projects/{projectId}/clusters/{clusterId}/
|
|
2223
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/cluster-kai-scheduler-queues-metrics', 'GET',
|
|
1235
2224
|
path_params,
|
|
1236
2225
|
query_params,
|
|
1237
2226
|
header_params,
|
|
1238
2227
|
body=body_params,
|
|
1239
2228
|
post_params=form_params,
|
|
1240
2229
|
files=local_var_files,
|
|
1241
|
-
response_type='
|
|
2230
|
+
response_type='V1ListKaiSchedulerQueuesMetricsResponse', # noqa: E501
|
|
1242
2231
|
auth_settings=auth_settings,
|
|
1243
2232
|
async_req=params.get('async_req'),
|
|
1244
2233
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1912,6 +2901,240 @@ class K8SClusterServiceApi(object):
|
|
|
1912
2901
|
_request_timeout=params.get('_request_timeout'),
|
|
1913
2902
|
collection_formats=collection_formats)
|
|
1914
2903
|
|
|
2904
|
+
def k8_s_cluster_service_update_incident(self, body: 'IncidentsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Incident': # noqa: E501
|
|
2905
|
+
"""k8_s_cluster_service_update_incident # noqa: E501
|
|
2906
|
+
|
|
2907
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2908
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2909
|
+
>>> thread = api.k8_s_cluster_service_update_incident(body, project_id, id, async_req=True)
|
|
2910
|
+
>>> result = thread.get()
|
|
2911
|
+
|
|
2912
|
+
:param async_req bool
|
|
2913
|
+
:param IncidentsIdBody body: (required)
|
|
2914
|
+
:param str project_id: (required)
|
|
2915
|
+
:param str id: (required)
|
|
2916
|
+
:return: V1Incident
|
|
2917
|
+
If the method is called asynchronously,
|
|
2918
|
+
returns the request thread.
|
|
2919
|
+
"""
|
|
2920
|
+
kwargs['_return_http_data_only'] = True
|
|
2921
|
+
if kwargs.get('async_req'):
|
|
2922
|
+
return self.k8_s_cluster_service_update_incident_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
2923
|
+
else:
|
|
2924
|
+
(data) = self.k8_s_cluster_service_update_incident_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
2925
|
+
return data
|
|
2926
|
+
|
|
2927
|
+
def k8_s_cluster_service_update_incident_with_http_info(self, body: 'IncidentsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Incident': # noqa: E501
|
|
2928
|
+
"""k8_s_cluster_service_update_incident # noqa: E501
|
|
2929
|
+
|
|
2930
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2931
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2932
|
+
>>> thread = api.k8_s_cluster_service_update_incident_with_http_info(body, project_id, id, async_req=True)
|
|
2933
|
+
>>> result = thread.get()
|
|
2934
|
+
|
|
2935
|
+
:param async_req bool
|
|
2936
|
+
:param IncidentsIdBody body: (required)
|
|
2937
|
+
:param str project_id: (required)
|
|
2938
|
+
:param str id: (required)
|
|
2939
|
+
:return: V1Incident
|
|
2940
|
+
If the method is called asynchronously,
|
|
2941
|
+
returns the request thread.
|
|
2942
|
+
"""
|
|
2943
|
+
|
|
2944
|
+
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
2945
|
+
all_params.append('async_req')
|
|
2946
|
+
all_params.append('_return_http_data_only')
|
|
2947
|
+
all_params.append('_preload_content')
|
|
2948
|
+
all_params.append('_request_timeout')
|
|
2949
|
+
|
|
2950
|
+
params = locals()
|
|
2951
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2952
|
+
if key not in all_params:
|
|
2953
|
+
raise TypeError(
|
|
2954
|
+
"Got an unexpected keyword argument '%s'"
|
|
2955
|
+
" to method k8_s_cluster_service_update_incident" % key
|
|
2956
|
+
)
|
|
2957
|
+
params[key] = val
|
|
2958
|
+
del params['kwargs']
|
|
2959
|
+
# verify the required parameter 'body' is set
|
|
2960
|
+
if ('body' not in params or
|
|
2961
|
+
params['body'] is None):
|
|
2962
|
+
raise ValueError("Missing the required parameter `body` when calling `k8_s_cluster_service_update_incident`") # noqa: E501
|
|
2963
|
+
# verify the required parameter 'project_id' is set
|
|
2964
|
+
if ('project_id' not in params or
|
|
2965
|
+
params['project_id'] is None):
|
|
2966
|
+
raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_update_incident`") # noqa: E501
|
|
2967
|
+
# verify the required parameter 'id' is set
|
|
2968
|
+
if ('id' not in params or
|
|
2969
|
+
params['id'] is None):
|
|
2970
|
+
raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_update_incident`") # noqa: E501
|
|
2971
|
+
|
|
2972
|
+
collection_formats = {}
|
|
2973
|
+
|
|
2974
|
+
path_params = {}
|
|
2975
|
+
if 'project_id' in params:
|
|
2976
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2977
|
+
if 'id' in params:
|
|
2978
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
2979
|
+
|
|
2980
|
+
query_params = []
|
|
2981
|
+
|
|
2982
|
+
header_params = {}
|
|
2983
|
+
|
|
2984
|
+
form_params = []
|
|
2985
|
+
local_var_files = {}
|
|
2986
|
+
|
|
2987
|
+
body_params = None
|
|
2988
|
+
if 'body' in params:
|
|
2989
|
+
body_params = params['body']
|
|
2990
|
+
# HTTP header `Accept`
|
|
2991
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2992
|
+
['application/json']) # noqa: E501
|
|
2993
|
+
|
|
2994
|
+
# HTTP header `Content-Type`
|
|
2995
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2996
|
+
['application/json']) # noqa: E501
|
|
2997
|
+
|
|
2998
|
+
# Authentication setting
|
|
2999
|
+
auth_settings = [] # noqa: E501
|
|
3000
|
+
|
|
3001
|
+
return self.api_client.call_api(
|
|
3002
|
+
'/v1/projects/{projectId}/incidents/{id}', 'PUT',
|
|
3003
|
+
path_params,
|
|
3004
|
+
query_params,
|
|
3005
|
+
header_params,
|
|
3006
|
+
body=body_params,
|
|
3007
|
+
post_params=form_params,
|
|
3008
|
+
files=local_var_files,
|
|
3009
|
+
response_type='V1Incident', # noqa: E501
|
|
3010
|
+
auth_settings=auth_settings,
|
|
3011
|
+
async_req=params.get('async_req'),
|
|
3012
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3013
|
+
_preload_content=params.get('_preload_content', True),
|
|
3014
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3015
|
+
collection_formats=collection_formats)
|
|
3016
|
+
|
|
3017
|
+
def k8_s_cluster_service_update_incident_message(self, body: 'MessagesMessageIdBody', project_id: 'str', incident_id: 'str', message_id: 'str', **kwargs) -> 'V1IncidentMessage': # noqa: E501
|
|
3018
|
+
"""k8_s_cluster_service_update_incident_message # noqa: E501
|
|
3019
|
+
|
|
3020
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3021
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3022
|
+
>>> thread = api.k8_s_cluster_service_update_incident_message(body, project_id, incident_id, message_id, async_req=True)
|
|
3023
|
+
>>> result = thread.get()
|
|
3024
|
+
|
|
3025
|
+
:param async_req bool
|
|
3026
|
+
:param MessagesMessageIdBody body: (required)
|
|
3027
|
+
:param str project_id: (required)
|
|
3028
|
+
:param str incident_id: (required)
|
|
3029
|
+
:param str message_id: (required)
|
|
3030
|
+
:return: V1IncidentMessage
|
|
3031
|
+
If the method is called asynchronously,
|
|
3032
|
+
returns the request thread.
|
|
3033
|
+
"""
|
|
3034
|
+
kwargs['_return_http_data_only'] = True
|
|
3035
|
+
if kwargs.get('async_req'):
|
|
3036
|
+
return self.k8_s_cluster_service_update_incident_message_with_http_info(body, project_id, incident_id, message_id, **kwargs) # noqa: E501
|
|
3037
|
+
else:
|
|
3038
|
+
(data) = self.k8_s_cluster_service_update_incident_message_with_http_info(body, project_id, incident_id, message_id, **kwargs) # noqa: E501
|
|
3039
|
+
return data
|
|
3040
|
+
|
|
3041
|
+
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
|
|
3042
|
+
"""k8_s_cluster_service_update_incident_message # noqa: E501
|
|
3043
|
+
|
|
3044
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3045
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3046
|
+
>>> thread = api.k8_s_cluster_service_update_incident_message_with_http_info(body, project_id, incident_id, message_id, async_req=True)
|
|
3047
|
+
>>> result = thread.get()
|
|
3048
|
+
|
|
3049
|
+
:param async_req bool
|
|
3050
|
+
:param MessagesMessageIdBody body: (required)
|
|
3051
|
+
:param str project_id: (required)
|
|
3052
|
+
:param str incident_id: (required)
|
|
3053
|
+
:param str message_id: (required)
|
|
3054
|
+
:return: V1IncidentMessage
|
|
3055
|
+
If the method is called asynchronously,
|
|
3056
|
+
returns the request thread.
|
|
3057
|
+
"""
|
|
3058
|
+
|
|
3059
|
+
all_params = ['body', 'project_id', 'incident_id', 'message_id'] # noqa: E501
|
|
3060
|
+
all_params.append('async_req')
|
|
3061
|
+
all_params.append('_return_http_data_only')
|
|
3062
|
+
all_params.append('_preload_content')
|
|
3063
|
+
all_params.append('_request_timeout')
|
|
3064
|
+
|
|
3065
|
+
params = locals()
|
|
3066
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3067
|
+
if key not in all_params:
|
|
3068
|
+
raise TypeError(
|
|
3069
|
+
"Got an unexpected keyword argument '%s'"
|
|
3070
|
+
" to method k8_s_cluster_service_update_incident_message" % key
|
|
3071
|
+
)
|
|
3072
|
+
params[key] = val
|
|
3073
|
+
del params['kwargs']
|
|
3074
|
+
# verify the required parameter 'body' is set
|
|
3075
|
+
if ('body' not in params or
|
|
3076
|
+
params['body'] is None):
|
|
3077
|
+
raise ValueError("Missing the required parameter `body` when calling `k8_s_cluster_service_update_incident_message`") # noqa: E501
|
|
3078
|
+
# verify the required parameter 'project_id' is set
|
|
3079
|
+
if ('project_id' not in params or
|
|
3080
|
+
params['project_id'] is None):
|
|
3081
|
+
raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_update_incident_message`") # noqa: E501
|
|
3082
|
+
# verify the required parameter 'incident_id' is set
|
|
3083
|
+
if ('incident_id' not in params or
|
|
3084
|
+
params['incident_id'] is None):
|
|
3085
|
+
raise ValueError("Missing the required parameter `incident_id` when calling `k8_s_cluster_service_update_incident_message`") # noqa: E501
|
|
3086
|
+
# verify the required parameter 'message_id' is set
|
|
3087
|
+
if ('message_id' not in params or
|
|
3088
|
+
params['message_id'] is None):
|
|
3089
|
+
raise ValueError("Missing the required parameter `message_id` when calling `k8_s_cluster_service_update_incident_message`") # noqa: E501
|
|
3090
|
+
|
|
3091
|
+
collection_formats = {}
|
|
3092
|
+
|
|
3093
|
+
path_params = {}
|
|
3094
|
+
if 'project_id' in params:
|
|
3095
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
3096
|
+
if 'incident_id' in params:
|
|
3097
|
+
path_params['incidentId'] = params['incident_id'] # noqa: E501
|
|
3098
|
+
if 'message_id' in params:
|
|
3099
|
+
path_params['messageId'] = params['message_id'] # noqa: E501
|
|
3100
|
+
|
|
3101
|
+
query_params = []
|
|
3102
|
+
|
|
3103
|
+
header_params = {}
|
|
3104
|
+
|
|
3105
|
+
form_params = []
|
|
3106
|
+
local_var_files = {}
|
|
3107
|
+
|
|
3108
|
+
body_params = None
|
|
3109
|
+
if 'body' in params:
|
|
3110
|
+
body_params = params['body']
|
|
3111
|
+
# HTTP header `Accept`
|
|
3112
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3113
|
+
['application/json']) # noqa: E501
|
|
3114
|
+
|
|
3115
|
+
# HTTP header `Content-Type`
|
|
3116
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
3117
|
+
['application/json']) # noqa: E501
|
|
3118
|
+
|
|
3119
|
+
# Authentication setting
|
|
3120
|
+
auth_settings = [] # noqa: E501
|
|
3121
|
+
|
|
3122
|
+
return self.api_client.call_api(
|
|
3123
|
+
'/v1/projects/{projectId}/incidents/{incidentId}/messages/{messageId}', 'PUT',
|
|
3124
|
+
path_params,
|
|
3125
|
+
query_params,
|
|
3126
|
+
header_params,
|
|
3127
|
+
body=body_params,
|
|
3128
|
+
post_params=form_params,
|
|
3129
|
+
files=local_var_files,
|
|
3130
|
+
response_type='V1IncidentMessage', # noqa: E501
|
|
3131
|
+
auth_settings=auth_settings,
|
|
3132
|
+
async_req=params.get('async_req'),
|
|
3133
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3134
|
+
_preload_content=params.get('_preload_content', True),
|
|
3135
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3136
|
+
collection_formats=collection_formats)
|
|
3137
|
+
|
|
1915
3138
|
def k8_s_cluster_service_update_kubernetes_template(self, body: 'KubernetestemplatesIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
|
|
1916
3139
|
"""k8_s_cluster_service_update_kubernetes_template # noqa: E501
|
|
1917
3140
|
|