volcengine-python-sdk 4.0.23__py2.py3-none-any.whl → 4.0.24__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 volcengine-python-sdk might be problematic. Click here for more details.
- {volcengine_python_sdk-4.0.23.dist-info → volcengine_python_sdk-4.0.24.dist-info}/METADATA +1 -1
- {volcengine_python_sdk-4.0.23.dist-info → volcengine_python_sdk-4.0.24.dist-info}/RECORD +208 -37
- {volcengine_python_sdk-4.0.23.dist-info → volcengine_python_sdk-4.0.24.dist-info}/top_level.txt +3 -0
- volcenginesdkcore/api_client.py +1 -1
- volcenginesdkcore/configuration.py +1 -1
- volcenginesdkdirectconnect/models/create_direct_connect_gateway_request.py +27 -1
- volcenginesdkdirectconnect/models/delete_direct_connect_traffic_qos_queue_request.py +16 -16
- volcenginesdkdirectconnect/models/describe_direct_connect_gateway_attributes_response.py +27 -1
- volcenginesdkdirectconnect/models/models.py +192 -192
- volcenginesdkdms20250101/__init__.py +85 -0
- volcenginesdkdms20250101/api/__init__.py +6 -0
- volcenginesdkdms20250101/api/dms20250101_api.py +1974 -0
- volcenginesdkdms20250101/models/__init__.py +81 -0
- volcenginesdkdms20250101/models/address_access_config_for_create_address_input.py +149 -0
- volcenginesdkdms20250101/models/address_access_config_for_get_address_output.py +149 -0
- volcenginesdkdms20250101/models/address_access_config_for_list_addresses_output.py +149 -0
- volcenginesdkdms20250101/models/create_address_request.py +211 -0
- volcenginesdkdms20250101/models/create_address_response.py +149 -0
- volcenginesdkdms20250101/models/create_agent_group_request.py +226 -0
- volcenginesdkdms20250101/models/create_agent_group_response.py +149 -0
- volcenginesdkdms20250101/models/create_agent_request.py +185 -0
- volcenginesdkdms20250101/models/create_agent_response.py +149 -0
- volcenginesdkdms20250101/models/create_task_request.py +264 -0
- volcenginesdkdms20250101/models/create_task_response.py +149 -0
- volcenginesdkdms20250101/models/delete_address_request.py +124 -0
- volcenginesdkdms20250101/models/delete_address_response.py +149 -0
- volcenginesdkdms20250101/models/delete_agent_group_request.py +124 -0
- volcenginesdkdms20250101/models/delete_agent_group_response.py +149 -0
- volcenginesdkdms20250101/models/delete_agent_request.py +124 -0
- volcenginesdkdms20250101/models/delete_agent_response.py +149 -0
- volcenginesdkdms20250101/models/delete_task_request.py +124 -0
- volcenginesdkdms20250101/models/delete_task_response.py +149 -0
- volcenginesdkdms20250101/models/get_address_request.py +124 -0
- volcenginesdkdms20250101/models/get_address_response.py +305 -0
- volcenginesdkdms20250101/models/get_agent_group_request.py +124 -0
- volcenginesdkdms20250101/models/get_agent_group_response.py +305 -0
- volcenginesdkdms20250101/models/get_agent_group_status_request.py +124 -0
- volcenginesdkdms20250101/models/get_agent_group_status_response.py +149 -0
- volcenginesdkdms20250101/models/get_agent_request.py +124 -0
- volcenginesdkdms20250101/models/get_agent_response.py +331 -0
- volcenginesdkdms20250101/models/get_real_time_statistics_request.py +150 -0
- volcenginesdkdms20250101/models/get_real_time_statistics_response.py +487 -0
- volcenginesdkdms20250101/models/get_task_request.py +124 -0
- volcenginesdkdms20250101/models/get_task_response.py +409 -0
- volcenginesdkdms20250101/models/item_list_for_list_addresses_output.py +305 -0
- volcenginesdkdms20250101/models/item_list_for_list_agent_groups_output.py +279 -0
- volcenginesdkdms20250101/models/item_list_for_list_agents_output.py +331 -0
- volcenginesdkdms20250101/models/item_list_for_list_tasks_output.py +409 -0
- volcenginesdkdms20250101/models/list_addresses_request.py +203 -0
- volcenginesdkdms20250101/models/list_addresses_response.py +175 -0
- volcenginesdkdms20250101/models/list_agent_groups_request.py +204 -0
- volcenginesdkdms20250101/models/list_agent_groups_response.py +175 -0
- volcenginesdkdms20250101/models/list_agents_request.py +204 -0
- volcenginesdkdms20250101/models/list_agents_response.py +175 -0
- volcenginesdkdms20250101/models/list_config_for_create_task_input.py +227 -0
- volcenginesdkdms20250101/models/list_config_for_get_task_output.py +227 -0
- volcenginesdkdms20250101/models/list_config_for_list_tasks_output.py +227 -0
- volcenginesdkdms20250101/models/list_include_bucket_keys_for_create_task_input.py +201 -0
- volcenginesdkdms20250101/models/list_include_bucket_keys_for_get_task_output.py +201 -0
- volcenginesdkdms20250101/models/list_include_bucket_keys_for_list_tasks_output.py +201 -0
- volcenginesdkdms20250101/models/list_tasks_request.py +204 -0
- volcenginesdkdms20250101/models/list_tasks_response.py +175 -0
- volcenginesdkdms20250101/models/local_fs_for_create_address_input.py +123 -0
- volcenginesdkdms20250101/models/local_fs_for_get_address_output.py +123 -0
- volcenginesdkdms20250101/models/local_fs_for_list_addresses_output.py +123 -0
- volcenginesdkdms20250101/models/retry_failed_task_request.py +124 -0
- volcenginesdkdms20250101/models/retry_failed_task_response.py +149 -0
- volcenginesdkdms20250101/models/task_config_for_create_task_input.py +215 -0
- volcenginesdkdms20250101/models/task_config_for_get_task_output.py +201 -0
- volcenginesdkdms20250101/models/task_config_for_list_tasks_output.py +201 -0
- volcenginesdkdms20250101/models/task_context_for_get_task_output.py +149 -0
- volcenginesdkdms20250101/models/task_context_for_list_tasks_output.py +149 -0
- volcenginesdkdms20250101/models/tos_for_create_address_input.py +201 -0
- volcenginesdkdms20250101/models/tos_for_get_address_output.py +201 -0
- volcenginesdkdms20250101/models/tos_for_list_addresses_output.py +201 -0
- volcenginesdkdms20250101/models/update_task_request.py +183 -0
- volcenginesdkdms20250101/models/update_task_response.py +149 -0
- volcenginesdkdts20180101/__init__.py +32 -0
- volcenginesdkdts20180101/api/__init__.py +6 -0
- volcenginesdkdts20180101/api/dts20180101_api.py +422 -0
- volcenginesdkdts20180101/models/__init__.py +28 -0
- volcenginesdkdts20180101/models/data_for_list_vpc_output.py +149 -0
- volcenginesdkdts20180101/models/get_async_pre_check_result_request.py +124 -0
- volcenginesdkdts20180101/models/get_async_pre_check_result_response.py +201 -0
- volcenginesdkdts20180101/models/list_vpc_request.py +95 -0
- volcenginesdkdts20180101/models/list_vpc_response.py +149 -0
- volcenginesdkdts20180101/models/list_vpc_subnets_request.py +124 -0
- volcenginesdkdts20180101/models/list_vpc_subnets_response.py +149 -0
- volcenginesdkdts20180101/models/pre_check_async_request.py +124 -0
- volcenginesdkdts20180101/models/pre_check_async_response.py +123 -0
- volcenginesdkdts20180101/models/pre_check_for_get_async_pre_check_result_output.py +227 -0
- volcenginesdkdts20180101/models/vpc_subnet_info_for_list_vpc_subnets_output.py +149 -0
- volcenginesdkna/__init__.py +33 -0
- volcenginesdkna/api/__init__.py +6 -0
- volcenginesdkna/api/na_api.py +422 -0
- volcenginesdkna/models/__init__.py +29 -0
- volcenginesdkna/models/create_diagnosis_instance_request.py +178 -0
- volcenginesdkna/models/create_diagnosis_instance_response.py +149 -0
- volcenginesdkna/models/describe_diagnosis_instance_detail_request.py +124 -0
- volcenginesdkna/models/describe_diagnosis_instance_detail_response.py +383 -0
- volcenginesdkna/models/describe_diagnosis_instances_request.py +149 -0
- volcenginesdkna/models/describe_diagnosis_instances_response.py +227 -0
- volcenginesdkna/models/describe_history_diagnosis_request.py +124 -0
- volcenginesdkna/models/describe_history_diagnosis_response.py +123 -0
- volcenginesdkna/models/diagnosis_category_item_for_describe_diagnosis_instance_detail_output.py +149 -0
- volcenginesdkna/models/diagnosis_instance_for_describe_diagnosis_instances_output.py +357 -0
- volcenginesdkna/models/diagnosis_item_for_describe_diagnosis_instance_detail_output.py +201 -0
- volcenginesdkna/models/history_diagnosis_for_describe_history_diagnosis_output.py +175 -0
- volcenginesdkvefaas/models/create_function_request.py +53 -1
- volcenginesdkvefaas/models/create_function_response.py +53 -1
- volcenginesdkvefaas/models/get_function_response.py +53 -1
- volcenginesdkvefaas/models/item_for_list_functions_output.py +27 -1
- volcenginesdkvefaas/models/update_function_request.py +53 -1
- volcenginesdkvefaas/models/update_function_response.py +27 -1
- volcenginesdkvmp/__init__.py +72 -0
- volcenginesdkvmp/api/vmp_api.py +1339 -78
- volcenginesdkvmp/models/__init__.py +72 -0
- volcenginesdkvmp/models/cal_charge_item_list_for_get_workspace_output.py +149 -0
- volcenginesdkvmp/models/cal_charge_item_list_for_list_workspace_instance_types_output.py +149 -0
- volcenginesdkvmp/models/calculate_price_param_for_get_workspace_output.py +175 -0
- volcenginesdkvmp/models/calculate_price_param_for_list_workspace_instance_types_output.py +175 -0
- volcenginesdkvmp/models/conditions_for_list_integration_tasks_output.py +175 -0
- volcenginesdkvmp/models/create_alerting_rule_request.py +53 -1
- volcenginesdkvmp/models/create_integration_task_request.py +334 -0
- volcenginesdkvmp/models/create_integration_task_response.py +123 -0
- volcenginesdkvmp/models/create_rule_file_request.py +27 -1
- volcenginesdkvmp/models/create_silence_policy_request.py +202 -0
- volcenginesdkvmp/models/create_silence_policy_response.py +123 -0
- volcenginesdkvmp/models/create_workspace_request.py +27 -1
- volcenginesdkvmp/models/data_for_delete_silence_policies_output.py +95 -0
- volcenginesdkvmp/models/data_for_disable_integration_tasks_output.py +95 -0
- volcenginesdkvmp/models/data_for_disable_silence_policies_output.py +95 -0
- volcenginesdkvmp/models/data_for_enable_integration_tasks_output.py +95 -0
- volcenginesdkvmp/models/data_for_enable_silence_policies_output.py +95 -0
- volcenginesdkvmp/models/delete_integration_task_request.py +124 -0
- volcenginesdkvmp/models/delete_integration_task_response.py +123 -0
- volcenginesdkvmp/models/delete_silence_policies_request.py +123 -0
- volcenginesdkvmp/models/delete_silence_policies_response.py +149 -0
- volcenginesdkvmp/models/disable_integration_tasks_request.py +123 -0
- volcenginesdkvmp/models/disable_integration_tasks_response.py +149 -0
- volcenginesdkvmp/models/disable_silence_policies_request.py +123 -0
- volcenginesdkvmp/models/disable_silence_policies_response.py +149 -0
- volcenginesdkvmp/models/enable_integration_tasks_request.py +123 -0
- volcenginesdkvmp/models/enable_integration_tasks_response.py +149 -0
- volcenginesdkvmp/models/enable_silence_policies_request.py +123 -0
- volcenginesdkvmp/models/enable_silence_policies_response.py +149 -0
- volcenginesdkvmp/models/error_for_delete_silence_policies_output.py +175 -0
- volcenginesdkvmp/models/error_for_disable_integration_tasks_output.py +175 -0
- volcenginesdkvmp/models/error_for_disable_silence_policies_output.py +175 -0
- volcenginesdkvmp/models/error_for_enable_integration_tasks_output.py +175 -0
- volcenginesdkvmp/models/error_for_enable_silence_policies_output.py +175 -0
- volcenginesdkvmp/models/filter_for_list_silence_policies_input.py +201 -0
- volcenginesdkvmp/models/filters_for_list_integration_tasks_input.py +279 -0
- volcenginesdkvmp/models/get_alerting_rule_response.py +53 -1
- volcenginesdkvmp/models/get_integration_task_request.py +124 -0
- volcenginesdkvmp/models/get_integration_task_response.py +409 -0
- volcenginesdkvmp/models/get_rule_file_response.py +29 -3
- volcenginesdkvmp/models/get_workspace_response.py +105 -1
- volcenginesdkvmp/models/instance_type_for_get_workspace_output.py +27 -1
- volcenginesdkvmp/models/item_for_list_alerting_rules_output.py +53 -1
- volcenginesdkvmp/models/item_for_list_integration_tasks_output.py +409 -0
- volcenginesdkvmp/models/item_for_list_rule_files_output.py +29 -3
- volcenginesdkvmp/models/item_for_list_silence_policies_output.py +357 -0
- volcenginesdkvmp/models/item_for_list_workspace_instance_types_output.py +27 -1
- volcenginesdkvmp/models/item_for_list_workspaces_output.py +131 -1
- volcenginesdkvmp/models/list_alerting_rules_request.py +55 -3
- volcenginesdkvmp/models/list_integration_tasks_request.py +227 -0
- volcenginesdkvmp/models/list_integration_tasks_response.py +149 -0
- volcenginesdkvmp/models/list_silence_policies_request.py +227 -0
- volcenginesdkvmp/models/list_silence_policies_response.py +149 -0
- volcenginesdkvmp/models/matcher_for_create_silence_policy_input.py +175 -0
- volcenginesdkvmp/models/matcher_for_list_silence_policies_output.py +175 -0
- volcenginesdkvmp/models/matcher_for_update_silence_policy_input.py +175 -0
- volcenginesdkvmp/models/metric_label_matcher_for_create_silence_policy_input.py +123 -0
- volcenginesdkvmp/models/metric_label_matcher_for_list_silence_policies_output.py +123 -0
- volcenginesdkvmp/models/metric_label_matcher_for_update_silence_policy_input.py +123 -0
- volcenginesdkvmp/models/periodic_date_for_create_silence_policy_input.py +175 -0
- volcenginesdkvmp/models/periodic_date_for_list_silence_policies_output.py +175 -0
- volcenginesdkvmp/models/periodic_date_for_update_silence_policy_input.py +175 -0
- volcenginesdkvmp/models/quota_for_get_workspace_output.py +53 -1
- volcenginesdkvmp/models/quota_for_update_workspace_input.py +53 -1
- volcenginesdkvmp/models/tag_filter_for_list_alerting_rules_input.py +149 -0
- volcenginesdkvmp/models/tag_filter_for_list_integration_tasks_input.py +149 -0
- volcenginesdkvmp/models/tag_for_create_alerting_rule_input.py +149 -0
- volcenginesdkvmp/models/tag_for_create_integration_task_input.py +149 -0
- volcenginesdkvmp/models/tag_for_get_alerting_rule_output.py +149 -0
- volcenginesdkvmp/models/tag_for_get_integration_task_output.py +149 -0
- volcenginesdkvmp/models/tag_for_list_alerting_rules_output.py +149 -0
- volcenginesdkvmp/models/tag_for_list_integration_tasks_output.py +149 -0
- volcenginesdkvmp/models/time_range_matcher_for_create_silence_policy_input.py +175 -0
- volcenginesdkvmp/models/time_range_matcher_for_list_silence_policies_output.py +175 -0
- volcenginesdkvmp/models/time_range_matcher_for_update_silence_policy_input.py +175 -0
- volcenginesdkvmp/models/unsuccessful_item_for_delete_silence_policies_output.py +149 -0
- volcenginesdkvmp/models/unsuccessful_item_for_disable_integration_tasks_output.py +149 -0
- volcenginesdkvmp/models/unsuccessful_item_for_disable_silence_policies_output.py +149 -0
- volcenginesdkvmp/models/unsuccessful_item_for_enable_integration_tasks_output.py +149 -0
- volcenginesdkvmp/models/unsuccessful_item_for_enable_silence_policies_output.py +149 -0
- volcenginesdkvmp/models/update_integration_task_request.py +202 -0
- volcenginesdkvmp/models/update_integration_task_response.py +123 -0
- volcenginesdkvmp/models/update_rule_file_request.py +27 -1
- volcenginesdkvmp/models/update_silence_policy_request.py +228 -0
- volcenginesdkvmp/models/update_silence_policy_response.py +123 -0
- volcenginesdkvmp/models/update_workspace_request.py +131 -1
- volcenginesdkvmp/models/vke_cluster_info_for_get_integration_task_output.py +149 -0
- volcenginesdkvmp/models/vke_cluster_info_for_list_integration_tasks_output.py +149 -0
- {volcengine_python_sdk-4.0.23.dist-info → volcengine_python_sdk-4.0.24.dist-info}/WHEEL +0 -0
- {volcengine_python_sdk-4.0.23.dist-info → volcengine_python_sdk-4.0.24.dist-info}/licenses/LICENSE.txt +0 -0
- {volcengine_python_sdk-4.0.23.dist-info → volcengine_python_sdk-4.0.24.dist-info}/licenses/NOTICE.md +0 -0
volcenginesdkvmp/api/vmp_api.py
CHANGED
|
@@ -324,6 +324,103 @@ class VMPApi(object):
|
|
|
324
324
|
_request_timeout=params.get('_request_timeout'),
|
|
325
325
|
collection_formats=collection_formats)
|
|
326
326
|
|
|
327
|
+
def create_integration_task(self, body, **kwargs): # noqa: E501
|
|
328
|
+
"""create_integration_task # noqa: E501
|
|
329
|
+
|
|
330
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
331
|
+
asynchronous HTTP request, please pass async_req=True
|
|
332
|
+
>>> thread = api.create_integration_task(body, async_req=True)
|
|
333
|
+
>>> result = thread.get()
|
|
334
|
+
|
|
335
|
+
:param async_req bool
|
|
336
|
+
:param CreateIntegrationTaskRequest body: (required)
|
|
337
|
+
:return: CreateIntegrationTaskResponse
|
|
338
|
+
If the method is called asynchronously,
|
|
339
|
+
returns the request thread.
|
|
340
|
+
"""
|
|
341
|
+
kwargs['_return_http_data_only'] = True
|
|
342
|
+
if kwargs.get('async_req'):
|
|
343
|
+
return self.create_integration_task_with_http_info(body, **kwargs) # noqa: E501
|
|
344
|
+
else:
|
|
345
|
+
(data) = self.create_integration_task_with_http_info(body, **kwargs) # noqa: E501
|
|
346
|
+
return data
|
|
347
|
+
|
|
348
|
+
def create_integration_task_with_http_info(self, body, **kwargs): # noqa: E501
|
|
349
|
+
"""create_integration_task # noqa: E501
|
|
350
|
+
|
|
351
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
352
|
+
asynchronous HTTP request, please pass async_req=True
|
|
353
|
+
>>> thread = api.create_integration_task_with_http_info(body, async_req=True)
|
|
354
|
+
>>> result = thread.get()
|
|
355
|
+
|
|
356
|
+
:param async_req bool
|
|
357
|
+
:param CreateIntegrationTaskRequest body: (required)
|
|
358
|
+
:return: CreateIntegrationTaskResponse
|
|
359
|
+
If the method is called asynchronously,
|
|
360
|
+
returns the request thread.
|
|
361
|
+
"""
|
|
362
|
+
|
|
363
|
+
all_params = ['body'] # noqa: E501
|
|
364
|
+
all_params.append('async_req')
|
|
365
|
+
all_params.append('_return_http_data_only')
|
|
366
|
+
all_params.append('_preload_content')
|
|
367
|
+
all_params.append('_request_timeout')
|
|
368
|
+
|
|
369
|
+
params = locals()
|
|
370
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
371
|
+
if key not in all_params:
|
|
372
|
+
raise TypeError(
|
|
373
|
+
"Got an unexpected keyword argument '%s'"
|
|
374
|
+
" to method create_integration_task" % key
|
|
375
|
+
)
|
|
376
|
+
params[key] = val
|
|
377
|
+
del params['kwargs']
|
|
378
|
+
# verify the required parameter 'body' is set
|
|
379
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
380
|
+
params['body'] is None): # noqa: E501
|
|
381
|
+
raise ValueError("Missing the required parameter `body` when calling `create_integration_task`") # noqa: E501
|
|
382
|
+
|
|
383
|
+
collection_formats = {}
|
|
384
|
+
|
|
385
|
+
path_params = {}
|
|
386
|
+
|
|
387
|
+
query_params = []
|
|
388
|
+
|
|
389
|
+
header_params = {}
|
|
390
|
+
|
|
391
|
+
form_params = []
|
|
392
|
+
local_var_files = {}
|
|
393
|
+
|
|
394
|
+
body_params = None
|
|
395
|
+
if 'body' in params:
|
|
396
|
+
body_params = params['body']
|
|
397
|
+
# HTTP header `Accept`
|
|
398
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
399
|
+
['application/json']) # noqa: E501
|
|
400
|
+
|
|
401
|
+
# HTTP header `Content-Type`
|
|
402
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
403
|
+
['application/json']) # noqa: E501
|
|
404
|
+
|
|
405
|
+
# Authentication setting
|
|
406
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
407
|
+
|
|
408
|
+
return self.api_client.call_api(
|
|
409
|
+
'/CreateIntegrationTask/2021-03-03/vmp/post/application_json/', 'POST',
|
|
410
|
+
path_params,
|
|
411
|
+
query_params,
|
|
412
|
+
header_params,
|
|
413
|
+
body=body_params,
|
|
414
|
+
post_params=form_params,
|
|
415
|
+
files=local_var_files,
|
|
416
|
+
response_type='CreateIntegrationTaskResponse', # noqa: E501
|
|
417
|
+
auth_settings=auth_settings,
|
|
418
|
+
async_req=params.get('async_req'),
|
|
419
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
420
|
+
_preload_content=params.get('_preload_content', True),
|
|
421
|
+
_request_timeout=params.get('_request_timeout'),
|
|
422
|
+
collection_formats=collection_formats)
|
|
423
|
+
|
|
327
424
|
def create_notify_group_policy(self, body, **kwargs): # noqa: E501
|
|
328
425
|
"""create_notify_group_policy # noqa: E501
|
|
329
426
|
|
|
@@ -712,6 +809,103 @@ class VMPApi(object):
|
|
|
712
809
|
_request_timeout=params.get('_request_timeout'),
|
|
713
810
|
collection_formats=collection_formats)
|
|
714
811
|
|
|
812
|
+
def create_silence_policy(self, body, **kwargs): # noqa: E501
|
|
813
|
+
"""create_silence_policy # noqa: E501
|
|
814
|
+
|
|
815
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
816
|
+
asynchronous HTTP request, please pass async_req=True
|
|
817
|
+
>>> thread = api.create_silence_policy(body, async_req=True)
|
|
818
|
+
>>> result = thread.get()
|
|
819
|
+
|
|
820
|
+
:param async_req bool
|
|
821
|
+
:param CreateSilencePolicyRequest body: (required)
|
|
822
|
+
:return: CreateSilencePolicyResponse
|
|
823
|
+
If the method is called asynchronously,
|
|
824
|
+
returns the request thread.
|
|
825
|
+
"""
|
|
826
|
+
kwargs['_return_http_data_only'] = True
|
|
827
|
+
if kwargs.get('async_req'):
|
|
828
|
+
return self.create_silence_policy_with_http_info(body, **kwargs) # noqa: E501
|
|
829
|
+
else:
|
|
830
|
+
(data) = self.create_silence_policy_with_http_info(body, **kwargs) # noqa: E501
|
|
831
|
+
return data
|
|
832
|
+
|
|
833
|
+
def create_silence_policy_with_http_info(self, body, **kwargs): # noqa: E501
|
|
834
|
+
"""create_silence_policy # noqa: E501
|
|
835
|
+
|
|
836
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
837
|
+
asynchronous HTTP request, please pass async_req=True
|
|
838
|
+
>>> thread = api.create_silence_policy_with_http_info(body, async_req=True)
|
|
839
|
+
>>> result = thread.get()
|
|
840
|
+
|
|
841
|
+
:param async_req bool
|
|
842
|
+
:param CreateSilencePolicyRequest body: (required)
|
|
843
|
+
:return: CreateSilencePolicyResponse
|
|
844
|
+
If the method is called asynchronously,
|
|
845
|
+
returns the request thread.
|
|
846
|
+
"""
|
|
847
|
+
|
|
848
|
+
all_params = ['body'] # noqa: E501
|
|
849
|
+
all_params.append('async_req')
|
|
850
|
+
all_params.append('_return_http_data_only')
|
|
851
|
+
all_params.append('_preload_content')
|
|
852
|
+
all_params.append('_request_timeout')
|
|
853
|
+
|
|
854
|
+
params = locals()
|
|
855
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
856
|
+
if key not in all_params:
|
|
857
|
+
raise TypeError(
|
|
858
|
+
"Got an unexpected keyword argument '%s'"
|
|
859
|
+
" to method create_silence_policy" % key
|
|
860
|
+
)
|
|
861
|
+
params[key] = val
|
|
862
|
+
del params['kwargs']
|
|
863
|
+
# verify the required parameter 'body' is set
|
|
864
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
865
|
+
params['body'] is None): # noqa: E501
|
|
866
|
+
raise ValueError("Missing the required parameter `body` when calling `create_silence_policy`") # noqa: E501
|
|
867
|
+
|
|
868
|
+
collection_formats = {}
|
|
869
|
+
|
|
870
|
+
path_params = {}
|
|
871
|
+
|
|
872
|
+
query_params = []
|
|
873
|
+
|
|
874
|
+
header_params = {}
|
|
875
|
+
|
|
876
|
+
form_params = []
|
|
877
|
+
local_var_files = {}
|
|
878
|
+
|
|
879
|
+
body_params = None
|
|
880
|
+
if 'body' in params:
|
|
881
|
+
body_params = params['body']
|
|
882
|
+
# HTTP header `Accept`
|
|
883
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
884
|
+
['application/json']) # noqa: E501
|
|
885
|
+
|
|
886
|
+
# HTTP header `Content-Type`
|
|
887
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
888
|
+
['application/json']) # noqa: E501
|
|
889
|
+
|
|
890
|
+
# Authentication setting
|
|
891
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
892
|
+
|
|
893
|
+
return self.api_client.call_api(
|
|
894
|
+
'/CreateSilencePolicy/2021-03-03/vmp/post/application_json/', 'POST',
|
|
895
|
+
path_params,
|
|
896
|
+
query_params,
|
|
897
|
+
header_params,
|
|
898
|
+
body=body_params,
|
|
899
|
+
post_params=form_params,
|
|
900
|
+
files=local_var_files,
|
|
901
|
+
response_type='CreateSilencePolicyResponse', # noqa: E501
|
|
902
|
+
auth_settings=auth_settings,
|
|
903
|
+
async_req=params.get('async_req'),
|
|
904
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
905
|
+
_preload_content=params.get('_preload_content', True),
|
|
906
|
+
_request_timeout=params.get('_request_timeout'),
|
|
907
|
+
collection_formats=collection_formats)
|
|
908
|
+
|
|
715
909
|
def create_workspace(self, body, **kwargs): # noqa: E501
|
|
716
910
|
"""create_workspace # noqa: E501
|
|
717
911
|
|
|
@@ -1100,6 +1294,103 @@ class VMPApi(object):
|
|
|
1100
1294
|
_request_timeout=params.get('_request_timeout'),
|
|
1101
1295
|
collection_formats=collection_formats)
|
|
1102
1296
|
|
|
1297
|
+
def delete_integration_task(self, body, **kwargs): # noqa: E501
|
|
1298
|
+
"""delete_integration_task # noqa: E501
|
|
1299
|
+
|
|
1300
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1301
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1302
|
+
>>> thread = api.delete_integration_task(body, async_req=True)
|
|
1303
|
+
>>> result = thread.get()
|
|
1304
|
+
|
|
1305
|
+
:param async_req bool
|
|
1306
|
+
:param DeleteIntegrationTaskRequest body: (required)
|
|
1307
|
+
:return: DeleteIntegrationTaskResponse
|
|
1308
|
+
If the method is called asynchronously,
|
|
1309
|
+
returns the request thread.
|
|
1310
|
+
"""
|
|
1311
|
+
kwargs['_return_http_data_only'] = True
|
|
1312
|
+
if kwargs.get('async_req'):
|
|
1313
|
+
return self.delete_integration_task_with_http_info(body, **kwargs) # noqa: E501
|
|
1314
|
+
else:
|
|
1315
|
+
(data) = self.delete_integration_task_with_http_info(body, **kwargs) # noqa: E501
|
|
1316
|
+
return data
|
|
1317
|
+
|
|
1318
|
+
def delete_integration_task_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1319
|
+
"""delete_integration_task # noqa: E501
|
|
1320
|
+
|
|
1321
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1322
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1323
|
+
>>> thread = api.delete_integration_task_with_http_info(body, async_req=True)
|
|
1324
|
+
>>> result = thread.get()
|
|
1325
|
+
|
|
1326
|
+
:param async_req bool
|
|
1327
|
+
:param DeleteIntegrationTaskRequest body: (required)
|
|
1328
|
+
:return: DeleteIntegrationTaskResponse
|
|
1329
|
+
If the method is called asynchronously,
|
|
1330
|
+
returns the request thread.
|
|
1331
|
+
"""
|
|
1332
|
+
|
|
1333
|
+
all_params = ['body'] # noqa: E501
|
|
1334
|
+
all_params.append('async_req')
|
|
1335
|
+
all_params.append('_return_http_data_only')
|
|
1336
|
+
all_params.append('_preload_content')
|
|
1337
|
+
all_params.append('_request_timeout')
|
|
1338
|
+
|
|
1339
|
+
params = locals()
|
|
1340
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1341
|
+
if key not in all_params:
|
|
1342
|
+
raise TypeError(
|
|
1343
|
+
"Got an unexpected keyword argument '%s'"
|
|
1344
|
+
" to method delete_integration_task" % key
|
|
1345
|
+
)
|
|
1346
|
+
params[key] = val
|
|
1347
|
+
del params['kwargs']
|
|
1348
|
+
# verify the required parameter 'body' is set
|
|
1349
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
1350
|
+
params['body'] is None): # noqa: E501
|
|
1351
|
+
raise ValueError("Missing the required parameter `body` when calling `delete_integration_task`") # noqa: E501
|
|
1352
|
+
|
|
1353
|
+
collection_formats = {}
|
|
1354
|
+
|
|
1355
|
+
path_params = {}
|
|
1356
|
+
|
|
1357
|
+
query_params = []
|
|
1358
|
+
|
|
1359
|
+
header_params = {}
|
|
1360
|
+
|
|
1361
|
+
form_params = []
|
|
1362
|
+
local_var_files = {}
|
|
1363
|
+
|
|
1364
|
+
body_params = None
|
|
1365
|
+
if 'body' in params:
|
|
1366
|
+
body_params = params['body']
|
|
1367
|
+
# HTTP header `Accept`
|
|
1368
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1369
|
+
['application/json']) # noqa: E501
|
|
1370
|
+
|
|
1371
|
+
# HTTP header `Content-Type`
|
|
1372
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1373
|
+
['application/json']) # noqa: E501
|
|
1374
|
+
|
|
1375
|
+
# Authentication setting
|
|
1376
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
1377
|
+
|
|
1378
|
+
return self.api_client.call_api(
|
|
1379
|
+
'/DeleteIntegrationTask/2021-03-03/vmp/post/application_json/', 'POST',
|
|
1380
|
+
path_params,
|
|
1381
|
+
query_params,
|
|
1382
|
+
header_params,
|
|
1383
|
+
body=body_params,
|
|
1384
|
+
post_params=form_params,
|
|
1385
|
+
files=local_var_files,
|
|
1386
|
+
response_type='DeleteIntegrationTaskResponse', # noqa: E501
|
|
1387
|
+
auth_settings=auth_settings,
|
|
1388
|
+
async_req=params.get('async_req'),
|
|
1389
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1390
|
+
_preload_content=params.get('_preload_content', True),
|
|
1391
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1392
|
+
collection_formats=collection_formats)
|
|
1393
|
+
|
|
1103
1394
|
def delete_notify_group_policy(self, body, **kwargs): # noqa: E501
|
|
1104
1395
|
"""delete_notify_group_policy # noqa: E501
|
|
1105
1396
|
|
|
@@ -1383,7 +1674,492 @@ class VMPApi(object):
|
|
|
1383
1674
|
body=body_params,
|
|
1384
1675
|
post_params=form_params,
|
|
1385
1676
|
files=local_var_files,
|
|
1386
|
-
response_type='DeleteNotifyTemplateResponse', # noqa: E501
|
|
1677
|
+
response_type='DeleteNotifyTemplateResponse', # noqa: E501
|
|
1678
|
+
auth_settings=auth_settings,
|
|
1679
|
+
async_req=params.get('async_req'),
|
|
1680
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1681
|
+
_preload_content=params.get('_preload_content', True),
|
|
1682
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1683
|
+
collection_formats=collection_formats)
|
|
1684
|
+
|
|
1685
|
+
def delete_rule_file(self, body, **kwargs): # noqa: E501
|
|
1686
|
+
"""delete_rule_file # noqa: E501
|
|
1687
|
+
|
|
1688
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1689
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1690
|
+
>>> thread = api.delete_rule_file(body, async_req=True)
|
|
1691
|
+
>>> result = thread.get()
|
|
1692
|
+
|
|
1693
|
+
:param async_req bool
|
|
1694
|
+
:param DeleteRuleFileRequest body: (required)
|
|
1695
|
+
:return: DeleteRuleFileResponse
|
|
1696
|
+
If the method is called asynchronously,
|
|
1697
|
+
returns the request thread.
|
|
1698
|
+
"""
|
|
1699
|
+
kwargs['_return_http_data_only'] = True
|
|
1700
|
+
if kwargs.get('async_req'):
|
|
1701
|
+
return self.delete_rule_file_with_http_info(body, **kwargs) # noqa: E501
|
|
1702
|
+
else:
|
|
1703
|
+
(data) = self.delete_rule_file_with_http_info(body, **kwargs) # noqa: E501
|
|
1704
|
+
return data
|
|
1705
|
+
|
|
1706
|
+
def delete_rule_file_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1707
|
+
"""delete_rule_file # noqa: E501
|
|
1708
|
+
|
|
1709
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1710
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1711
|
+
>>> thread = api.delete_rule_file_with_http_info(body, async_req=True)
|
|
1712
|
+
>>> result = thread.get()
|
|
1713
|
+
|
|
1714
|
+
:param async_req bool
|
|
1715
|
+
:param DeleteRuleFileRequest body: (required)
|
|
1716
|
+
:return: DeleteRuleFileResponse
|
|
1717
|
+
If the method is called asynchronously,
|
|
1718
|
+
returns the request thread.
|
|
1719
|
+
"""
|
|
1720
|
+
|
|
1721
|
+
all_params = ['body'] # noqa: E501
|
|
1722
|
+
all_params.append('async_req')
|
|
1723
|
+
all_params.append('_return_http_data_only')
|
|
1724
|
+
all_params.append('_preload_content')
|
|
1725
|
+
all_params.append('_request_timeout')
|
|
1726
|
+
|
|
1727
|
+
params = locals()
|
|
1728
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1729
|
+
if key not in all_params:
|
|
1730
|
+
raise TypeError(
|
|
1731
|
+
"Got an unexpected keyword argument '%s'"
|
|
1732
|
+
" to method delete_rule_file" % key
|
|
1733
|
+
)
|
|
1734
|
+
params[key] = val
|
|
1735
|
+
del params['kwargs']
|
|
1736
|
+
# verify the required parameter 'body' is set
|
|
1737
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
1738
|
+
params['body'] is None): # noqa: E501
|
|
1739
|
+
raise ValueError("Missing the required parameter `body` when calling `delete_rule_file`") # noqa: E501
|
|
1740
|
+
|
|
1741
|
+
collection_formats = {}
|
|
1742
|
+
|
|
1743
|
+
path_params = {}
|
|
1744
|
+
|
|
1745
|
+
query_params = []
|
|
1746
|
+
|
|
1747
|
+
header_params = {}
|
|
1748
|
+
|
|
1749
|
+
form_params = []
|
|
1750
|
+
local_var_files = {}
|
|
1751
|
+
|
|
1752
|
+
body_params = None
|
|
1753
|
+
if 'body' in params:
|
|
1754
|
+
body_params = params['body']
|
|
1755
|
+
# HTTP header `Accept`
|
|
1756
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1757
|
+
['application/json']) # noqa: E501
|
|
1758
|
+
|
|
1759
|
+
# HTTP header `Content-Type`
|
|
1760
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1761
|
+
['application/json']) # noqa: E501
|
|
1762
|
+
|
|
1763
|
+
# Authentication setting
|
|
1764
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
1765
|
+
|
|
1766
|
+
return self.api_client.call_api(
|
|
1767
|
+
'/DeleteRuleFile/2021-03-03/vmp/post/application_json/', 'POST',
|
|
1768
|
+
path_params,
|
|
1769
|
+
query_params,
|
|
1770
|
+
header_params,
|
|
1771
|
+
body=body_params,
|
|
1772
|
+
post_params=form_params,
|
|
1773
|
+
files=local_var_files,
|
|
1774
|
+
response_type='DeleteRuleFileResponse', # noqa: E501
|
|
1775
|
+
auth_settings=auth_settings,
|
|
1776
|
+
async_req=params.get('async_req'),
|
|
1777
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1778
|
+
_preload_content=params.get('_preload_content', True),
|
|
1779
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1780
|
+
collection_formats=collection_formats)
|
|
1781
|
+
|
|
1782
|
+
def delete_silence_policies(self, body, **kwargs): # noqa: E501
|
|
1783
|
+
"""delete_silence_policies # noqa: E501
|
|
1784
|
+
|
|
1785
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1786
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1787
|
+
>>> thread = api.delete_silence_policies(body, async_req=True)
|
|
1788
|
+
>>> result = thread.get()
|
|
1789
|
+
|
|
1790
|
+
:param async_req bool
|
|
1791
|
+
:param DeleteSilencePoliciesRequest body: (required)
|
|
1792
|
+
:return: DeleteSilencePoliciesResponse
|
|
1793
|
+
If the method is called asynchronously,
|
|
1794
|
+
returns the request thread.
|
|
1795
|
+
"""
|
|
1796
|
+
kwargs['_return_http_data_only'] = True
|
|
1797
|
+
if kwargs.get('async_req'):
|
|
1798
|
+
return self.delete_silence_policies_with_http_info(body, **kwargs) # noqa: E501
|
|
1799
|
+
else:
|
|
1800
|
+
(data) = self.delete_silence_policies_with_http_info(body, **kwargs) # noqa: E501
|
|
1801
|
+
return data
|
|
1802
|
+
|
|
1803
|
+
def delete_silence_policies_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1804
|
+
"""delete_silence_policies # noqa: E501
|
|
1805
|
+
|
|
1806
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1807
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1808
|
+
>>> thread = api.delete_silence_policies_with_http_info(body, async_req=True)
|
|
1809
|
+
>>> result = thread.get()
|
|
1810
|
+
|
|
1811
|
+
:param async_req bool
|
|
1812
|
+
:param DeleteSilencePoliciesRequest body: (required)
|
|
1813
|
+
:return: DeleteSilencePoliciesResponse
|
|
1814
|
+
If the method is called asynchronously,
|
|
1815
|
+
returns the request thread.
|
|
1816
|
+
"""
|
|
1817
|
+
|
|
1818
|
+
all_params = ['body'] # noqa: E501
|
|
1819
|
+
all_params.append('async_req')
|
|
1820
|
+
all_params.append('_return_http_data_only')
|
|
1821
|
+
all_params.append('_preload_content')
|
|
1822
|
+
all_params.append('_request_timeout')
|
|
1823
|
+
|
|
1824
|
+
params = locals()
|
|
1825
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1826
|
+
if key not in all_params:
|
|
1827
|
+
raise TypeError(
|
|
1828
|
+
"Got an unexpected keyword argument '%s'"
|
|
1829
|
+
" to method delete_silence_policies" % key
|
|
1830
|
+
)
|
|
1831
|
+
params[key] = val
|
|
1832
|
+
del params['kwargs']
|
|
1833
|
+
# verify the required parameter 'body' is set
|
|
1834
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
1835
|
+
params['body'] is None): # noqa: E501
|
|
1836
|
+
raise ValueError("Missing the required parameter `body` when calling `delete_silence_policies`") # noqa: E501
|
|
1837
|
+
|
|
1838
|
+
collection_formats = {}
|
|
1839
|
+
|
|
1840
|
+
path_params = {}
|
|
1841
|
+
|
|
1842
|
+
query_params = []
|
|
1843
|
+
|
|
1844
|
+
header_params = {}
|
|
1845
|
+
|
|
1846
|
+
form_params = []
|
|
1847
|
+
local_var_files = {}
|
|
1848
|
+
|
|
1849
|
+
body_params = None
|
|
1850
|
+
if 'body' in params:
|
|
1851
|
+
body_params = params['body']
|
|
1852
|
+
# HTTP header `Accept`
|
|
1853
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1854
|
+
['application/json']) # noqa: E501
|
|
1855
|
+
|
|
1856
|
+
# HTTP header `Content-Type`
|
|
1857
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1858
|
+
['application/json']) # noqa: E501
|
|
1859
|
+
|
|
1860
|
+
# Authentication setting
|
|
1861
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
1862
|
+
|
|
1863
|
+
return self.api_client.call_api(
|
|
1864
|
+
'/DeleteSilencePolicies/2021-03-03/vmp/post/application_json/', 'POST',
|
|
1865
|
+
path_params,
|
|
1866
|
+
query_params,
|
|
1867
|
+
header_params,
|
|
1868
|
+
body=body_params,
|
|
1869
|
+
post_params=form_params,
|
|
1870
|
+
files=local_var_files,
|
|
1871
|
+
response_type='DeleteSilencePoliciesResponse', # noqa: E501
|
|
1872
|
+
auth_settings=auth_settings,
|
|
1873
|
+
async_req=params.get('async_req'),
|
|
1874
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1875
|
+
_preload_content=params.get('_preload_content', True),
|
|
1876
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1877
|
+
collection_formats=collection_formats)
|
|
1878
|
+
|
|
1879
|
+
def delete_workspace(self, body, **kwargs): # noqa: E501
|
|
1880
|
+
"""delete_workspace # noqa: E501
|
|
1881
|
+
|
|
1882
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1883
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1884
|
+
>>> thread = api.delete_workspace(body, async_req=True)
|
|
1885
|
+
>>> result = thread.get()
|
|
1886
|
+
|
|
1887
|
+
:param async_req bool
|
|
1888
|
+
:param DeleteWorkspaceRequest body: (required)
|
|
1889
|
+
:return: DeleteWorkspaceResponse
|
|
1890
|
+
If the method is called asynchronously,
|
|
1891
|
+
returns the request thread.
|
|
1892
|
+
"""
|
|
1893
|
+
kwargs['_return_http_data_only'] = True
|
|
1894
|
+
if kwargs.get('async_req'):
|
|
1895
|
+
return self.delete_workspace_with_http_info(body, **kwargs) # noqa: E501
|
|
1896
|
+
else:
|
|
1897
|
+
(data) = self.delete_workspace_with_http_info(body, **kwargs) # noqa: E501
|
|
1898
|
+
return data
|
|
1899
|
+
|
|
1900
|
+
def delete_workspace_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1901
|
+
"""delete_workspace # noqa: E501
|
|
1902
|
+
|
|
1903
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1904
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1905
|
+
>>> thread = api.delete_workspace_with_http_info(body, async_req=True)
|
|
1906
|
+
>>> result = thread.get()
|
|
1907
|
+
|
|
1908
|
+
:param async_req bool
|
|
1909
|
+
:param DeleteWorkspaceRequest body: (required)
|
|
1910
|
+
:return: DeleteWorkspaceResponse
|
|
1911
|
+
If the method is called asynchronously,
|
|
1912
|
+
returns the request thread.
|
|
1913
|
+
"""
|
|
1914
|
+
|
|
1915
|
+
all_params = ['body'] # noqa: E501
|
|
1916
|
+
all_params.append('async_req')
|
|
1917
|
+
all_params.append('_return_http_data_only')
|
|
1918
|
+
all_params.append('_preload_content')
|
|
1919
|
+
all_params.append('_request_timeout')
|
|
1920
|
+
|
|
1921
|
+
params = locals()
|
|
1922
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1923
|
+
if key not in all_params:
|
|
1924
|
+
raise TypeError(
|
|
1925
|
+
"Got an unexpected keyword argument '%s'"
|
|
1926
|
+
" to method delete_workspace" % key
|
|
1927
|
+
)
|
|
1928
|
+
params[key] = val
|
|
1929
|
+
del params['kwargs']
|
|
1930
|
+
# verify the required parameter 'body' is set
|
|
1931
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
1932
|
+
params['body'] is None): # noqa: E501
|
|
1933
|
+
raise ValueError("Missing the required parameter `body` when calling `delete_workspace`") # noqa: E501
|
|
1934
|
+
|
|
1935
|
+
collection_formats = {}
|
|
1936
|
+
|
|
1937
|
+
path_params = {}
|
|
1938
|
+
|
|
1939
|
+
query_params = []
|
|
1940
|
+
|
|
1941
|
+
header_params = {}
|
|
1942
|
+
|
|
1943
|
+
form_params = []
|
|
1944
|
+
local_var_files = {}
|
|
1945
|
+
|
|
1946
|
+
body_params = None
|
|
1947
|
+
if 'body' in params:
|
|
1948
|
+
body_params = params['body']
|
|
1949
|
+
# HTTP header `Accept`
|
|
1950
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1951
|
+
['application/json']) # noqa: E501
|
|
1952
|
+
|
|
1953
|
+
# HTTP header `Content-Type`
|
|
1954
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1955
|
+
['application/json']) # noqa: E501
|
|
1956
|
+
|
|
1957
|
+
# Authentication setting
|
|
1958
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
1959
|
+
|
|
1960
|
+
return self.api_client.call_api(
|
|
1961
|
+
'/DeleteWorkspace/2021-03-03/vmp/post/application_json/', 'POST',
|
|
1962
|
+
path_params,
|
|
1963
|
+
query_params,
|
|
1964
|
+
header_params,
|
|
1965
|
+
body=body_params,
|
|
1966
|
+
post_params=form_params,
|
|
1967
|
+
files=local_var_files,
|
|
1968
|
+
response_type='DeleteWorkspaceResponse', # noqa: E501
|
|
1969
|
+
auth_settings=auth_settings,
|
|
1970
|
+
async_req=params.get('async_req'),
|
|
1971
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1972
|
+
_preload_content=params.get('_preload_content', True),
|
|
1973
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1974
|
+
collection_formats=collection_formats)
|
|
1975
|
+
|
|
1976
|
+
def disable_alerting_rules(self, body, **kwargs): # noqa: E501
|
|
1977
|
+
"""disable_alerting_rules # noqa: E501
|
|
1978
|
+
|
|
1979
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1980
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1981
|
+
>>> thread = api.disable_alerting_rules(body, async_req=True)
|
|
1982
|
+
>>> result = thread.get()
|
|
1983
|
+
|
|
1984
|
+
:param async_req bool
|
|
1985
|
+
:param DisableAlertingRulesRequest body: (required)
|
|
1986
|
+
:return: DisableAlertingRulesResponse
|
|
1987
|
+
If the method is called asynchronously,
|
|
1988
|
+
returns the request thread.
|
|
1989
|
+
"""
|
|
1990
|
+
kwargs['_return_http_data_only'] = True
|
|
1991
|
+
if kwargs.get('async_req'):
|
|
1992
|
+
return self.disable_alerting_rules_with_http_info(body, **kwargs) # noqa: E501
|
|
1993
|
+
else:
|
|
1994
|
+
(data) = self.disable_alerting_rules_with_http_info(body, **kwargs) # noqa: E501
|
|
1995
|
+
return data
|
|
1996
|
+
|
|
1997
|
+
def disable_alerting_rules_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1998
|
+
"""disable_alerting_rules # noqa: E501
|
|
1999
|
+
|
|
2000
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2001
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2002
|
+
>>> thread = api.disable_alerting_rules_with_http_info(body, async_req=True)
|
|
2003
|
+
>>> result = thread.get()
|
|
2004
|
+
|
|
2005
|
+
:param async_req bool
|
|
2006
|
+
:param DisableAlertingRulesRequest body: (required)
|
|
2007
|
+
:return: DisableAlertingRulesResponse
|
|
2008
|
+
If the method is called asynchronously,
|
|
2009
|
+
returns the request thread.
|
|
2010
|
+
"""
|
|
2011
|
+
|
|
2012
|
+
all_params = ['body'] # noqa: E501
|
|
2013
|
+
all_params.append('async_req')
|
|
2014
|
+
all_params.append('_return_http_data_only')
|
|
2015
|
+
all_params.append('_preload_content')
|
|
2016
|
+
all_params.append('_request_timeout')
|
|
2017
|
+
|
|
2018
|
+
params = locals()
|
|
2019
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2020
|
+
if key not in all_params:
|
|
2021
|
+
raise TypeError(
|
|
2022
|
+
"Got an unexpected keyword argument '%s'"
|
|
2023
|
+
" to method disable_alerting_rules" % key
|
|
2024
|
+
)
|
|
2025
|
+
params[key] = val
|
|
2026
|
+
del params['kwargs']
|
|
2027
|
+
# verify the required parameter 'body' is set
|
|
2028
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
2029
|
+
params['body'] is None): # noqa: E501
|
|
2030
|
+
raise ValueError("Missing the required parameter `body` when calling `disable_alerting_rules`") # noqa: E501
|
|
2031
|
+
|
|
2032
|
+
collection_formats = {}
|
|
2033
|
+
|
|
2034
|
+
path_params = {}
|
|
2035
|
+
|
|
2036
|
+
query_params = []
|
|
2037
|
+
|
|
2038
|
+
header_params = {}
|
|
2039
|
+
|
|
2040
|
+
form_params = []
|
|
2041
|
+
local_var_files = {}
|
|
2042
|
+
|
|
2043
|
+
body_params = None
|
|
2044
|
+
if 'body' in params:
|
|
2045
|
+
body_params = params['body']
|
|
2046
|
+
# HTTP header `Accept`
|
|
2047
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2048
|
+
['application/json']) # noqa: E501
|
|
2049
|
+
|
|
2050
|
+
# HTTP header `Content-Type`
|
|
2051
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2052
|
+
['application/json']) # noqa: E501
|
|
2053
|
+
|
|
2054
|
+
# Authentication setting
|
|
2055
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
2056
|
+
|
|
2057
|
+
return self.api_client.call_api(
|
|
2058
|
+
'/DisableAlertingRules/2021-03-03/vmp/post/application_json/', 'POST',
|
|
2059
|
+
path_params,
|
|
2060
|
+
query_params,
|
|
2061
|
+
header_params,
|
|
2062
|
+
body=body_params,
|
|
2063
|
+
post_params=form_params,
|
|
2064
|
+
files=local_var_files,
|
|
2065
|
+
response_type='DisableAlertingRulesResponse', # noqa: E501
|
|
2066
|
+
auth_settings=auth_settings,
|
|
2067
|
+
async_req=params.get('async_req'),
|
|
2068
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2069
|
+
_preload_content=params.get('_preload_content', True),
|
|
2070
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2071
|
+
collection_formats=collection_formats)
|
|
2072
|
+
|
|
2073
|
+
def disable_integration_tasks(self, body, **kwargs): # noqa: E501
|
|
2074
|
+
"""disable_integration_tasks # noqa: E501
|
|
2075
|
+
|
|
2076
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2077
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2078
|
+
>>> thread = api.disable_integration_tasks(body, async_req=True)
|
|
2079
|
+
>>> result = thread.get()
|
|
2080
|
+
|
|
2081
|
+
:param async_req bool
|
|
2082
|
+
:param DisableIntegrationTasksRequest body: (required)
|
|
2083
|
+
:return: DisableIntegrationTasksResponse
|
|
2084
|
+
If the method is called asynchronously,
|
|
2085
|
+
returns the request thread.
|
|
2086
|
+
"""
|
|
2087
|
+
kwargs['_return_http_data_only'] = True
|
|
2088
|
+
if kwargs.get('async_req'):
|
|
2089
|
+
return self.disable_integration_tasks_with_http_info(body, **kwargs) # noqa: E501
|
|
2090
|
+
else:
|
|
2091
|
+
(data) = self.disable_integration_tasks_with_http_info(body, **kwargs) # noqa: E501
|
|
2092
|
+
return data
|
|
2093
|
+
|
|
2094
|
+
def disable_integration_tasks_with_http_info(self, body, **kwargs): # noqa: E501
|
|
2095
|
+
"""disable_integration_tasks # noqa: E501
|
|
2096
|
+
|
|
2097
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2098
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2099
|
+
>>> thread = api.disable_integration_tasks_with_http_info(body, async_req=True)
|
|
2100
|
+
>>> result = thread.get()
|
|
2101
|
+
|
|
2102
|
+
:param async_req bool
|
|
2103
|
+
:param DisableIntegrationTasksRequest body: (required)
|
|
2104
|
+
:return: DisableIntegrationTasksResponse
|
|
2105
|
+
If the method is called asynchronously,
|
|
2106
|
+
returns the request thread.
|
|
2107
|
+
"""
|
|
2108
|
+
|
|
2109
|
+
all_params = ['body'] # noqa: E501
|
|
2110
|
+
all_params.append('async_req')
|
|
2111
|
+
all_params.append('_return_http_data_only')
|
|
2112
|
+
all_params.append('_preload_content')
|
|
2113
|
+
all_params.append('_request_timeout')
|
|
2114
|
+
|
|
2115
|
+
params = locals()
|
|
2116
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2117
|
+
if key not in all_params:
|
|
2118
|
+
raise TypeError(
|
|
2119
|
+
"Got an unexpected keyword argument '%s'"
|
|
2120
|
+
" to method disable_integration_tasks" % key
|
|
2121
|
+
)
|
|
2122
|
+
params[key] = val
|
|
2123
|
+
del params['kwargs']
|
|
2124
|
+
# verify the required parameter 'body' is set
|
|
2125
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
2126
|
+
params['body'] is None): # noqa: E501
|
|
2127
|
+
raise ValueError("Missing the required parameter `body` when calling `disable_integration_tasks`") # noqa: E501
|
|
2128
|
+
|
|
2129
|
+
collection_formats = {}
|
|
2130
|
+
|
|
2131
|
+
path_params = {}
|
|
2132
|
+
|
|
2133
|
+
query_params = []
|
|
2134
|
+
|
|
2135
|
+
header_params = {}
|
|
2136
|
+
|
|
2137
|
+
form_params = []
|
|
2138
|
+
local_var_files = {}
|
|
2139
|
+
|
|
2140
|
+
body_params = None
|
|
2141
|
+
if 'body' in params:
|
|
2142
|
+
body_params = params['body']
|
|
2143
|
+
# HTTP header `Accept`
|
|
2144
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2145
|
+
['application/json']) # noqa: E501
|
|
2146
|
+
|
|
2147
|
+
# HTTP header `Content-Type`
|
|
2148
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2149
|
+
['application/json']) # noqa: E501
|
|
2150
|
+
|
|
2151
|
+
# Authentication setting
|
|
2152
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
2153
|
+
|
|
2154
|
+
return self.api_client.call_api(
|
|
2155
|
+
'/DisableIntegrationTasks/2021-03-03/vmp/post/application_json/', 'POST',
|
|
2156
|
+
path_params,
|
|
2157
|
+
query_params,
|
|
2158
|
+
header_params,
|
|
2159
|
+
body=body_params,
|
|
2160
|
+
post_params=form_params,
|
|
2161
|
+
files=local_var_files,
|
|
2162
|
+
response_type='DisableIntegrationTasksResponse', # noqa: E501
|
|
1387
2163
|
auth_settings=auth_settings,
|
|
1388
2164
|
async_req=params.get('async_req'),
|
|
1389
2165
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1391,38 +2167,38 @@ class VMPApi(object):
|
|
|
1391
2167
|
_request_timeout=params.get('_request_timeout'),
|
|
1392
2168
|
collection_formats=collection_formats)
|
|
1393
2169
|
|
|
1394
|
-
def
|
|
1395
|
-
"""
|
|
2170
|
+
def disable_silence_policies(self, body, **kwargs): # noqa: E501
|
|
2171
|
+
"""disable_silence_policies # noqa: E501
|
|
1396
2172
|
|
|
1397
2173
|
This method makes a synchronous HTTP request by default. To make an
|
|
1398
2174
|
asynchronous HTTP request, please pass async_req=True
|
|
1399
|
-
>>> thread = api.
|
|
2175
|
+
>>> thread = api.disable_silence_policies(body, async_req=True)
|
|
1400
2176
|
>>> result = thread.get()
|
|
1401
2177
|
|
|
1402
2178
|
:param async_req bool
|
|
1403
|
-
:param
|
|
1404
|
-
:return:
|
|
2179
|
+
:param DisableSilencePoliciesRequest body: (required)
|
|
2180
|
+
:return: DisableSilencePoliciesResponse
|
|
1405
2181
|
If the method is called asynchronously,
|
|
1406
2182
|
returns the request thread.
|
|
1407
2183
|
"""
|
|
1408
2184
|
kwargs['_return_http_data_only'] = True
|
|
1409
2185
|
if kwargs.get('async_req'):
|
|
1410
|
-
return self.
|
|
2186
|
+
return self.disable_silence_policies_with_http_info(body, **kwargs) # noqa: E501
|
|
1411
2187
|
else:
|
|
1412
|
-
(data) = self.
|
|
2188
|
+
(data) = self.disable_silence_policies_with_http_info(body, **kwargs) # noqa: E501
|
|
1413
2189
|
return data
|
|
1414
2190
|
|
|
1415
|
-
def
|
|
1416
|
-
"""
|
|
2191
|
+
def disable_silence_policies_with_http_info(self, body, **kwargs): # noqa: E501
|
|
2192
|
+
"""disable_silence_policies # noqa: E501
|
|
1417
2193
|
|
|
1418
2194
|
This method makes a synchronous HTTP request by default. To make an
|
|
1419
2195
|
asynchronous HTTP request, please pass async_req=True
|
|
1420
|
-
>>> thread = api.
|
|
2196
|
+
>>> thread = api.disable_silence_policies_with_http_info(body, async_req=True)
|
|
1421
2197
|
>>> result = thread.get()
|
|
1422
2198
|
|
|
1423
2199
|
:param async_req bool
|
|
1424
|
-
:param
|
|
1425
|
-
:return:
|
|
2200
|
+
:param DisableSilencePoliciesRequest body: (required)
|
|
2201
|
+
:return: DisableSilencePoliciesResponse
|
|
1426
2202
|
If the method is called asynchronously,
|
|
1427
2203
|
returns the request thread.
|
|
1428
2204
|
"""
|
|
@@ -1438,14 +2214,14 @@ class VMPApi(object):
|
|
|
1438
2214
|
if key not in all_params:
|
|
1439
2215
|
raise TypeError(
|
|
1440
2216
|
"Got an unexpected keyword argument '%s'"
|
|
1441
|
-
" to method
|
|
2217
|
+
" to method disable_silence_policies" % key
|
|
1442
2218
|
)
|
|
1443
2219
|
params[key] = val
|
|
1444
2220
|
del params['kwargs']
|
|
1445
2221
|
# verify the required parameter 'body' is set
|
|
1446
2222
|
if self.api_client.client_side_validation and ('body' not in params or
|
|
1447
2223
|
params['body'] is None): # noqa: E501
|
|
1448
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
2224
|
+
raise ValueError("Missing the required parameter `body` when calling `disable_silence_policies`") # noqa: E501
|
|
1449
2225
|
|
|
1450
2226
|
collection_formats = {}
|
|
1451
2227
|
|
|
@@ -1473,14 +2249,14 @@ class VMPApi(object):
|
|
|
1473
2249
|
auth_settings = ['volcengineSign'] # noqa: E501
|
|
1474
2250
|
|
|
1475
2251
|
return self.api_client.call_api(
|
|
1476
|
-
'/
|
|
2252
|
+
'/DisableSilencePolicies/2021-03-03/vmp/post/application_json/', 'POST',
|
|
1477
2253
|
path_params,
|
|
1478
2254
|
query_params,
|
|
1479
2255
|
header_params,
|
|
1480
2256
|
body=body_params,
|
|
1481
2257
|
post_params=form_params,
|
|
1482
2258
|
files=local_var_files,
|
|
1483
|
-
response_type='
|
|
2259
|
+
response_type='DisableSilencePoliciesResponse', # noqa: E501
|
|
1484
2260
|
auth_settings=auth_settings,
|
|
1485
2261
|
async_req=params.get('async_req'),
|
|
1486
2262
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1488,38 +2264,38 @@ class VMPApi(object):
|
|
|
1488
2264
|
_request_timeout=params.get('_request_timeout'),
|
|
1489
2265
|
collection_formats=collection_formats)
|
|
1490
2266
|
|
|
1491
|
-
def
|
|
1492
|
-
"""
|
|
2267
|
+
def enable_alerting_rules(self, body, **kwargs): # noqa: E501
|
|
2268
|
+
"""enable_alerting_rules # noqa: E501
|
|
1493
2269
|
|
|
1494
2270
|
This method makes a synchronous HTTP request by default. To make an
|
|
1495
2271
|
asynchronous HTTP request, please pass async_req=True
|
|
1496
|
-
>>> thread = api.
|
|
2272
|
+
>>> thread = api.enable_alerting_rules(body, async_req=True)
|
|
1497
2273
|
>>> result = thread.get()
|
|
1498
2274
|
|
|
1499
2275
|
:param async_req bool
|
|
1500
|
-
:param
|
|
1501
|
-
:return:
|
|
2276
|
+
:param EnableAlertingRulesRequest body: (required)
|
|
2277
|
+
:return: EnableAlertingRulesResponse
|
|
1502
2278
|
If the method is called asynchronously,
|
|
1503
2279
|
returns the request thread.
|
|
1504
2280
|
"""
|
|
1505
2281
|
kwargs['_return_http_data_only'] = True
|
|
1506
2282
|
if kwargs.get('async_req'):
|
|
1507
|
-
return self.
|
|
2283
|
+
return self.enable_alerting_rules_with_http_info(body, **kwargs) # noqa: E501
|
|
1508
2284
|
else:
|
|
1509
|
-
(data) = self.
|
|
2285
|
+
(data) = self.enable_alerting_rules_with_http_info(body, **kwargs) # noqa: E501
|
|
1510
2286
|
return data
|
|
1511
2287
|
|
|
1512
|
-
def
|
|
1513
|
-
"""
|
|
2288
|
+
def enable_alerting_rules_with_http_info(self, body, **kwargs): # noqa: E501
|
|
2289
|
+
"""enable_alerting_rules # noqa: E501
|
|
1514
2290
|
|
|
1515
2291
|
This method makes a synchronous HTTP request by default. To make an
|
|
1516
2292
|
asynchronous HTTP request, please pass async_req=True
|
|
1517
|
-
>>> thread = api.
|
|
2293
|
+
>>> thread = api.enable_alerting_rules_with_http_info(body, async_req=True)
|
|
1518
2294
|
>>> result = thread.get()
|
|
1519
2295
|
|
|
1520
2296
|
:param async_req bool
|
|
1521
|
-
:param
|
|
1522
|
-
:return:
|
|
2297
|
+
:param EnableAlertingRulesRequest body: (required)
|
|
2298
|
+
:return: EnableAlertingRulesResponse
|
|
1523
2299
|
If the method is called asynchronously,
|
|
1524
2300
|
returns the request thread.
|
|
1525
2301
|
"""
|
|
@@ -1535,14 +2311,14 @@ class VMPApi(object):
|
|
|
1535
2311
|
if key not in all_params:
|
|
1536
2312
|
raise TypeError(
|
|
1537
2313
|
"Got an unexpected keyword argument '%s'"
|
|
1538
|
-
" to method
|
|
2314
|
+
" to method enable_alerting_rules" % key
|
|
1539
2315
|
)
|
|
1540
2316
|
params[key] = val
|
|
1541
2317
|
del params['kwargs']
|
|
1542
2318
|
# verify the required parameter 'body' is set
|
|
1543
2319
|
if self.api_client.client_side_validation and ('body' not in params or
|
|
1544
2320
|
params['body'] is None): # noqa: E501
|
|
1545
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
2321
|
+
raise ValueError("Missing the required parameter `body` when calling `enable_alerting_rules`") # noqa: E501
|
|
1546
2322
|
|
|
1547
2323
|
collection_formats = {}
|
|
1548
2324
|
|
|
@@ -1570,14 +2346,14 @@ class VMPApi(object):
|
|
|
1570
2346
|
auth_settings = ['volcengineSign'] # noqa: E501
|
|
1571
2347
|
|
|
1572
2348
|
return self.api_client.call_api(
|
|
1573
|
-
'/
|
|
2349
|
+
'/EnableAlertingRules/2021-03-03/vmp/post/application_json/', 'POST',
|
|
1574
2350
|
path_params,
|
|
1575
2351
|
query_params,
|
|
1576
2352
|
header_params,
|
|
1577
2353
|
body=body_params,
|
|
1578
2354
|
post_params=form_params,
|
|
1579
2355
|
files=local_var_files,
|
|
1580
|
-
response_type='
|
|
2356
|
+
response_type='EnableAlertingRulesResponse', # noqa: E501
|
|
1581
2357
|
auth_settings=auth_settings,
|
|
1582
2358
|
async_req=params.get('async_req'),
|
|
1583
2359
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1585,38 +2361,38 @@ class VMPApi(object):
|
|
|
1585
2361
|
_request_timeout=params.get('_request_timeout'),
|
|
1586
2362
|
collection_formats=collection_formats)
|
|
1587
2363
|
|
|
1588
|
-
def
|
|
1589
|
-
"""
|
|
2364
|
+
def enable_integration_tasks(self, body, **kwargs): # noqa: E501
|
|
2365
|
+
"""enable_integration_tasks # noqa: E501
|
|
1590
2366
|
|
|
1591
2367
|
This method makes a synchronous HTTP request by default. To make an
|
|
1592
2368
|
asynchronous HTTP request, please pass async_req=True
|
|
1593
|
-
>>> thread = api.
|
|
2369
|
+
>>> thread = api.enable_integration_tasks(body, async_req=True)
|
|
1594
2370
|
>>> result = thread.get()
|
|
1595
2371
|
|
|
1596
2372
|
:param async_req bool
|
|
1597
|
-
:param
|
|
1598
|
-
:return:
|
|
2373
|
+
:param EnableIntegrationTasksRequest body: (required)
|
|
2374
|
+
:return: EnableIntegrationTasksResponse
|
|
1599
2375
|
If the method is called asynchronously,
|
|
1600
2376
|
returns the request thread.
|
|
1601
2377
|
"""
|
|
1602
2378
|
kwargs['_return_http_data_only'] = True
|
|
1603
2379
|
if kwargs.get('async_req'):
|
|
1604
|
-
return self.
|
|
2380
|
+
return self.enable_integration_tasks_with_http_info(body, **kwargs) # noqa: E501
|
|
1605
2381
|
else:
|
|
1606
|
-
(data) = self.
|
|
2382
|
+
(data) = self.enable_integration_tasks_with_http_info(body, **kwargs) # noqa: E501
|
|
1607
2383
|
return data
|
|
1608
2384
|
|
|
1609
|
-
def
|
|
1610
|
-
"""
|
|
2385
|
+
def enable_integration_tasks_with_http_info(self, body, **kwargs): # noqa: E501
|
|
2386
|
+
"""enable_integration_tasks # noqa: E501
|
|
1611
2387
|
|
|
1612
2388
|
This method makes a synchronous HTTP request by default. To make an
|
|
1613
2389
|
asynchronous HTTP request, please pass async_req=True
|
|
1614
|
-
>>> thread = api.
|
|
2390
|
+
>>> thread = api.enable_integration_tasks_with_http_info(body, async_req=True)
|
|
1615
2391
|
>>> result = thread.get()
|
|
1616
2392
|
|
|
1617
2393
|
:param async_req bool
|
|
1618
|
-
:param
|
|
1619
|
-
:return:
|
|
2394
|
+
:param EnableIntegrationTasksRequest body: (required)
|
|
2395
|
+
:return: EnableIntegrationTasksResponse
|
|
1620
2396
|
If the method is called asynchronously,
|
|
1621
2397
|
returns the request thread.
|
|
1622
2398
|
"""
|
|
@@ -1632,14 +2408,14 @@ class VMPApi(object):
|
|
|
1632
2408
|
if key not in all_params:
|
|
1633
2409
|
raise TypeError(
|
|
1634
2410
|
"Got an unexpected keyword argument '%s'"
|
|
1635
|
-
" to method
|
|
2411
|
+
" to method enable_integration_tasks" % key
|
|
1636
2412
|
)
|
|
1637
2413
|
params[key] = val
|
|
1638
2414
|
del params['kwargs']
|
|
1639
2415
|
# verify the required parameter 'body' is set
|
|
1640
2416
|
if self.api_client.client_side_validation and ('body' not in params or
|
|
1641
2417
|
params['body'] is None): # noqa: E501
|
|
1642
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
2418
|
+
raise ValueError("Missing the required parameter `body` when calling `enable_integration_tasks`") # noqa: E501
|
|
1643
2419
|
|
|
1644
2420
|
collection_formats = {}
|
|
1645
2421
|
|
|
@@ -1667,14 +2443,14 @@ class VMPApi(object):
|
|
|
1667
2443
|
auth_settings = ['volcengineSign'] # noqa: E501
|
|
1668
2444
|
|
|
1669
2445
|
return self.api_client.call_api(
|
|
1670
|
-
'/
|
|
2446
|
+
'/EnableIntegrationTasks/2021-03-03/vmp/post/application_json/', 'POST',
|
|
1671
2447
|
path_params,
|
|
1672
2448
|
query_params,
|
|
1673
2449
|
header_params,
|
|
1674
2450
|
body=body_params,
|
|
1675
2451
|
post_params=form_params,
|
|
1676
2452
|
files=local_var_files,
|
|
1677
|
-
response_type='
|
|
2453
|
+
response_type='EnableIntegrationTasksResponse', # noqa: E501
|
|
1678
2454
|
auth_settings=auth_settings,
|
|
1679
2455
|
async_req=params.get('async_req'),
|
|
1680
2456
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1682,38 +2458,38 @@ class VMPApi(object):
|
|
|
1682
2458
|
_request_timeout=params.get('_request_timeout'),
|
|
1683
2459
|
collection_formats=collection_formats)
|
|
1684
2460
|
|
|
1685
|
-
def
|
|
1686
|
-
"""
|
|
2461
|
+
def enable_silence_policies(self, body, **kwargs): # noqa: E501
|
|
2462
|
+
"""enable_silence_policies # noqa: E501
|
|
1687
2463
|
|
|
1688
2464
|
This method makes a synchronous HTTP request by default. To make an
|
|
1689
2465
|
asynchronous HTTP request, please pass async_req=True
|
|
1690
|
-
>>> thread = api.
|
|
2466
|
+
>>> thread = api.enable_silence_policies(body, async_req=True)
|
|
1691
2467
|
>>> result = thread.get()
|
|
1692
2468
|
|
|
1693
2469
|
:param async_req bool
|
|
1694
|
-
:param
|
|
1695
|
-
:return:
|
|
2470
|
+
:param EnableSilencePoliciesRequest body: (required)
|
|
2471
|
+
:return: EnableSilencePoliciesResponse
|
|
1696
2472
|
If the method is called asynchronously,
|
|
1697
2473
|
returns the request thread.
|
|
1698
2474
|
"""
|
|
1699
2475
|
kwargs['_return_http_data_only'] = True
|
|
1700
2476
|
if kwargs.get('async_req'):
|
|
1701
|
-
return self.
|
|
2477
|
+
return self.enable_silence_policies_with_http_info(body, **kwargs) # noqa: E501
|
|
1702
2478
|
else:
|
|
1703
|
-
(data) = self.
|
|
2479
|
+
(data) = self.enable_silence_policies_with_http_info(body, **kwargs) # noqa: E501
|
|
1704
2480
|
return data
|
|
1705
2481
|
|
|
1706
|
-
def
|
|
1707
|
-
"""
|
|
2482
|
+
def enable_silence_policies_with_http_info(self, body, **kwargs): # noqa: E501
|
|
2483
|
+
"""enable_silence_policies # noqa: E501
|
|
1708
2484
|
|
|
1709
2485
|
This method makes a synchronous HTTP request by default. To make an
|
|
1710
2486
|
asynchronous HTTP request, please pass async_req=True
|
|
1711
|
-
>>> thread = api.
|
|
2487
|
+
>>> thread = api.enable_silence_policies_with_http_info(body, async_req=True)
|
|
1712
2488
|
>>> result = thread.get()
|
|
1713
2489
|
|
|
1714
2490
|
:param async_req bool
|
|
1715
|
-
:param
|
|
1716
|
-
:return:
|
|
2491
|
+
:param EnableSilencePoliciesRequest body: (required)
|
|
2492
|
+
:return: EnableSilencePoliciesResponse
|
|
1717
2493
|
If the method is called asynchronously,
|
|
1718
2494
|
returns the request thread.
|
|
1719
2495
|
"""
|
|
@@ -1729,14 +2505,14 @@ class VMPApi(object):
|
|
|
1729
2505
|
if key not in all_params:
|
|
1730
2506
|
raise TypeError(
|
|
1731
2507
|
"Got an unexpected keyword argument '%s'"
|
|
1732
|
-
" to method
|
|
2508
|
+
" to method enable_silence_policies" % key
|
|
1733
2509
|
)
|
|
1734
2510
|
params[key] = val
|
|
1735
2511
|
del params['kwargs']
|
|
1736
2512
|
# verify the required parameter 'body' is set
|
|
1737
2513
|
if self.api_client.client_side_validation and ('body' not in params or
|
|
1738
2514
|
params['body'] is None): # noqa: E501
|
|
1739
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
2515
|
+
raise ValueError("Missing the required parameter `body` when calling `enable_silence_policies`") # noqa: E501
|
|
1740
2516
|
|
|
1741
2517
|
collection_formats = {}
|
|
1742
2518
|
|
|
@@ -1764,14 +2540,14 @@ class VMPApi(object):
|
|
|
1764
2540
|
auth_settings = ['volcengineSign'] # noqa: E501
|
|
1765
2541
|
|
|
1766
2542
|
return self.api_client.call_api(
|
|
1767
|
-
'/
|
|
2543
|
+
'/EnableSilencePolicies/2021-03-03/vmp/post/application_json/', 'POST',
|
|
1768
2544
|
path_params,
|
|
1769
2545
|
query_params,
|
|
1770
2546
|
header_params,
|
|
1771
2547
|
body=body_params,
|
|
1772
2548
|
post_params=form_params,
|
|
1773
2549
|
files=local_var_files,
|
|
1774
|
-
response_type='
|
|
2550
|
+
response_type='EnableSilencePoliciesResponse', # noqa: E501
|
|
1775
2551
|
auth_settings=auth_settings,
|
|
1776
2552
|
async_req=params.get('async_req'),
|
|
1777
2553
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2167,6 +2943,103 @@ class VMPApi(object):
|
|
|
2167
2943
|
_request_timeout=params.get('_request_timeout'),
|
|
2168
2944
|
collection_formats=collection_formats)
|
|
2169
2945
|
|
|
2946
|
+
def get_integration_task(self, body, **kwargs): # noqa: E501
|
|
2947
|
+
"""get_integration_task # noqa: E501
|
|
2948
|
+
|
|
2949
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2950
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2951
|
+
>>> thread = api.get_integration_task(body, async_req=True)
|
|
2952
|
+
>>> result = thread.get()
|
|
2953
|
+
|
|
2954
|
+
:param async_req bool
|
|
2955
|
+
:param GetIntegrationTaskRequest body: (required)
|
|
2956
|
+
:return: GetIntegrationTaskResponse
|
|
2957
|
+
If the method is called asynchronously,
|
|
2958
|
+
returns the request thread.
|
|
2959
|
+
"""
|
|
2960
|
+
kwargs['_return_http_data_only'] = True
|
|
2961
|
+
if kwargs.get('async_req'):
|
|
2962
|
+
return self.get_integration_task_with_http_info(body, **kwargs) # noqa: E501
|
|
2963
|
+
else:
|
|
2964
|
+
(data) = self.get_integration_task_with_http_info(body, **kwargs) # noqa: E501
|
|
2965
|
+
return data
|
|
2966
|
+
|
|
2967
|
+
def get_integration_task_with_http_info(self, body, **kwargs): # noqa: E501
|
|
2968
|
+
"""get_integration_task # noqa: E501
|
|
2969
|
+
|
|
2970
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2971
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2972
|
+
>>> thread = api.get_integration_task_with_http_info(body, async_req=True)
|
|
2973
|
+
>>> result = thread.get()
|
|
2974
|
+
|
|
2975
|
+
:param async_req bool
|
|
2976
|
+
:param GetIntegrationTaskRequest body: (required)
|
|
2977
|
+
:return: GetIntegrationTaskResponse
|
|
2978
|
+
If the method is called asynchronously,
|
|
2979
|
+
returns the request thread.
|
|
2980
|
+
"""
|
|
2981
|
+
|
|
2982
|
+
all_params = ['body'] # noqa: E501
|
|
2983
|
+
all_params.append('async_req')
|
|
2984
|
+
all_params.append('_return_http_data_only')
|
|
2985
|
+
all_params.append('_preload_content')
|
|
2986
|
+
all_params.append('_request_timeout')
|
|
2987
|
+
|
|
2988
|
+
params = locals()
|
|
2989
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2990
|
+
if key not in all_params:
|
|
2991
|
+
raise TypeError(
|
|
2992
|
+
"Got an unexpected keyword argument '%s'"
|
|
2993
|
+
" to method get_integration_task" % key
|
|
2994
|
+
)
|
|
2995
|
+
params[key] = val
|
|
2996
|
+
del params['kwargs']
|
|
2997
|
+
# verify the required parameter 'body' is set
|
|
2998
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
2999
|
+
params['body'] is None): # noqa: E501
|
|
3000
|
+
raise ValueError("Missing the required parameter `body` when calling `get_integration_task`") # noqa: E501
|
|
3001
|
+
|
|
3002
|
+
collection_formats = {}
|
|
3003
|
+
|
|
3004
|
+
path_params = {}
|
|
3005
|
+
|
|
3006
|
+
query_params = []
|
|
3007
|
+
|
|
3008
|
+
header_params = {}
|
|
3009
|
+
|
|
3010
|
+
form_params = []
|
|
3011
|
+
local_var_files = {}
|
|
3012
|
+
|
|
3013
|
+
body_params = None
|
|
3014
|
+
if 'body' in params:
|
|
3015
|
+
body_params = params['body']
|
|
3016
|
+
# HTTP header `Accept`
|
|
3017
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3018
|
+
['application/json']) # noqa: E501
|
|
3019
|
+
|
|
3020
|
+
# HTTP header `Content-Type`
|
|
3021
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
3022
|
+
['application/json']) # noqa: E501
|
|
3023
|
+
|
|
3024
|
+
# Authentication setting
|
|
3025
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
3026
|
+
|
|
3027
|
+
return self.api_client.call_api(
|
|
3028
|
+
'/GetIntegrationTask/2021-03-03/vmp/post/application_json/', 'POST',
|
|
3029
|
+
path_params,
|
|
3030
|
+
query_params,
|
|
3031
|
+
header_params,
|
|
3032
|
+
body=body_params,
|
|
3033
|
+
post_params=form_params,
|
|
3034
|
+
files=local_var_files,
|
|
3035
|
+
response_type='GetIntegrationTaskResponse', # noqa: E501
|
|
3036
|
+
auth_settings=auth_settings,
|
|
3037
|
+
async_req=params.get('async_req'),
|
|
3038
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3039
|
+
_preload_content=params.get('_preload_content', True),
|
|
3040
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3041
|
+
collection_formats=collection_formats)
|
|
3042
|
+
|
|
2170
3043
|
def get_notify_group_policy(self, body, **kwargs): # noqa: E501
|
|
2171
3044
|
"""get_notify_group_policy # noqa: E501
|
|
2172
3045
|
|
|
@@ -2952,29 +3825,126 @@ class VMPApi(object):
|
|
|
2952
3825
|
>>> result = thread.get()
|
|
2953
3826
|
|
|
2954
3827
|
:param async_req bool
|
|
2955
|
-
:param ListContactsRequest body: (required)
|
|
2956
|
-
:return: ListContactsResponse
|
|
3828
|
+
:param ListContactsRequest body: (required)
|
|
3829
|
+
:return: ListContactsResponse
|
|
3830
|
+
If the method is called asynchronously,
|
|
3831
|
+
returns the request thread.
|
|
3832
|
+
"""
|
|
3833
|
+
kwargs['_return_http_data_only'] = True
|
|
3834
|
+
if kwargs.get('async_req'):
|
|
3835
|
+
return self.list_contacts_with_http_info(body, **kwargs) # noqa: E501
|
|
3836
|
+
else:
|
|
3837
|
+
(data) = self.list_contacts_with_http_info(body, **kwargs) # noqa: E501
|
|
3838
|
+
return data
|
|
3839
|
+
|
|
3840
|
+
def list_contacts_with_http_info(self, body, **kwargs): # noqa: E501
|
|
3841
|
+
"""list_contacts # noqa: E501
|
|
3842
|
+
|
|
3843
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3844
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3845
|
+
>>> thread = api.list_contacts_with_http_info(body, async_req=True)
|
|
3846
|
+
>>> result = thread.get()
|
|
3847
|
+
|
|
3848
|
+
:param async_req bool
|
|
3849
|
+
:param ListContactsRequest body: (required)
|
|
3850
|
+
:return: ListContactsResponse
|
|
3851
|
+
If the method is called asynchronously,
|
|
3852
|
+
returns the request thread.
|
|
3853
|
+
"""
|
|
3854
|
+
|
|
3855
|
+
all_params = ['body'] # noqa: E501
|
|
3856
|
+
all_params.append('async_req')
|
|
3857
|
+
all_params.append('_return_http_data_only')
|
|
3858
|
+
all_params.append('_preload_content')
|
|
3859
|
+
all_params.append('_request_timeout')
|
|
3860
|
+
|
|
3861
|
+
params = locals()
|
|
3862
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3863
|
+
if key not in all_params:
|
|
3864
|
+
raise TypeError(
|
|
3865
|
+
"Got an unexpected keyword argument '%s'"
|
|
3866
|
+
" to method list_contacts" % key
|
|
3867
|
+
)
|
|
3868
|
+
params[key] = val
|
|
3869
|
+
del params['kwargs']
|
|
3870
|
+
# verify the required parameter 'body' is set
|
|
3871
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
3872
|
+
params['body'] is None): # noqa: E501
|
|
3873
|
+
raise ValueError("Missing the required parameter `body` when calling `list_contacts`") # noqa: E501
|
|
3874
|
+
|
|
3875
|
+
collection_formats = {}
|
|
3876
|
+
|
|
3877
|
+
path_params = {}
|
|
3878
|
+
|
|
3879
|
+
query_params = []
|
|
3880
|
+
|
|
3881
|
+
header_params = {}
|
|
3882
|
+
|
|
3883
|
+
form_params = []
|
|
3884
|
+
local_var_files = {}
|
|
3885
|
+
|
|
3886
|
+
body_params = None
|
|
3887
|
+
if 'body' in params:
|
|
3888
|
+
body_params = params['body']
|
|
3889
|
+
# HTTP header `Accept`
|
|
3890
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3891
|
+
['application/json']) # noqa: E501
|
|
3892
|
+
|
|
3893
|
+
# HTTP header `Content-Type`
|
|
3894
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
3895
|
+
['application/json']) # noqa: E501
|
|
3896
|
+
|
|
3897
|
+
# Authentication setting
|
|
3898
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
3899
|
+
|
|
3900
|
+
return self.api_client.call_api(
|
|
3901
|
+
'/ListContacts/2021-03-03/vmp/post/application_json/', 'POST',
|
|
3902
|
+
path_params,
|
|
3903
|
+
query_params,
|
|
3904
|
+
header_params,
|
|
3905
|
+
body=body_params,
|
|
3906
|
+
post_params=form_params,
|
|
3907
|
+
files=local_var_files,
|
|
3908
|
+
response_type='ListContactsResponse', # noqa: E501
|
|
3909
|
+
auth_settings=auth_settings,
|
|
3910
|
+
async_req=params.get('async_req'),
|
|
3911
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3912
|
+
_preload_content=params.get('_preload_content', True),
|
|
3913
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3914
|
+
collection_formats=collection_formats)
|
|
3915
|
+
|
|
3916
|
+
def list_integration_tasks(self, body, **kwargs): # noqa: E501
|
|
3917
|
+
"""list_integration_tasks # noqa: E501
|
|
3918
|
+
|
|
3919
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3920
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3921
|
+
>>> thread = api.list_integration_tasks(body, async_req=True)
|
|
3922
|
+
>>> result = thread.get()
|
|
3923
|
+
|
|
3924
|
+
:param async_req bool
|
|
3925
|
+
:param ListIntegrationTasksRequest body: (required)
|
|
3926
|
+
:return: ListIntegrationTasksResponse
|
|
2957
3927
|
If the method is called asynchronously,
|
|
2958
3928
|
returns the request thread.
|
|
2959
3929
|
"""
|
|
2960
3930
|
kwargs['_return_http_data_only'] = True
|
|
2961
3931
|
if kwargs.get('async_req'):
|
|
2962
|
-
return self.
|
|
3932
|
+
return self.list_integration_tasks_with_http_info(body, **kwargs) # noqa: E501
|
|
2963
3933
|
else:
|
|
2964
|
-
(data) = self.
|
|
3934
|
+
(data) = self.list_integration_tasks_with_http_info(body, **kwargs) # noqa: E501
|
|
2965
3935
|
return data
|
|
2966
3936
|
|
|
2967
|
-
def
|
|
2968
|
-
"""
|
|
3937
|
+
def list_integration_tasks_with_http_info(self, body, **kwargs): # noqa: E501
|
|
3938
|
+
"""list_integration_tasks # noqa: E501
|
|
2969
3939
|
|
|
2970
3940
|
This method makes a synchronous HTTP request by default. To make an
|
|
2971
3941
|
asynchronous HTTP request, please pass async_req=True
|
|
2972
|
-
>>> thread = api.
|
|
3942
|
+
>>> thread = api.list_integration_tasks_with_http_info(body, async_req=True)
|
|
2973
3943
|
>>> result = thread.get()
|
|
2974
3944
|
|
|
2975
3945
|
:param async_req bool
|
|
2976
|
-
:param
|
|
2977
|
-
:return:
|
|
3946
|
+
:param ListIntegrationTasksRequest body: (required)
|
|
3947
|
+
:return: ListIntegrationTasksResponse
|
|
2978
3948
|
If the method is called asynchronously,
|
|
2979
3949
|
returns the request thread.
|
|
2980
3950
|
"""
|
|
@@ -2990,14 +3960,14 @@ class VMPApi(object):
|
|
|
2990
3960
|
if key not in all_params:
|
|
2991
3961
|
raise TypeError(
|
|
2992
3962
|
"Got an unexpected keyword argument '%s'"
|
|
2993
|
-
" to method
|
|
3963
|
+
" to method list_integration_tasks" % key
|
|
2994
3964
|
)
|
|
2995
3965
|
params[key] = val
|
|
2996
3966
|
del params['kwargs']
|
|
2997
3967
|
# verify the required parameter 'body' is set
|
|
2998
3968
|
if self.api_client.client_side_validation and ('body' not in params or
|
|
2999
3969
|
params['body'] is None): # noqa: E501
|
|
3000
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
3970
|
+
raise ValueError("Missing the required parameter `body` when calling `list_integration_tasks`") # noqa: E501
|
|
3001
3971
|
|
|
3002
3972
|
collection_formats = {}
|
|
3003
3973
|
|
|
@@ -3025,14 +3995,14 @@ class VMPApi(object):
|
|
|
3025
3995
|
auth_settings = ['volcengineSign'] # noqa: E501
|
|
3026
3996
|
|
|
3027
3997
|
return self.api_client.call_api(
|
|
3028
|
-
'/
|
|
3998
|
+
'/ListIntegrationTasks/2021-03-03/vmp/post/application_json/', 'POST',
|
|
3029
3999
|
path_params,
|
|
3030
4000
|
query_params,
|
|
3031
4001
|
header_params,
|
|
3032
4002
|
body=body_params,
|
|
3033
4003
|
post_params=form_params,
|
|
3034
4004
|
files=local_var_files,
|
|
3035
|
-
response_type='
|
|
4005
|
+
response_type='ListIntegrationTasksResponse', # noqa: E501
|
|
3036
4006
|
auth_settings=auth_settings,
|
|
3037
4007
|
async_req=params.get('async_req'),
|
|
3038
4008
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -3525,6 +4495,103 @@ class VMPApi(object):
|
|
|
3525
4495
|
_request_timeout=params.get('_request_timeout'),
|
|
3526
4496
|
collection_formats=collection_formats)
|
|
3527
4497
|
|
|
4498
|
+
def list_silence_policies(self, body, **kwargs): # noqa: E501
|
|
4499
|
+
"""list_silence_policies # noqa: E501
|
|
4500
|
+
|
|
4501
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4502
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4503
|
+
>>> thread = api.list_silence_policies(body, async_req=True)
|
|
4504
|
+
>>> result = thread.get()
|
|
4505
|
+
|
|
4506
|
+
:param async_req bool
|
|
4507
|
+
:param ListSilencePoliciesRequest body: (required)
|
|
4508
|
+
:return: ListSilencePoliciesResponse
|
|
4509
|
+
If the method is called asynchronously,
|
|
4510
|
+
returns the request thread.
|
|
4511
|
+
"""
|
|
4512
|
+
kwargs['_return_http_data_only'] = True
|
|
4513
|
+
if kwargs.get('async_req'):
|
|
4514
|
+
return self.list_silence_policies_with_http_info(body, **kwargs) # noqa: E501
|
|
4515
|
+
else:
|
|
4516
|
+
(data) = self.list_silence_policies_with_http_info(body, **kwargs) # noqa: E501
|
|
4517
|
+
return data
|
|
4518
|
+
|
|
4519
|
+
def list_silence_policies_with_http_info(self, body, **kwargs): # noqa: E501
|
|
4520
|
+
"""list_silence_policies # noqa: E501
|
|
4521
|
+
|
|
4522
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4523
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4524
|
+
>>> thread = api.list_silence_policies_with_http_info(body, async_req=True)
|
|
4525
|
+
>>> result = thread.get()
|
|
4526
|
+
|
|
4527
|
+
:param async_req bool
|
|
4528
|
+
:param ListSilencePoliciesRequest body: (required)
|
|
4529
|
+
:return: ListSilencePoliciesResponse
|
|
4530
|
+
If the method is called asynchronously,
|
|
4531
|
+
returns the request thread.
|
|
4532
|
+
"""
|
|
4533
|
+
|
|
4534
|
+
all_params = ['body'] # noqa: E501
|
|
4535
|
+
all_params.append('async_req')
|
|
4536
|
+
all_params.append('_return_http_data_only')
|
|
4537
|
+
all_params.append('_preload_content')
|
|
4538
|
+
all_params.append('_request_timeout')
|
|
4539
|
+
|
|
4540
|
+
params = locals()
|
|
4541
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
4542
|
+
if key not in all_params:
|
|
4543
|
+
raise TypeError(
|
|
4544
|
+
"Got an unexpected keyword argument '%s'"
|
|
4545
|
+
" to method list_silence_policies" % key
|
|
4546
|
+
)
|
|
4547
|
+
params[key] = val
|
|
4548
|
+
del params['kwargs']
|
|
4549
|
+
# verify the required parameter 'body' is set
|
|
4550
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
4551
|
+
params['body'] is None): # noqa: E501
|
|
4552
|
+
raise ValueError("Missing the required parameter `body` when calling `list_silence_policies`") # noqa: E501
|
|
4553
|
+
|
|
4554
|
+
collection_formats = {}
|
|
4555
|
+
|
|
4556
|
+
path_params = {}
|
|
4557
|
+
|
|
4558
|
+
query_params = []
|
|
4559
|
+
|
|
4560
|
+
header_params = {}
|
|
4561
|
+
|
|
4562
|
+
form_params = []
|
|
4563
|
+
local_var_files = {}
|
|
4564
|
+
|
|
4565
|
+
body_params = None
|
|
4566
|
+
if 'body' in params:
|
|
4567
|
+
body_params = params['body']
|
|
4568
|
+
# HTTP header `Accept`
|
|
4569
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
4570
|
+
['application/json']) # noqa: E501
|
|
4571
|
+
|
|
4572
|
+
# HTTP header `Content-Type`
|
|
4573
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
4574
|
+
['application/json']) # noqa: E501
|
|
4575
|
+
|
|
4576
|
+
# Authentication setting
|
|
4577
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
4578
|
+
|
|
4579
|
+
return self.api_client.call_api(
|
|
4580
|
+
'/ListSilencePolicies/2021-03-03/vmp/post/application_json/', 'POST',
|
|
4581
|
+
path_params,
|
|
4582
|
+
query_params,
|
|
4583
|
+
header_params,
|
|
4584
|
+
body=body_params,
|
|
4585
|
+
post_params=form_params,
|
|
4586
|
+
files=local_var_files,
|
|
4587
|
+
response_type='ListSilencePoliciesResponse', # noqa: E501
|
|
4588
|
+
auth_settings=auth_settings,
|
|
4589
|
+
async_req=params.get('async_req'),
|
|
4590
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
4591
|
+
_preload_content=params.get('_preload_content', True),
|
|
4592
|
+
_request_timeout=params.get('_request_timeout'),
|
|
4593
|
+
collection_formats=collection_formats)
|
|
4594
|
+
|
|
3528
4595
|
def list_tags_for_resources(self, body, **kwargs): # noqa: E501
|
|
3529
4596
|
"""list_tags_for_resources # noqa: E501
|
|
3530
4597
|
|
|
@@ -4883,6 +5950,103 @@ class VMPApi(object):
|
|
|
4883
5950
|
_request_timeout=params.get('_request_timeout'),
|
|
4884
5951
|
collection_formats=collection_formats)
|
|
4885
5952
|
|
|
5953
|
+
def update_integration_task(self, body, **kwargs): # noqa: E501
|
|
5954
|
+
"""update_integration_task # noqa: E501
|
|
5955
|
+
|
|
5956
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
5957
|
+
asynchronous HTTP request, please pass async_req=True
|
|
5958
|
+
>>> thread = api.update_integration_task(body, async_req=True)
|
|
5959
|
+
>>> result = thread.get()
|
|
5960
|
+
|
|
5961
|
+
:param async_req bool
|
|
5962
|
+
:param UpdateIntegrationTaskRequest body: (required)
|
|
5963
|
+
:return: UpdateIntegrationTaskResponse
|
|
5964
|
+
If the method is called asynchronously,
|
|
5965
|
+
returns the request thread.
|
|
5966
|
+
"""
|
|
5967
|
+
kwargs['_return_http_data_only'] = True
|
|
5968
|
+
if kwargs.get('async_req'):
|
|
5969
|
+
return self.update_integration_task_with_http_info(body, **kwargs) # noqa: E501
|
|
5970
|
+
else:
|
|
5971
|
+
(data) = self.update_integration_task_with_http_info(body, **kwargs) # noqa: E501
|
|
5972
|
+
return data
|
|
5973
|
+
|
|
5974
|
+
def update_integration_task_with_http_info(self, body, **kwargs): # noqa: E501
|
|
5975
|
+
"""update_integration_task # noqa: E501
|
|
5976
|
+
|
|
5977
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
5978
|
+
asynchronous HTTP request, please pass async_req=True
|
|
5979
|
+
>>> thread = api.update_integration_task_with_http_info(body, async_req=True)
|
|
5980
|
+
>>> result = thread.get()
|
|
5981
|
+
|
|
5982
|
+
:param async_req bool
|
|
5983
|
+
:param UpdateIntegrationTaskRequest body: (required)
|
|
5984
|
+
:return: UpdateIntegrationTaskResponse
|
|
5985
|
+
If the method is called asynchronously,
|
|
5986
|
+
returns the request thread.
|
|
5987
|
+
"""
|
|
5988
|
+
|
|
5989
|
+
all_params = ['body'] # noqa: E501
|
|
5990
|
+
all_params.append('async_req')
|
|
5991
|
+
all_params.append('_return_http_data_only')
|
|
5992
|
+
all_params.append('_preload_content')
|
|
5993
|
+
all_params.append('_request_timeout')
|
|
5994
|
+
|
|
5995
|
+
params = locals()
|
|
5996
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
5997
|
+
if key not in all_params:
|
|
5998
|
+
raise TypeError(
|
|
5999
|
+
"Got an unexpected keyword argument '%s'"
|
|
6000
|
+
" to method update_integration_task" % key
|
|
6001
|
+
)
|
|
6002
|
+
params[key] = val
|
|
6003
|
+
del params['kwargs']
|
|
6004
|
+
# verify the required parameter 'body' is set
|
|
6005
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
6006
|
+
params['body'] is None): # noqa: E501
|
|
6007
|
+
raise ValueError("Missing the required parameter `body` when calling `update_integration_task`") # noqa: E501
|
|
6008
|
+
|
|
6009
|
+
collection_formats = {}
|
|
6010
|
+
|
|
6011
|
+
path_params = {}
|
|
6012
|
+
|
|
6013
|
+
query_params = []
|
|
6014
|
+
|
|
6015
|
+
header_params = {}
|
|
6016
|
+
|
|
6017
|
+
form_params = []
|
|
6018
|
+
local_var_files = {}
|
|
6019
|
+
|
|
6020
|
+
body_params = None
|
|
6021
|
+
if 'body' in params:
|
|
6022
|
+
body_params = params['body']
|
|
6023
|
+
# HTTP header `Accept`
|
|
6024
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
6025
|
+
['application/json']) # noqa: E501
|
|
6026
|
+
|
|
6027
|
+
# HTTP header `Content-Type`
|
|
6028
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
6029
|
+
['application/json']) # noqa: E501
|
|
6030
|
+
|
|
6031
|
+
# Authentication setting
|
|
6032
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
6033
|
+
|
|
6034
|
+
return self.api_client.call_api(
|
|
6035
|
+
'/UpdateIntegrationTask/2021-03-03/vmp/post/application_json/', 'POST',
|
|
6036
|
+
path_params,
|
|
6037
|
+
query_params,
|
|
6038
|
+
header_params,
|
|
6039
|
+
body=body_params,
|
|
6040
|
+
post_params=form_params,
|
|
6041
|
+
files=local_var_files,
|
|
6042
|
+
response_type='UpdateIntegrationTaskResponse', # noqa: E501
|
|
6043
|
+
auth_settings=auth_settings,
|
|
6044
|
+
async_req=params.get('async_req'),
|
|
6045
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
6046
|
+
_preload_content=params.get('_preload_content', True),
|
|
6047
|
+
_request_timeout=params.get('_request_timeout'),
|
|
6048
|
+
collection_formats=collection_formats)
|
|
6049
|
+
|
|
4886
6050
|
def update_notify_group_policy(self, body, **kwargs): # noqa: E501
|
|
4887
6051
|
"""update_notify_group_policy # noqa: E501
|
|
4888
6052
|
|
|
@@ -5271,6 +6435,103 @@ class VMPApi(object):
|
|
|
5271
6435
|
_request_timeout=params.get('_request_timeout'),
|
|
5272
6436
|
collection_formats=collection_formats)
|
|
5273
6437
|
|
|
6438
|
+
def update_silence_policy(self, body, **kwargs): # noqa: E501
|
|
6439
|
+
"""update_silence_policy # noqa: E501
|
|
6440
|
+
|
|
6441
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
6442
|
+
asynchronous HTTP request, please pass async_req=True
|
|
6443
|
+
>>> thread = api.update_silence_policy(body, async_req=True)
|
|
6444
|
+
>>> result = thread.get()
|
|
6445
|
+
|
|
6446
|
+
:param async_req bool
|
|
6447
|
+
:param UpdateSilencePolicyRequest body: (required)
|
|
6448
|
+
:return: UpdateSilencePolicyResponse
|
|
6449
|
+
If the method is called asynchronously,
|
|
6450
|
+
returns the request thread.
|
|
6451
|
+
"""
|
|
6452
|
+
kwargs['_return_http_data_only'] = True
|
|
6453
|
+
if kwargs.get('async_req'):
|
|
6454
|
+
return self.update_silence_policy_with_http_info(body, **kwargs) # noqa: E501
|
|
6455
|
+
else:
|
|
6456
|
+
(data) = self.update_silence_policy_with_http_info(body, **kwargs) # noqa: E501
|
|
6457
|
+
return data
|
|
6458
|
+
|
|
6459
|
+
def update_silence_policy_with_http_info(self, body, **kwargs): # noqa: E501
|
|
6460
|
+
"""update_silence_policy # noqa: E501
|
|
6461
|
+
|
|
6462
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
6463
|
+
asynchronous HTTP request, please pass async_req=True
|
|
6464
|
+
>>> thread = api.update_silence_policy_with_http_info(body, async_req=True)
|
|
6465
|
+
>>> result = thread.get()
|
|
6466
|
+
|
|
6467
|
+
:param async_req bool
|
|
6468
|
+
:param UpdateSilencePolicyRequest body: (required)
|
|
6469
|
+
:return: UpdateSilencePolicyResponse
|
|
6470
|
+
If the method is called asynchronously,
|
|
6471
|
+
returns the request thread.
|
|
6472
|
+
"""
|
|
6473
|
+
|
|
6474
|
+
all_params = ['body'] # noqa: E501
|
|
6475
|
+
all_params.append('async_req')
|
|
6476
|
+
all_params.append('_return_http_data_only')
|
|
6477
|
+
all_params.append('_preload_content')
|
|
6478
|
+
all_params.append('_request_timeout')
|
|
6479
|
+
|
|
6480
|
+
params = locals()
|
|
6481
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
6482
|
+
if key not in all_params:
|
|
6483
|
+
raise TypeError(
|
|
6484
|
+
"Got an unexpected keyword argument '%s'"
|
|
6485
|
+
" to method update_silence_policy" % key
|
|
6486
|
+
)
|
|
6487
|
+
params[key] = val
|
|
6488
|
+
del params['kwargs']
|
|
6489
|
+
# verify the required parameter 'body' is set
|
|
6490
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
6491
|
+
params['body'] is None): # noqa: E501
|
|
6492
|
+
raise ValueError("Missing the required parameter `body` when calling `update_silence_policy`") # noqa: E501
|
|
6493
|
+
|
|
6494
|
+
collection_formats = {}
|
|
6495
|
+
|
|
6496
|
+
path_params = {}
|
|
6497
|
+
|
|
6498
|
+
query_params = []
|
|
6499
|
+
|
|
6500
|
+
header_params = {}
|
|
6501
|
+
|
|
6502
|
+
form_params = []
|
|
6503
|
+
local_var_files = {}
|
|
6504
|
+
|
|
6505
|
+
body_params = None
|
|
6506
|
+
if 'body' in params:
|
|
6507
|
+
body_params = params['body']
|
|
6508
|
+
# HTTP header `Accept`
|
|
6509
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
6510
|
+
['application/json']) # noqa: E501
|
|
6511
|
+
|
|
6512
|
+
# HTTP header `Content-Type`
|
|
6513
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
6514
|
+
['application/json']) # noqa: E501
|
|
6515
|
+
|
|
6516
|
+
# Authentication setting
|
|
6517
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
6518
|
+
|
|
6519
|
+
return self.api_client.call_api(
|
|
6520
|
+
'/UpdateSilencePolicy/2021-03-03/vmp/post/application_json/', 'POST',
|
|
6521
|
+
path_params,
|
|
6522
|
+
query_params,
|
|
6523
|
+
header_params,
|
|
6524
|
+
body=body_params,
|
|
6525
|
+
post_params=form_params,
|
|
6526
|
+
files=local_var_files,
|
|
6527
|
+
response_type='UpdateSilencePolicyResponse', # noqa: E501
|
|
6528
|
+
auth_settings=auth_settings,
|
|
6529
|
+
async_req=params.get('async_req'),
|
|
6530
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
6531
|
+
_preload_content=params.get('_preload_content', True),
|
|
6532
|
+
_request_timeout=params.get('_request_timeout'),
|
|
6533
|
+
collection_formats=collection_formats)
|
|
6534
|
+
|
|
5274
6535
|
def update_workspace(self, body, **kwargs): # noqa: E501
|
|
5275
6536
|
"""update_workspace # noqa: E501
|
|
5276
6537
|
|