volcengine-python-sdk 4.0.22__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.22.dist-info → volcengine_python_sdk-4.0.24.dist-info}/METADATA +1 -1
- {volcengine_python_sdk-4.0.22.dist-info → volcengine_python_sdk-4.0.24.dist-info}/RECORD +215 -42
- {volcengine_python_sdk-4.0.22.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
- volcenginesdkredis/__init__.py +2 -0
- volcenginesdkredis/api/redis_api.py +97 -0
- volcenginesdkredis/models/__init__.py +2 -0
- volcenginesdkredis/models/instance_for_describe_db_instances_output.py +27 -1
- volcenginesdkredis/models/modify_db_instance_private_dns_visibility_request.py +177 -0
- volcenginesdkredis/models/modify_db_instance_private_dns_visibility_response.py +95 -0
- volcenginesdkredis/models/visit_addr_for_describe_db_instance_detail_output.py +29 -3
- 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.22.dist-info → volcengine_python_sdk-4.0.24.dist-info}/WHEEL +0 -0
- {volcengine_python_sdk-4.0.22.dist-info → volcengine_python_sdk-4.0.24.dist-info}/licenses/LICENSE.txt +0 -0
- {volcengine_python_sdk-4.0.22.dist-info → volcengine_python_sdk-4.0.24.dist-info}/licenses/NOTICE.md +0 -0
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
na
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from __future__ import absolute_import
|
|
15
|
+
|
|
16
|
+
import re # noqa: F401
|
|
17
|
+
|
|
18
|
+
# python 2 and python 3 compatibility library
|
|
19
|
+
import six
|
|
20
|
+
|
|
21
|
+
import volcenginesdkcore
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class NAApi(object):
|
|
25
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
26
|
+
|
|
27
|
+
Do not edit the class manually.
|
|
28
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
def __init__(self, api_client=None):
|
|
32
|
+
if api_client is None:
|
|
33
|
+
api_client = volcenginesdkcore.ApiClient()
|
|
34
|
+
self.api_client = api_client
|
|
35
|
+
|
|
36
|
+
def create_diagnosis_instance(self, body, **kwargs): # noqa: E501
|
|
37
|
+
"""create_diagnosis_instance # noqa: E501
|
|
38
|
+
|
|
39
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
40
|
+
asynchronous HTTP request, please pass async_req=True
|
|
41
|
+
>>> thread = api.create_diagnosis_instance(body, async_req=True)
|
|
42
|
+
>>> result = thread.get()
|
|
43
|
+
|
|
44
|
+
:param async_req bool
|
|
45
|
+
:param CreateDiagnosisInstanceRequest body: (required)
|
|
46
|
+
:return: CreateDiagnosisInstanceResponse
|
|
47
|
+
If the method is called asynchronously,
|
|
48
|
+
returns the request thread.
|
|
49
|
+
"""
|
|
50
|
+
kwargs['_return_http_data_only'] = True
|
|
51
|
+
if kwargs.get('async_req'):
|
|
52
|
+
return self.create_diagnosis_instance_with_http_info(body, **kwargs) # noqa: E501
|
|
53
|
+
else:
|
|
54
|
+
(data) = self.create_diagnosis_instance_with_http_info(body, **kwargs) # noqa: E501
|
|
55
|
+
return data
|
|
56
|
+
|
|
57
|
+
def create_diagnosis_instance_with_http_info(self, body, **kwargs): # noqa: E501
|
|
58
|
+
"""create_diagnosis_instance # noqa: E501
|
|
59
|
+
|
|
60
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
61
|
+
asynchronous HTTP request, please pass async_req=True
|
|
62
|
+
>>> thread = api.create_diagnosis_instance_with_http_info(body, async_req=True)
|
|
63
|
+
>>> result = thread.get()
|
|
64
|
+
|
|
65
|
+
:param async_req bool
|
|
66
|
+
:param CreateDiagnosisInstanceRequest body: (required)
|
|
67
|
+
:return: CreateDiagnosisInstanceResponse
|
|
68
|
+
If the method is called asynchronously,
|
|
69
|
+
returns the request thread.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
all_params = ['body'] # noqa: E501
|
|
73
|
+
all_params.append('async_req')
|
|
74
|
+
all_params.append('_return_http_data_only')
|
|
75
|
+
all_params.append('_preload_content')
|
|
76
|
+
all_params.append('_request_timeout')
|
|
77
|
+
|
|
78
|
+
params = locals()
|
|
79
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
80
|
+
if key not in all_params:
|
|
81
|
+
raise TypeError(
|
|
82
|
+
"Got an unexpected keyword argument '%s'"
|
|
83
|
+
" to method create_diagnosis_instance" % key
|
|
84
|
+
)
|
|
85
|
+
params[key] = val
|
|
86
|
+
del params['kwargs']
|
|
87
|
+
# verify the required parameter 'body' is set
|
|
88
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
89
|
+
params['body'] is None): # noqa: E501
|
|
90
|
+
raise ValueError("Missing the required parameter `body` when calling `create_diagnosis_instance`") # noqa: E501
|
|
91
|
+
|
|
92
|
+
collection_formats = {}
|
|
93
|
+
|
|
94
|
+
path_params = {}
|
|
95
|
+
|
|
96
|
+
query_params = []
|
|
97
|
+
|
|
98
|
+
header_params = {}
|
|
99
|
+
|
|
100
|
+
form_params = []
|
|
101
|
+
local_var_files = {}
|
|
102
|
+
|
|
103
|
+
body_params = None
|
|
104
|
+
if 'body' in params:
|
|
105
|
+
body_params = params['body']
|
|
106
|
+
# HTTP header `Accept`
|
|
107
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
108
|
+
['application/json']) # noqa: E501
|
|
109
|
+
|
|
110
|
+
# HTTP header `Content-Type`
|
|
111
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
112
|
+
['text/plain']) # noqa: E501
|
|
113
|
+
|
|
114
|
+
# Authentication setting
|
|
115
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
116
|
+
|
|
117
|
+
return self.api_client.call_api(
|
|
118
|
+
'/CreateDiagnosisInstance/2020-04-01/na/get/text_plain/', 'GET',
|
|
119
|
+
path_params,
|
|
120
|
+
query_params,
|
|
121
|
+
header_params,
|
|
122
|
+
body=body_params,
|
|
123
|
+
post_params=form_params,
|
|
124
|
+
files=local_var_files,
|
|
125
|
+
response_type='CreateDiagnosisInstanceResponse', # noqa: E501
|
|
126
|
+
auth_settings=auth_settings,
|
|
127
|
+
async_req=params.get('async_req'),
|
|
128
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
129
|
+
_preload_content=params.get('_preload_content', True),
|
|
130
|
+
_request_timeout=params.get('_request_timeout'),
|
|
131
|
+
collection_formats=collection_formats)
|
|
132
|
+
|
|
133
|
+
def describe_diagnosis_instance_detail(self, body, **kwargs): # noqa: E501
|
|
134
|
+
"""describe_diagnosis_instance_detail # noqa: E501
|
|
135
|
+
|
|
136
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
137
|
+
asynchronous HTTP request, please pass async_req=True
|
|
138
|
+
>>> thread = api.describe_diagnosis_instance_detail(body, async_req=True)
|
|
139
|
+
>>> result = thread.get()
|
|
140
|
+
|
|
141
|
+
:param async_req bool
|
|
142
|
+
:param DescribeDiagnosisInstanceDetailRequest body: (required)
|
|
143
|
+
:return: DescribeDiagnosisInstanceDetailResponse
|
|
144
|
+
If the method is called asynchronously,
|
|
145
|
+
returns the request thread.
|
|
146
|
+
"""
|
|
147
|
+
kwargs['_return_http_data_only'] = True
|
|
148
|
+
if kwargs.get('async_req'):
|
|
149
|
+
return self.describe_diagnosis_instance_detail_with_http_info(body, **kwargs) # noqa: E501
|
|
150
|
+
else:
|
|
151
|
+
(data) = self.describe_diagnosis_instance_detail_with_http_info(body, **kwargs) # noqa: E501
|
|
152
|
+
return data
|
|
153
|
+
|
|
154
|
+
def describe_diagnosis_instance_detail_with_http_info(self, body, **kwargs): # noqa: E501
|
|
155
|
+
"""describe_diagnosis_instance_detail # noqa: E501
|
|
156
|
+
|
|
157
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
158
|
+
asynchronous HTTP request, please pass async_req=True
|
|
159
|
+
>>> thread = api.describe_diagnosis_instance_detail_with_http_info(body, async_req=True)
|
|
160
|
+
>>> result = thread.get()
|
|
161
|
+
|
|
162
|
+
:param async_req bool
|
|
163
|
+
:param DescribeDiagnosisInstanceDetailRequest body: (required)
|
|
164
|
+
:return: DescribeDiagnosisInstanceDetailResponse
|
|
165
|
+
If the method is called asynchronously,
|
|
166
|
+
returns the request thread.
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
all_params = ['body'] # noqa: E501
|
|
170
|
+
all_params.append('async_req')
|
|
171
|
+
all_params.append('_return_http_data_only')
|
|
172
|
+
all_params.append('_preload_content')
|
|
173
|
+
all_params.append('_request_timeout')
|
|
174
|
+
|
|
175
|
+
params = locals()
|
|
176
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
177
|
+
if key not in all_params:
|
|
178
|
+
raise TypeError(
|
|
179
|
+
"Got an unexpected keyword argument '%s'"
|
|
180
|
+
" to method describe_diagnosis_instance_detail" % key
|
|
181
|
+
)
|
|
182
|
+
params[key] = val
|
|
183
|
+
del params['kwargs']
|
|
184
|
+
# verify the required parameter 'body' is set
|
|
185
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
186
|
+
params['body'] is None): # noqa: E501
|
|
187
|
+
raise ValueError("Missing the required parameter `body` when calling `describe_diagnosis_instance_detail`") # noqa: E501
|
|
188
|
+
|
|
189
|
+
collection_formats = {}
|
|
190
|
+
|
|
191
|
+
path_params = {}
|
|
192
|
+
|
|
193
|
+
query_params = []
|
|
194
|
+
|
|
195
|
+
header_params = {}
|
|
196
|
+
|
|
197
|
+
form_params = []
|
|
198
|
+
local_var_files = {}
|
|
199
|
+
|
|
200
|
+
body_params = None
|
|
201
|
+
if 'body' in params:
|
|
202
|
+
body_params = params['body']
|
|
203
|
+
# HTTP header `Accept`
|
|
204
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
205
|
+
['application/json']) # noqa: E501
|
|
206
|
+
|
|
207
|
+
# HTTP header `Content-Type`
|
|
208
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
209
|
+
['text/plain']) # noqa: E501
|
|
210
|
+
|
|
211
|
+
# Authentication setting
|
|
212
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
213
|
+
|
|
214
|
+
return self.api_client.call_api(
|
|
215
|
+
'/DescribeDiagnosisInstanceDetail/2020-04-01/na/get/text_plain/', 'GET',
|
|
216
|
+
path_params,
|
|
217
|
+
query_params,
|
|
218
|
+
header_params,
|
|
219
|
+
body=body_params,
|
|
220
|
+
post_params=form_params,
|
|
221
|
+
files=local_var_files,
|
|
222
|
+
response_type='DescribeDiagnosisInstanceDetailResponse', # noqa: E501
|
|
223
|
+
auth_settings=auth_settings,
|
|
224
|
+
async_req=params.get('async_req'),
|
|
225
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
226
|
+
_preload_content=params.get('_preload_content', True),
|
|
227
|
+
_request_timeout=params.get('_request_timeout'),
|
|
228
|
+
collection_formats=collection_formats)
|
|
229
|
+
|
|
230
|
+
def describe_diagnosis_instances(self, body, **kwargs): # noqa: E501
|
|
231
|
+
"""describe_diagnosis_instances # noqa: E501
|
|
232
|
+
|
|
233
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
234
|
+
asynchronous HTTP request, please pass async_req=True
|
|
235
|
+
>>> thread = api.describe_diagnosis_instances(body, async_req=True)
|
|
236
|
+
>>> result = thread.get()
|
|
237
|
+
|
|
238
|
+
:param async_req bool
|
|
239
|
+
:param DescribeDiagnosisInstancesRequest body: (required)
|
|
240
|
+
:return: DescribeDiagnosisInstancesResponse
|
|
241
|
+
If the method is called asynchronously,
|
|
242
|
+
returns the request thread.
|
|
243
|
+
"""
|
|
244
|
+
kwargs['_return_http_data_only'] = True
|
|
245
|
+
if kwargs.get('async_req'):
|
|
246
|
+
return self.describe_diagnosis_instances_with_http_info(body, **kwargs) # noqa: E501
|
|
247
|
+
else:
|
|
248
|
+
(data) = self.describe_diagnosis_instances_with_http_info(body, **kwargs) # noqa: E501
|
|
249
|
+
return data
|
|
250
|
+
|
|
251
|
+
def describe_diagnosis_instances_with_http_info(self, body, **kwargs): # noqa: E501
|
|
252
|
+
"""describe_diagnosis_instances # noqa: E501
|
|
253
|
+
|
|
254
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
255
|
+
asynchronous HTTP request, please pass async_req=True
|
|
256
|
+
>>> thread = api.describe_diagnosis_instances_with_http_info(body, async_req=True)
|
|
257
|
+
>>> result = thread.get()
|
|
258
|
+
|
|
259
|
+
:param async_req bool
|
|
260
|
+
:param DescribeDiagnosisInstancesRequest body: (required)
|
|
261
|
+
:return: DescribeDiagnosisInstancesResponse
|
|
262
|
+
If the method is called asynchronously,
|
|
263
|
+
returns the request thread.
|
|
264
|
+
"""
|
|
265
|
+
|
|
266
|
+
all_params = ['body'] # noqa: E501
|
|
267
|
+
all_params.append('async_req')
|
|
268
|
+
all_params.append('_return_http_data_only')
|
|
269
|
+
all_params.append('_preload_content')
|
|
270
|
+
all_params.append('_request_timeout')
|
|
271
|
+
|
|
272
|
+
params = locals()
|
|
273
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
274
|
+
if key not in all_params:
|
|
275
|
+
raise TypeError(
|
|
276
|
+
"Got an unexpected keyword argument '%s'"
|
|
277
|
+
" to method describe_diagnosis_instances" % key
|
|
278
|
+
)
|
|
279
|
+
params[key] = val
|
|
280
|
+
del params['kwargs']
|
|
281
|
+
# verify the required parameter 'body' is set
|
|
282
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
283
|
+
params['body'] is None): # noqa: E501
|
|
284
|
+
raise ValueError("Missing the required parameter `body` when calling `describe_diagnosis_instances`") # noqa: E501
|
|
285
|
+
|
|
286
|
+
collection_formats = {}
|
|
287
|
+
|
|
288
|
+
path_params = {}
|
|
289
|
+
|
|
290
|
+
query_params = []
|
|
291
|
+
|
|
292
|
+
header_params = {}
|
|
293
|
+
|
|
294
|
+
form_params = []
|
|
295
|
+
local_var_files = {}
|
|
296
|
+
|
|
297
|
+
body_params = None
|
|
298
|
+
if 'body' in params:
|
|
299
|
+
body_params = params['body']
|
|
300
|
+
# HTTP header `Accept`
|
|
301
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
302
|
+
['application/json']) # noqa: E501
|
|
303
|
+
|
|
304
|
+
# HTTP header `Content-Type`
|
|
305
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
306
|
+
['text/plain']) # noqa: E501
|
|
307
|
+
|
|
308
|
+
# Authentication setting
|
|
309
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
310
|
+
|
|
311
|
+
return self.api_client.call_api(
|
|
312
|
+
'/DescribeDiagnosisInstances/2020-04-01/na/get/text_plain/', 'GET',
|
|
313
|
+
path_params,
|
|
314
|
+
query_params,
|
|
315
|
+
header_params,
|
|
316
|
+
body=body_params,
|
|
317
|
+
post_params=form_params,
|
|
318
|
+
files=local_var_files,
|
|
319
|
+
response_type='DescribeDiagnosisInstancesResponse', # noqa: E501
|
|
320
|
+
auth_settings=auth_settings,
|
|
321
|
+
async_req=params.get('async_req'),
|
|
322
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
323
|
+
_preload_content=params.get('_preload_content', True),
|
|
324
|
+
_request_timeout=params.get('_request_timeout'),
|
|
325
|
+
collection_formats=collection_formats)
|
|
326
|
+
|
|
327
|
+
def describe_history_diagnosis(self, body, **kwargs): # noqa: E501
|
|
328
|
+
"""describe_history_diagnosis # 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.describe_history_diagnosis(body, async_req=True)
|
|
333
|
+
>>> result = thread.get()
|
|
334
|
+
|
|
335
|
+
:param async_req bool
|
|
336
|
+
:param DescribeHistoryDiagnosisRequest body: (required)
|
|
337
|
+
:return: DescribeHistoryDiagnosisResponse
|
|
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.describe_history_diagnosis_with_http_info(body, **kwargs) # noqa: E501
|
|
344
|
+
else:
|
|
345
|
+
(data) = self.describe_history_diagnosis_with_http_info(body, **kwargs) # noqa: E501
|
|
346
|
+
return data
|
|
347
|
+
|
|
348
|
+
def describe_history_diagnosis_with_http_info(self, body, **kwargs): # noqa: E501
|
|
349
|
+
"""describe_history_diagnosis # 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.describe_history_diagnosis_with_http_info(body, async_req=True)
|
|
354
|
+
>>> result = thread.get()
|
|
355
|
+
|
|
356
|
+
:param async_req bool
|
|
357
|
+
:param DescribeHistoryDiagnosisRequest body: (required)
|
|
358
|
+
:return: DescribeHistoryDiagnosisResponse
|
|
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 describe_history_diagnosis" % 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 `describe_history_diagnosis`") # 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
|
+
['text/plain']) # noqa: E501
|
|
404
|
+
|
|
405
|
+
# Authentication setting
|
|
406
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
407
|
+
|
|
408
|
+
return self.api_client.call_api(
|
|
409
|
+
'/DescribeHistoryDiagnosis/2020-04-01/na/get/text_plain/', 'GET',
|
|
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='DescribeHistoryDiagnosisResponse', # 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)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
"""
|
|
5
|
+
na
|
|
6
|
+
|
|
7
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
8
|
+
|
|
9
|
+
OpenAPI spec version: common-version
|
|
10
|
+
|
|
11
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import absolute_import
|
|
16
|
+
|
|
17
|
+
# import models into model package
|
|
18
|
+
from volcenginesdkna.models.create_diagnosis_instance_request import CreateDiagnosisInstanceRequest
|
|
19
|
+
from volcenginesdkna.models.create_diagnosis_instance_response import CreateDiagnosisInstanceResponse
|
|
20
|
+
from volcenginesdkna.models.describe_diagnosis_instance_detail_request import DescribeDiagnosisInstanceDetailRequest
|
|
21
|
+
from volcenginesdkna.models.describe_diagnosis_instance_detail_response import DescribeDiagnosisInstanceDetailResponse
|
|
22
|
+
from volcenginesdkna.models.describe_diagnosis_instances_request import DescribeDiagnosisInstancesRequest
|
|
23
|
+
from volcenginesdkna.models.describe_diagnosis_instances_response import DescribeDiagnosisInstancesResponse
|
|
24
|
+
from volcenginesdkna.models.describe_history_diagnosis_request import DescribeHistoryDiagnosisRequest
|
|
25
|
+
from volcenginesdkna.models.describe_history_diagnosis_response import DescribeHistoryDiagnosisResponse
|
|
26
|
+
from volcenginesdkna.models.diagnosis_category_item_for_describe_diagnosis_instance_detail_output import DiagnosisCategoryItemForDescribeDiagnosisInstanceDetailOutput
|
|
27
|
+
from volcenginesdkna.models.diagnosis_instance_for_describe_diagnosis_instances_output import DiagnosisInstanceForDescribeDiagnosisInstancesOutput
|
|
28
|
+
from volcenginesdkna.models.diagnosis_item_for_describe_diagnosis_instance_detail_output import DiagnosisItemForDescribeDiagnosisInstanceDetailOutput
|
|
29
|
+
from volcenginesdkna.models.history_diagnosis_for_describe_history_diagnosis_output import HistoryDiagnosisForDescribeHistoryDiagnosisOutput
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
na
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from volcenginesdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class CreateDiagnosisInstanceRequest(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'resource_instance_id': 'str',
|
|
37
|
+
'resource_region': 'str',
|
|
38
|
+
'resource_type': 'str'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'resource_instance_id': 'ResourceInstanceId',
|
|
43
|
+
'resource_region': 'ResourceRegion',
|
|
44
|
+
'resource_type': 'ResourceType'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, resource_instance_id=None, resource_region=None, resource_type=None, _configuration=None): # noqa: E501
|
|
48
|
+
"""CreateDiagnosisInstanceRequest - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
if _configuration is None:
|
|
50
|
+
_configuration = Configuration()
|
|
51
|
+
self._configuration = _configuration
|
|
52
|
+
|
|
53
|
+
self._resource_instance_id = None
|
|
54
|
+
self._resource_region = None
|
|
55
|
+
self._resource_type = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
self.resource_instance_id = resource_instance_id
|
|
59
|
+
self.resource_region = resource_region
|
|
60
|
+
self.resource_type = resource_type
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def resource_instance_id(self):
|
|
64
|
+
"""Gets the resource_instance_id of this CreateDiagnosisInstanceRequest. # noqa: E501
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
:return: The resource_instance_id of this CreateDiagnosisInstanceRequest. # noqa: E501
|
|
68
|
+
:rtype: str
|
|
69
|
+
"""
|
|
70
|
+
return self._resource_instance_id
|
|
71
|
+
|
|
72
|
+
@resource_instance_id.setter
|
|
73
|
+
def resource_instance_id(self, resource_instance_id):
|
|
74
|
+
"""Sets the resource_instance_id of this CreateDiagnosisInstanceRequest.
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
:param resource_instance_id: The resource_instance_id of this CreateDiagnosisInstanceRequest. # noqa: E501
|
|
78
|
+
:type: str
|
|
79
|
+
"""
|
|
80
|
+
if self._configuration.client_side_validation and resource_instance_id is None:
|
|
81
|
+
raise ValueError("Invalid value for `resource_instance_id`, must not be `None`") # noqa: E501
|
|
82
|
+
|
|
83
|
+
self._resource_instance_id = resource_instance_id
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def resource_region(self):
|
|
87
|
+
"""Gets the resource_region of this CreateDiagnosisInstanceRequest. # noqa: E501
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
:return: The resource_region of this CreateDiagnosisInstanceRequest. # noqa: E501
|
|
91
|
+
:rtype: str
|
|
92
|
+
"""
|
|
93
|
+
return self._resource_region
|
|
94
|
+
|
|
95
|
+
@resource_region.setter
|
|
96
|
+
def resource_region(self, resource_region):
|
|
97
|
+
"""Sets the resource_region of this CreateDiagnosisInstanceRequest.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
:param resource_region: The resource_region of this CreateDiagnosisInstanceRequest. # noqa: E501
|
|
101
|
+
:type: str
|
|
102
|
+
"""
|
|
103
|
+
if self._configuration.client_side_validation and resource_region is None:
|
|
104
|
+
raise ValueError("Invalid value for `resource_region`, must not be `None`") # noqa: E501
|
|
105
|
+
|
|
106
|
+
self._resource_region = resource_region
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def resource_type(self):
|
|
110
|
+
"""Gets the resource_type of this CreateDiagnosisInstanceRequest. # noqa: E501
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:return: The resource_type of this CreateDiagnosisInstanceRequest. # noqa: E501
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
116
|
+
return self._resource_type
|
|
117
|
+
|
|
118
|
+
@resource_type.setter
|
|
119
|
+
def resource_type(self, resource_type):
|
|
120
|
+
"""Sets the resource_type of this CreateDiagnosisInstanceRequest.
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:param resource_type: The resource_type of this CreateDiagnosisInstanceRequest. # noqa: E501
|
|
124
|
+
:type: str
|
|
125
|
+
"""
|
|
126
|
+
if self._configuration.client_side_validation and resource_type is None:
|
|
127
|
+
raise ValueError("Invalid value for `resource_type`, must not be `None`") # noqa: E501
|
|
128
|
+
|
|
129
|
+
self._resource_type = resource_type
|
|
130
|
+
|
|
131
|
+
def to_dict(self):
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
if issubclass(CreateDiagnosisInstanceRequest, dict):
|
|
153
|
+
for key, value in self.items():
|
|
154
|
+
result[key] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self):
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self):
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other):
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, CreateDiagnosisInstanceRequest):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.to_dict() == other.to_dict()
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other):
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
if not isinstance(other, CreateDiagnosisInstanceRequest):
|
|
176
|
+
return True
|
|
177
|
+
|
|
178
|
+
return self.to_dict() != other.to_dict()
|