huaweicloudsdksa 3.1.38__py2.py3-none-any.whl → 3.1.40__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (244) hide show
  1. huaweicloudsdksa/v1/model/check_product_healthy_request.py +0 -3
  2. huaweicloudsdksa/v1/model/check_product_healthy_response.py +0 -2
  3. huaweicloudsdksa/v1/model/compliance.py +0 -3
  4. huaweicloudsdksa/v1/model/data_source.py +0 -3
  5. huaweicloudsdksa/v1/model/environment.py +0 -3
  6. huaweicloudsdksa/v1/model/event.py +0 -3
  7. huaweicloudsdksa/v1/model/events.py +0 -3
  8. huaweicloudsdksa/v1/model/geo.py +0 -3
  9. huaweicloudsdksa/v1/model/import_events_request.py +0 -3
  10. huaweicloudsdksa/v1/model/import_events_response.py +0 -2
  11. huaweicloudsdksa/v1/model/malware.py +0 -3
  12. huaweicloudsdksa/v1/model/malware_properties.py +0 -3
  13. huaweicloudsdksa/v1/model/network.py +0 -3
  14. huaweicloudsdksa/v1/model/product_info.py +0 -3
  15. huaweicloudsdksa/v1/model/remediation.py +0 -3
  16. huaweicloudsdksa/v1/model/resource.py +0 -3
  17. huaweicloudsdksa/v1/model/severity.py +0 -3
  18. huaweicloudsdksa/v1/model/threat_intel.py +0 -3
  19. huaweicloudsdksa/v1/model/threat_intel_properties.py +0 -3
  20. huaweicloudsdksa/v1/model/type.py +0 -3
  21. huaweicloudsdksa/v1/model/type_properties.py +0 -3
  22. huaweicloudsdksa/v1/model/vulnerability_patch.py +0 -3
  23. huaweicloudsdksa/v1/sa_async_client.py +7 -33
  24. huaweicloudsdksa/v1/sa_client.py +7 -33
  25. huaweicloudsdksa/v2/model/action_info.py +0 -3
  26. huaweicloudsdksa/v2/model/action_instance_info.py +0 -3
  27. huaweicloudsdksa/v2/model/alert.py +0 -3
  28. huaweicloudsdksa/v2/model/alert_detail.py +0 -3
  29. huaweicloudsdksa/v2/model/alert_rule.py +0 -3
  30. huaweicloudsdksa/v2/model/alert_rule_metric.py +0 -3
  31. huaweicloudsdksa/v2/model/alert_rule_template.py +0 -3
  32. huaweicloudsdksa/v2/model/alert_rule_trigger.py +0 -3
  33. huaweicloudsdksa/v2/model/approve_opinion_detail.py +0 -3
  34. huaweicloudsdksa/v2/model/approve_playbook_info.py +0 -3
  35. huaweicloudsdksa/v2/model/audit_log_info.py +0 -3
  36. huaweicloudsdksa/v2/model/batch_order_alert_result.py +0 -3
  37. huaweicloudsdksa/v2/model/change_alert_request.py +0 -3
  38. huaweicloudsdksa/v2/model/change_alert_request_body.py +0 -3
  39. huaweicloudsdksa/v2/model/change_alert_response.py +0 -2
  40. huaweicloudsdksa/v2/model/change_incident_request.py +0 -3
  41. huaweicloudsdksa/v2/model/change_incident_request_body.py +0 -3
  42. huaweicloudsdksa/v2/model/change_incident_response.py +0 -2
  43. huaweicloudsdksa/v2/model/change_playbook_instance_request.py +0 -3
  44. huaweicloudsdksa/v2/model/change_playbook_instance_response.py +0 -2
  45. huaweicloudsdksa/v2/model/condition_info.py +0 -3
  46. huaweicloudsdksa/v2/model/condition_item.py +0 -3
  47. huaweicloudsdksa/v2/model/conditon_info.py +0 -3
  48. huaweicloudsdksa/v2/model/copy_playbook_info.py +0 -3
  49. huaweicloudsdksa/v2/model/copy_playbook_version_request.py +0 -3
  50. huaweicloudsdksa/v2/model/copy_playbook_version_response.py +0 -2
  51. huaweicloudsdksa/v2/model/create_alert.py +0 -3
  52. huaweicloudsdksa/v2/model/create_alert_data_source.py +0 -3
  53. huaweicloudsdksa/v2/model/create_alert_request.py +0 -3
  54. huaweicloudsdksa/v2/model/create_alert_request_body.py +0 -3
  55. huaweicloudsdksa/v2/model/create_alert_response.py +0 -2
  56. huaweicloudsdksa/v2/model/create_alert_rule_request.py +0 -3
  57. huaweicloudsdksa/v2/model/create_alert_rule_request_body.py +0 -3
  58. huaweicloudsdksa/v2/model/create_alert_rule_response.py +0 -2
  59. huaweicloudsdksa/v2/model/create_alert_rule_simulation_request.py +0 -3
  60. huaweicloudsdksa/v2/model/create_alert_rule_simulation_request_body.py +0 -3
  61. huaweicloudsdksa/v2/model/create_alert_rule_simulation_response.py +0 -2
  62. huaweicloudsdksa/v2/model/create_batch_order_alerts_request.py +0 -3
  63. huaweicloudsdksa/v2/model/create_batch_order_alerts_response.py +0 -2
  64. huaweicloudsdksa/v2/model/create_dataobject_relation_request.py +0 -3
  65. huaweicloudsdksa/v2/model/create_dataobject_relation_response.py +0 -2
  66. huaweicloudsdksa/v2/model/create_incident.py +0 -3
  67. huaweicloudsdksa/v2/model/create_incident_incident_type.py +0 -3
  68. huaweicloudsdksa/v2/model/create_incident_malware.py +0 -3
  69. huaweicloudsdksa/v2/model/create_incident_network_list.py +0 -3
  70. huaweicloudsdksa/v2/model/create_incident_process.py +0 -3
  71. huaweicloudsdksa/v2/model/create_incident_request.py +0 -3
  72. huaweicloudsdksa/v2/model/create_incident_request_body.py +0 -3
  73. huaweicloudsdksa/v2/model/create_incident_resource_list.py +0 -3
  74. huaweicloudsdksa/v2/model/create_incident_response.py +0 -2
  75. huaweicloudsdksa/v2/model/create_incident_user_info.py +0 -3
  76. huaweicloudsdksa/v2/model/create_indicator_detail.py +0 -3
  77. huaweicloudsdksa/v2/model/create_indicator_detail_indicator_type.py +0 -3
  78. huaweicloudsdksa/v2/model/create_indicator_request.py +0 -3
  79. huaweicloudsdksa/v2/model/create_indicator_response.py +0 -2
  80. huaweicloudsdksa/v2/model/create_playbook_action_request.py +0 -3
  81. huaweicloudsdksa/v2/model/create_playbook_action_response.py +0 -2
  82. huaweicloudsdksa/v2/model/create_playbook_approve_request.py +0 -3
  83. huaweicloudsdksa/v2/model/create_playbook_approve_response.py +0 -2
  84. huaweicloudsdksa/v2/model/create_playbook_info.py +0 -3
  85. huaweicloudsdksa/v2/model/create_playbook_request.py +0 -3
  86. huaweicloudsdksa/v2/model/create_playbook_response.py +0 -2
  87. huaweicloudsdksa/v2/model/create_playbook_rule_request.py +0 -3
  88. huaweicloudsdksa/v2/model/create_playbook_rule_response.py +0 -2
  89. huaweicloudsdksa/v2/model/create_playbook_version_info.py +0 -3
  90. huaweicloudsdksa/v2/model/create_playbook_version_request.py +0 -3
  91. huaweicloudsdksa/v2/model/create_playbook_version_response.py +0 -2
  92. huaweicloudsdksa/v2/model/create_relation.py +0 -3
  93. huaweicloudsdksa/v2/model/create_rule_info.py +0 -3
  94. huaweicloudsdksa/v2/model/data_class_ref_pojo.py +0 -3
  95. huaweicloudsdksa/v2/model/data_class_type_detail_info.py +0 -3
  96. huaweicloudsdksa/v2/model/data_response.py +0 -3
  97. huaweicloudsdksa/v2/model/dataclass_info_ref.py +0 -3
  98. huaweicloudsdksa/v2/model/dataobject_info.py +0 -3
  99. huaweicloudsdksa/v2/model/dataobject_search.py +0 -3
  100. huaweicloudsdksa/v2/model/dataobject_search_condition.py +0 -3
  101. huaweicloudsdksa/v2/model/delete_alert.py +0 -3
  102. huaweicloudsdksa/v2/model/delete_alert_request.py +0 -3
  103. huaweicloudsdksa/v2/model/delete_alert_response.py +0 -2
  104. huaweicloudsdksa/v2/model/delete_alert_rule_request.py +0 -3
  105. huaweicloudsdksa/v2/model/delete_alert_rule_response.py +0 -2
  106. huaweicloudsdksa/v2/model/delete_dataobject_relation_request.py +0 -3
  107. huaweicloudsdksa/v2/model/delete_dataobject_relation_response.py +0 -2
  108. huaweicloudsdksa/v2/model/delete_incident.py +0 -3
  109. huaweicloudsdksa/v2/model/delete_incident_request.py +0 -3
  110. huaweicloudsdksa/v2/model/delete_incident_response.py +0 -2
  111. huaweicloudsdksa/v2/model/delete_indicator_request.py +0 -3
  112. huaweicloudsdksa/v2/model/delete_indicator_request_body.py +0 -3
  113. huaweicloudsdksa/v2/model/delete_indicator_response.py +0 -2
  114. huaweicloudsdksa/v2/model/delete_playbook_action_request.py +0 -3
  115. huaweicloudsdksa/v2/model/delete_playbook_action_response.py +0 -2
  116. huaweicloudsdksa/v2/model/delete_playbook_request.py +0 -3
  117. huaweicloudsdksa/v2/model/delete_playbook_response.py +0 -2
  118. huaweicloudsdksa/v2/model/delete_playbook_rule_request.py +0 -3
  119. huaweicloudsdksa/v2/model/delete_playbook_rule_response.py +0 -2
  120. huaweicloudsdksa/v2/model/delete_playbook_version_request.py +0 -3
  121. huaweicloudsdksa/v2/model/delete_playbook_version_response.py +0 -2
  122. huaweicloudsdksa/v2/model/disable_alert_rule_request.py +0 -3
  123. huaweicloudsdksa/v2/model/disable_alert_rule_response.py +0 -2
  124. huaweicloudsdksa/v2/model/enable_alert_rule_request.py +0 -3
  125. huaweicloudsdksa/v2/model/enable_alert_rule_response.py +0 -2
  126. huaweicloudsdksa/v2/model/incident.py +0 -3
  127. huaweicloudsdksa/v2/model/incident_datasource.py +0 -3
  128. huaweicloudsdksa/v2/model/incident_detail.py +0 -3
  129. huaweicloudsdksa/v2/model/incident_environment.py +0 -3
  130. huaweicloudsdksa/v2/model/indicator_batch_operate_response.py +0 -3
  131. huaweicloudsdksa/v2/model/indicator_create_request.py +0 -3
  132. huaweicloudsdksa/v2/model/indicator_data_object_detail.py +0 -3
  133. huaweicloudsdksa/v2/model/indicator_detail.py +0 -3
  134. huaweicloudsdksa/v2/model/indicator_list_search_request.py +0 -3
  135. huaweicloudsdksa/v2/model/list_alert_detail.py +0 -3
  136. huaweicloudsdksa/v2/model/list_alert_rsp.py +0 -3
  137. huaweicloudsdksa/v2/model/list_alert_rule_metrics_request.py +0 -3
  138. huaweicloudsdksa/v2/model/list_alert_rule_metrics_response.py +0 -2
  139. huaweicloudsdksa/v2/model/list_alert_rule_templates_request.py +0 -3
  140. huaweicloudsdksa/v2/model/list_alert_rule_templates_response.py +0 -2
  141. huaweicloudsdksa/v2/model/list_alert_rules_request.py +0 -3
  142. huaweicloudsdksa/v2/model/list_alert_rules_response.py +0 -2
  143. huaweicloudsdksa/v2/model/list_alerts_request.py +0 -3
  144. huaweicloudsdksa/v2/model/list_alerts_response.py +0 -2
  145. huaweicloudsdksa/v2/model/list_dataobject_relation_request.py +0 -3
  146. huaweicloudsdksa/v2/model/list_dataobject_relation_response.py +0 -2
  147. huaweicloudsdksa/v2/model/list_incident_detail.py +0 -3
  148. huaweicloudsdksa/v2/model/list_incident_types_request.py +0 -3
  149. huaweicloudsdksa/v2/model/list_incident_types_response.py +0 -2
  150. huaweicloudsdksa/v2/model/list_incidents_request.py +0 -3
  151. huaweicloudsdksa/v2/model/list_incidents_response.py +0 -2
  152. huaweicloudsdksa/v2/model/list_indicators_request.py +0 -3
  153. huaweicloudsdksa/v2/model/list_indicators_response.py +0 -2
  154. huaweicloudsdksa/v2/model/list_playbook_actions_request.py +0 -3
  155. huaweicloudsdksa/v2/model/list_playbook_actions_response.py +0 -2
  156. huaweicloudsdksa/v2/model/list_playbook_approves_request.py +0 -3
  157. huaweicloudsdksa/v2/model/list_playbook_approves_response.py +0 -2
  158. huaweicloudsdksa/v2/model/list_playbook_audit_logs_request.py +0 -3
  159. huaweicloudsdksa/v2/model/list_playbook_audit_logs_response.py +0 -2
  160. huaweicloudsdksa/v2/model/list_playbook_instances_request.py +0 -3
  161. huaweicloudsdksa/v2/model/list_playbook_instances_response.py +0 -2
  162. huaweicloudsdksa/v2/model/list_playbook_versions_request.py +0 -3
  163. huaweicloudsdksa/v2/model/list_playbook_versions_response.py +0 -2
  164. huaweicloudsdksa/v2/model/list_playbooks_request.py +0 -3
  165. huaweicloudsdksa/v2/model/list_playbooks_response.py +0 -2
  166. huaweicloudsdksa/v2/model/modify_action_info.py +0 -3
  167. huaweicloudsdksa/v2/model/modify_playbook_info.py +0 -3
  168. huaweicloudsdksa/v2/model/modify_playbook_version_info.py +0 -3
  169. huaweicloudsdksa/v2/model/modify_rule_info.py +0 -3
  170. huaweicloudsdksa/v2/model/operation_playbook_info.py +0 -3
  171. huaweicloudsdksa/v2/model/order_alert.py +0 -3
  172. huaweicloudsdksa/v2/model/order_alert_event_content.py +0 -3
  173. huaweicloudsdksa/v2/model/order_alert_incident_content.py +0 -3
  174. huaweicloudsdksa/v2/model/order_alert_incident_content_incident_type.py +0 -3
  175. huaweicloudsdksa/v2/model/playbook_info.py +0 -3
  176. huaweicloudsdksa/v2/model/playbook_info_ref.py +0 -3
  177. huaweicloudsdksa/v2/model/playbook_instance_info.py +0 -3
  178. huaweicloudsdksa/v2/model/playbook_instance_monitor_detail.py +0 -3
  179. huaweicloudsdksa/v2/model/playbook_instance_run_statistics.py +0 -3
  180. huaweicloudsdksa/v2/model/playbook_statistic_detail.py +0 -3
  181. huaweicloudsdksa/v2/model/playbook_version_info.py +0 -3
  182. huaweicloudsdksa/v2/model/playbook_version_list_entity.py +0 -3
  183. huaweicloudsdksa/v2/model/rule_info.py +0 -3
  184. huaweicloudsdksa/v2/model/schedule.py +0 -3
  185. huaweicloudsdksa/v2/model/show_alert_detail.py +0 -3
  186. huaweicloudsdksa/v2/model/show_alert_detail_dataclass_ref.py +0 -3
  187. huaweicloudsdksa/v2/model/show_alert_request.py +0 -3
  188. huaweicloudsdksa/v2/model/show_alert_response.py +0 -2
  189. huaweicloudsdksa/v2/model/show_alert_rsp.py +0 -3
  190. huaweicloudsdksa/v2/model/show_alert_rsp_datasource.py +0 -3
  191. huaweicloudsdksa/v2/model/show_alert_rsp_environment.py +0 -3
  192. huaweicloudsdksa/v2/model/show_alert_rsp_file_info.py +0 -3
  193. huaweicloudsdksa/v2/model/show_alert_rsp_malware.py +0 -3
  194. huaweicloudsdksa/v2/model/show_alert_rsp_network_list.py +0 -3
  195. huaweicloudsdksa/v2/model/show_alert_rsp_process.py +0 -3
  196. huaweicloudsdksa/v2/model/show_alert_rsp_remediation.py +0 -3
  197. huaweicloudsdksa/v2/model/show_alert_rsp_resource_list.py +0 -3
  198. huaweicloudsdksa/v2/model/show_alert_rsp_user_info.py +0 -3
  199. huaweicloudsdksa/v2/model/show_alert_rule_request.py +0 -3
  200. huaweicloudsdksa/v2/model/show_alert_rule_response.py +0 -2
  201. huaweicloudsdksa/v2/model/show_alert_rule_template_request.py +0 -3
  202. huaweicloudsdksa/v2/model/show_alert_rule_template_response.py +0 -2
  203. huaweicloudsdksa/v2/model/show_incident.py +0 -3
  204. huaweicloudsdksa/v2/model/show_incident_detail.py +0 -3
  205. huaweicloudsdksa/v2/model/show_incident_request.py +0 -3
  206. huaweicloudsdksa/v2/model/show_incident_response.py +0 -2
  207. huaweicloudsdksa/v2/model/show_indicator_detail_request.py +0 -3
  208. huaweicloudsdksa/v2/model/show_indicator_detail_response.py +0 -2
  209. huaweicloudsdksa/v2/model/show_playbook_instance_request.py +0 -3
  210. huaweicloudsdksa/v2/model/show_playbook_instance_response.py +0 -2
  211. huaweicloudsdksa/v2/model/show_playbook_monitors_request.py +0 -3
  212. huaweicloudsdksa/v2/model/show_playbook_monitors_response.py +0 -2
  213. huaweicloudsdksa/v2/model/show_playbook_request.py +0 -3
  214. huaweicloudsdksa/v2/model/show_playbook_response.py +0 -2
  215. huaweicloudsdksa/v2/model/show_playbook_rule_request.py +0 -3
  216. huaweicloudsdksa/v2/model/show_playbook_rule_response.py +0 -2
  217. huaweicloudsdksa/v2/model/show_playbook_statistics_request.py +0 -3
  218. huaweicloudsdksa/v2/model/show_playbook_statistics_response.py +0 -2
  219. huaweicloudsdksa/v2/model/show_playbook_topology_request.py +0 -3
  220. huaweicloudsdksa/v2/model/show_playbook_topology_response.py +0 -2
  221. huaweicloudsdksa/v2/model/show_playbook_version_request.py +0 -3
  222. huaweicloudsdksa/v2/model/show_playbook_version_response.py +0 -2
  223. huaweicloudsdksa/v2/model/update_alert_rule_request.py +0 -3
  224. huaweicloudsdksa/v2/model/update_alert_rule_request_body.py +0 -3
  225. huaweicloudsdksa/v2/model/update_alert_rule_response.py +0 -2
  226. huaweicloudsdksa/v2/model/update_indicator_request.py +0 -3
  227. huaweicloudsdksa/v2/model/update_indicator_request_body.py +0 -3
  228. huaweicloudsdksa/v2/model/update_indicator_response.py +0 -2
  229. huaweicloudsdksa/v2/model/update_playbook_action_request.py +0 -3
  230. huaweicloudsdksa/v2/model/update_playbook_action_response.py +0 -2
  231. huaweicloudsdksa/v2/model/update_playbook_request.py +0 -3
  232. huaweicloudsdksa/v2/model/update_playbook_response.py +0 -2
  233. huaweicloudsdksa/v2/model/update_playbook_rule_request.py +0 -3
  234. huaweicloudsdksa/v2/model/update_playbook_rule_response.py +0 -2
  235. huaweicloudsdksa/v2/model/update_playbook_version_request.py +0 -3
  236. huaweicloudsdksa/v2/model/update_playbook_version_response.py +0 -2
  237. huaweicloudsdksa/v2/sa_async_client.py +178 -432
  238. huaweicloudsdksa/v2/sa_client.py +178 -432
  239. {huaweicloudsdksa-3.1.38.dist-info → huaweicloudsdksa-3.1.40.dist-info}/METADATA +2 -2
  240. huaweicloudsdksa-3.1.40.dist-info/RECORD +252 -0
  241. huaweicloudsdksa-3.1.38.dist-info/RECORD +0 -252
  242. {huaweicloudsdksa-3.1.38.dist-info → huaweicloudsdksa-3.1.40.dist-info}/LICENSE +0 -0
  243. {huaweicloudsdksa-3.1.38.dist-info → huaweicloudsdksa-3.1.40.dist-info}/WHEEL +0 -0
  244. {huaweicloudsdksa-3.1.38.dist-info → huaweicloudsdksa-3.1.40.dist-info}/top_level.txt +0 -0
@@ -2,35 +2,17 @@
2
2
 
3
3
  from __future__ import absolute_import
4
4
 
5
- import datetime
6
- import re
7
5
  import importlib
8
6
 
9
- import six
10
-
11
7
  from huaweicloudsdkcore.client import Client, ClientBuilder
12
- from huaweicloudsdkcore.exceptions import exceptions
13
8
  from huaweicloudsdkcore.utils import http_utils
14
9
  from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
15
10
 
16
11
 
17
12
  class SaAsyncClient(Client):
18
- PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types
19
- NATIVE_TYPES_MAPPING = {
20
- 'int': int,
21
- 'long': int if six.PY3 else long,
22
- 'float': float,
23
- 'str': str,
24
- 'bool': bool,
25
- 'date': datetime.date,
26
- 'datetime': datetime.datetime,
27
- 'object': object,
28
- }
29
-
30
13
  def __init__(self):
31
14
  super(SaAsyncClient, self).__init__()
32
15
  self.model_package = importlib.import_module("huaweicloudsdksa.v2.model")
33
- self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'}
34
16
 
35
17
  @classmethod
36
18
  def new_builder(cls, clazz=None):
@@ -54,14 +36,10 @@ class SaAsyncClient(Client):
54
36
  :type request: :class:`huaweicloudsdksa.v2.CreateAlertRuleRequest`
55
37
  :rtype: :class:`huaweicloudsdksa.v2.CreateAlertRuleResponse`
56
38
  """
57
- return self.create_alert_rule_with_http_info(request)
39
+ return self._create_alert_rule_with_http_info(request)
58
40
 
59
- def create_alert_rule_with_http_info(self, request):
60
- all_params = ['project_id', 'workspace_id', 'create_alert_rule_request_body']
61
- local_var_params = {}
62
- for attr in request.attribute_map:
63
- if hasattr(request, attr):
64
- local_var_params[attr] = getattr(request, attr)
41
+ def _create_alert_rule_with_http_info(self, request):
42
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
65
43
 
66
44
  cname = None
67
45
 
@@ -119,14 +97,10 @@ class SaAsyncClient(Client):
119
97
  :type request: :class:`huaweicloudsdksa.v2.CreateAlertRuleSimulationRequest`
120
98
  :rtype: :class:`huaweicloudsdksa.v2.CreateAlertRuleSimulationResponse`
121
99
  """
122
- return self.create_alert_rule_simulation_with_http_info(request)
100
+ return self._create_alert_rule_simulation_with_http_info(request)
123
101
 
124
- def create_alert_rule_simulation_with_http_info(self, request):
125
- all_params = ['project_id', 'workspace_id', 'create_alert_rule_simulation_request_body']
126
- local_var_params = {}
127
- for attr in request.attribute_map:
128
- if hasattr(request, attr):
129
- local_var_params[attr] = getattr(request, attr)
102
+ def _create_alert_rule_simulation_with_http_info(self, request):
103
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
130
104
 
131
105
  cname = None
132
106
 
@@ -184,14 +158,10 @@ class SaAsyncClient(Client):
184
158
  :type request: :class:`huaweicloudsdksa.v2.DeleteAlertRuleRequest`
185
159
  :rtype: :class:`huaweicloudsdksa.v2.DeleteAlertRuleResponse`
186
160
  """
187
- return self.delete_alert_rule_with_http_info(request)
161
+ return self._delete_alert_rule_with_http_info(request)
188
162
 
189
- def delete_alert_rule_with_http_info(self, request):
190
- all_params = ['project_id', 'workspace_id', 'delete_alert_rule_request_body']
191
- local_var_params = {}
192
- for attr in request.attribute_map:
193
- if hasattr(request, attr):
194
- local_var_params[attr] = getattr(request, attr)
163
+ def _delete_alert_rule_with_http_info(self, request):
164
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
195
165
 
196
166
  cname = None
197
167
 
@@ -249,14 +219,10 @@ class SaAsyncClient(Client):
249
219
  :type request: :class:`huaweicloudsdksa.v2.DisableAlertRuleRequest`
250
220
  :rtype: :class:`huaweicloudsdksa.v2.DisableAlertRuleResponse`
251
221
  """
252
- return self.disable_alert_rule_with_http_info(request)
222
+ return self._disable_alert_rule_with_http_info(request)
253
223
 
254
- def disable_alert_rule_with_http_info(self, request):
255
- all_params = ['project_id', 'workspace_id', 'disable_alert_rule_request_body']
256
- local_var_params = {}
257
- for attr in request.attribute_map:
258
- if hasattr(request, attr):
259
- local_var_params[attr] = getattr(request, attr)
224
+ def _disable_alert_rule_with_http_info(self, request):
225
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
260
226
 
261
227
  cname = None
262
228
 
@@ -314,14 +280,10 @@ class SaAsyncClient(Client):
314
280
  :type request: :class:`huaweicloudsdksa.v2.EnableAlertRuleRequest`
315
281
  :rtype: :class:`huaweicloudsdksa.v2.EnableAlertRuleResponse`
316
282
  """
317
- return self.enable_alert_rule_with_http_info(request)
283
+ return self._enable_alert_rule_with_http_info(request)
318
284
 
319
- def enable_alert_rule_with_http_info(self, request):
320
- all_params = ['project_id', 'workspace_id', 'enable_alert_rule_request_body']
321
- local_var_params = {}
322
- for attr in request.attribute_map:
323
- if hasattr(request, attr):
324
- local_var_params[attr] = getattr(request, attr)
285
+ def _enable_alert_rule_with_http_info(self, request):
286
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
325
287
 
326
288
  cname = None
327
289
 
@@ -379,14 +341,10 @@ class SaAsyncClient(Client):
379
341
  :type request: :class:`huaweicloudsdksa.v2.ListAlertRuleMetricsRequest`
380
342
  :rtype: :class:`huaweicloudsdksa.v2.ListAlertRuleMetricsResponse`
381
343
  """
382
- return self.list_alert_rule_metrics_with_http_info(request)
344
+ return self._list_alert_rule_metrics_with_http_info(request)
383
345
 
384
- def list_alert_rule_metrics_with_http_info(self, request):
385
- all_params = ['project_id', 'workspace_id']
386
- local_var_params = {}
387
- for attr in request.attribute_map:
388
- if hasattr(request, attr):
389
- local_var_params[attr] = getattr(request, attr)
346
+ def _list_alert_rule_metrics_with_http_info(self, request):
347
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
390
348
 
391
349
  cname = None
392
350
 
@@ -442,14 +400,10 @@ class SaAsyncClient(Client):
442
400
  :type request: :class:`huaweicloudsdksa.v2.ListAlertRuleTemplatesRequest`
443
401
  :rtype: :class:`huaweicloudsdksa.v2.ListAlertRuleTemplatesResponse`
444
402
  """
445
- return self.list_alert_rule_templates_with_http_info(request)
403
+ return self._list_alert_rule_templates_with_http_info(request)
446
404
 
447
- def list_alert_rule_templates_with_http_info(self, request):
448
- all_params = ['project_id', 'workspace_id', 'offset', 'limit', 'sort_key', 'sort_dir', 'severity']
449
- local_var_params = {}
450
- for attr in request.attribute_map:
451
- if hasattr(request, attr):
452
- local_var_params[attr] = getattr(request, attr)
405
+ def _list_alert_rule_templates_with_http_info(self, request):
406
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
453
407
 
454
408
  cname = None
455
409
 
@@ -516,14 +470,10 @@ class SaAsyncClient(Client):
516
470
  :type request: :class:`huaweicloudsdksa.v2.ListAlertRulesRequest`
517
471
  :rtype: :class:`huaweicloudsdksa.v2.ListAlertRulesResponse`
518
472
  """
519
- return self.list_alert_rules_with_http_info(request)
473
+ return self._list_alert_rules_with_http_info(request)
520
474
 
521
- def list_alert_rules_with_http_info(self, request):
522
- all_params = ['project_id', 'workspace_id', 'offset', 'limit', 'sort_key', 'sort_dir', 'pipe_id', 'rule_name', 'rule_id', 'status', 'severity']
523
- local_var_params = {}
524
- for attr in request.attribute_map:
525
- if hasattr(request, attr):
526
- local_var_params[attr] = getattr(request, attr)
475
+ def _list_alert_rules_with_http_info(self, request):
476
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
527
477
 
528
478
  cname = None
529
479
 
@@ -599,14 +549,10 @@ class SaAsyncClient(Client):
599
549
  :type request: :class:`huaweicloudsdksa.v2.ShowAlertRuleRequest`
600
550
  :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRuleResponse`
601
551
  """
602
- return self.show_alert_rule_with_http_info(request)
552
+ return self._show_alert_rule_with_http_info(request)
603
553
 
604
- def show_alert_rule_with_http_info(self, request):
605
- all_params = ['project_id', 'workspace_id', 'rule_id']
606
- local_var_params = {}
607
- for attr in request.attribute_map:
608
- if hasattr(request, attr):
609
- local_var_params[attr] = getattr(request, attr)
554
+ def _show_alert_rule_with_http_info(self, request):
555
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
610
556
 
611
557
  cname = None
612
558
 
@@ -664,14 +610,10 @@ class SaAsyncClient(Client):
664
610
  :type request: :class:`huaweicloudsdksa.v2.ShowAlertRuleTemplateRequest`
665
611
  :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRuleTemplateResponse`
666
612
  """
667
- return self.show_alert_rule_template_with_http_info(request)
613
+ return self._show_alert_rule_template_with_http_info(request)
668
614
 
669
- def show_alert_rule_template_with_http_info(self, request):
670
- all_params = ['project_id', 'workspace_id', 'template_id']
671
- local_var_params = {}
672
- for attr in request.attribute_map:
673
- if hasattr(request, attr):
674
- local_var_params[attr] = getattr(request, attr)
615
+ def _show_alert_rule_template_with_http_info(self, request):
616
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
675
617
 
676
618
  cname = None
677
619
 
@@ -729,14 +671,10 @@ class SaAsyncClient(Client):
729
671
  :type request: :class:`huaweicloudsdksa.v2.UpdateAlertRuleRequest`
730
672
  :rtype: :class:`huaweicloudsdksa.v2.UpdateAlertRuleResponse`
731
673
  """
732
- return self.update_alert_rule_with_http_info(request)
674
+ return self._update_alert_rule_with_http_info(request)
733
675
 
734
- def update_alert_rule_with_http_info(self, request):
735
- all_params = ['project_id', 'workspace_id', 'rule_id', 'update_alert_rule_request_body']
736
- local_var_params = {}
737
- for attr in request.attribute_map:
738
- if hasattr(request, attr):
739
- local_var_params[attr] = getattr(request, attr)
676
+ def _update_alert_rule_with_http_info(self, request):
677
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
740
678
 
741
679
  cname = None
742
680
 
@@ -796,14 +734,10 @@ class SaAsyncClient(Client):
796
734
  :type request: :class:`huaweicloudsdksa.v2.ChangeAlertRequest`
797
735
  :rtype: :class:`huaweicloudsdksa.v2.ChangeAlertResponse`
798
736
  """
799
- return self.change_alert_with_http_info(request)
737
+ return self._change_alert_with_http_info(request)
800
738
 
801
- def change_alert_with_http_info(self, request):
802
- all_params = ['project_id', 'workspace_id', 'alert_id', 'change_alert_request_body']
803
- local_var_params = {}
804
- for attr in request.attribute_map:
805
- if hasattr(request, attr):
806
- local_var_params[attr] = getattr(request, attr)
739
+ def _change_alert_with_http_info(self, request):
740
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
807
741
 
808
742
  cname = None
809
743
 
@@ -863,14 +797,10 @@ class SaAsyncClient(Client):
863
797
  :type request: :class:`huaweicloudsdksa.v2.CreateAlertRequest`
864
798
  :rtype: :class:`huaweicloudsdksa.v2.CreateAlertResponse`
865
799
  """
866
- return self.create_alert_with_http_info(request)
800
+ return self._create_alert_with_http_info(request)
867
801
 
868
- def create_alert_with_http_info(self, request):
869
- all_params = ['project_id', 'workspace_id', 'create_alert_request_body']
870
- local_var_params = {}
871
- for attr in request.attribute_map:
872
- if hasattr(request, attr):
873
- local_var_params[attr] = getattr(request, attr)
802
+ def _create_alert_with_http_info(self, request):
803
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
874
804
 
875
805
  cname = None
876
806
 
@@ -928,14 +858,10 @@ class SaAsyncClient(Client):
928
858
  :type request: :class:`huaweicloudsdksa.v2.CreateBatchOrderAlertsRequest`
929
859
  :rtype: :class:`huaweicloudsdksa.v2.CreateBatchOrderAlertsResponse`
930
860
  """
931
- return self.create_batch_order_alerts_with_http_info(request)
861
+ return self._create_batch_order_alerts_with_http_info(request)
932
862
 
933
- def create_batch_order_alerts_with_http_info(self, request):
934
- all_params = ['project_id', 'workspace_id', 'create_batch_order_alerts_request_body']
935
- local_var_params = {}
936
- for attr in request.attribute_map:
937
- if hasattr(request, attr):
938
- local_var_params[attr] = getattr(request, attr)
863
+ def _create_batch_order_alerts_with_http_info(self, request):
864
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
939
865
 
940
866
  cname = None
941
867
 
@@ -993,14 +919,10 @@ class SaAsyncClient(Client):
993
919
  :type request: :class:`huaweicloudsdksa.v2.DeleteAlertRequest`
994
920
  :rtype: :class:`huaweicloudsdksa.v2.DeleteAlertResponse`
995
921
  """
996
- return self.delete_alert_with_http_info(request)
922
+ return self._delete_alert_with_http_info(request)
997
923
 
998
- def delete_alert_with_http_info(self, request):
999
- all_params = ['project_id', 'workspace_id', 'delete_alert_request_body']
1000
- local_var_params = {}
1001
- for attr in request.attribute_map:
1002
- if hasattr(request, attr):
1003
- local_var_params[attr] = getattr(request, attr)
924
+ def _delete_alert_with_http_info(self, request):
925
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1004
926
 
1005
927
  cname = None
1006
928
 
@@ -1058,14 +980,10 @@ class SaAsyncClient(Client):
1058
980
  :type request: :class:`huaweicloudsdksa.v2.ListAlertsRequest`
1059
981
  :rtype: :class:`huaweicloudsdksa.v2.ListAlertsResponse`
1060
982
  """
1061
- return self.list_alerts_with_http_info(request)
983
+ return self._list_alerts_with_http_info(request)
1062
984
 
1063
- def list_alerts_with_http_info(self, request):
1064
- all_params = ['project_id', 'workspace_id', 'list_alerts_request_body']
1065
- local_var_params = {}
1066
- for attr in request.attribute_map:
1067
- if hasattr(request, attr):
1068
- local_var_params[attr] = getattr(request, attr)
985
+ def _list_alerts_with_http_info(self, request):
986
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1069
987
 
1070
988
  cname = None
1071
989
 
@@ -1123,14 +1041,10 @@ class SaAsyncClient(Client):
1123
1041
  :type request: :class:`huaweicloudsdksa.v2.ShowAlertRequest`
1124
1042
  :rtype: :class:`huaweicloudsdksa.v2.ShowAlertResponse`
1125
1043
  """
1126
- return self.show_alert_with_http_info(request)
1044
+ return self._show_alert_with_http_info(request)
1127
1045
 
1128
- def show_alert_with_http_info(self, request):
1129
- all_params = ['project_id', 'workspace_id', 'alert_id']
1130
- local_var_params = {}
1131
- for attr in request.attribute_map:
1132
- if hasattr(request, attr):
1133
- local_var_params[attr] = getattr(request, attr)
1046
+ def _show_alert_with_http_info(self, request):
1047
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1134
1048
 
1135
1049
  cname = None
1136
1050
 
@@ -1188,14 +1102,10 @@ class SaAsyncClient(Client):
1188
1102
  :type request: :class:`huaweicloudsdksa.v2.ChangeIncidentRequest`
1189
1103
  :rtype: :class:`huaweicloudsdksa.v2.ChangeIncidentResponse`
1190
1104
  """
1191
- return self.change_incident_with_http_info(request)
1105
+ return self._change_incident_with_http_info(request)
1192
1106
 
1193
- def change_incident_with_http_info(self, request):
1194
- all_params = ['project_id', 'workspace_id', 'incident_id', 'change_incident_request_body']
1195
- local_var_params = {}
1196
- for attr in request.attribute_map:
1197
- if hasattr(request, attr):
1198
- local_var_params[attr] = getattr(request, attr)
1107
+ def _change_incident_with_http_info(self, request):
1108
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1199
1109
 
1200
1110
  cname = None
1201
1111
 
@@ -1255,14 +1165,10 @@ class SaAsyncClient(Client):
1255
1165
  :type request: :class:`huaweicloudsdksa.v2.CreateIncidentRequest`
1256
1166
  :rtype: :class:`huaweicloudsdksa.v2.CreateIncidentResponse`
1257
1167
  """
1258
- return self.create_incident_with_http_info(request)
1168
+ return self._create_incident_with_http_info(request)
1259
1169
 
1260
- def create_incident_with_http_info(self, request):
1261
- all_params = ['project_id', 'workspace_id', 'create_incident_request_body']
1262
- local_var_params = {}
1263
- for attr in request.attribute_map:
1264
- if hasattr(request, attr):
1265
- local_var_params[attr] = getattr(request, attr)
1170
+ def _create_incident_with_http_info(self, request):
1171
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1266
1172
 
1267
1173
  cname = None
1268
1174
 
@@ -1320,14 +1226,10 @@ class SaAsyncClient(Client):
1320
1226
  :type request: :class:`huaweicloudsdksa.v2.DeleteIncidentRequest`
1321
1227
  :rtype: :class:`huaweicloudsdksa.v2.DeleteIncidentResponse`
1322
1228
  """
1323
- return self.delete_incident_with_http_info(request)
1229
+ return self._delete_incident_with_http_info(request)
1324
1230
 
1325
- def delete_incident_with_http_info(self, request):
1326
- all_params = ['project_id', 'workspace_id', 'delete_incident_request_body']
1327
- local_var_params = {}
1328
- for attr in request.attribute_map:
1329
- if hasattr(request, attr):
1330
- local_var_params[attr] = getattr(request, attr)
1231
+ def _delete_incident_with_http_info(self, request):
1232
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1331
1233
 
1332
1234
  cname = None
1333
1235
 
@@ -1385,14 +1287,10 @@ class SaAsyncClient(Client):
1385
1287
  :type request: :class:`huaweicloudsdksa.v2.ListIncidentTypesRequest`
1386
1288
  :rtype: :class:`huaweicloudsdksa.v2.ListIncidentTypesResponse`
1387
1289
  """
1388
- return self.list_incident_types_with_http_info(request)
1290
+ return self._list_incident_types_with_http_info(request)
1389
1291
 
1390
- def list_incident_types_with_http_info(self, request):
1391
- all_params = ['project_id', 'workspace_id', 'parent_business_code', 'offset', 'limit', 'order', 'sortby', 'name', 'enabled', 'layout_name', 'is_built_in']
1392
- local_var_params = {}
1393
- for attr in request.attribute_map:
1394
- if hasattr(request, attr):
1395
- local_var_params[attr] = getattr(request, attr)
1292
+ def _list_incident_types_with_http_info(self, request):
1293
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1396
1294
 
1397
1295
  cname = None
1398
1296
 
@@ -1466,14 +1364,10 @@ class SaAsyncClient(Client):
1466
1364
  :type request: :class:`huaweicloudsdksa.v2.ListIncidentsRequest`
1467
1365
  :rtype: :class:`huaweicloudsdksa.v2.ListIncidentsResponse`
1468
1366
  """
1469
- return self.list_incidents_with_http_info(request)
1367
+ return self._list_incidents_with_http_info(request)
1470
1368
 
1471
- def list_incidents_with_http_info(self, request):
1472
- all_params = ['project_id', 'workspace_id', 'listincidents_request_body']
1473
- local_var_params = {}
1474
- for attr in request.attribute_map:
1475
- if hasattr(request, attr):
1476
- local_var_params[attr] = getattr(request, attr)
1369
+ def _list_incidents_with_http_info(self, request):
1370
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1477
1371
 
1478
1372
  cname = None
1479
1373
 
@@ -1531,14 +1425,10 @@ class SaAsyncClient(Client):
1531
1425
  :type request: :class:`huaweicloudsdksa.v2.ShowIncidentRequest`
1532
1426
  :rtype: :class:`huaweicloudsdksa.v2.ShowIncidentResponse`
1533
1427
  """
1534
- return self.show_incident_with_http_info(request)
1428
+ return self._show_incident_with_http_info(request)
1535
1429
 
1536
- def show_incident_with_http_info(self, request):
1537
- all_params = ['project_id', 'workspace_id', 'incident_id']
1538
- local_var_params = {}
1539
- for attr in request.attribute_map:
1540
- if hasattr(request, attr):
1541
- local_var_params[attr] = getattr(request, attr)
1430
+ def _show_incident_with_http_info(self, request):
1431
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1542
1432
 
1543
1433
  cname = None
1544
1434
 
@@ -1596,14 +1486,10 @@ class SaAsyncClient(Client):
1596
1486
  :type request: :class:`huaweicloudsdksa.v2.CreateIndicatorRequest`
1597
1487
  :rtype: :class:`huaweicloudsdksa.v2.CreateIndicatorResponse`
1598
1488
  """
1599
- return self.create_indicator_with_http_info(request)
1489
+ return self._create_indicator_with_http_info(request)
1600
1490
 
1601
- def create_indicator_with_http_info(self, request):
1602
- all_params = ['project_id', 'workspace_id', 'create_indicator_request_body']
1603
- local_var_params = {}
1604
- for attr in request.attribute_map:
1605
- if hasattr(request, attr):
1606
- local_var_params[attr] = getattr(request, attr)
1491
+ def _create_indicator_with_http_info(self, request):
1492
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1607
1493
 
1608
1494
  cname = None
1609
1495
 
@@ -1661,14 +1547,10 @@ class SaAsyncClient(Client):
1661
1547
  :type request: :class:`huaweicloudsdksa.v2.DeleteIndicatorRequest`
1662
1548
  :rtype: :class:`huaweicloudsdksa.v2.DeleteIndicatorResponse`
1663
1549
  """
1664
- return self.delete_indicator_with_http_info(request)
1550
+ return self._delete_indicator_with_http_info(request)
1665
1551
 
1666
- def delete_indicator_with_http_info(self, request):
1667
- all_params = ['project_id', 'workspace_id', 'delete_indicator_request_body']
1668
- local_var_params = {}
1669
- for attr in request.attribute_map:
1670
- if hasattr(request, attr):
1671
- local_var_params[attr] = getattr(request, attr)
1552
+ def _delete_indicator_with_http_info(self, request):
1553
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1672
1554
 
1673
1555
  cname = None
1674
1556
 
@@ -1726,14 +1608,10 @@ class SaAsyncClient(Client):
1726
1608
  :type request: :class:`huaweicloudsdksa.v2.ListIndicatorsRequest`
1727
1609
  :rtype: :class:`huaweicloudsdksa.v2.ListIndicatorsResponse`
1728
1610
  """
1729
- return self.list_indicators_with_http_info(request)
1611
+ return self._list_indicators_with_http_info(request)
1730
1612
 
1731
- def list_indicators_with_http_info(self, request):
1732
- all_params = ['project_id', 'workspace_id', 'list_indicators_request_body', 'order', 'from_date', 'to_date']
1733
- local_var_params = {}
1734
- for attr in request.attribute_map:
1735
- if hasattr(request, attr):
1736
- local_var_params[attr] = getattr(request, attr)
1613
+ def _list_indicators_with_http_info(self, request):
1614
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1737
1615
 
1738
1616
  cname = None
1739
1617
 
@@ -1797,14 +1675,10 @@ class SaAsyncClient(Client):
1797
1675
  :type request: :class:`huaweicloudsdksa.v2.ShowIndicatorDetailRequest`
1798
1676
  :rtype: :class:`huaweicloudsdksa.v2.ShowIndicatorDetailResponse`
1799
1677
  """
1800
- return self.show_indicator_detail_with_http_info(request)
1678
+ return self._show_indicator_detail_with_http_info(request)
1801
1679
 
1802
- def show_indicator_detail_with_http_info(self, request):
1803
- all_params = ['project_id', 'workspace_id', 'indicator_id']
1804
- local_var_params = {}
1805
- for attr in request.attribute_map:
1806
- if hasattr(request, attr):
1807
- local_var_params[attr] = getattr(request, attr)
1680
+ def _show_indicator_detail_with_http_info(self, request):
1681
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1808
1682
 
1809
1683
  cname = None
1810
1684
 
@@ -1862,14 +1736,10 @@ class SaAsyncClient(Client):
1862
1736
  :type request: :class:`huaweicloudsdksa.v2.UpdateIndicatorRequest`
1863
1737
  :rtype: :class:`huaweicloudsdksa.v2.UpdateIndicatorResponse`
1864
1738
  """
1865
- return self.update_indicator_with_http_info(request)
1739
+ return self._update_indicator_with_http_info(request)
1866
1740
 
1867
- def update_indicator_with_http_info(self, request):
1868
- all_params = ['project_id', 'workspace_id', 'indicator_id', 'update_indicator_request_body']
1869
- local_var_params = {}
1870
- for attr in request.attribute_map:
1871
- if hasattr(request, attr):
1872
- local_var_params[attr] = getattr(request, attr)
1741
+ def _update_indicator_with_http_info(self, request):
1742
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1873
1743
 
1874
1744
  cname = None
1875
1745
 
@@ -1929,14 +1799,10 @@ class SaAsyncClient(Client):
1929
1799
  :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookRequest`
1930
1800
  :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookResponse`
1931
1801
  """
1932
- return self.create_playbook_with_http_info(request)
1802
+ return self._create_playbook_with_http_info(request)
1933
1803
 
1934
- def create_playbook_with_http_info(self, request):
1935
- all_params = ['project_id', 'workspace_id', 'create_playbook_request_body']
1936
- local_var_params = {}
1937
- for attr in request.attribute_map:
1938
- if hasattr(request, attr):
1939
- local_var_params[attr] = getattr(request, attr)
1804
+ def _create_playbook_with_http_info(self, request):
1805
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1940
1806
 
1941
1807
  cname = None
1942
1808
 
@@ -1994,14 +1860,10 @@ class SaAsyncClient(Client):
1994
1860
  :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookRequest`
1995
1861
  :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookResponse`
1996
1862
  """
1997
- return self.delete_playbook_with_http_info(request)
1863
+ return self._delete_playbook_with_http_info(request)
1998
1864
 
1999
- def delete_playbook_with_http_info(self, request):
2000
- all_params = ['project_id', 'workspace_id', 'playbook_id']
2001
- local_var_params = {}
2002
- for attr in request.attribute_map:
2003
- if hasattr(request, attr):
2004
- local_var_params[attr] = getattr(request, attr)
1865
+ def _delete_playbook_with_http_info(self, request):
1866
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2005
1867
 
2006
1868
  cname = None
2007
1869
 
@@ -2059,14 +1921,10 @@ class SaAsyncClient(Client):
2059
1921
  :type request: :class:`huaweicloudsdksa.v2.ListPlaybooksRequest`
2060
1922
  :rtype: :class:`huaweicloudsdksa.v2.ListPlaybooksResponse`
2061
1923
  """
2062
- return self.list_playbooks_with_http_info(request)
1924
+ return self._list_playbooks_with_http_info(request)
2063
1925
 
2064
- def list_playbooks_with_http_info(self, request):
2065
- all_params = ['project_id', 'workspace_id', 'search_txt', 'component_id', 'enabled', 'offset', 'limit', 'description', 'dataclass_name', 'name']
2066
- local_var_params = {}
2067
- for attr in request.attribute_map:
2068
- if hasattr(request, attr):
2069
- local_var_params[attr] = getattr(request, attr)
1926
+ def _list_playbooks_with_http_info(self, request):
1927
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2070
1928
 
2071
1929
  cname = None
2072
1930
 
@@ -2138,14 +1996,10 @@ class SaAsyncClient(Client):
2138
1996
  :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookRequest`
2139
1997
  :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookResponse`
2140
1998
  """
2141
- return self.show_playbook_with_http_info(request)
1999
+ return self._show_playbook_with_http_info(request)
2142
2000
 
2143
- def show_playbook_with_http_info(self, request):
2144
- all_params = ['project_id', 'workspace_id', 'playbook_id']
2145
- local_var_params = {}
2146
- for attr in request.attribute_map:
2147
- if hasattr(request, attr):
2148
- local_var_params[attr] = getattr(request, attr)
2001
+ def _show_playbook_with_http_info(self, request):
2002
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2149
2003
 
2150
2004
  cname = None
2151
2005
 
@@ -2203,14 +2057,10 @@ class SaAsyncClient(Client):
2203
2057
  :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookMonitorsRequest`
2204
2058
  :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookMonitorsResponse`
2205
2059
  """
2206
- return self.show_playbook_monitors_with_http_info(request)
2060
+ return self._show_playbook_monitors_with_http_info(request)
2207
2061
 
2208
- def show_playbook_monitors_with_http_info(self, request):
2209
- all_params = ['project_id', 'workspace_id', 'playbook_id', 'start_time', 'version_query_type', 'end_time']
2210
- local_var_params = {}
2211
- for attr in request.attribute_map:
2212
- if hasattr(request, attr):
2213
- local_var_params[attr] = getattr(request, attr)
2062
+ def _show_playbook_monitors_with_http_info(self, request):
2063
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2214
2064
 
2215
2065
  cname = None
2216
2066
 
@@ -2274,14 +2124,10 @@ class SaAsyncClient(Client):
2274
2124
  :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookStatisticsRequest`
2275
2125
  :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookStatisticsResponse`
2276
2126
  """
2277
- return self.show_playbook_statistics_with_http_info(request)
2127
+ return self._show_playbook_statistics_with_http_info(request)
2278
2128
 
2279
- def show_playbook_statistics_with_http_info(self, request):
2280
- all_params = ['project_id', 'workspace_id']
2281
- local_var_params = {}
2282
- for attr in request.attribute_map:
2283
- if hasattr(request, attr):
2284
- local_var_params[attr] = getattr(request, attr)
2129
+ def _show_playbook_statistics_with_http_info(self, request):
2130
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2285
2131
 
2286
2132
  cname = None
2287
2133
 
@@ -2337,14 +2183,10 @@ class SaAsyncClient(Client):
2337
2183
  :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookRequest`
2338
2184
  :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookResponse`
2339
2185
  """
2340
- return self.update_playbook_with_http_info(request)
2186
+ return self._update_playbook_with_http_info(request)
2341
2187
 
2342
- def update_playbook_with_http_info(self, request):
2343
- all_params = ['project_id', 'workspace_id', 'playbook_id', 'update_playbook_request_body']
2344
- local_var_params = {}
2345
- for attr in request.attribute_map:
2346
- if hasattr(request, attr):
2347
- local_var_params[attr] = getattr(request, attr)
2188
+ def _update_playbook_with_http_info(self, request):
2189
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2348
2190
 
2349
2191
  cname = None
2350
2192
 
@@ -2404,14 +2246,10 @@ class SaAsyncClient(Client):
2404
2246
  :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookActionRequest`
2405
2247
  :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookActionResponse`
2406
2248
  """
2407
- return self.create_playbook_action_with_http_info(request)
2249
+ return self._create_playbook_action_with_http_info(request)
2408
2250
 
2409
- def create_playbook_action_with_http_info(self, request):
2410
- all_params = ['project_id', 'workspace_id', 'version_id', 'create_playbook_action_request_body']
2411
- local_var_params = {}
2412
- for attr in request.attribute_map:
2413
- if hasattr(request, attr):
2414
- local_var_params[attr] = getattr(request, attr)
2251
+ def _create_playbook_action_with_http_info(self, request):
2252
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2415
2253
 
2416
2254
  cname = None
2417
2255
 
@@ -2471,14 +2309,10 @@ class SaAsyncClient(Client):
2471
2309
  :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookActionRequest`
2472
2310
  :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookActionResponse`
2473
2311
  """
2474
- return self.delete_playbook_action_with_http_info(request)
2312
+ return self._delete_playbook_action_with_http_info(request)
2475
2313
 
2476
- def delete_playbook_action_with_http_info(self, request):
2477
- all_params = ['project_id', 'workspace_id', 'version_id', 'action_id']
2478
- local_var_params = {}
2479
- for attr in request.attribute_map:
2480
- if hasattr(request, attr):
2481
- local_var_params[attr] = getattr(request, attr)
2314
+ def _delete_playbook_action_with_http_info(self, request):
2315
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2482
2316
 
2483
2317
  cname = None
2484
2318
 
@@ -2538,14 +2372,10 @@ class SaAsyncClient(Client):
2538
2372
  :type request: :class:`huaweicloudsdksa.v2.ListPlaybookActionsRequest`
2539
2373
  :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookActionsResponse`
2540
2374
  """
2541
- return self.list_playbook_actions_with_http_info(request)
2375
+ return self._list_playbook_actions_with_http_info(request)
2542
2376
 
2543
- def list_playbook_actions_with_http_info(self, request):
2544
- all_params = ['project_id', 'workspace_id', 'version_id', 'limit', 'offset']
2545
- local_var_params = {}
2546
- for attr in request.attribute_map:
2547
- if hasattr(request, attr):
2548
- local_var_params[attr] = getattr(request, attr)
2377
+ def _list_playbook_actions_with_http_info(self, request):
2378
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2549
2379
 
2550
2380
  cname = None
2551
2381
 
@@ -2607,14 +2437,10 @@ class SaAsyncClient(Client):
2607
2437
  :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookActionRequest`
2608
2438
  :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookActionResponse`
2609
2439
  """
2610
- return self.update_playbook_action_with_http_info(request)
2440
+ return self._update_playbook_action_with_http_info(request)
2611
2441
 
2612
- def update_playbook_action_with_http_info(self, request):
2613
- all_params = ['project_id', 'workspace_id', 'version_id', 'action_id', 'update_playbook_action_request_body']
2614
- local_var_params = {}
2615
- for attr in request.attribute_map:
2616
- if hasattr(request, attr):
2617
- local_var_params[attr] = getattr(request, attr)
2442
+ def _update_playbook_action_with_http_info(self, request):
2443
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2618
2444
 
2619
2445
  cname = None
2620
2446
 
@@ -2676,14 +2502,10 @@ class SaAsyncClient(Client):
2676
2502
  :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookApproveRequest`
2677
2503
  :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookApproveResponse`
2678
2504
  """
2679
- return self.create_playbook_approve_with_http_info(request)
2505
+ return self._create_playbook_approve_with_http_info(request)
2680
2506
 
2681
- def create_playbook_approve_with_http_info(self, request):
2682
- all_params = ['project_id', 'workspace_id', 'version_id', 'create_playbook_approve_request_body']
2683
- local_var_params = {}
2684
- for attr in request.attribute_map:
2685
- if hasattr(request, attr):
2686
- local_var_params[attr] = getattr(request, attr)
2507
+ def _create_playbook_approve_with_http_info(self, request):
2508
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2687
2509
 
2688
2510
  cname = None
2689
2511
 
@@ -2743,14 +2565,10 @@ class SaAsyncClient(Client):
2743
2565
  :type request: :class:`huaweicloudsdksa.v2.ListPlaybookApprovesRequest`
2744
2566
  :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookApprovesResponse`
2745
2567
  """
2746
- return self.list_playbook_approves_with_http_info(request)
2568
+ return self._list_playbook_approves_with_http_info(request)
2747
2569
 
2748
- def list_playbook_approves_with_http_info(self, request):
2749
- all_params = ['project_id', 'workspace_id', 'resource_id', 'approve_type']
2750
- local_var_params = {}
2751
- for attr in request.attribute_map:
2752
- if hasattr(request, attr):
2753
- local_var_params[attr] = getattr(request, attr)
2570
+ def _list_playbook_approves_with_http_info(self, request):
2571
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2754
2572
 
2755
2573
  cname = None
2756
2574
 
@@ -2810,14 +2628,10 @@ class SaAsyncClient(Client):
2810
2628
  :type request: :class:`huaweicloudsdksa.v2.ChangePlaybookInstanceRequest`
2811
2629
  :rtype: :class:`huaweicloudsdksa.v2.ChangePlaybookInstanceResponse`
2812
2630
  """
2813
- return self.change_playbook_instance_with_http_info(request)
2631
+ return self._change_playbook_instance_with_http_info(request)
2814
2632
 
2815
- def change_playbook_instance_with_http_info(self, request):
2816
- all_params = ['project_id', 'workspace_id', 'instance_id', 'change_playbook_instance_request_body']
2817
- local_var_params = {}
2818
- for attr in request.attribute_map:
2819
- if hasattr(request, attr):
2820
- local_var_params[attr] = getattr(request, attr)
2633
+ def _change_playbook_instance_with_http_info(self, request):
2634
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2821
2635
 
2822
2636
  cname = None
2823
2637
 
@@ -2877,14 +2691,10 @@ class SaAsyncClient(Client):
2877
2691
  :type request: :class:`huaweicloudsdksa.v2.ListPlaybookAuditLogsRequest`
2878
2692
  :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookAuditLogsResponse`
2879
2693
  """
2880
- return self.list_playbook_audit_logs_with_http_info(request)
2694
+ return self._list_playbook_audit_logs_with_http_info(request)
2881
2695
 
2882
- def list_playbook_audit_logs_with_http_info(self, request):
2883
- all_params = ['project_id', 'workspace_id', 'offset', 'limit', 'sort_key', 'sort_dir', 'list_playbook_audit_logs_request_body']
2884
- local_var_params = {}
2885
- for attr in request.attribute_map:
2886
- if hasattr(request, attr):
2887
- local_var_params[attr] = getattr(request, attr)
2696
+ def _list_playbook_audit_logs_with_http_info(self, request):
2697
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2888
2698
 
2889
2699
  cname = None
2890
2700
 
@@ -2950,14 +2760,10 @@ class SaAsyncClient(Client):
2950
2760
  :type request: :class:`huaweicloudsdksa.v2.ListPlaybookInstancesRequest`
2951
2761
  :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookInstancesResponse`
2952
2762
  """
2953
- return self.list_playbook_instances_with_http_info(request)
2763
+ return self._list_playbook_instances_with_http_info(request)
2954
2764
 
2955
- def list_playbook_instances_with_http_info(self, request):
2956
- all_params = ['project_id', 'workspace_id', 'status', 'date_type', 'name', 'playbook_name', 'dataclass_name', 'dataobject_name', 'trigger_type', 'from_date', 'to_date', 'limit', 'offset']
2957
- local_var_params = {}
2958
- for attr in request.attribute_map:
2959
- if hasattr(request, attr):
2960
- local_var_params[attr] = getattr(request, attr)
2765
+ def _list_playbook_instances_with_http_info(self, request):
2766
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2961
2767
 
2962
2768
  cname = None
2963
2769
 
@@ -3035,14 +2841,10 @@ class SaAsyncClient(Client):
3035
2841
  :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookInstanceRequest`
3036
2842
  :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookInstanceResponse`
3037
2843
  """
3038
- return self.show_playbook_instance_with_http_info(request)
2844
+ return self._show_playbook_instance_with_http_info(request)
3039
2845
 
3040
- def show_playbook_instance_with_http_info(self, request):
3041
- all_params = ['project_id', 'workspace_id', 'instance_id']
3042
- local_var_params = {}
3043
- for attr in request.attribute_map:
3044
- if hasattr(request, attr):
3045
- local_var_params[attr] = getattr(request, attr)
2846
+ def _show_playbook_instance_with_http_info(self, request):
2847
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3046
2848
 
3047
2849
  cname = None
3048
2850
 
@@ -3100,14 +2902,10 @@ class SaAsyncClient(Client):
3100
2902
  :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookTopologyRequest`
3101
2903
  :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookTopologyResponse`
3102
2904
  """
3103
- return self.show_playbook_topology_with_http_info(request)
2905
+ return self._show_playbook_topology_with_http_info(request)
3104
2906
 
3105
- def show_playbook_topology_with_http_info(self, request):
3106
- all_params = ['project_id', 'workspace_id', 'instance_id']
3107
- local_var_params = {}
3108
- for attr in request.attribute_map:
3109
- if hasattr(request, attr):
3110
- local_var_params[attr] = getattr(request, attr)
2907
+ def _show_playbook_topology_with_http_info(self, request):
2908
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3111
2909
 
3112
2910
  cname = None
3113
2911
 
@@ -3165,14 +2963,10 @@ class SaAsyncClient(Client):
3165
2963
  :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookRuleRequest`
3166
2964
  :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookRuleResponse`
3167
2965
  """
3168
- return self.create_playbook_rule_with_http_info(request)
2966
+ return self._create_playbook_rule_with_http_info(request)
3169
2967
 
3170
- def create_playbook_rule_with_http_info(self, request):
3171
- all_params = ['project_id', 'workspace_id', 'version_id', 'create_playbook_rule_request_body']
3172
- local_var_params = {}
3173
- for attr in request.attribute_map:
3174
- if hasattr(request, attr):
3175
- local_var_params[attr] = getattr(request, attr)
2968
+ def _create_playbook_rule_with_http_info(self, request):
2969
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3176
2970
 
3177
2971
  cname = None
3178
2972
 
@@ -3232,14 +3026,10 @@ class SaAsyncClient(Client):
3232
3026
  :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookRuleRequest`
3233
3027
  :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookRuleResponse`
3234
3028
  """
3235
- return self.delete_playbook_rule_with_http_info(request)
3029
+ return self._delete_playbook_rule_with_http_info(request)
3236
3030
 
3237
- def delete_playbook_rule_with_http_info(self, request):
3238
- all_params = ['project_id', 'workspace_id', 'version_id', 'rule_id']
3239
- local_var_params = {}
3240
- for attr in request.attribute_map:
3241
- if hasattr(request, attr):
3242
- local_var_params[attr] = getattr(request, attr)
3031
+ def _delete_playbook_rule_with_http_info(self, request):
3032
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3243
3033
 
3244
3034
  cname = None
3245
3035
 
@@ -3299,14 +3089,10 @@ class SaAsyncClient(Client):
3299
3089
  :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookRuleRequest`
3300
3090
  :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookRuleResponse`
3301
3091
  """
3302
- return self.show_playbook_rule_with_http_info(request)
3092
+ return self._show_playbook_rule_with_http_info(request)
3303
3093
 
3304
- def show_playbook_rule_with_http_info(self, request):
3305
- all_params = ['project_id', 'workspace_id', 'version_id', 'rule_id']
3306
- local_var_params = {}
3307
- for attr in request.attribute_map:
3308
- if hasattr(request, attr):
3309
- local_var_params[attr] = getattr(request, attr)
3094
+ def _show_playbook_rule_with_http_info(self, request):
3095
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3310
3096
 
3311
3097
  cname = None
3312
3098
 
@@ -3366,14 +3152,10 @@ class SaAsyncClient(Client):
3366
3152
  :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookRuleRequest`
3367
3153
  :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookRuleResponse`
3368
3154
  """
3369
- return self.update_playbook_rule_with_http_info(request)
3155
+ return self._update_playbook_rule_with_http_info(request)
3370
3156
 
3371
- def update_playbook_rule_with_http_info(self, request):
3372
- all_params = ['project_id', 'workspace_id', 'version_id', 'rule_id', 'update_playbook_rule_request_body']
3373
- local_var_params = {}
3374
- for attr in request.attribute_map:
3375
- if hasattr(request, attr):
3376
- local_var_params[attr] = getattr(request, attr)
3157
+ def _update_playbook_rule_with_http_info(self, request):
3158
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3377
3159
 
3378
3160
  cname = None
3379
3161
 
@@ -3435,14 +3217,10 @@ class SaAsyncClient(Client):
3435
3217
  :type request: :class:`huaweicloudsdksa.v2.CopyPlaybookVersionRequest`
3436
3218
  :rtype: :class:`huaweicloudsdksa.v2.CopyPlaybookVersionResponse`
3437
3219
  """
3438
- return self.copy_playbook_version_with_http_info(request)
3220
+ return self._copy_playbook_version_with_http_info(request)
3439
3221
 
3440
- def copy_playbook_version_with_http_info(self, request):
3441
- all_params = ['project_id', 'workspace_id', 'version_id', 'copy_playbook_version_request_body']
3442
- local_var_params = {}
3443
- for attr in request.attribute_map:
3444
- if hasattr(request, attr):
3445
- local_var_params[attr] = getattr(request, attr)
3222
+ def _copy_playbook_version_with_http_info(self, request):
3223
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3446
3224
 
3447
3225
  cname = None
3448
3226
 
@@ -3502,14 +3280,10 @@ class SaAsyncClient(Client):
3502
3280
  :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookVersionRequest`
3503
3281
  :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookVersionResponse`
3504
3282
  """
3505
- return self.create_playbook_version_with_http_info(request)
3283
+ return self._create_playbook_version_with_http_info(request)
3506
3284
 
3507
- def create_playbook_version_with_http_info(self, request):
3508
- all_params = ['project_id', 'workspace_id', 'playbook_id', 'create_playbook_version_request_body']
3509
- local_var_params = {}
3510
- for attr in request.attribute_map:
3511
- if hasattr(request, attr):
3512
- local_var_params[attr] = getattr(request, attr)
3285
+ def _create_playbook_version_with_http_info(self, request):
3286
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3513
3287
 
3514
3288
  cname = None
3515
3289
 
@@ -3569,14 +3343,10 @@ class SaAsyncClient(Client):
3569
3343
  :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookVersionRequest`
3570
3344
  :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookVersionResponse`
3571
3345
  """
3572
- return self.delete_playbook_version_with_http_info(request)
3346
+ return self._delete_playbook_version_with_http_info(request)
3573
3347
 
3574
- def delete_playbook_version_with_http_info(self, request):
3575
- all_params = ['project_id', 'workspace_id', 'version_id']
3576
- local_var_params = {}
3577
- for attr in request.attribute_map:
3578
- if hasattr(request, attr):
3579
- local_var_params[attr] = getattr(request, attr)
3348
+ def _delete_playbook_version_with_http_info(self, request):
3349
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3580
3350
 
3581
3351
  cname = None
3582
3352
 
@@ -3634,14 +3404,10 @@ class SaAsyncClient(Client):
3634
3404
  :type request: :class:`huaweicloudsdksa.v2.ListPlaybookVersionsRequest`
3635
3405
  :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookVersionsResponse`
3636
3406
  """
3637
- return self.list_playbook_versions_with_http_info(request)
3407
+ return self._list_playbook_versions_with_http_info(request)
3638
3408
 
3639
- def list_playbook_versions_with_http_info(self, request):
3640
- all_params = ['project_id', 'workspace_id', 'playbook_id', 'status', 'enabled', 'version_type', 'approve_role', 'offset', 'limit']
3641
- local_var_params = {}
3642
- for attr in request.attribute_map:
3643
- if hasattr(request, attr):
3644
- local_var_params[attr] = getattr(request, attr)
3409
+ def _list_playbook_versions_with_http_info(self, request):
3410
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3645
3411
 
3646
3412
  cname = None
3647
3413
 
@@ -3711,14 +3477,10 @@ class SaAsyncClient(Client):
3711
3477
  :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookVersionRequest`
3712
3478
  :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookVersionResponse`
3713
3479
  """
3714
- return self.show_playbook_version_with_http_info(request)
3480
+ return self._show_playbook_version_with_http_info(request)
3715
3481
 
3716
- def show_playbook_version_with_http_info(self, request):
3717
- all_params = ['project_id', 'workspace_id', 'version_id']
3718
- local_var_params = {}
3719
- for attr in request.attribute_map:
3720
- if hasattr(request, attr):
3721
- local_var_params[attr] = getattr(request, attr)
3482
+ def _show_playbook_version_with_http_info(self, request):
3483
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3722
3484
 
3723
3485
  cname = None
3724
3486
 
@@ -3776,14 +3538,10 @@ class SaAsyncClient(Client):
3776
3538
  :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookVersionRequest`
3777
3539
  :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookVersionResponse`
3778
3540
  """
3779
- return self.update_playbook_version_with_http_info(request)
3541
+ return self._update_playbook_version_with_http_info(request)
3780
3542
 
3781
- def update_playbook_version_with_http_info(self, request):
3782
- all_params = ['project_id', 'workspace_id', 'version_id', 'update_playbook_version_request_body']
3783
- local_var_params = {}
3784
- for attr in request.attribute_map:
3785
- if hasattr(request, attr):
3786
- local_var_params[attr] = getattr(request, attr)
3543
+ def _update_playbook_version_with_http_info(self, request):
3544
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3787
3545
 
3788
3546
  cname = None
3789
3547
 
@@ -3843,14 +3601,10 @@ class SaAsyncClient(Client):
3843
3601
  :type request: :class:`huaweicloudsdksa.v2.CreateDataobjectRelationRequest`
3844
3602
  :rtype: :class:`huaweicloudsdksa.v2.CreateDataobjectRelationResponse`
3845
3603
  """
3846
- return self.create_dataobject_relation_with_http_info(request)
3604
+ return self._create_dataobject_relation_with_http_info(request)
3847
3605
 
3848
- def create_dataobject_relation_with_http_info(self, request):
3849
- all_params = ['project_id', 'workspace_id', 'dataclass_type', 'data_object_id', 'related_dataclass_type', 'create_dataobject_relation_request_body']
3850
- local_var_params = {}
3851
- for attr in request.attribute_map:
3852
- if hasattr(request, attr):
3853
- local_var_params[attr] = getattr(request, attr)
3606
+ def _create_dataobject_relation_with_http_info(self, request):
3607
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3854
3608
 
3855
3609
  cname = None
3856
3610
 
@@ -3914,14 +3668,10 @@ class SaAsyncClient(Client):
3914
3668
  :type request: :class:`huaweicloudsdksa.v2.DeleteDataobjectRelationRequest`
3915
3669
  :rtype: :class:`huaweicloudsdksa.v2.DeleteDataobjectRelationResponse`
3916
3670
  """
3917
- return self.delete_dataobject_relation_with_http_info(request)
3671
+ return self._delete_dataobject_relation_with_http_info(request)
3918
3672
 
3919
- def delete_dataobject_relation_with_http_info(self, request):
3920
- all_params = ['project_id', 'workspace_id', 'dataclass_type', 'data_object_id', 'related_dataclass_type', 'delete_dataobject_relation_request_body']
3921
- local_var_params = {}
3922
- for attr in request.attribute_map:
3923
- if hasattr(request, attr):
3924
- local_var_params[attr] = getattr(request, attr)
3673
+ def _delete_dataobject_relation_with_http_info(self, request):
3674
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3925
3675
 
3926
3676
  cname = None
3927
3677
 
@@ -3985,14 +3735,10 @@ class SaAsyncClient(Client):
3985
3735
  :type request: :class:`huaweicloudsdksa.v2.ListDataobjectRelationRequest`
3986
3736
  :rtype: :class:`huaweicloudsdksa.v2.ListDataobjectRelationResponse`
3987
3737
  """
3988
- return self.list_dataobject_relation_with_http_info(request)
3989
-
3990
- def list_dataobject_relation_with_http_info(self, request):
3991
- all_params = ['project_id', 'workspace_id', 'dataclass_type', 'data_object_id', 'related_dataclass_type', 'list_dataobject_relation_request_body']
3992
- local_var_params = {}
3993
- for attr in request.attribute_map:
3994
- if hasattr(request, attr):
3995
- local_var_params[attr] = getattr(request, attr)
3738
+ return self._list_dataobject_relation_with_http_info(request)
3739
+
3740
+ def _list_dataobject_relation_with_http_info(self, request):
3741
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3996
3742
 
3997
3743
  cname = None
3998
3744