huaweicloudsdkcae 3.1.71__py2.py3-none-any.whl → 3.1.73__py2.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.
Potentially problematic release.
This version of huaweicloudsdkcae might be problematic. Click here for more details.
- huaweicloudsdkcae/v1/__init__.py +10 -0
- huaweicloudsdkcae/v1/cae_async_client.py +207 -0
- huaweicloudsdkcae/v1/cae_client.py +207 -0
- huaweicloudsdkcae/v1/model/__init__.py +10 -0
- huaweicloudsdkcae/v1/model/configuration_data_spec.py +232 -58
- huaweicloudsdkcae/v1/model/create_monitor_system_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_monitor_system_response.py +85 -0
- huaweicloudsdkcae/v1/model/monitor_system_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/monitor_system_request_body.py +161 -0
- huaweicloudsdkcae/v1/model/monitor_system_request_body_spec.py +313 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_request.py +143 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_response.py +162 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_response_body_spec.py +430 -0
- huaweicloudsdkcae/v1/model/update_monitor_system_request.py +196 -0
- huaweicloudsdkcae/v1/model/update_monitor_system_response.py +85 -0
- {huaweicloudsdkcae-3.1.71.dist-info → huaweicloudsdkcae-3.1.73.dist-info}/METADATA +2 -2
- {huaweicloudsdkcae-3.1.71.dist-info → huaweicloudsdkcae-3.1.73.dist-info}/RECORD +20 -10
- {huaweicloudsdkcae-3.1.71.dist-info → huaweicloudsdkcae-3.1.73.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcae-3.1.71.dist-info → huaweicloudsdkcae-3.1.73.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcae-3.1.71.dist-info → huaweicloudsdkcae-3.1.73.dist-info}/top_level.txt +0 -0
huaweicloudsdkcae/v1/__init__.py
CHANGED
|
@@ -71,6 +71,8 @@ from huaweicloudsdkcae.v1.model.create_environment_request_body_metadata import
|
|
|
71
71
|
from huaweicloudsdkcae.v1.model.create_environment_response import CreateEnvironmentResponse
|
|
72
72
|
from huaweicloudsdkcae.v1.model.create_meta_cert import CreateMetaCert
|
|
73
73
|
from huaweicloudsdkcae.v1.model.create_meta_domain import CreateMetaDomain
|
|
74
|
+
from huaweicloudsdkcae.v1.model.create_monitor_system_request import CreateMonitorSystemRequest
|
|
75
|
+
from huaweicloudsdkcae.v1.model.create_monitor_system_response import CreateMonitorSystemResponse
|
|
74
76
|
from huaweicloudsdkcae.v1.model.create_spec_cert import CreateSpecCert
|
|
75
77
|
from huaweicloudsdkcae.v1.model.create_timer_rule_req import CreateTimerRuleReq
|
|
76
78
|
from huaweicloudsdkcae.v1.model.create_timer_rule_request import CreateTimerRuleRequest
|
|
@@ -149,6 +151,9 @@ from huaweicloudsdkcae.v1.model.list_volumes_response import ListVolumesResponse
|
|
|
149
151
|
from huaweicloudsdkcae.v1.model.meta_cert import MetaCert
|
|
150
152
|
from huaweicloudsdkcae.v1.model.meta_domain import MetaDomain
|
|
151
153
|
from huaweicloudsdkcae.v1.model.metadata_response import MetadataResponse
|
|
154
|
+
from huaweicloudsdkcae.v1.model.monitor_system_kind_obj import MonitorSystemKindObj
|
|
155
|
+
from huaweicloudsdkcae.v1.model.monitor_system_request_body import MonitorSystemRequestBody
|
|
156
|
+
from huaweicloudsdkcae.v1.model.monitor_system_request_body_spec import MonitorSystemRequestBodySpec
|
|
152
157
|
from huaweicloudsdkcae.v1.model.mount_component import MountComponent
|
|
153
158
|
from huaweicloudsdkcae.v1.model.repo import Repo
|
|
154
159
|
from huaweicloudsdkcae.v1.model.resource_limit import ResourceLimit
|
|
@@ -165,6 +170,9 @@ from huaweicloudsdkcae.v1.model.show_execution_result_request import ShowExecuti
|
|
|
165
170
|
from huaweicloudsdkcae.v1.model.show_execution_result_response import ShowExecutionResultResponse
|
|
166
171
|
from huaweicloudsdkcae.v1.model.show_job_request import ShowJobRequest
|
|
167
172
|
from huaweicloudsdkcae.v1.model.show_job_response import ShowJobResponse
|
|
173
|
+
from huaweicloudsdkcae.v1.model.show_monitor_system_request import ShowMonitorSystemRequest
|
|
174
|
+
from huaweicloudsdkcae.v1.model.show_monitor_system_response import ShowMonitorSystemResponse
|
|
175
|
+
from huaweicloudsdkcae.v1.model.show_monitor_system_response_body_spec import ShowMonitorSystemResponseBodySpec
|
|
168
176
|
from huaweicloudsdkcae.v1.model.source import Source
|
|
169
177
|
from huaweicloudsdkcae.v1.model.spec_cert import SpecCert
|
|
170
178
|
from huaweicloudsdkcae.v1.model.task import Task
|
|
@@ -184,6 +192,8 @@ from huaweicloudsdkcae.v1.model.update_eip_request_body_spec import UpdateEipReq
|
|
|
184
192
|
from huaweicloudsdkcae.v1.model.update_eip_request_body_spec_egress import UpdateEipRequestBodySpecEgress
|
|
185
193
|
from huaweicloudsdkcae.v1.model.update_eip_request_body_spec_ingress import UpdateEipRequestBodySpecIngress
|
|
186
194
|
from huaweicloudsdkcae.v1.model.update_eip_response import UpdateEipResponse
|
|
195
|
+
from huaweicloudsdkcae.v1.model.update_monitor_system_request import UpdateMonitorSystemRequest
|
|
196
|
+
from huaweicloudsdkcae.v1.model.update_monitor_system_response import UpdateMonitorSystemResponse
|
|
187
197
|
from huaweicloudsdkcae.v1.model.update_spec_cert import UpdateSpecCert
|
|
188
198
|
from huaweicloudsdkcae.v1.model.update_timer_rule_details import UpdateTimerRuleDetails
|
|
189
199
|
from huaweicloudsdkcae.v1.model.update_timer_rule_req import UpdateTimerRuleReq
|
|
@@ -2248,6 +2248,213 @@ class CaeAsyncClient(Client):
|
|
|
2248
2248
|
|
|
2249
2249
|
return http_info
|
|
2250
2250
|
|
|
2251
|
+
def create_monitor_system_async(self, request):
|
|
2252
|
+
"""创建监控系统配置
|
|
2253
|
+
|
|
2254
|
+
创建监控系统配置。
|
|
2255
|
+
|
|
2256
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2257
|
+
|
|
2258
|
+
|
|
2259
|
+
:param request: Request instance for CreateMonitorSystem
|
|
2260
|
+
:type request: :class:`huaweicloudsdkcae.v1.CreateMonitorSystemRequest`
|
|
2261
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateMonitorSystemResponse`
|
|
2262
|
+
"""
|
|
2263
|
+
http_info = self._create_monitor_system_http_info(request)
|
|
2264
|
+
return self._call_api(**http_info)
|
|
2265
|
+
|
|
2266
|
+
def create_monitor_system_async_invoker(self, request):
|
|
2267
|
+
http_info = self._create_monitor_system_http_info(request)
|
|
2268
|
+
return AsyncInvoker(self, http_info)
|
|
2269
|
+
|
|
2270
|
+
def _create_monitor_system_http_info(self, request):
|
|
2271
|
+
http_info = {
|
|
2272
|
+
"method": "POST",
|
|
2273
|
+
"resource_path": "/v1/{project_id}/cae/monitor-system",
|
|
2274
|
+
"request_type": request.__class__.__name__,
|
|
2275
|
+
"response_type": "CreateMonitorSystemResponse"
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2279
|
+
|
|
2280
|
+
cname = None
|
|
2281
|
+
|
|
2282
|
+
collection_formats = {}
|
|
2283
|
+
|
|
2284
|
+
path_params = {}
|
|
2285
|
+
|
|
2286
|
+
query_params = []
|
|
2287
|
+
|
|
2288
|
+
header_params = {}
|
|
2289
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2290
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2291
|
+
if 'x_environment_id' in local_var_params:
|
|
2292
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2293
|
+
|
|
2294
|
+
form_params = {}
|
|
2295
|
+
|
|
2296
|
+
body = None
|
|
2297
|
+
if 'body' in local_var_params:
|
|
2298
|
+
body = local_var_params['body']
|
|
2299
|
+
if isinstance(request, SdkStreamRequest):
|
|
2300
|
+
body = request.get_file_stream()
|
|
2301
|
+
|
|
2302
|
+
response_headers = []
|
|
2303
|
+
|
|
2304
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2305
|
+
['application/json'])
|
|
2306
|
+
|
|
2307
|
+
auth_settings = []
|
|
2308
|
+
|
|
2309
|
+
http_info["cname"] = cname
|
|
2310
|
+
http_info["collection_formats"] = collection_formats
|
|
2311
|
+
http_info["path_params"] = path_params
|
|
2312
|
+
http_info["query_params"] = query_params
|
|
2313
|
+
http_info["header_params"] = header_params
|
|
2314
|
+
http_info["post_params"] = form_params
|
|
2315
|
+
http_info["body"] = body
|
|
2316
|
+
http_info["response_headers"] = response_headers
|
|
2317
|
+
|
|
2318
|
+
return http_info
|
|
2319
|
+
|
|
2320
|
+
def show_monitor_system_async(self, request):
|
|
2321
|
+
"""获取监控系统配置
|
|
2322
|
+
|
|
2323
|
+
获取监控系统配置。
|
|
2324
|
+
|
|
2325
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2326
|
+
|
|
2327
|
+
|
|
2328
|
+
:param request: Request instance for ShowMonitorSystem
|
|
2329
|
+
:type request: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemRequest`
|
|
2330
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemResponse`
|
|
2331
|
+
"""
|
|
2332
|
+
http_info = self._show_monitor_system_http_info(request)
|
|
2333
|
+
return self._call_api(**http_info)
|
|
2334
|
+
|
|
2335
|
+
def show_monitor_system_async_invoker(self, request):
|
|
2336
|
+
http_info = self._show_monitor_system_http_info(request)
|
|
2337
|
+
return AsyncInvoker(self, http_info)
|
|
2338
|
+
|
|
2339
|
+
def _show_monitor_system_http_info(self, request):
|
|
2340
|
+
http_info = {
|
|
2341
|
+
"method": "GET",
|
|
2342
|
+
"resource_path": "/v1/{project_id}/cae/monitor-system",
|
|
2343
|
+
"request_type": request.__class__.__name__,
|
|
2344
|
+
"response_type": "ShowMonitorSystemResponse"
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2348
|
+
|
|
2349
|
+
cname = None
|
|
2350
|
+
|
|
2351
|
+
collection_formats = {}
|
|
2352
|
+
|
|
2353
|
+
path_params = {}
|
|
2354
|
+
|
|
2355
|
+
query_params = []
|
|
2356
|
+
|
|
2357
|
+
header_params = {}
|
|
2358
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2359
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2360
|
+
if 'x_environment_id' in local_var_params:
|
|
2361
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2362
|
+
|
|
2363
|
+
form_params = {}
|
|
2364
|
+
|
|
2365
|
+
body = None
|
|
2366
|
+
if isinstance(request, SdkStreamRequest):
|
|
2367
|
+
body = request.get_file_stream()
|
|
2368
|
+
|
|
2369
|
+
response_headers = []
|
|
2370
|
+
|
|
2371
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2372
|
+
['application/json'])
|
|
2373
|
+
|
|
2374
|
+
auth_settings = []
|
|
2375
|
+
|
|
2376
|
+
http_info["cname"] = cname
|
|
2377
|
+
http_info["collection_formats"] = collection_formats
|
|
2378
|
+
http_info["path_params"] = path_params
|
|
2379
|
+
http_info["query_params"] = query_params
|
|
2380
|
+
http_info["header_params"] = header_params
|
|
2381
|
+
http_info["post_params"] = form_params
|
|
2382
|
+
http_info["body"] = body
|
|
2383
|
+
http_info["response_headers"] = response_headers
|
|
2384
|
+
|
|
2385
|
+
return http_info
|
|
2386
|
+
|
|
2387
|
+
def update_monitor_system_async(self, request):
|
|
2388
|
+
"""更新监控系统配置
|
|
2389
|
+
|
|
2390
|
+
更新监控系统配置。
|
|
2391
|
+
|
|
2392
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2393
|
+
|
|
2394
|
+
|
|
2395
|
+
:param request: Request instance for UpdateMonitorSystem
|
|
2396
|
+
:type request: :class:`huaweicloudsdkcae.v1.UpdateMonitorSystemRequest`
|
|
2397
|
+
:rtype: :class:`huaweicloudsdkcae.v1.UpdateMonitorSystemResponse`
|
|
2398
|
+
"""
|
|
2399
|
+
http_info = self._update_monitor_system_http_info(request)
|
|
2400
|
+
return self._call_api(**http_info)
|
|
2401
|
+
|
|
2402
|
+
def update_monitor_system_async_invoker(self, request):
|
|
2403
|
+
http_info = self._update_monitor_system_http_info(request)
|
|
2404
|
+
return AsyncInvoker(self, http_info)
|
|
2405
|
+
|
|
2406
|
+
def _update_monitor_system_http_info(self, request):
|
|
2407
|
+
http_info = {
|
|
2408
|
+
"method": "PUT",
|
|
2409
|
+
"resource_path": "/v1/{project_id}/cae/monitor-system/{monitor_system_id}",
|
|
2410
|
+
"request_type": request.__class__.__name__,
|
|
2411
|
+
"response_type": "UpdateMonitorSystemResponse"
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2415
|
+
|
|
2416
|
+
cname = None
|
|
2417
|
+
|
|
2418
|
+
collection_formats = {}
|
|
2419
|
+
|
|
2420
|
+
path_params = {}
|
|
2421
|
+
if 'monitor_system_id' in local_var_params:
|
|
2422
|
+
path_params['monitor_system_id'] = local_var_params['monitor_system_id']
|
|
2423
|
+
|
|
2424
|
+
query_params = []
|
|
2425
|
+
|
|
2426
|
+
header_params = {}
|
|
2427
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2428
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2429
|
+
if 'x_environment_id' in local_var_params:
|
|
2430
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2431
|
+
|
|
2432
|
+
form_params = {}
|
|
2433
|
+
|
|
2434
|
+
body = None
|
|
2435
|
+
if 'body' in local_var_params:
|
|
2436
|
+
body = local_var_params['body']
|
|
2437
|
+
if isinstance(request, SdkStreamRequest):
|
|
2438
|
+
body = request.get_file_stream()
|
|
2439
|
+
|
|
2440
|
+
response_headers = []
|
|
2441
|
+
|
|
2442
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2443
|
+
['application/json'])
|
|
2444
|
+
|
|
2445
|
+
auth_settings = []
|
|
2446
|
+
|
|
2447
|
+
http_info["cname"] = cname
|
|
2448
|
+
http_info["collection_formats"] = collection_formats
|
|
2449
|
+
http_info["path_params"] = path_params
|
|
2450
|
+
http_info["query_params"] = query_params
|
|
2451
|
+
http_info["header_params"] = header_params
|
|
2452
|
+
http_info["post_params"] = form_params
|
|
2453
|
+
http_info["body"] = body
|
|
2454
|
+
http_info["response_headers"] = response_headers
|
|
2455
|
+
|
|
2456
|
+
return http_info
|
|
2457
|
+
|
|
2251
2458
|
def create_volume_async(self, request):
|
|
2252
2459
|
"""授权云存储
|
|
2253
2460
|
|
|
@@ -2248,6 +2248,213 @@ class CaeClient(Client):
|
|
|
2248
2248
|
|
|
2249
2249
|
return http_info
|
|
2250
2250
|
|
|
2251
|
+
def create_monitor_system(self, request):
|
|
2252
|
+
"""创建监控系统配置
|
|
2253
|
+
|
|
2254
|
+
创建监控系统配置。
|
|
2255
|
+
|
|
2256
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2257
|
+
|
|
2258
|
+
:param request: Request instance for CreateMonitorSystem
|
|
2259
|
+
:type request: :class:`huaweicloudsdkcae.v1.CreateMonitorSystemRequest`
|
|
2260
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateMonitorSystemResponse`
|
|
2261
|
+
"""
|
|
2262
|
+
http_info = self._create_monitor_system_http_info(request)
|
|
2263
|
+
return self._call_api(**http_info)
|
|
2264
|
+
|
|
2265
|
+
def create_monitor_system_invoker(self, request):
|
|
2266
|
+
http_info = self._create_monitor_system_http_info(request)
|
|
2267
|
+
return SyncInvoker(self, http_info)
|
|
2268
|
+
|
|
2269
|
+
@classmethod
|
|
2270
|
+
def _create_monitor_system_http_info(cls, request):
|
|
2271
|
+
http_info = {
|
|
2272
|
+
"method": "POST",
|
|
2273
|
+
"resource_path": "/v1/{project_id}/cae/monitor-system",
|
|
2274
|
+
"request_type": request.__class__.__name__,
|
|
2275
|
+
"response_type": "CreateMonitorSystemResponse"
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2279
|
+
|
|
2280
|
+
cname = None
|
|
2281
|
+
|
|
2282
|
+
collection_formats = {}
|
|
2283
|
+
|
|
2284
|
+
path_params = {}
|
|
2285
|
+
|
|
2286
|
+
query_params = []
|
|
2287
|
+
|
|
2288
|
+
header_params = {}
|
|
2289
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2290
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2291
|
+
if 'x_environment_id' in local_var_params:
|
|
2292
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2293
|
+
|
|
2294
|
+
form_params = {}
|
|
2295
|
+
|
|
2296
|
+
body = None
|
|
2297
|
+
if 'body' in local_var_params:
|
|
2298
|
+
body = local_var_params['body']
|
|
2299
|
+
if isinstance(request, SdkStreamRequest):
|
|
2300
|
+
body = request.get_file_stream()
|
|
2301
|
+
|
|
2302
|
+
response_headers = []
|
|
2303
|
+
|
|
2304
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2305
|
+
['application/json'])
|
|
2306
|
+
|
|
2307
|
+
auth_settings = []
|
|
2308
|
+
|
|
2309
|
+
http_info["cname"] = cname
|
|
2310
|
+
http_info["collection_formats"] = collection_formats
|
|
2311
|
+
http_info["path_params"] = path_params
|
|
2312
|
+
http_info["query_params"] = query_params
|
|
2313
|
+
http_info["header_params"] = header_params
|
|
2314
|
+
http_info["post_params"] = form_params
|
|
2315
|
+
http_info["body"] = body
|
|
2316
|
+
http_info["response_headers"] = response_headers
|
|
2317
|
+
|
|
2318
|
+
return http_info
|
|
2319
|
+
|
|
2320
|
+
def show_monitor_system(self, request):
|
|
2321
|
+
"""获取监控系统配置
|
|
2322
|
+
|
|
2323
|
+
获取监控系统配置。
|
|
2324
|
+
|
|
2325
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2326
|
+
|
|
2327
|
+
:param request: Request instance for ShowMonitorSystem
|
|
2328
|
+
:type request: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemRequest`
|
|
2329
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemResponse`
|
|
2330
|
+
"""
|
|
2331
|
+
http_info = self._show_monitor_system_http_info(request)
|
|
2332
|
+
return self._call_api(**http_info)
|
|
2333
|
+
|
|
2334
|
+
def show_monitor_system_invoker(self, request):
|
|
2335
|
+
http_info = self._show_monitor_system_http_info(request)
|
|
2336
|
+
return SyncInvoker(self, http_info)
|
|
2337
|
+
|
|
2338
|
+
@classmethod
|
|
2339
|
+
def _show_monitor_system_http_info(cls, request):
|
|
2340
|
+
http_info = {
|
|
2341
|
+
"method": "GET",
|
|
2342
|
+
"resource_path": "/v1/{project_id}/cae/monitor-system",
|
|
2343
|
+
"request_type": request.__class__.__name__,
|
|
2344
|
+
"response_type": "ShowMonitorSystemResponse"
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2348
|
+
|
|
2349
|
+
cname = None
|
|
2350
|
+
|
|
2351
|
+
collection_formats = {}
|
|
2352
|
+
|
|
2353
|
+
path_params = {}
|
|
2354
|
+
|
|
2355
|
+
query_params = []
|
|
2356
|
+
|
|
2357
|
+
header_params = {}
|
|
2358
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2359
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2360
|
+
if 'x_environment_id' in local_var_params:
|
|
2361
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2362
|
+
|
|
2363
|
+
form_params = {}
|
|
2364
|
+
|
|
2365
|
+
body = None
|
|
2366
|
+
if isinstance(request, SdkStreamRequest):
|
|
2367
|
+
body = request.get_file_stream()
|
|
2368
|
+
|
|
2369
|
+
response_headers = []
|
|
2370
|
+
|
|
2371
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2372
|
+
['application/json'])
|
|
2373
|
+
|
|
2374
|
+
auth_settings = []
|
|
2375
|
+
|
|
2376
|
+
http_info["cname"] = cname
|
|
2377
|
+
http_info["collection_formats"] = collection_formats
|
|
2378
|
+
http_info["path_params"] = path_params
|
|
2379
|
+
http_info["query_params"] = query_params
|
|
2380
|
+
http_info["header_params"] = header_params
|
|
2381
|
+
http_info["post_params"] = form_params
|
|
2382
|
+
http_info["body"] = body
|
|
2383
|
+
http_info["response_headers"] = response_headers
|
|
2384
|
+
|
|
2385
|
+
return http_info
|
|
2386
|
+
|
|
2387
|
+
def update_monitor_system(self, request):
|
|
2388
|
+
"""更新监控系统配置
|
|
2389
|
+
|
|
2390
|
+
更新监控系统配置。
|
|
2391
|
+
|
|
2392
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2393
|
+
|
|
2394
|
+
:param request: Request instance for UpdateMonitorSystem
|
|
2395
|
+
:type request: :class:`huaweicloudsdkcae.v1.UpdateMonitorSystemRequest`
|
|
2396
|
+
:rtype: :class:`huaweicloudsdkcae.v1.UpdateMonitorSystemResponse`
|
|
2397
|
+
"""
|
|
2398
|
+
http_info = self._update_monitor_system_http_info(request)
|
|
2399
|
+
return self._call_api(**http_info)
|
|
2400
|
+
|
|
2401
|
+
def update_monitor_system_invoker(self, request):
|
|
2402
|
+
http_info = self._update_monitor_system_http_info(request)
|
|
2403
|
+
return SyncInvoker(self, http_info)
|
|
2404
|
+
|
|
2405
|
+
@classmethod
|
|
2406
|
+
def _update_monitor_system_http_info(cls, request):
|
|
2407
|
+
http_info = {
|
|
2408
|
+
"method": "PUT",
|
|
2409
|
+
"resource_path": "/v1/{project_id}/cae/monitor-system/{monitor_system_id}",
|
|
2410
|
+
"request_type": request.__class__.__name__,
|
|
2411
|
+
"response_type": "UpdateMonitorSystemResponse"
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2415
|
+
|
|
2416
|
+
cname = None
|
|
2417
|
+
|
|
2418
|
+
collection_formats = {}
|
|
2419
|
+
|
|
2420
|
+
path_params = {}
|
|
2421
|
+
if 'monitor_system_id' in local_var_params:
|
|
2422
|
+
path_params['monitor_system_id'] = local_var_params['monitor_system_id']
|
|
2423
|
+
|
|
2424
|
+
query_params = []
|
|
2425
|
+
|
|
2426
|
+
header_params = {}
|
|
2427
|
+
if 'x_enterprise_project_id' in local_var_params:
|
|
2428
|
+
header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
|
|
2429
|
+
if 'x_environment_id' in local_var_params:
|
|
2430
|
+
header_params['X-Environment-ID'] = local_var_params['x_environment_id']
|
|
2431
|
+
|
|
2432
|
+
form_params = {}
|
|
2433
|
+
|
|
2434
|
+
body = None
|
|
2435
|
+
if 'body' in local_var_params:
|
|
2436
|
+
body = local_var_params['body']
|
|
2437
|
+
if isinstance(request, SdkStreamRequest):
|
|
2438
|
+
body = request.get_file_stream()
|
|
2439
|
+
|
|
2440
|
+
response_headers = []
|
|
2441
|
+
|
|
2442
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2443
|
+
['application/json'])
|
|
2444
|
+
|
|
2445
|
+
auth_settings = []
|
|
2446
|
+
|
|
2447
|
+
http_info["cname"] = cname
|
|
2448
|
+
http_info["collection_formats"] = collection_formats
|
|
2449
|
+
http_info["path_params"] = path_params
|
|
2450
|
+
http_info["query_params"] = query_params
|
|
2451
|
+
http_info["header_params"] = header_params
|
|
2452
|
+
http_info["post_params"] = form_params
|
|
2453
|
+
http_info["body"] = body
|
|
2454
|
+
http_info["response_headers"] = response_headers
|
|
2455
|
+
|
|
2456
|
+
return http_info
|
|
2457
|
+
|
|
2251
2458
|
def create_volume(self, request):
|
|
2252
2459
|
"""授权云存储
|
|
2253
2460
|
|
|
@@ -69,6 +69,8 @@ from huaweicloudsdkcae.v1.model.create_environment_request_body_metadata import
|
|
|
69
69
|
from huaweicloudsdkcae.v1.model.create_environment_response import CreateEnvironmentResponse
|
|
70
70
|
from huaweicloudsdkcae.v1.model.create_meta_cert import CreateMetaCert
|
|
71
71
|
from huaweicloudsdkcae.v1.model.create_meta_domain import CreateMetaDomain
|
|
72
|
+
from huaweicloudsdkcae.v1.model.create_monitor_system_request import CreateMonitorSystemRequest
|
|
73
|
+
from huaweicloudsdkcae.v1.model.create_monitor_system_response import CreateMonitorSystemResponse
|
|
72
74
|
from huaweicloudsdkcae.v1.model.create_spec_cert import CreateSpecCert
|
|
73
75
|
from huaweicloudsdkcae.v1.model.create_timer_rule_req import CreateTimerRuleReq
|
|
74
76
|
from huaweicloudsdkcae.v1.model.create_timer_rule_request import CreateTimerRuleRequest
|
|
@@ -147,6 +149,9 @@ from huaweicloudsdkcae.v1.model.list_volumes_response import ListVolumesResponse
|
|
|
147
149
|
from huaweicloudsdkcae.v1.model.meta_cert import MetaCert
|
|
148
150
|
from huaweicloudsdkcae.v1.model.meta_domain import MetaDomain
|
|
149
151
|
from huaweicloudsdkcae.v1.model.metadata_response import MetadataResponse
|
|
152
|
+
from huaweicloudsdkcae.v1.model.monitor_system_kind_obj import MonitorSystemKindObj
|
|
153
|
+
from huaweicloudsdkcae.v1.model.monitor_system_request_body import MonitorSystemRequestBody
|
|
154
|
+
from huaweicloudsdkcae.v1.model.monitor_system_request_body_spec import MonitorSystemRequestBodySpec
|
|
150
155
|
from huaweicloudsdkcae.v1.model.mount_component import MountComponent
|
|
151
156
|
from huaweicloudsdkcae.v1.model.repo import Repo
|
|
152
157
|
from huaweicloudsdkcae.v1.model.resource_limit import ResourceLimit
|
|
@@ -163,6 +168,9 @@ from huaweicloudsdkcae.v1.model.show_execution_result_request import ShowExecuti
|
|
|
163
168
|
from huaweicloudsdkcae.v1.model.show_execution_result_response import ShowExecutionResultResponse
|
|
164
169
|
from huaweicloudsdkcae.v1.model.show_job_request import ShowJobRequest
|
|
165
170
|
from huaweicloudsdkcae.v1.model.show_job_response import ShowJobResponse
|
|
171
|
+
from huaweicloudsdkcae.v1.model.show_monitor_system_request import ShowMonitorSystemRequest
|
|
172
|
+
from huaweicloudsdkcae.v1.model.show_monitor_system_response import ShowMonitorSystemResponse
|
|
173
|
+
from huaweicloudsdkcae.v1.model.show_monitor_system_response_body_spec import ShowMonitorSystemResponseBodySpec
|
|
166
174
|
from huaweicloudsdkcae.v1.model.source import Source
|
|
167
175
|
from huaweicloudsdkcae.v1.model.spec_cert import SpecCert
|
|
168
176
|
from huaweicloudsdkcae.v1.model.task import Task
|
|
@@ -182,6 +190,8 @@ from huaweicloudsdkcae.v1.model.update_eip_request_body_spec import UpdateEipReq
|
|
|
182
190
|
from huaweicloudsdkcae.v1.model.update_eip_request_body_spec_egress import UpdateEipRequestBodySpecEgress
|
|
183
191
|
from huaweicloudsdkcae.v1.model.update_eip_request_body_spec_ingress import UpdateEipRequestBodySpecIngress
|
|
184
192
|
from huaweicloudsdkcae.v1.model.update_eip_response import UpdateEipResponse
|
|
193
|
+
from huaweicloudsdkcae.v1.model.update_monitor_system_request import UpdateMonitorSystemRequest
|
|
194
|
+
from huaweicloudsdkcae.v1.model.update_monitor_system_response import UpdateMonitorSystemResponse
|
|
185
195
|
from huaweicloudsdkcae.v1.model.update_spec_cert import UpdateSpecCert
|
|
186
196
|
from huaweicloudsdkcae.v1.model.update_timer_rule_details import UpdateTimerRuleDetails
|
|
187
197
|
from huaweicloudsdkcae.v1.model.update_timer_rule_req import UpdateTimerRuleReq
|