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 SaClient(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(SaClient, 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):
@@ -53,14 +35,10 @@ class SaClient(Client):
53
35
  :type request: :class:`huaweicloudsdksa.v2.CreateAlertRuleRequest`
54
36
  :rtype: :class:`huaweicloudsdksa.v2.CreateAlertRuleResponse`
55
37
  """
56
- return self.create_alert_rule_with_http_info(request)
38
+ return self._create_alert_rule_with_http_info(request)
57
39
 
58
- def create_alert_rule_with_http_info(self, request):
59
- all_params = ['project_id', 'workspace_id', 'create_alert_rule_request_body']
60
- local_var_params = {}
61
- for attr in request.attribute_map:
62
- if hasattr(request, attr):
63
- local_var_params[attr] = getattr(request, attr)
40
+ def _create_alert_rule_with_http_info(self, request):
41
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
64
42
 
65
43
  cname = None
66
44
 
@@ -117,14 +95,10 @@ class SaClient(Client):
117
95
  :type request: :class:`huaweicloudsdksa.v2.CreateAlertRuleSimulationRequest`
118
96
  :rtype: :class:`huaweicloudsdksa.v2.CreateAlertRuleSimulationResponse`
119
97
  """
120
- return self.create_alert_rule_simulation_with_http_info(request)
98
+ return self._create_alert_rule_simulation_with_http_info(request)
121
99
 
122
- def create_alert_rule_simulation_with_http_info(self, request):
123
- all_params = ['project_id', 'workspace_id', 'create_alert_rule_simulation_request_body']
124
- local_var_params = {}
125
- for attr in request.attribute_map:
126
- if hasattr(request, attr):
127
- local_var_params[attr] = getattr(request, attr)
100
+ def _create_alert_rule_simulation_with_http_info(self, request):
101
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
128
102
 
129
103
  cname = None
130
104
 
@@ -181,14 +155,10 @@ class SaClient(Client):
181
155
  :type request: :class:`huaweicloudsdksa.v2.DeleteAlertRuleRequest`
182
156
  :rtype: :class:`huaweicloudsdksa.v2.DeleteAlertRuleResponse`
183
157
  """
184
- return self.delete_alert_rule_with_http_info(request)
158
+ return self._delete_alert_rule_with_http_info(request)
185
159
 
186
- def delete_alert_rule_with_http_info(self, request):
187
- all_params = ['project_id', 'workspace_id', 'delete_alert_rule_request_body']
188
- local_var_params = {}
189
- for attr in request.attribute_map:
190
- if hasattr(request, attr):
191
- local_var_params[attr] = getattr(request, attr)
160
+ def _delete_alert_rule_with_http_info(self, request):
161
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
192
162
 
193
163
  cname = None
194
164
 
@@ -245,14 +215,10 @@ class SaClient(Client):
245
215
  :type request: :class:`huaweicloudsdksa.v2.DisableAlertRuleRequest`
246
216
  :rtype: :class:`huaweicloudsdksa.v2.DisableAlertRuleResponse`
247
217
  """
248
- return self.disable_alert_rule_with_http_info(request)
218
+ return self._disable_alert_rule_with_http_info(request)
249
219
 
250
- def disable_alert_rule_with_http_info(self, request):
251
- all_params = ['project_id', 'workspace_id', 'disable_alert_rule_request_body']
252
- local_var_params = {}
253
- for attr in request.attribute_map:
254
- if hasattr(request, attr):
255
- local_var_params[attr] = getattr(request, attr)
220
+ def _disable_alert_rule_with_http_info(self, request):
221
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
256
222
 
257
223
  cname = None
258
224
 
@@ -309,14 +275,10 @@ class SaClient(Client):
309
275
  :type request: :class:`huaweicloudsdksa.v2.EnableAlertRuleRequest`
310
276
  :rtype: :class:`huaweicloudsdksa.v2.EnableAlertRuleResponse`
311
277
  """
312
- return self.enable_alert_rule_with_http_info(request)
278
+ return self._enable_alert_rule_with_http_info(request)
313
279
 
314
- def enable_alert_rule_with_http_info(self, request):
315
- all_params = ['project_id', 'workspace_id', 'enable_alert_rule_request_body']
316
- local_var_params = {}
317
- for attr in request.attribute_map:
318
- if hasattr(request, attr):
319
- local_var_params[attr] = getattr(request, attr)
280
+ def _enable_alert_rule_with_http_info(self, request):
281
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
320
282
 
321
283
  cname = None
322
284
 
@@ -373,14 +335,10 @@ class SaClient(Client):
373
335
  :type request: :class:`huaweicloudsdksa.v2.ListAlertRuleMetricsRequest`
374
336
  :rtype: :class:`huaweicloudsdksa.v2.ListAlertRuleMetricsResponse`
375
337
  """
376
- return self.list_alert_rule_metrics_with_http_info(request)
338
+ return self._list_alert_rule_metrics_with_http_info(request)
377
339
 
378
- def list_alert_rule_metrics_with_http_info(self, request):
379
- all_params = ['project_id', 'workspace_id']
380
- local_var_params = {}
381
- for attr in request.attribute_map:
382
- if hasattr(request, attr):
383
- local_var_params[attr] = getattr(request, attr)
340
+ def _list_alert_rule_metrics_with_http_info(self, request):
341
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
384
342
 
385
343
  cname = None
386
344
 
@@ -435,14 +393,10 @@ class SaClient(Client):
435
393
  :type request: :class:`huaweicloudsdksa.v2.ListAlertRuleTemplatesRequest`
436
394
  :rtype: :class:`huaweicloudsdksa.v2.ListAlertRuleTemplatesResponse`
437
395
  """
438
- return self.list_alert_rule_templates_with_http_info(request)
396
+ return self._list_alert_rule_templates_with_http_info(request)
439
397
 
440
- def list_alert_rule_templates_with_http_info(self, request):
441
- all_params = ['project_id', 'workspace_id', 'offset', 'limit', 'sort_key', 'sort_dir', 'severity']
442
- local_var_params = {}
443
- for attr in request.attribute_map:
444
- if hasattr(request, attr):
445
- local_var_params[attr] = getattr(request, attr)
398
+ def _list_alert_rule_templates_with_http_info(self, request):
399
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
446
400
 
447
401
  cname = None
448
402
 
@@ -508,14 +462,10 @@ class SaClient(Client):
508
462
  :type request: :class:`huaweicloudsdksa.v2.ListAlertRulesRequest`
509
463
  :rtype: :class:`huaweicloudsdksa.v2.ListAlertRulesResponse`
510
464
  """
511
- return self.list_alert_rules_with_http_info(request)
465
+ return self._list_alert_rules_with_http_info(request)
512
466
 
513
- def list_alert_rules_with_http_info(self, request):
514
- all_params = ['project_id', 'workspace_id', 'offset', 'limit', 'sort_key', 'sort_dir', 'pipe_id', 'rule_name', 'rule_id', 'status', 'severity']
515
- local_var_params = {}
516
- for attr in request.attribute_map:
517
- if hasattr(request, attr):
518
- local_var_params[attr] = getattr(request, attr)
467
+ def _list_alert_rules_with_http_info(self, request):
468
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
519
469
 
520
470
  cname = None
521
471
 
@@ -590,14 +540,10 @@ class SaClient(Client):
590
540
  :type request: :class:`huaweicloudsdksa.v2.ShowAlertRuleRequest`
591
541
  :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRuleResponse`
592
542
  """
593
- return self.show_alert_rule_with_http_info(request)
543
+ return self._show_alert_rule_with_http_info(request)
594
544
 
595
- def show_alert_rule_with_http_info(self, request):
596
- all_params = ['project_id', 'workspace_id', 'rule_id']
597
- local_var_params = {}
598
- for attr in request.attribute_map:
599
- if hasattr(request, attr):
600
- local_var_params[attr] = getattr(request, attr)
545
+ def _show_alert_rule_with_http_info(self, request):
546
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
601
547
 
602
548
  cname = None
603
549
 
@@ -654,14 +600,10 @@ class SaClient(Client):
654
600
  :type request: :class:`huaweicloudsdksa.v2.ShowAlertRuleTemplateRequest`
655
601
  :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRuleTemplateResponse`
656
602
  """
657
- return self.show_alert_rule_template_with_http_info(request)
603
+ return self._show_alert_rule_template_with_http_info(request)
658
604
 
659
- def show_alert_rule_template_with_http_info(self, request):
660
- all_params = ['project_id', 'workspace_id', 'template_id']
661
- local_var_params = {}
662
- for attr in request.attribute_map:
663
- if hasattr(request, attr):
664
- local_var_params[attr] = getattr(request, attr)
605
+ def _show_alert_rule_template_with_http_info(self, request):
606
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
665
607
 
666
608
  cname = None
667
609
 
@@ -718,14 +660,10 @@ class SaClient(Client):
718
660
  :type request: :class:`huaweicloudsdksa.v2.UpdateAlertRuleRequest`
719
661
  :rtype: :class:`huaweicloudsdksa.v2.UpdateAlertRuleResponse`
720
662
  """
721
- return self.update_alert_rule_with_http_info(request)
663
+ return self._update_alert_rule_with_http_info(request)
722
664
 
723
- def update_alert_rule_with_http_info(self, request):
724
- all_params = ['project_id', 'workspace_id', 'rule_id', 'update_alert_rule_request_body']
725
- local_var_params = {}
726
- for attr in request.attribute_map:
727
- if hasattr(request, attr):
728
- local_var_params[attr] = getattr(request, attr)
665
+ def _update_alert_rule_with_http_info(self, request):
666
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
729
667
 
730
668
  cname = None
731
669
 
@@ -784,14 +722,10 @@ class SaClient(Client):
784
722
  :type request: :class:`huaweicloudsdksa.v2.ChangeAlertRequest`
785
723
  :rtype: :class:`huaweicloudsdksa.v2.ChangeAlertResponse`
786
724
  """
787
- return self.change_alert_with_http_info(request)
725
+ return self._change_alert_with_http_info(request)
788
726
 
789
- def change_alert_with_http_info(self, request):
790
- all_params = ['project_id', 'workspace_id', 'alert_id', 'change_alert_request_body']
791
- local_var_params = {}
792
- for attr in request.attribute_map:
793
- if hasattr(request, attr):
794
- local_var_params[attr] = getattr(request, attr)
727
+ def _change_alert_with_http_info(self, request):
728
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
795
729
 
796
730
  cname = None
797
731
 
@@ -850,14 +784,10 @@ class SaClient(Client):
850
784
  :type request: :class:`huaweicloudsdksa.v2.CreateAlertRequest`
851
785
  :rtype: :class:`huaweicloudsdksa.v2.CreateAlertResponse`
852
786
  """
853
- return self.create_alert_with_http_info(request)
787
+ return self._create_alert_with_http_info(request)
854
788
 
855
- def create_alert_with_http_info(self, request):
856
- all_params = ['project_id', 'workspace_id', 'create_alert_request_body']
857
- local_var_params = {}
858
- for attr in request.attribute_map:
859
- if hasattr(request, attr):
860
- local_var_params[attr] = getattr(request, attr)
789
+ def _create_alert_with_http_info(self, request):
790
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
861
791
 
862
792
  cname = None
863
793
 
@@ -914,14 +844,10 @@ class SaClient(Client):
914
844
  :type request: :class:`huaweicloudsdksa.v2.CreateBatchOrderAlertsRequest`
915
845
  :rtype: :class:`huaweicloudsdksa.v2.CreateBatchOrderAlertsResponse`
916
846
  """
917
- return self.create_batch_order_alerts_with_http_info(request)
847
+ return self._create_batch_order_alerts_with_http_info(request)
918
848
 
919
- def create_batch_order_alerts_with_http_info(self, request):
920
- all_params = ['project_id', 'workspace_id', 'create_batch_order_alerts_request_body']
921
- local_var_params = {}
922
- for attr in request.attribute_map:
923
- if hasattr(request, attr):
924
- local_var_params[attr] = getattr(request, attr)
849
+ def _create_batch_order_alerts_with_http_info(self, request):
850
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
925
851
 
926
852
  cname = None
927
853
 
@@ -978,14 +904,10 @@ class SaClient(Client):
978
904
  :type request: :class:`huaweicloudsdksa.v2.DeleteAlertRequest`
979
905
  :rtype: :class:`huaweicloudsdksa.v2.DeleteAlertResponse`
980
906
  """
981
- return self.delete_alert_with_http_info(request)
907
+ return self._delete_alert_with_http_info(request)
982
908
 
983
- def delete_alert_with_http_info(self, request):
984
- all_params = ['project_id', 'workspace_id', 'delete_alert_request_body']
985
- local_var_params = {}
986
- for attr in request.attribute_map:
987
- if hasattr(request, attr):
988
- local_var_params[attr] = getattr(request, attr)
909
+ def _delete_alert_with_http_info(self, request):
910
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
989
911
 
990
912
  cname = None
991
913
 
@@ -1042,14 +964,10 @@ class SaClient(Client):
1042
964
  :type request: :class:`huaweicloudsdksa.v2.ListAlertsRequest`
1043
965
  :rtype: :class:`huaweicloudsdksa.v2.ListAlertsResponse`
1044
966
  """
1045
- return self.list_alerts_with_http_info(request)
967
+ return self._list_alerts_with_http_info(request)
1046
968
 
1047
- def list_alerts_with_http_info(self, request):
1048
- all_params = ['project_id', 'workspace_id', 'list_alerts_request_body']
1049
- local_var_params = {}
1050
- for attr in request.attribute_map:
1051
- if hasattr(request, attr):
1052
- local_var_params[attr] = getattr(request, attr)
969
+ def _list_alerts_with_http_info(self, request):
970
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1053
971
 
1054
972
  cname = None
1055
973
 
@@ -1106,14 +1024,10 @@ class SaClient(Client):
1106
1024
  :type request: :class:`huaweicloudsdksa.v2.ShowAlertRequest`
1107
1025
  :rtype: :class:`huaweicloudsdksa.v2.ShowAlertResponse`
1108
1026
  """
1109
- return self.show_alert_with_http_info(request)
1027
+ return self._show_alert_with_http_info(request)
1110
1028
 
1111
- def show_alert_with_http_info(self, request):
1112
- all_params = ['project_id', 'workspace_id', 'alert_id']
1113
- local_var_params = {}
1114
- for attr in request.attribute_map:
1115
- if hasattr(request, attr):
1116
- local_var_params[attr] = getattr(request, attr)
1029
+ def _show_alert_with_http_info(self, request):
1030
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1117
1031
 
1118
1032
  cname = None
1119
1033
 
@@ -1170,14 +1084,10 @@ class SaClient(Client):
1170
1084
  :type request: :class:`huaweicloudsdksa.v2.ChangeIncidentRequest`
1171
1085
  :rtype: :class:`huaweicloudsdksa.v2.ChangeIncidentResponse`
1172
1086
  """
1173
- return self.change_incident_with_http_info(request)
1087
+ return self._change_incident_with_http_info(request)
1174
1088
 
1175
- def change_incident_with_http_info(self, request):
1176
- all_params = ['project_id', 'workspace_id', 'incident_id', 'change_incident_request_body']
1177
- local_var_params = {}
1178
- for attr in request.attribute_map:
1179
- if hasattr(request, attr):
1180
- local_var_params[attr] = getattr(request, attr)
1089
+ def _change_incident_with_http_info(self, request):
1090
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1181
1091
 
1182
1092
  cname = None
1183
1093
 
@@ -1236,14 +1146,10 @@ class SaClient(Client):
1236
1146
  :type request: :class:`huaweicloudsdksa.v2.CreateIncidentRequest`
1237
1147
  :rtype: :class:`huaweicloudsdksa.v2.CreateIncidentResponse`
1238
1148
  """
1239
- return self.create_incident_with_http_info(request)
1149
+ return self._create_incident_with_http_info(request)
1240
1150
 
1241
- def create_incident_with_http_info(self, request):
1242
- all_params = ['project_id', 'workspace_id', 'create_incident_request_body']
1243
- local_var_params = {}
1244
- for attr in request.attribute_map:
1245
- if hasattr(request, attr):
1246
- local_var_params[attr] = getattr(request, attr)
1151
+ def _create_incident_with_http_info(self, request):
1152
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1247
1153
 
1248
1154
  cname = None
1249
1155
 
@@ -1300,14 +1206,10 @@ class SaClient(Client):
1300
1206
  :type request: :class:`huaweicloudsdksa.v2.DeleteIncidentRequest`
1301
1207
  :rtype: :class:`huaweicloudsdksa.v2.DeleteIncidentResponse`
1302
1208
  """
1303
- return self.delete_incident_with_http_info(request)
1209
+ return self._delete_incident_with_http_info(request)
1304
1210
 
1305
- def delete_incident_with_http_info(self, request):
1306
- all_params = ['project_id', 'workspace_id', 'delete_incident_request_body']
1307
- local_var_params = {}
1308
- for attr in request.attribute_map:
1309
- if hasattr(request, attr):
1310
- local_var_params[attr] = getattr(request, attr)
1211
+ def _delete_incident_with_http_info(self, request):
1212
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1311
1213
 
1312
1214
  cname = None
1313
1215
 
@@ -1364,14 +1266,10 @@ class SaClient(Client):
1364
1266
  :type request: :class:`huaweicloudsdksa.v2.ListIncidentTypesRequest`
1365
1267
  :rtype: :class:`huaweicloudsdksa.v2.ListIncidentTypesResponse`
1366
1268
  """
1367
- return self.list_incident_types_with_http_info(request)
1269
+ return self._list_incident_types_with_http_info(request)
1368
1270
 
1369
- def list_incident_types_with_http_info(self, request):
1370
- all_params = ['project_id', 'workspace_id', 'parent_business_code', 'offset', 'limit', 'order', 'sortby', 'name', 'enabled', 'layout_name', 'is_built_in']
1371
- local_var_params = {}
1372
- for attr in request.attribute_map:
1373
- if hasattr(request, attr):
1374
- local_var_params[attr] = getattr(request, attr)
1271
+ def _list_incident_types_with_http_info(self, request):
1272
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1375
1273
 
1376
1274
  cname = None
1377
1275
 
@@ -1444,14 +1342,10 @@ class SaClient(Client):
1444
1342
  :type request: :class:`huaweicloudsdksa.v2.ListIncidentsRequest`
1445
1343
  :rtype: :class:`huaweicloudsdksa.v2.ListIncidentsResponse`
1446
1344
  """
1447
- return self.list_incidents_with_http_info(request)
1345
+ return self._list_incidents_with_http_info(request)
1448
1346
 
1449
- def list_incidents_with_http_info(self, request):
1450
- all_params = ['project_id', 'workspace_id', 'listincidents_request_body']
1451
- local_var_params = {}
1452
- for attr in request.attribute_map:
1453
- if hasattr(request, attr):
1454
- local_var_params[attr] = getattr(request, attr)
1347
+ def _list_incidents_with_http_info(self, request):
1348
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1455
1349
 
1456
1350
  cname = None
1457
1351
 
@@ -1508,14 +1402,10 @@ class SaClient(Client):
1508
1402
  :type request: :class:`huaweicloudsdksa.v2.ShowIncidentRequest`
1509
1403
  :rtype: :class:`huaweicloudsdksa.v2.ShowIncidentResponse`
1510
1404
  """
1511
- return self.show_incident_with_http_info(request)
1405
+ return self._show_incident_with_http_info(request)
1512
1406
 
1513
- def show_incident_with_http_info(self, request):
1514
- all_params = ['project_id', 'workspace_id', 'incident_id']
1515
- local_var_params = {}
1516
- for attr in request.attribute_map:
1517
- if hasattr(request, attr):
1518
- local_var_params[attr] = getattr(request, attr)
1407
+ def _show_incident_with_http_info(self, request):
1408
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1519
1409
 
1520
1410
  cname = None
1521
1411
 
@@ -1572,14 +1462,10 @@ class SaClient(Client):
1572
1462
  :type request: :class:`huaweicloudsdksa.v2.CreateIndicatorRequest`
1573
1463
  :rtype: :class:`huaweicloudsdksa.v2.CreateIndicatorResponse`
1574
1464
  """
1575
- return self.create_indicator_with_http_info(request)
1465
+ return self._create_indicator_with_http_info(request)
1576
1466
 
1577
- def create_indicator_with_http_info(self, request):
1578
- all_params = ['project_id', 'workspace_id', 'create_indicator_request_body']
1579
- local_var_params = {}
1580
- for attr in request.attribute_map:
1581
- if hasattr(request, attr):
1582
- local_var_params[attr] = getattr(request, attr)
1467
+ def _create_indicator_with_http_info(self, request):
1468
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1583
1469
 
1584
1470
  cname = None
1585
1471
 
@@ -1636,14 +1522,10 @@ class SaClient(Client):
1636
1522
  :type request: :class:`huaweicloudsdksa.v2.DeleteIndicatorRequest`
1637
1523
  :rtype: :class:`huaweicloudsdksa.v2.DeleteIndicatorResponse`
1638
1524
  """
1639
- return self.delete_indicator_with_http_info(request)
1525
+ return self._delete_indicator_with_http_info(request)
1640
1526
 
1641
- def delete_indicator_with_http_info(self, request):
1642
- all_params = ['project_id', 'workspace_id', 'delete_indicator_request_body']
1643
- local_var_params = {}
1644
- for attr in request.attribute_map:
1645
- if hasattr(request, attr):
1646
- local_var_params[attr] = getattr(request, attr)
1527
+ def _delete_indicator_with_http_info(self, request):
1528
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1647
1529
 
1648
1530
  cname = None
1649
1531
 
@@ -1700,14 +1582,10 @@ class SaClient(Client):
1700
1582
  :type request: :class:`huaweicloudsdksa.v2.ListIndicatorsRequest`
1701
1583
  :rtype: :class:`huaweicloudsdksa.v2.ListIndicatorsResponse`
1702
1584
  """
1703
- return self.list_indicators_with_http_info(request)
1585
+ return self._list_indicators_with_http_info(request)
1704
1586
 
1705
- def list_indicators_with_http_info(self, request):
1706
- all_params = ['project_id', 'workspace_id', 'list_indicators_request_body', 'order', 'from_date', 'to_date']
1707
- local_var_params = {}
1708
- for attr in request.attribute_map:
1709
- if hasattr(request, attr):
1710
- local_var_params[attr] = getattr(request, attr)
1587
+ def _list_indicators_with_http_info(self, request):
1588
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1711
1589
 
1712
1590
  cname = None
1713
1591
 
@@ -1770,14 +1648,10 @@ class SaClient(Client):
1770
1648
  :type request: :class:`huaweicloudsdksa.v2.ShowIndicatorDetailRequest`
1771
1649
  :rtype: :class:`huaweicloudsdksa.v2.ShowIndicatorDetailResponse`
1772
1650
  """
1773
- return self.show_indicator_detail_with_http_info(request)
1651
+ return self._show_indicator_detail_with_http_info(request)
1774
1652
 
1775
- def show_indicator_detail_with_http_info(self, request):
1776
- all_params = ['project_id', 'workspace_id', 'indicator_id']
1777
- local_var_params = {}
1778
- for attr in request.attribute_map:
1779
- if hasattr(request, attr):
1780
- local_var_params[attr] = getattr(request, attr)
1653
+ def _show_indicator_detail_with_http_info(self, request):
1654
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1781
1655
 
1782
1656
  cname = None
1783
1657
 
@@ -1834,14 +1708,10 @@ class SaClient(Client):
1834
1708
  :type request: :class:`huaweicloudsdksa.v2.UpdateIndicatorRequest`
1835
1709
  :rtype: :class:`huaweicloudsdksa.v2.UpdateIndicatorResponse`
1836
1710
  """
1837
- return self.update_indicator_with_http_info(request)
1711
+ return self._update_indicator_with_http_info(request)
1838
1712
 
1839
- def update_indicator_with_http_info(self, request):
1840
- all_params = ['project_id', 'workspace_id', 'indicator_id', 'update_indicator_request_body']
1841
- local_var_params = {}
1842
- for attr in request.attribute_map:
1843
- if hasattr(request, attr):
1844
- local_var_params[attr] = getattr(request, attr)
1713
+ def _update_indicator_with_http_info(self, request):
1714
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1845
1715
 
1846
1716
  cname = None
1847
1717
 
@@ -1900,14 +1770,10 @@ class SaClient(Client):
1900
1770
  :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookRequest`
1901
1771
  :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookResponse`
1902
1772
  """
1903
- return self.create_playbook_with_http_info(request)
1773
+ return self._create_playbook_with_http_info(request)
1904
1774
 
1905
- def create_playbook_with_http_info(self, request):
1906
- all_params = ['project_id', 'workspace_id', 'create_playbook_request_body']
1907
- local_var_params = {}
1908
- for attr in request.attribute_map:
1909
- if hasattr(request, attr):
1910
- local_var_params[attr] = getattr(request, attr)
1775
+ def _create_playbook_with_http_info(self, request):
1776
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1911
1777
 
1912
1778
  cname = None
1913
1779
 
@@ -1964,14 +1830,10 @@ class SaClient(Client):
1964
1830
  :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookRequest`
1965
1831
  :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookResponse`
1966
1832
  """
1967
- return self.delete_playbook_with_http_info(request)
1833
+ return self._delete_playbook_with_http_info(request)
1968
1834
 
1969
- def delete_playbook_with_http_info(self, request):
1970
- all_params = ['project_id', 'workspace_id', 'playbook_id']
1971
- local_var_params = {}
1972
- for attr in request.attribute_map:
1973
- if hasattr(request, attr):
1974
- local_var_params[attr] = getattr(request, attr)
1835
+ def _delete_playbook_with_http_info(self, request):
1836
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1975
1837
 
1976
1838
  cname = None
1977
1839
 
@@ -2028,14 +1890,10 @@ class SaClient(Client):
2028
1890
  :type request: :class:`huaweicloudsdksa.v2.ListPlaybooksRequest`
2029
1891
  :rtype: :class:`huaweicloudsdksa.v2.ListPlaybooksResponse`
2030
1892
  """
2031
- return self.list_playbooks_with_http_info(request)
1893
+ return self._list_playbooks_with_http_info(request)
2032
1894
 
2033
- def list_playbooks_with_http_info(self, request):
2034
- all_params = ['project_id', 'workspace_id', 'search_txt', 'component_id', 'enabled', 'offset', 'limit', 'description', 'dataclass_name', 'name']
2035
- local_var_params = {}
2036
- for attr in request.attribute_map:
2037
- if hasattr(request, attr):
2038
- local_var_params[attr] = getattr(request, attr)
1895
+ def _list_playbooks_with_http_info(self, request):
1896
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2039
1897
 
2040
1898
  cname = None
2041
1899
 
@@ -2106,14 +1964,10 @@ class SaClient(Client):
2106
1964
  :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookRequest`
2107
1965
  :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookResponse`
2108
1966
  """
2109
- return self.show_playbook_with_http_info(request)
1967
+ return self._show_playbook_with_http_info(request)
2110
1968
 
2111
- def show_playbook_with_http_info(self, request):
2112
- all_params = ['project_id', 'workspace_id', 'playbook_id']
2113
- local_var_params = {}
2114
- for attr in request.attribute_map:
2115
- if hasattr(request, attr):
2116
- local_var_params[attr] = getattr(request, attr)
1969
+ def _show_playbook_with_http_info(self, request):
1970
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2117
1971
 
2118
1972
  cname = None
2119
1973
 
@@ -2170,14 +2024,10 @@ class SaClient(Client):
2170
2024
  :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookMonitorsRequest`
2171
2025
  :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookMonitorsResponse`
2172
2026
  """
2173
- return self.show_playbook_monitors_with_http_info(request)
2027
+ return self._show_playbook_monitors_with_http_info(request)
2174
2028
 
2175
- def show_playbook_monitors_with_http_info(self, request):
2176
- all_params = ['project_id', 'workspace_id', 'playbook_id', 'start_time', 'version_query_type', 'end_time']
2177
- local_var_params = {}
2178
- for attr in request.attribute_map:
2179
- if hasattr(request, attr):
2180
- local_var_params[attr] = getattr(request, attr)
2029
+ def _show_playbook_monitors_with_http_info(self, request):
2030
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2181
2031
 
2182
2032
  cname = None
2183
2033
 
@@ -2240,14 +2090,10 @@ class SaClient(Client):
2240
2090
  :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookStatisticsRequest`
2241
2091
  :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookStatisticsResponse`
2242
2092
  """
2243
- return self.show_playbook_statistics_with_http_info(request)
2093
+ return self._show_playbook_statistics_with_http_info(request)
2244
2094
 
2245
- def show_playbook_statistics_with_http_info(self, request):
2246
- all_params = ['project_id', 'workspace_id']
2247
- local_var_params = {}
2248
- for attr in request.attribute_map:
2249
- if hasattr(request, attr):
2250
- local_var_params[attr] = getattr(request, attr)
2095
+ def _show_playbook_statistics_with_http_info(self, request):
2096
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2251
2097
 
2252
2098
  cname = None
2253
2099
 
@@ -2302,14 +2148,10 @@ class SaClient(Client):
2302
2148
  :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookRequest`
2303
2149
  :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookResponse`
2304
2150
  """
2305
- return self.update_playbook_with_http_info(request)
2151
+ return self._update_playbook_with_http_info(request)
2306
2152
 
2307
- def update_playbook_with_http_info(self, request):
2308
- all_params = ['project_id', 'workspace_id', 'playbook_id', 'update_playbook_request_body']
2309
- local_var_params = {}
2310
- for attr in request.attribute_map:
2311
- if hasattr(request, attr):
2312
- local_var_params[attr] = getattr(request, attr)
2153
+ def _update_playbook_with_http_info(self, request):
2154
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2313
2155
 
2314
2156
  cname = None
2315
2157
 
@@ -2368,14 +2210,10 @@ class SaClient(Client):
2368
2210
  :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookActionRequest`
2369
2211
  :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookActionResponse`
2370
2212
  """
2371
- return self.create_playbook_action_with_http_info(request)
2213
+ return self._create_playbook_action_with_http_info(request)
2372
2214
 
2373
- def create_playbook_action_with_http_info(self, request):
2374
- all_params = ['project_id', 'workspace_id', 'version_id', 'create_playbook_action_request_body']
2375
- local_var_params = {}
2376
- for attr in request.attribute_map:
2377
- if hasattr(request, attr):
2378
- local_var_params[attr] = getattr(request, attr)
2215
+ def _create_playbook_action_with_http_info(self, request):
2216
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2379
2217
 
2380
2218
  cname = None
2381
2219
 
@@ -2434,14 +2272,10 @@ class SaClient(Client):
2434
2272
  :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookActionRequest`
2435
2273
  :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookActionResponse`
2436
2274
  """
2437
- return self.delete_playbook_action_with_http_info(request)
2275
+ return self._delete_playbook_action_with_http_info(request)
2438
2276
 
2439
- def delete_playbook_action_with_http_info(self, request):
2440
- all_params = ['project_id', 'workspace_id', 'version_id', 'action_id']
2441
- local_var_params = {}
2442
- for attr in request.attribute_map:
2443
- if hasattr(request, attr):
2444
- local_var_params[attr] = getattr(request, attr)
2277
+ def _delete_playbook_action_with_http_info(self, request):
2278
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2445
2279
 
2446
2280
  cname = None
2447
2281
 
@@ -2500,14 +2334,10 @@ class SaClient(Client):
2500
2334
  :type request: :class:`huaweicloudsdksa.v2.ListPlaybookActionsRequest`
2501
2335
  :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookActionsResponse`
2502
2336
  """
2503
- return self.list_playbook_actions_with_http_info(request)
2337
+ return self._list_playbook_actions_with_http_info(request)
2504
2338
 
2505
- def list_playbook_actions_with_http_info(self, request):
2506
- all_params = ['project_id', 'workspace_id', 'version_id', 'limit', 'offset']
2507
- local_var_params = {}
2508
- for attr in request.attribute_map:
2509
- if hasattr(request, attr):
2510
- local_var_params[attr] = getattr(request, attr)
2339
+ def _list_playbook_actions_with_http_info(self, request):
2340
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2511
2341
 
2512
2342
  cname = None
2513
2343
 
@@ -2568,14 +2398,10 @@ class SaClient(Client):
2568
2398
  :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookActionRequest`
2569
2399
  :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookActionResponse`
2570
2400
  """
2571
- return self.update_playbook_action_with_http_info(request)
2401
+ return self._update_playbook_action_with_http_info(request)
2572
2402
 
2573
- def update_playbook_action_with_http_info(self, request):
2574
- all_params = ['project_id', 'workspace_id', 'version_id', 'action_id', 'update_playbook_action_request_body']
2575
- local_var_params = {}
2576
- for attr in request.attribute_map:
2577
- if hasattr(request, attr):
2578
- local_var_params[attr] = getattr(request, attr)
2403
+ def _update_playbook_action_with_http_info(self, request):
2404
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2579
2405
 
2580
2406
  cname = None
2581
2407
 
@@ -2636,14 +2462,10 @@ class SaClient(Client):
2636
2462
  :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookApproveRequest`
2637
2463
  :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookApproveResponse`
2638
2464
  """
2639
- return self.create_playbook_approve_with_http_info(request)
2465
+ return self._create_playbook_approve_with_http_info(request)
2640
2466
 
2641
- def create_playbook_approve_with_http_info(self, request):
2642
- all_params = ['project_id', 'workspace_id', 'version_id', 'create_playbook_approve_request_body']
2643
- local_var_params = {}
2644
- for attr in request.attribute_map:
2645
- if hasattr(request, attr):
2646
- local_var_params[attr] = getattr(request, attr)
2467
+ def _create_playbook_approve_with_http_info(self, request):
2468
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2647
2469
 
2648
2470
  cname = None
2649
2471
 
@@ -2702,14 +2524,10 @@ class SaClient(Client):
2702
2524
  :type request: :class:`huaweicloudsdksa.v2.ListPlaybookApprovesRequest`
2703
2525
  :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookApprovesResponse`
2704
2526
  """
2705
- return self.list_playbook_approves_with_http_info(request)
2527
+ return self._list_playbook_approves_with_http_info(request)
2706
2528
 
2707
- def list_playbook_approves_with_http_info(self, request):
2708
- all_params = ['project_id', 'workspace_id', 'resource_id', 'approve_type']
2709
- local_var_params = {}
2710
- for attr in request.attribute_map:
2711
- if hasattr(request, attr):
2712
- local_var_params[attr] = getattr(request, attr)
2529
+ def _list_playbook_approves_with_http_info(self, request):
2530
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2713
2531
 
2714
2532
  cname = None
2715
2533
 
@@ -2768,14 +2586,10 @@ class SaClient(Client):
2768
2586
  :type request: :class:`huaweicloudsdksa.v2.ChangePlaybookInstanceRequest`
2769
2587
  :rtype: :class:`huaweicloudsdksa.v2.ChangePlaybookInstanceResponse`
2770
2588
  """
2771
- return self.change_playbook_instance_with_http_info(request)
2589
+ return self._change_playbook_instance_with_http_info(request)
2772
2590
 
2773
- def change_playbook_instance_with_http_info(self, request):
2774
- all_params = ['project_id', 'workspace_id', 'instance_id', 'change_playbook_instance_request_body']
2775
- local_var_params = {}
2776
- for attr in request.attribute_map:
2777
- if hasattr(request, attr):
2778
- local_var_params[attr] = getattr(request, attr)
2591
+ def _change_playbook_instance_with_http_info(self, request):
2592
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2779
2593
 
2780
2594
  cname = None
2781
2595
 
@@ -2834,14 +2648,10 @@ class SaClient(Client):
2834
2648
  :type request: :class:`huaweicloudsdksa.v2.ListPlaybookAuditLogsRequest`
2835
2649
  :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookAuditLogsResponse`
2836
2650
  """
2837
- return self.list_playbook_audit_logs_with_http_info(request)
2651
+ return self._list_playbook_audit_logs_with_http_info(request)
2838
2652
 
2839
- def list_playbook_audit_logs_with_http_info(self, request):
2840
- all_params = ['project_id', 'workspace_id', 'offset', 'limit', 'sort_key', 'sort_dir', 'list_playbook_audit_logs_request_body']
2841
- local_var_params = {}
2842
- for attr in request.attribute_map:
2843
- if hasattr(request, attr):
2844
- local_var_params[attr] = getattr(request, attr)
2653
+ def _list_playbook_audit_logs_with_http_info(self, request):
2654
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2845
2655
 
2846
2656
  cname = None
2847
2657
 
@@ -2906,14 +2716,10 @@ class SaClient(Client):
2906
2716
  :type request: :class:`huaweicloudsdksa.v2.ListPlaybookInstancesRequest`
2907
2717
  :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookInstancesResponse`
2908
2718
  """
2909
- return self.list_playbook_instances_with_http_info(request)
2719
+ return self._list_playbook_instances_with_http_info(request)
2910
2720
 
2911
- def list_playbook_instances_with_http_info(self, request):
2912
- all_params = ['project_id', 'workspace_id', 'status', 'date_type', 'name', 'playbook_name', 'dataclass_name', 'dataobject_name', 'trigger_type', 'from_date', 'to_date', 'limit', 'offset']
2913
- local_var_params = {}
2914
- for attr in request.attribute_map:
2915
- if hasattr(request, attr):
2916
- local_var_params[attr] = getattr(request, attr)
2721
+ def _list_playbook_instances_with_http_info(self, request):
2722
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2917
2723
 
2918
2724
  cname = None
2919
2725
 
@@ -2990,14 +2796,10 @@ class SaClient(Client):
2990
2796
  :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookInstanceRequest`
2991
2797
  :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookInstanceResponse`
2992
2798
  """
2993
- return self.show_playbook_instance_with_http_info(request)
2799
+ return self._show_playbook_instance_with_http_info(request)
2994
2800
 
2995
- def show_playbook_instance_with_http_info(self, request):
2996
- all_params = ['project_id', 'workspace_id', 'instance_id']
2997
- local_var_params = {}
2998
- for attr in request.attribute_map:
2999
- if hasattr(request, attr):
3000
- local_var_params[attr] = getattr(request, attr)
2801
+ def _show_playbook_instance_with_http_info(self, request):
2802
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3001
2803
 
3002
2804
  cname = None
3003
2805
 
@@ -3054,14 +2856,10 @@ class SaClient(Client):
3054
2856
  :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookTopologyRequest`
3055
2857
  :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookTopologyResponse`
3056
2858
  """
3057
- return self.show_playbook_topology_with_http_info(request)
2859
+ return self._show_playbook_topology_with_http_info(request)
3058
2860
 
3059
- def show_playbook_topology_with_http_info(self, request):
3060
- all_params = ['project_id', 'workspace_id', 'instance_id']
3061
- local_var_params = {}
3062
- for attr in request.attribute_map:
3063
- if hasattr(request, attr):
3064
- local_var_params[attr] = getattr(request, attr)
2861
+ def _show_playbook_topology_with_http_info(self, request):
2862
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3065
2863
 
3066
2864
  cname = None
3067
2865
 
@@ -3118,14 +2916,10 @@ class SaClient(Client):
3118
2916
  :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookRuleRequest`
3119
2917
  :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookRuleResponse`
3120
2918
  """
3121
- return self.create_playbook_rule_with_http_info(request)
2919
+ return self._create_playbook_rule_with_http_info(request)
3122
2920
 
3123
- def create_playbook_rule_with_http_info(self, request):
3124
- all_params = ['project_id', 'workspace_id', 'version_id', 'create_playbook_rule_request_body']
3125
- local_var_params = {}
3126
- for attr in request.attribute_map:
3127
- if hasattr(request, attr):
3128
- local_var_params[attr] = getattr(request, attr)
2921
+ def _create_playbook_rule_with_http_info(self, request):
2922
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3129
2923
 
3130
2924
  cname = None
3131
2925
 
@@ -3184,14 +2978,10 @@ class SaClient(Client):
3184
2978
  :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookRuleRequest`
3185
2979
  :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookRuleResponse`
3186
2980
  """
3187
- return self.delete_playbook_rule_with_http_info(request)
2981
+ return self._delete_playbook_rule_with_http_info(request)
3188
2982
 
3189
- def delete_playbook_rule_with_http_info(self, request):
3190
- all_params = ['project_id', 'workspace_id', 'version_id', 'rule_id']
3191
- local_var_params = {}
3192
- for attr in request.attribute_map:
3193
- if hasattr(request, attr):
3194
- local_var_params[attr] = getattr(request, attr)
2983
+ def _delete_playbook_rule_with_http_info(self, request):
2984
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3195
2985
 
3196
2986
  cname = None
3197
2987
 
@@ -3250,14 +3040,10 @@ class SaClient(Client):
3250
3040
  :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookRuleRequest`
3251
3041
  :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookRuleResponse`
3252
3042
  """
3253
- return self.show_playbook_rule_with_http_info(request)
3043
+ return self._show_playbook_rule_with_http_info(request)
3254
3044
 
3255
- def show_playbook_rule_with_http_info(self, request):
3256
- all_params = ['project_id', 'workspace_id', 'version_id', 'rule_id']
3257
- local_var_params = {}
3258
- for attr in request.attribute_map:
3259
- if hasattr(request, attr):
3260
- local_var_params[attr] = getattr(request, attr)
3045
+ def _show_playbook_rule_with_http_info(self, request):
3046
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3261
3047
 
3262
3048
  cname = None
3263
3049
 
@@ -3316,14 +3102,10 @@ class SaClient(Client):
3316
3102
  :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookRuleRequest`
3317
3103
  :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookRuleResponse`
3318
3104
  """
3319
- return self.update_playbook_rule_with_http_info(request)
3105
+ return self._update_playbook_rule_with_http_info(request)
3320
3106
 
3321
- def update_playbook_rule_with_http_info(self, request):
3322
- all_params = ['project_id', 'workspace_id', 'version_id', 'rule_id', 'update_playbook_rule_request_body']
3323
- local_var_params = {}
3324
- for attr in request.attribute_map:
3325
- if hasattr(request, attr):
3326
- local_var_params[attr] = getattr(request, attr)
3107
+ def _update_playbook_rule_with_http_info(self, request):
3108
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3327
3109
 
3328
3110
  cname = None
3329
3111
 
@@ -3384,14 +3166,10 @@ class SaClient(Client):
3384
3166
  :type request: :class:`huaweicloudsdksa.v2.CopyPlaybookVersionRequest`
3385
3167
  :rtype: :class:`huaweicloudsdksa.v2.CopyPlaybookVersionResponse`
3386
3168
  """
3387
- return self.copy_playbook_version_with_http_info(request)
3169
+ return self._copy_playbook_version_with_http_info(request)
3388
3170
 
3389
- def copy_playbook_version_with_http_info(self, request):
3390
- all_params = ['project_id', 'workspace_id', 'version_id', 'copy_playbook_version_request_body']
3391
- local_var_params = {}
3392
- for attr in request.attribute_map:
3393
- if hasattr(request, attr):
3394
- local_var_params[attr] = getattr(request, attr)
3171
+ def _copy_playbook_version_with_http_info(self, request):
3172
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3395
3173
 
3396
3174
  cname = None
3397
3175
 
@@ -3450,14 +3228,10 @@ class SaClient(Client):
3450
3228
  :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookVersionRequest`
3451
3229
  :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookVersionResponse`
3452
3230
  """
3453
- return self.create_playbook_version_with_http_info(request)
3231
+ return self._create_playbook_version_with_http_info(request)
3454
3232
 
3455
- def create_playbook_version_with_http_info(self, request):
3456
- all_params = ['project_id', 'workspace_id', 'playbook_id', 'create_playbook_version_request_body']
3457
- local_var_params = {}
3458
- for attr in request.attribute_map:
3459
- if hasattr(request, attr):
3460
- local_var_params[attr] = getattr(request, attr)
3233
+ def _create_playbook_version_with_http_info(self, request):
3234
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3461
3235
 
3462
3236
  cname = None
3463
3237
 
@@ -3516,14 +3290,10 @@ class SaClient(Client):
3516
3290
  :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookVersionRequest`
3517
3291
  :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookVersionResponse`
3518
3292
  """
3519
- return self.delete_playbook_version_with_http_info(request)
3293
+ return self._delete_playbook_version_with_http_info(request)
3520
3294
 
3521
- def delete_playbook_version_with_http_info(self, request):
3522
- all_params = ['project_id', 'workspace_id', 'version_id']
3523
- local_var_params = {}
3524
- for attr in request.attribute_map:
3525
- if hasattr(request, attr):
3526
- local_var_params[attr] = getattr(request, attr)
3295
+ def _delete_playbook_version_with_http_info(self, request):
3296
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3527
3297
 
3528
3298
  cname = None
3529
3299
 
@@ -3580,14 +3350,10 @@ class SaClient(Client):
3580
3350
  :type request: :class:`huaweicloudsdksa.v2.ListPlaybookVersionsRequest`
3581
3351
  :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookVersionsResponse`
3582
3352
  """
3583
- return self.list_playbook_versions_with_http_info(request)
3353
+ return self._list_playbook_versions_with_http_info(request)
3584
3354
 
3585
- def list_playbook_versions_with_http_info(self, request):
3586
- all_params = ['project_id', 'workspace_id', 'playbook_id', 'status', 'enabled', 'version_type', 'approve_role', 'offset', 'limit']
3587
- local_var_params = {}
3588
- for attr in request.attribute_map:
3589
- if hasattr(request, attr):
3590
- local_var_params[attr] = getattr(request, attr)
3355
+ def _list_playbook_versions_with_http_info(self, request):
3356
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3591
3357
 
3592
3358
  cname = None
3593
3359
 
@@ -3656,14 +3422,10 @@ class SaClient(Client):
3656
3422
  :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookVersionRequest`
3657
3423
  :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookVersionResponse`
3658
3424
  """
3659
- return self.show_playbook_version_with_http_info(request)
3425
+ return self._show_playbook_version_with_http_info(request)
3660
3426
 
3661
- def show_playbook_version_with_http_info(self, request):
3662
- all_params = ['project_id', 'workspace_id', 'version_id']
3663
- local_var_params = {}
3664
- for attr in request.attribute_map:
3665
- if hasattr(request, attr):
3666
- local_var_params[attr] = getattr(request, attr)
3427
+ def _show_playbook_version_with_http_info(self, request):
3428
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3667
3429
 
3668
3430
  cname = None
3669
3431
 
@@ -3720,14 +3482,10 @@ class SaClient(Client):
3720
3482
  :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookVersionRequest`
3721
3483
  :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookVersionResponse`
3722
3484
  """
3723
- return self.update_playbook_version_with_http_info(request)
3485
+ return self._update_playbook_version_with_http_info(request)
3724
3486
 
3725
- def update_playbook_version_with_http_info(self, request):
3726
- all_params = ['project_id', 'workspace_id', 'version_id', 'update_playbook_version_request_body']
3727
- local_var_params = {}
3728
- for attr in request.attribute_map:
3729
- if hasattr(request, attr):
3730
- local_var_params[attr] = getattr(request, attr)
3487
+ def _update_playbook_version_with_http_info(self, request):
3488
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3731
3489
 
3732
3490
  cname = None
3733
3491
 
@@ -3786,14 +3544,10 @@ class SaClient(Client):
3786
3544
  :type request: :class:`huaweicloudsdksa.v2.CreateDataobjectRelationRequest`
3787
3545
  :rtype: :class:`huaweicloudsdksa.v2.CreateDataobjectRelationResponse`
3788
3546
  """
3789
- return self.create_dataobject_relation_with_http_info(request)
3547
+ return self._create_dataobject_relation_with_http_info(request)
3790
3548
 
3791
- def create_dataobject_relation_with_http_info(self, request):
3792
- all_params = ['project_id', 'workspace_id', 'dataclass_type', 'data_object_id', 'related_dataclass_type', 'create_dataobject_relation_request_body']
3793
- local_var_params = {}
3794
- for attr in request.attribute_map:
3795
- if hasattr(request, attr):
3796
- local_var_params[attr] = getattr(request, attr)
3549
+ def _create_dataobject_relation_with_http_info(self, request):
3550
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3797
3551
 
3798
3552
  cname = None
3799
3553
 
@@ -3856,14 +3610,10 @@ class SaClient(Client):
3856
3610
  :type request: :class:`huaweicloudsdksa.v2.DeleteDataobjectRelationRequest`
3857
3611
  :rtype: :class:`huaweicloudsdksa.v2.DeleteDataobjectRelationResponse`
3858
3612
  """
3859
- return self.delete_dataobject_relation_with_http_info(request)
3613
+ return self._delete_dataobject_relation_with_http_info(request)
3860
3614
 
3861
- def delete_dataobject_relation_with_http_info(self, request):
3862
- all_params = ['project_id', 'workspace_id', 'dataclass_type', 'data_object_id', 'related_dataclass_type', 'delete_dataobject_relation_request_body']
3863
- local_var_params = {}
3864
- for attr in request.attribute_map:
3865
- if hasattr(request, attr):
3866
- local_var_params[attr] = getattr(request, attr)
3615
+ def _delete_dataobject_relation_with_http_info(self, request):
3616
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3867
3617
 
3868
3618
  cname = None
3869
3619
 
@@ -3926,14 +3676,10 @@ class SaClient(Client):
3926
3676
  :type request: :class:`huaweicloudsdksa.v2.ListDataobjectRelationRequest`
3927
3677
  :rtype: :class:`huaweicloudsdksa.v2.ListDataobjectRelationResponse`
3928
3678
  """
3929
- return self.list_dataobject_relation_with_http_info(request)
3930
-
3931
- def list_dataobject_relation_with_http_info(self, request):
3932
- all_params = ['project_id', 'workspace_id', 'dataclass_type', 'data_object_id', 'related_dataclass_type', 'list_dataobject_relation_request_body']
3933
- local_var_params = {}
3934
- for attr in request.attribute_map:
3935
- if hasattr(request, attr):
3936
- local_var_params[attr] = getattr(request, attr)
3679
+ return self._list_dataobject_relation_with_http_info(request)
3680
+
3681
+ def _list_dataobject_relation_with_http_info(self, request):
3682
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3937
3683
 
3938
3684
  cname = None
3939
3685