huaweicloudsdksdrs 3.1.38__py2.py3-none-any.whl → 3.1.39__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. huaweicloudsdksdrs/v1/model/add_protected_instance_nic_request.py +0 -3
  2. huaweicloudsdksdrs/v1/model/add_protected_instance_nic_response.py +0 -2
  3. huaweicloudsdksdrs/v1/model/add_protected_instance_tags_request.py +0 -3
  4. huaweicloudsdksdrs/v1/model/add_protected_instance_tags_response.py +0 -2
  5. huaweicloudsdksdrs/v1/model/attach_protected_instance_replication_request.py +0 -3
  6. huaweicloudsdksdrs/v1/model/attach_protected_instance_replication_response.py +0 -2
  7. huaweicloudsdksdrs/v1/model/batch_add_tags_request.py +0 -3
  8. huaweicloudsdksdrs/v1/model/batch_add_tags_request_body.py +0 -3
  9. huaweicloudsdksdrs/v1/model/batch_add_tags_response.py +0 -2
  10. huaweicloudsdksdrs/v1/model/batch_create_protected_instances_request.py +0 -3
  11. huaweicloudsdksdrs/v1/model/batch_create_protected_instances_request_body.py +0 -3
  12. huaweicloudsdksdrs/v1/model/batch_create_protected_instances_request_params.py +0 -3
  13. huaweicloudsdksdrs/v1/model/batch_create_protected_instances_response.py +0 -2
  14. huaweicloudsdksdrs/v1/model/batch_delete_protected_instances_request.py +0 -3
  15. huaweicloudsdksdrs/v1/model/batch_delete_protected_instances_request_body.py +0 -3
  16. huaweicloudsdksdrs/v1/model/batch_delete_protected_instances_response.py +0 -2
  17. huaweicloudsdksdrs/v1/model/batch_delete_tags_request.py +0 -3
  18. huaweicloudsdksdrs/v1/model/batch_delete_tags_request_body.py +0 -3
  19. huaweicloudsdksdrs/v1/model/batch_delete_tags_response.py +0 -2
  20. huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_request.py +0 -3
  21. huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_request_body.py +0 -3
  22. huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_request_params.py +0 -3
  23. huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_response.py +0 -2
  24. huaweicloudsdksdrs/v1/model/create_protected_instance_request.py +0 -3
  25. huaweicloudsdksdrs/v1/model/create_protected_instance_request_body.py +0 -3
  26. huaweicloudsdksdrs/v1/model/create_protected_instance_request_params.py +0 -3
  27. huaweicloudsdksdrs/v1/model/create_protected_instance_response.py +0 -2
  28. huaweicloudsdksdrs/v1/model/create_protection_group_request.py +0 -3
  29. huaweicloudsdksdrs/v1/model/create_protection_group_request_body.py +0 -3
  30. huaweicloudsdksdrs/v1/model/create_protection_group_request_params.py +0 -3
  31. huaweicloudsdksdrs/v1/model/create_protection_group_response.py +0 -2
  32. huaweicloudsdksdrs/v1/model/create_replication_request.py +0 -3
  33. huaweicloudsdksdrs/v1/model/create_replication_request_body.py +0 -3
  34. huaweicloudsdksdrs/v1/model/create_replication_request_params.py +0 -3
  35. huaweicloudsdksdrs/v1/model/create_replication_response.py +0 -2
  36. huaweicloudsdksdrs/v1/model/delete_all_server_group_failure_jobs_request.py +0 -3
  37. huaweicloudsdksdrs/v1/model/delete_all_server_group_failure_jobs_response.py +0 -2
  38. huaweicloudsdksdrs/v1/model/delete_disaster_recovery_drill_request.py +0 -3
  39. huaweicloudsdksdrs/v1/model/delete_disaster_recovery_drill_response.py +0 -2
  40. huaweicloudsdksdrs/v1/model/delete_failure_job_request.py +0 -3
  41. huaweicloudsdksdrs/v1/model/delete_failure_job_response.py +0 -2
  42. huaweicloudsdksdrs/v1/model/delete_protected_instance_nic_request.py +0 -3
  43. huaweicloudsdksdrs/v1/model/delete_protected_instance_nic_response.py +0 -2
  44. huaweicloudsdksdrs/v1/model/delete_protected_instance_request.py +0 -3
  45. huaweicloudsdksdrs/v1/model/delete_protected_instance_request_body.py +0 -3
  46. huaweicloudsdksdrs/v1/model/delete_protected_instance_response.py +0 -2
  47. huaweicloudsdksdrs/v1/model/delete_protected_instance_tag_request.py +0 -3
  48. huaweicloudsdksdrs/v1/model/delete_protected_instance_tag_response.py +0 -2
  49. huaweicloudsdksdrs/v1/model/delete_protection_group_request.py +0 -3
  50. huaweicloudsdksdrs/v1/model/delete_protection_group_response.py +0 -2
  51. huaweicloudsdksdrs/v1/model/delete_replication_request.py +0 -3
  52. huaweicloudsdksdrs/v1/model/delete_replication_request_body.py +0 -3
  53. huaweicloudsdksdrs/v1/model/delete_replication_request_params.py +0 -3
  54. huaweicloudsdksdrs/v1/model/delete_replication_response.py +0 -2
  55. huaweicloudsdksdrs/v1/model/delete_resource_tag.py +0 -3
  56. huaweicloudsdksdrs/v1/model/delete_server_group_failure_jobs_request.py +0 -3
  57. huaweicloudsdksdrs/v1/model/delete_server_group_failure_jobs_response.py +0 -2
  58. huaweicloudsdksdrs/v1/model/detach_protected_instance_replication_request.py +0 -3
  59. huaweicloudsdksdrs/v1/model/detach_protected_instance_replication_response.py +0 -2
  60. huaweicloudsdksdrs/v1/model/drill_server_params.py +0 -3
  61. huaweicloudsdksdrs/v1/model/expand_replication_request.py +0 -3
  62. huaweicloudsdksdrs/v1/model/expand_replication_response.py +0 -2
  63. huaweicloudsdksdrs/v1/model/extend_replication_request_body.py +0 -3
  64. huaweicloudsdksdrs/v1/model/extend_replication_request_params.py +0 -3
  65. huaweicloudsdksdrs/v1/model/failover_protection_group_request_body.py +0 -3
  66. huaweicloudsdksdrs/v1/model/failure_job_params.py +0 -3
  67. huaweicloudsdksdrs/v1/model/job_entities.py +0 -3
  68. huaweicloudsdksdrs/v1/model/list_active_active_domains_request.py +0 -3
  69. huaweicloudsdksdrs/v1/model/list_active_active_domains_response.py +0 -2
  70. huaweicloudsdksdrs/v1/model/list_api_versions_request.py +0 -3
  71. huaweicloudsdksdrs/v1/model/list_api_versions_response.py +0 -2
  72. huaweicloudsdksdrs/v1/model/list_disaster_recovery_drills_request.py +0 -3
  73. huaweicloudsdksdrs/v1/model/list_disaster_recovery_drills_response.py +0 -2
  74. huaweicloudsdksdrs/v1/model/list_failure_jobs_request.py +0 -3
  75. huaweicloudsdksdrs/v1/model/list_failure_jobs_response.py +0 -2
  76. huaweicloudsdksdrs/v1/model/list_protected_instance_tags_request.py +0 -3
  77. huaweicloudsdksdrs/v1/model/list_protected_instance_tags_response.py +0 -2
  78. huaweicloudsdksdrs/v1/model/list_protected_instances_by_tags_request.py +0 -3
  79. huaweicloudsdksdrs/v1/model/list_protected_instances_by_tags_request_body.py +0 -3
  80. huaweicloudsdksdrs/v1/model/list_protected_instances_by_tags_response.py +0 -2
  81. huaweicloudsdksdrs/v1/model/list_protected_instances_project_tags_request.py +0 -3
  82. huaweicloudsdksdrs/v1/model/list_protected_instances_project_tags_response.py +0 -2
  83. huaweicloudsdksdrs/v1/model/list_protected_instances_request.py +0 -3
  84. huaweicloudsdksdrs/v1/model/list_protected_instances_response.py +0 -2
  85. huaweicloudsdksdrs/v1/model/list_protection_groups_request.py +0 -3
  86. huaweicloudsdksdrs/v1/model/list_protection_groups_response.py +0 -2
  87. huaweicloudsdksdrs/v1/model/list_replications_request.py +0 -3
  88. huaweicloudsdksdrs/v1/model/list_replications_response.py +0 -2
  89. huaweicloudsdksdrs/v1/model/list_rpo_statistics_request.py +0 -3
  90. huaweicloudsdksdrs/v1/model/list_rpo_statistics_response.py +0 -2
  91. huaweicloudsdksdrs/v1/model/match_params.py +0 -3
  92. huaweicloudsdksdrs/v1/model/metadata_params.py +0 -3
  93. huaweicloudsdksdrs/v1/model/protected_instance_add_nic_request_body.py +0 -3
  94. huaweicloudsdksdrs/v1/model/protected_instance_add_tags_request_body.py +0 -3
  95. huaweicloudsdksdrs/v1/model/protected_instance_attach_replication_request_body.py +0 -3
  96. huaweicloudsdksdrs/v1/model/protected_instance_attach_replication_request_params.py +0 -3
  97. huaweicloudsdksdrs/v1/model/protected_instance_attachment.py +0 -3
  98. huaweicloudsdksdrs/v1/model/protected_instance_delete_nic_request_body.py +0 -3
  99. huaweicloudsdksdrs/v1/model/quota_params.py +0 -3
  100. huaweicloudsdksdrs/v1/model/quota_resource_params.py +0 -3
  101. huaweicloudsdksdrs/v1/model/replication_attachment.py +0 -3
  102. huaweicloudsdksdrs/v1/model/replication_cluster_params.py +0 -3
  103. huaweicloudsdksdrs/v1/model/replication_record_metadata.py +0 -3
  104. huaweicloudsdksdrs/v1/model/resize_protected_instance_request.py +0 -3
  105. huaweicloudsdksdrs/v1/model/resize_protected_instance_request_body.py +0 -3
  106. huaweicloudsdksdrs/v1/model/resize_protected_instance_request_params.py +0 -3
  107. huaweicloudsdksdrs/v1/model/resize_protected_instance_response.py +0 -2
  108. huaweicloudsdksdrs/v1/model/resource_id.py +0 -3
  109. huaweicloudsdksdrs/v1/model/resource_params.py +0 -3
  110. huaweicloudsdksdrs/v1/model/resource_tag.py +0 -3
  111. huaweicloudsdksdrs/v1/model/reverse_protection_group_request_body.py +0 -3
  112. huaweicloudsdksdrs/v1/model/reverse_protection_group_request_params.py +0 -3
  113. huaweicloudsdksdrs/v1/model/rpo_stattistics_params.py +0 -3
  114. huaweicloudsdksdrs/v1/model/security_groups_params.py +0 -3
  115. huaweicloudsdksdrs/v1/model/server_info.py +0 -3
  116. huaweicloudsdksdrs/v1/model/show_active_active_domain_params.py +0 -3
  117. huaweicloudsdksdrs/v1/model/show_api_version_links_params.py +0 -3
  118. huaweicloudsdksdrs/v1/model/show_api_version_params.py +0 -3
  119. huaweicloudsdksdrs/v1/model/show_disaster_recovery_drill_params.py +0 -3
  120. huaweicloudsdksdrs/v1/model/show_disaster_recovery_drill_request.py +0 -3
  121. huaweicloudsdksdrs/v1/model/show_disaster_recovery_drill_response.py +0 -2
  122. huaweicloudsdksdrs/v1/model/show_job_status_request.py +0 -3
  123. huaweicloudsdksdrs/v1/model/show_job_status_response.py +0 -2
  124. huaweicloudsdksdrs/v1/model/show_protected_instance_params.py +0 -3
  125. huaweicloudsdksdrs/v1/model/show_protected_instance_request.py +0 -3
  126. huaweicloudsdksdrs/v1/model/show_protected_instance_response.py +0 -2
  127. huaweicloudsdksdrs/v1/model/show_protection_group_params.py +0 -3
  128. huaweicloudsdksdrs/v1/model/show_protection_group_request.py +0 -3
  129. huaweicloudsdksdrs/v1/model/show_protection_group_response.py +0 -2
  130. huaweicloudsdksdrs/v1/model/show_quota_request.py +0 -3
  131. huaweicloudsdksdrs/v1/model/show_quota_response.py +0 -2
  132. huaweicloudsdksdrs/v1/model/show_replication_params.py +0 -3
  133. huaweicloudsdksdrs/v1/model/show_replication_request.py +0 -3
  134. huaweicloudsdksdrs/v1/model/show_replication_response.py +0 -2
  135. huaweicloudsdksdrs/v1/model/show_specified_api_version_request.py +0 -3
  136. huaweicloudsdksdrs/v1/model/show_specified_api_version_response.py +0 -2
  137. huaweicloudsdksdrs/v1/model/start_failover_protection_group_request.py +0 -3
  138. huaweicloudsdksdrs/v1/model/start_failover_protection_group_response.py +0 -2
  139. huaweicloudsdksdrs/v1/model/start_protection_group_request.py +0 -3
  140. huaweicloudsdksdrs/v1/model/start_protection_group_request_body.py +0 -3
  141. huaweicloudsdksdrs/v1/model/start_protection_group_response.py +0 -2
  142. huaweicloudsdksdrs/v1/model/start_reverse_protection_group_request.py +0 -3
  143. huaweicloudsdksdrs/v1/model/start_reverse_protection_group_response.py +0 -2
  144. huaweicloudsdksdrs/v1/model/stop_protection_group_request.py +0 -3
  145. huaweicloudsdksdrs/v1/model/stop_protection_group_request_body.py +0 -3
  146. huaweicloudsdksdrs/v1/model/stop_protection_group_response.py +0 -2
  147. huaweicloudsdksdrs/v1/model/sub_job_entities.py +0 -3
  148. huaweicloudsdksdrs/v1/model/sub_job_params.py +0 -3
  149. huaweicloudsdksdrs/v1/model/tag_params.py +0 -3
  150. huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_request.py +0 -3
  151. huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_request_body.py +0 -3
  152. huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_request_params.py +0 -3
  153. huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_response.py +0 -2
  154. huaweicloudsdksdrs/v1/model/update_protected_instance_name_request.py +0 -3
  155. huaweicloudsdksdrs/v1/model/update_protected_instance_name_request_body.py +0 -3
  156. huaweicloudsdksdrs/v1/model/update_protected_instance_name_request_params.py +0 -3
  157. huaweicloudsdksdrs/v1/model/update_protected_instance_name_response.py +0 -2
  158. huaweicloudsdksdrs/v1/model/update_protection_group_name_request.py +0 -3
  159. huaweicloudsdksdrs/v1/model/update_protection_group_name_request_body.py +0 -3
  160. huaweicloudsdksdrs/v1/model/update_protection_group_name_request_params.py +0 -3
  161. huaweicloudsdksdrs/v1/model/update_protection_group_name_response.py +0 -2
  162. huaweicloudsdksdrs/v1/model/update_replication_name_request.py +0 -3
  163. huaweicloudsdksdrs/v1/model/update_replication_name_request_body.py +0 -3
  164. huaweicloudsdksdrs/v1/model/update_replication_name_request_params.py +0 -3
  165. huaweicloudsdksdrs/v1/model/update_replication_name_response.py +0 -2
  166. huaweicloudsdksdrs/v1/sdrs_async_client.py +148 -362
  167. huaweicloudsdksdrs/v1/sdrs_client.py +148 -362
  168. {huaweicloudsdksdrs-3.1.38.dist-info → huaweicloudsdksdrs-3.1.39.dist-info}/METADATA +2 -2
  169. huaweicloudsdksdrs-3.1.39.dist-info/RECORD +177 -0
  170. huaweicloudsdksdrs-3.1.38.dist-info/RECORD +0 -177
  171. {huaweicloudsdksdrs-3.1.38.dist-info → huaweicloudsdksdrs-3.1.39.dist-info}/LICENSE +0 -0
  172. {huaweicloudsdksdrs-3.1.38.dist-info → huaweicloudsdksdrs-3.1.39.dist-info}/WHEEL +0 -0
  173. {huaweicloudsdksdrs-3.1.38.dist-info → huaweicloudsdksdrs-3.1.39.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 SdrsAsyncClient(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(SdrsAsyncClient, self).__init__()
32
15
  self.model_package = importlib.import_module("huaweicloudsdksdrs.v1.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 SdrsAsyncClient(Client):
54
36
  :type request: :class:`huaweicloudsdksdrs.v1.AddProtectedInstanceNicRequest`
55
37
  :rtype: :class:`huaweicloudsdksdrs.v1.AddProtectedInstanceNicResponse`
56
38
  """
57
- return self.add_protected_instance_nic_with_http_info(request)
39
+ return self._add_protected_instance_nic_with_http_info(request)
58
40
 
59
- def add_protected_instance_nic_with_http_info(self, request):
60
- all_params = ['protected_instance_id', 'protected_instance_add_nic_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 _add_protected_instance_nic_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
 
@@ -117,14 +95,10 @@ class SdrsAsyncClient(Client):
117
95
  :type request: :class:`huaweicloudsdksdrs.v1.AddProtectedInstanceTagsRequest`
118
96
  :rtype: :class:`huaweicloudsdksdrs.v1.AddProtectedInstanceTagsResponse`
119
97
  """
120
- return self.add_protected_instance_tags_with_http_info(request)
98
+ return self._add_protected_instance_tags_with_http_info(request)
121
99
 
122
- def add_protected_instance_tags_with_http_info(self, request):
123
- all_params = ['protected_instance_id', 'protected_instance_add_tags_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 _add_protected_instance_tags_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
 
@@ -180,14 +154,10 @@ class SdrsAsyncClient(Client):
180
154
  :type request: :class:`huaweicloudsdksdrs.v1.AttachProtectedInstanceReplicationRequest`
181
155
  :rtype: :class:`huaweicloudsdksdrs.v1.AttachProtectedInstanceReplicationResponse`
182
156
  """
183
- return self.attach_protected_instance_replication_with_http_info(request)
157
+ return self._attach_protected_instance_replication_with_http_info(request)
184
158
 
185
- def attach_protected_instance_replication_with_http_info(self, request):
186
- all_params = ['protected_instance_id', 'protected_instance_attach_replication_request_body']
187
- local_var_params = {}
188
- for attr in request.attribute_map:
189
- if hasattr(request, attr):
190
- local_var_params[attr] = getattr(request, attr)
159
+ def _attach_protected_instance_replication_with_http_info(self, request):
160
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
191
161
 
192
162
  cname = None
193
163
 
@@ -246,14 +216,10 @@ class SdrsAsyncClient(Client):
246
216
  :type request: :class:`huaweicloudsdksdrs.v1.BatchAddTagsRequest`
247
217
  :rtype: :class:`huaweicloudsdksdrs.v1.BatchAddTagsResponse`
248
218
  """
249
- return self.batch_add_tags_with_http_info(request)
219
+ return self._batch_add_tags_with_http_info(request)
250
220
 
251
- def batch_add_tags_with_http_info(self, request):
252
- all_params = ['protected_instance_id', 'batch_add_or_delete_tags_request']
253
- local_var_params = {}
254
- for attr in request.attribute_map:
255
- if hasattr(request, attr):
256
- local_var_params[attr] = getattr(request, attr)
221
+ def _batch_add_tags_with_http_info(self, request):
222
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
257
223
 
258
224
  cname = None
259
225
 
@@ -310,14 +276,10 @@ class SdrsAsyncClient(Client):
310
276
  :type request: :class:`huaweicloudsdksdrs.v1.BatchCreateProtectedInstancesRequest`
311
277
  :rtype: :class:`huaweicloudsdksdrs.v1.BatchCreateProtectedInstancesResponse`
312
278
  """
313
- return self.batch_create_protected_instances_with_http_info(request)
279
+ return self._batch_create_protected_instances_with_http_info(request)
314
280
 
315
- def batch_create_protected_instances_with_http_info(self, request):
316
- all_params = ['batch_create_protected_instances_request_body']
317
- local_var_params = {}
318
- for attr in request.attribute_map:
319
- if hasattr(request, attr):
320
- local_var_params[attr] = getattr(request, attr)
281
+ def _batch_create_protected_instances_with_http_info(self, request):
282
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
321
283
 
322
284
  cname = None
323
285
 
@@ -372,14 +334,10 @@ class SdrsAsyncClient(Client):
372
334
  :type request: :class:`huaweicloudsdksdrs.v1.BatchDeleteProtectedInstancesRequest`
373
335
  :rtype: :class:`huaweicloudsdksdrs.v1.BatchDeleteProtectedInstancesResponse`
374
336
  """
375
- return self.batch_delete_protected_instances_with_http_info(request)
337
+ return self._batch_delete_protected_instances_with_http_info(request)
376
338
 
377
- def batch_delete_protected_instances_with_http_info(self, request):
378
- all_params = ['batch_delete_protected_instances_request_body']
379
- local_var_params = {}
380
- for attr in request.attribute_map:
381
- if hasattr(request, attr):
382
- local_var_params[attr] = getattr(request, attr)
339
+ def _batch_delete_protected_instances_with_http_info(self, request):
340
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
383
341
 
384
342
  cname = None
385
343
 
@@ -435,14 +393,10 @@ class SdrsAsyncClient(Client):
435
393
  :type request: :class:`huaweicloudsdksdrs.v1.BatchDeleteTagsRequest`
436
394
  :rtype: :class:`huaweicloudsdksdrs.v1.BatchDeleteTagsResponse`
437
395
  """
438
- return self.batch_delete_tags_with_http_info(request)
396
+ return self._batch_delete_tags_with_http_info(request)
439
397
 
440
- def batch_delete_tags_with_http_info(self, request):
441
- all_params = ['protected_instance_id', 'batch_add_or_delete_tags_request']
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 _batch_delete_tags_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
 
@@ -498,14 +452,10 @@ class SdrsAsyncClient(Client):
498
452
  :type request: :class:`huaweicloudsdksdrs.v1.CreateDisasterRecoveryDrillRequest`
499
453
  :rtype: :class:`huaweicloudsdksdrs.v1.CreateDisasterRecoveryDrillResponse`
500
454
  """
501
- return self.create_disaster_recovery_drill_with_http_info(request)
455
+ return self._create_disaster_recovery_drill_with_http_info(request)
502
456
 
503
- def create_disaster_recovery_drill_with_http_info(self, request):
504
- all_params = ['create_disaster_recovery_drill_request_body']
505
- local_var_params = {}
506
- for attr in request.attribute_map:
507
- if hasattr(request, attr):
508
- local_var_params[attr] = getattr(request, attr)
457
+ def _create_disaster_recovery_drill_with_http_info(self, request):
458
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
509
459
 
510
460
  cname = None
511
461
 
@@ -559,14 +509,10 @@ class SdrsAsyncClient(Client):
559
509
  :type request: :class:`huaweicloudsdksdrs.v1.CreateProtectedInstanceRequest`
560
510
  :rtype: :class:`huaweicloudsdksdrs.v1.CreateProtectedInstanceResponse`
561
511
  """
562
- return self.create_protected_instance_with_http_info(request)
512
+ return self._create_protected_instance_with_http_info(request)
563
513
 
564
- def create_protected_instance_with_http_info(self, request):
565
- all_params = ['create_protected_instance_request_body']
566
- local_var_params = {}
567
- for attr in request.attribute_map:
568
- if hasattr(request, attr):
569
- local_var_params[attr] = getattr(request, attr)
514
+ def _create_protected_instance_with_http_info(self, request):
515
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
570
516
 
571
517
  cname = None
572
518
 
@@ -622,14 +568,10 @@ class SdrsAsyncClient(Client):
622
568
  :type request: :class:`huaweicloudsdksdrs.v1.CreateProtectionGroupRequest`
623
569
  :rtype: :class:`huaweicloudsdksdrs.v1.CreateProtectionGroupResponse`
624
570
  """
625
- return self.create_protection_group_with_http_info(request)
571
+ return self._create_protection_group_with_http_info(request)
626
572
 
627
- def create_protection_group_with_http_info(self, request):
628
- all_params = ['create_protection_group_request_body']
629
- local_var_params = {}
630
- for attr in request.attribute_map:
631
- if hasattr(request, attr):
632
- local_var_params[attr] = getattr(request, attr)
573
+ def _create_protection_group_with_http_info(self, request):
574
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
633
575
 
634
576
  cname = None
635
577
 
@@ -683,14 +625,10 @@ class SdrsAsyncClient(Client):
683
625
  :type request: :class:`huaweicloudsdksdrs.v1.CreateReplicationRequest`
684
626
  :rtype: :class:`huaweicloudsdksdrs.v1.CreateReplicationResponse`
685
627
  """
686
- return self.create_replication_with_http_info(request)
628
+ return self._create_replication_with_http_info(request)
687
629
 
688
- def create_replication_with_http_info(self, request):
689
- all_params = ['create_replication_request_body']
690
- local_var_params = {}
691
- for attr in request.attribute_map:
692
- if hasattr(request, attr):
693
- local_var_params[attr] = getattr(request, attr)
630
+ def _create_replication_with_http_info(self, request):
631
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
694
632
 
695
633
  cname = None
696
634
 
@@ -744,14 +682,10 @@ class SdrsAsyncClient(Client):
744
682
  :type request: :class:`huaweicloudsdksdrs.v1.DeleteAllServerGroupFailureJobsRequest`
745
683
  :rtype: :class:`huaweicloudsdksdrs.v1.DeleteAllServerGroupFailureJobsResponse`
746
684
  """
747
- return self.delete_all_server_group_failure_jobs_with_http_info(request)
685
+ return self._delete_all_server_group_failure_jobs_with_http_info(request)
748
686
 
749
- def delete_all_server_group_failure_jobs_with_http_info(self, request):
750
- all_params = []
751
- local_var_params = {}
752
- for attr in request.attribute_map:
753
- if hasattr(request, attr):
754
- local_var_params[attr] = getattr(request, attr)
687
+ def _delete_all_server_group_failure_jobs_with_http_info(self, request):
688
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
755
689
 
756
690
  cname = None
757
691
 
@@ -805,14 +739,10 @@ class SdrsAsyncClient(Client):
805
739
  :type request: :class:`huaweicloudsdksdrs.v1.DeleteDisasterRecoveryDrillRequest`
806
740
  :rtype: :class:`huaweicloudsdksdrs.v1.DeleteDisasterRecoveryDrillResponse`
807
741
  """
808
- return self.delete_disaster_recovery_drill_with_http_info(request)
742
+ return self._delete_disaster_recovery_drill_with_http_info(request)
809
743
 
810
- def delete_disaster_recovery_drill_with_http_info(self, request):
811
- all_params = ['disaster_recovery_drill_id']
812
- local_var_params = {}
813
- for attr in request.attribute_map:
814
- if hasattr(request, attr):
815
- local_var_params[attr] = getattr(request, attr)
744
+ def _delete_disaster_recovery_drill_with_http_info(self, request):
745
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
816
746
 
817
747
  cname = None
818
748
 
@@ -866,14 +796,10 @@ class SdrsAsyncClient(Client):
866
796
  :type request: :class:`huaweicloudsdksdrs.v1.DeleteFailureJobRequest`
867
797
  :rtype: :class:`huaweicloudsdksdrs.v1.DeleteFailureJobResponse`
868
798
  """
869
- return self.delete_failure_job_with_http_info(request)
799
+ return self._delete_failure_job_with_http_info(request)
870
800
 
871
- def delete_failure_job_with_http_info(self, request):
872
- all_params = ['failure_job_id']
873
- local_var_params = {}
874
- for attr in request.attribute_map:
875
- if hasattr(request, attr):
876
- local_var_params[attr] = getattr(request, attr)
801
+ def _delete_failure_job_with_http_info(self, request):
802
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
877
803
 
878
804
  cname = None
879
805
 
@@ -927,14 +853,10 @@ class SdrsAsyncClient(Client):
927
853
  :type request: :class:`huaweicloudsdksdrs.v1.DeleteProtectedInstanceRequest`
928
854
  :rtype: :class:`huaweicloudsdksdrs.v1.DeleteProtectedInstanceResponse`
929
855
  """
930
- return self.delete_protected_instance_with_http_info(request)
856
+ return self._delete_protected_instance_with_http_info(request)
931
857
 
932
- def delete_protected_instance_with_http_info(self, request):
933
- all_params = ['protected_instance_id', 'delete_protected_instance_request_body']
934
- local_var_params = {}
935
- for attr in request.attribute_map:
936
- if hasattr(request, attr):
937
- local_var_params[attr] = getattr(request, attr)
858
+ def _delete_protected_instance_with_http_info(self, request):
859
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
938
860
 
939
861
  cname = None
940
862
 
@@ -990,14 +912,10 @@ class SdrsAsyncClient(Client):
990
912
  :type request: :class:`huaweicloudsdksdrs.v1.DeleteProtectedInstanceNicRequest`
991
913
  :rtype: :class:`huaweicloudsdksdrs.v1.DeleteProtectedInstanceNicResponse`
992
914
  """
993
- return self.delete_protected_instance_nic_with_http_info(request)
915
+ return self._delete_protected_instance_nic_with_http_info(request)
994
916
 
995
- def delete_protected_instance_nic_with_http_info(self, request):
996
- all_params = ['protected_instance_id', 'protected_instance_delete_nic_request_body']
997
- local_var_params = {}
998
- for attr in request.attribute_map:
999
- if hasattr(request, attr):
1000
- local_var_params[attr] = getattr(request, attr)
917
+ def _delete_protected_instance_nic_with_http_info(self, request):
918
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1001
919
 
1002
920
  cname = None
1003
921
 
@@ -1055,14 +973,10 @@ class SdrsAsyncClient(Client):
1055
973
  :type request: :class:`huaweicloudsdksdrs.v1.DeleteProtectedInstanceTagRequest`
1056
974
  :rtype: :class:`huaweicloudsdksdrs.v1.DeleteProtectedInstanceTagResponse`
1057
975
  """
1058
- return self.delete_protected_instance_tag_with_http_info(request)
976
+ return self._delete_protected_instance_tag_with_http_info(request)
1059
977
 
1060
- def delete_protected_instance_tag_with_http_info(self, request):
1061
- all_params = ['protected_instance_id', 'key']
1062
- local_var_params = {}
1063
- for attr in request.attribute_map:
1064
- if hasattr(request, attr):
1065
- local_var_params[attr] = getattr(request, attr)
978
+ def _delete_protected_instance_tag_with_http_info(self, request):
979
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1066
980
 
1067
981
  cname = None
1068
982
 
@@ -1118,14 +1032,10 @@ class SdrsAsyncClient(Client):
1118
1032
  :type request: :class:`huaweicloudsdksdrs.v1.DeleteProtectionGroupRequest`
1119
1033
  :rtype: :class:`huaweicloudsdksdrs.v1.DeleteProtectionGroupResponse`
1120
1034
  """
1121
- return self.delete_protection_group_with_http_info(request)
1035
+ return self._delete_protection_group_with_http_info(request)
1122
1036
 
1123
- def delete_protection_group_with_http_info(self, request):
1124
- all_params = ['server_group_id']
1125
- local_var_params = {}
1126
- for attr in request.attribute_map:
1127
- if hasattr(request, attr):
1128
- local_var_params[attr] = getattr(request, attr)
1037
+ def _delete_protection_group_with_http_info(self, request):
1038
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1129
1039
 
1130
1040
  cname = None
1131
1041
 
@@ -1179,14 +1089,10 @@ class SdrsAsyncClient(Client):
1179
1089
  :type request: :class:`huaweicloudsdksdrs.v1.DeleteReplicationRequest`
1180
1090
  :rtype: :class:`huaweicloudsdksdrs.v1.DeleteReplicationResponse`
1181
1091
  """
1182
- return self.delete_replication_with_http_info(request)
1092
+ return self._delete_replication_with_http_info(request)
1183
1093
 
1184
- def delete_replication_with_http_info(self, request):
1185
- all_params = ['replication_id', 'delete_replication_request_body']
1186
- local_var_params = {}
1187
- for attr in request.attribute_map:
1188
- if hasattr(request, attr):
1189
- local_var_params[attr] = getattr(request, attr)
1094
+ def _delete_replication_with_http_info(self, request):
1095
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1190
1096
 
1191
1097
  cname = None
1192
1098
 
@@ -1242,14 +1148,10 @@ class SdrsAsyncClient(Client):
1242
1148
  :type request: :class:`huaweicloudsdksdrs.v1.DeleteServerGroupFailureJobsRequest`
1243
1149
  :rtype: :class:`huaweicloudsdksdrs.v1.DeleteServerGroupFailureJobsResponse`
1244
1150
  """
1245
- return self.delete_server_group_failure_jobs_with_http_info(request)
1151
+ return self._delete_server_group_failure_jobs_with_http_info(request)
1246
1152
 
1247
- def delete_server_group_failure_jobs_with_http_info(self, request):
1248
- all_params = ['server_group_id']
1249
- local_var_params = {}
1250
- for attr in request.attribute_map:
1251
- if hasattr(request, attr):
1252
- local_var_params[attr] = getattr(request, attr)
1153
+ def _delete_server_group_failure_jobs_with_http_info(self, request):
1154
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1253
1155
 
1254
1156
  cname = None
1255
1157
 
@@ -1303,14 +1205,10 @@ class SdrsAsyncClient(Client):
1303
1205
  :type request: :class:`huaweicloudsdksdrs.v1.DetachProtectedInstanceReplicationRequest`
1304
1206
  :rtype: :class:`huaweicloudsdksdrs.v1.DetachProtectedInstanceReplicationResponse`
1305
1207
  """
1306
- return self.detach_protected_instance_replication_with_http_info(request)
1208
+ return self._detach_protected_instance_replication_with_http_info(request)
1307
1209
 
1308
- def detach_protected_instance_replication_with_http_info(self, request):
1309
- all_params = ['protected_instance_id', 'replication_id']
1310
- local_var_params = {}
1311
- for attr in request.attribute_map:
1312
- if hasattr(request, attr):
1313
- local_var_params[attr] = getattr(request, attr)
1210
+ def _detach_protected_instance_replication_with_http_info(self, request):
1211
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1314
1212
 
1315
1213
  cname = None
1316
1214
 
@@ -1366,14 +1264,10 @@ class SdrsAsyncClient(Client):
1366
1264
  :type request: :class:`huaweicloudsdksdrs.v1.ExpandReplicationRequest`
1367
1265
  :rtype: :class:`huaweicloudsdksdrs.v1.ExpandReplicationResponse`
1368
1266
  """
1369
- return self.expand_replication_with_http_info(request)
1267
+ return self._expand_replication_with_http_info(request)
1370
1268
 
1371
- def expand_replication_with_http_info(self, request):
1372
- all_params = ['replication_id', 'extend_replication_request_body']
1373
- local_var_params = {}
1374
- for attr in request.attribute_map:
1375
- if hasattr(request, attr):
1376
- local_var_params[attr] = getattr(request, attr)
1269
+ def _expand_replication_with_http_info(self, request):
1270
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1377
1271
 
1378
1272
  cname = None
1379
1273
 
@@ -1429,14 +1323,10 @@ class SdrsAsyncClient(Client):
1429
1323
  :type request: :class:`huaweicloudsdksdrs.v1.ListActiveActiveDomainsRequest`
1430
1324
  :rtype: :class:`huaweicloudsdksdrs.v1.ListActiveActiveDomainsResponse`
1431
1325
  """
1432
- return self.list_active_active_domains_with_http_info(request)
1326
+ return self._list_active_active_domains_with_http_info(request)
1433
1327
 
1434
- def list_active_active_domains_with_http_info(self, request):
1435
- all_params = []
1436
- local_var_params = {}
1437
- for attr in request.attribute_map:
1438
- if hasattr(request, attr):
1439
- local_var_params[attr] = getattr(request, attr)
1328
+ def _list_active_active_domains_with_http_info(self, request):
1329
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1440
1330
 
1441
1331
  cname = None
1442
1332
 
@@ -1488,14 +1378,10 @@ class SdrsAsyncClient(Client):
1488
1378
  :type request: :class:`huaweicloudsdksdrs.v1.ListDisasterRecoveryDrillsRequest`
1489
1379
  :rtype: :class:`huaweicloudsdksdrs.v1.ListDisasterRecoveryDrillsResponse`
1490
1380
  """
1491
- return self.list_disaster_recovery_drills_with_http_info(request)
1381
+ return self._list_disaster_recovery_drills_with_http_info(request)
1492
1382
 
1493
- def list_disaster_recovery_drills_with_http_info(self, request):
1494
- all_params = ['server_group_id', 'name', 'status', 'drill_vpc_id', 'limit', 'offset']
1495
- local_var_params = {}
1496
- for attr in request.attribute_map:
1497
- if hasattr(request, attr):
1498
- local_var_params[attr] = getattr(request, attr)
1383
+ def _list_disaster_recovery_drills_with_http_info(self, request):
1384
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1499
1385
 
1500
1386
  cname = None
1501
1387
 
@@ -1559,14 +1445,10 @@ class SdrsAsyncClient(Client):
1559
1445
  :type request: :class:`huaweicloudsdksdrs.v1.ListFailureJobsRequest`
1560
1446
  :rtype: :class:`huaweicloudsdksdrs.v1.ListFailureJobsResponse`
1561
1447
  """
1562
- return self.list_failure_jobs_with_http_info(request)
1448
+ return self._list_failure_jobs_with_http_info(request)
1563
1449
 
1564
- def list_failure_jobs_with_http_info(self, request):
1565
- all_params = ['failure_status', 'resource_name', 'server_group_id', 'resource_type', 'limit', 'offset']
1566
- local_var_params = {}
1567
- for attr in request.attribute_map:
1568
- if hasattr(request, attr):
1569
- local_var_params[attr] = getattr(request, attr)
1450
+ def _list_failure_jobs_with_http_info(self, request):
1451
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1570
1452
 
1571
1453
  cname = None
1572
1454
 
@@ -1630,14 +1512,10 @@ class SdrsAsyncClient(Client):
1630
1512
  :type request: :class:`huaweicloudsdksdrs.v1.ListProtectedInstanceTagsRequest`
1631
1513
  :rtype: :class:`huaweicloudsdksdrs.v1.ListProtectedInstanceTagsResponse`
1632
1514
  """
1633
- return self.list_protected_instance_tags_with_http_info(request)
1515
+ return self._list_protected_instance_tags_with_http_info(request)
1634
1516
 
1635
- def list_protected_instance_tags_with_http_info(self, request):
1636
- all_params = ['protected_instance_id']
1637
- local_var_params = {}
1638
- for attr in request.attribute_map:
1639
- if hasattr(request, attr):
1640
- local_var_params[attr] = getattr(request, attr)
1517
+ def _list_protected_instance_tags_with_http_info(self, request):
1518
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1641
1519
 
1642
1520
  cname = None
1643
1521
 
@@ -1691,14 +1569,10 @@ class SdrsAsyncClient(Client):
1691
1569
  :type request: :class:`huaweicloudsdksdrs.v1.ListProtectedInstancesRequest`
1692
1570
  :rtype: :class:`huaweicloudsdksdrs.v1.ListProtectedInstancesResponse`
1693
1571
  """
1694
- return self.list_protected_instances_with_http_info(request)
1572
+ return self._list_protected_instances_with_http_info(request)
1695
1573
 
1696
- def list_protected_instances_with_http_info(self, request):
1697
- all_params = ['server_group_id', 'server_group_ids', 'protected_instance_ids', 'limit', 'offset', 'status', 'name', 'query_type', 'availability_zone']
1698
- local_var_params = {}
1699
- for attr in request.attribute_map:
1700
- if hasattr(request, attr):
1701
- local_var_params[attr] = getattr(request, attr)
1574
+ def _list_protected_instances_with_http_info(self, request):
1575
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1702
1576
 
1703
1577
  cname = None
1704
1578
 
@@ -1768,14 +1642,10 @@ class SdrsAsyncClient(Client):
1768
1642
  :type request: :class:`huaweicloudsdksdrs.v1.ListProtectedInstancesByTagsRequest`
1769
1643
  :rtype: :class:`huaweicloudsdksdrs.v1.ListProtectedInstancesByTagsResponse`
1770
1644
  """
1771
- return self.list_protected_instances_by_tags_with_http_info(request)
1645
+ return self._list_protected_instances_by_tags_with_http_info(request)
1772
1646
 
1773
- def list_protected_instances_by_tags_with_http_info(self, request):
1774
- all_params = ['list_protected_instances_by_tags_request_body']
1775
- local_var_params = {}
1776
- for attr in request.attribute_map:
1777
- if hasattr(request, attr):
1778
- local_var_params[attr] = getattr(request, attr)
1647
+ def _list_protected_instances_by_tags_with_http_info(self, request):
1648
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1779
1649
 
1780
1650
  cname = None
1781
1651
 
@@ -1829,14 +1699,10 @@ class SdrsAsyncClient(Client):
1829
1699
  :type request: :class:`huaweicloudsdksdrs.v1.ListProtectedInstancesProjectTagsRequest`
1830
1700
  :rtype: :class:`huaweicloudsdksdrs.v1.ListProtectedInstancesProjectTagsResponse`
1831
1701
  """
1832
- return self.list_protected_instances_project_tags_with_http_info(request)
1702
+ return self._list_protected_instances_project_tags_with_http_info(request)
1833
1703
 
1834
- def list_protected_instances_project_tags_with_http_info(self, request):
1835
- all_params = []
1836
- local_var_params = {}
1837
- for attr in request.attribute_map:
1838
- if hasattr(request, attr):
1839
- local_var_params[attr] = getattr(request, attr)
1704
+ def _list_protected_instances_project_tags_with_http_info(self, request):
1705
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1840
1706
 
1841
1707
  cname = None
1842
1708
 
@@ -1888,14 +1754,10 @@ class SdrsAsyncClient(Client):
1888
1754
  :type request: :class:`huaweicloudsdksdrs.v1.ListProtectionGroupsRequest`
1889
1755
  :rtype: :class:`huaweicloudsdksdrs.v1.ListProtectionGroupsResponse`
1890
1756
  """
1891
- return self.list_protection_groups_with_http_info(request)
1757
+ return self._list_protection_groups_with_http_info(request)
1892
1758
 
1893
- def list_protection_groups_with_http_info(self, request):
1894
- all_params = ['limit', 'offset', 'status', 'name', 'query_type', 'availability_zone']
1895
- local_var_params = {}
1896
- for attr in request.attribute_map:
1897
- if hasattr(request, attr):
1898
- local_var_params[attr] = getattr(request, attr)
1759
+ def _list_protection_groups_with_http_info(self, request):
1760
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1899
1761
 
1900
1762
  cname = None
1901
1763
 
@@ -1959,14 +1821,10 @@ class SdrsAsyncClient(Client):
1959
1821
  :type request: :class:`huaweicloudsdksdrs.v1.ListReplicationsRequest`
1960
1822
  :rtype: :class:`huaweicloudsdksdrs.v1.ListReplicationsResponse`
1961
1823
  """
1962
- return self.list_replications_with_http_info(request)
1824
+ return self._list_replications_with_http_info(request)
1963
1825
 
1964
- def list_replications_with_http_info(self, request):
1965
- all_params = ['server_group_id', 'server_group_ids', 'protected_instance_id', 'protected_instance_ids', 'name', 'status', 'limit', 'offset', 'query_type', 'availability_zone']
1966
- local_var_params = {}
1967
- for attr in request.attribute_map:
1968
- if hasattr(request, attr):
1969
- local_var_params[attr] = getattr(request, attr)
1826
+ def _list_replications_with_http_info(self, request):
1827
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1970
1828
 
1971
1829
  cname = None
1972
1830
 
@@ -2038,14 +1896,10 @@ class SdrsAsyncClient(Client):
2038
1896
  :type request: :class:`huaweicloudsdksdrs.v1.ListRpoStatisticsRequest`
2039
1897
  :rtype: :class:`huaweicloudsdksdrs.v1.ListRpoStatisticsResponse`
2040
1898
  """
2041
- return self.list_rpo_statistics_with_http_info(request)
1899
+ return self._list_rpo_statistics_with_http_info(request)
2042
1900
 
2043
- def list_rpo_statistics_with_http_info(self, request):
2044
- all_params = ['limit', 'offset', 'start_time', 'end_time', 'resource_type']
2045
- local_var_params = {}
2046
- for attr in request.attribute_map:
2047
- if hasattr(request, attr):
2048
- local_var_params[attr] = getattr(request, attr)
1901
+ def _list_rpo_statistics_with_http_info(self, request):
1902
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2049
1903
 
2050
1904
  cname = None
2051
1905
 
@@ -2112,14 +1966,10 @@ class SdrsAsyncClient(Client):
2112
1966
  :type request: :class:`huaweicloudsdksdrs.v1.ResizeProtectedInstanceRequest`
2113
1967
  :rtype: :class:`huaweicloudsdksdrs.v1.ResizeProtectedInstanceResponse`
2114
1968
  """
2115
- return self.resize_protected_instance_with_http_info(request)
1969
+ return self._resize_protected_instance_with_http_info(request)
2116
1970
 
2117
- def resize_protected_instance_with_http_info(self, request):
2118
- all_params = ['protected_instance_id', 'resize_protected_instance_request_body']
2119
- local_var_params = {}
2120
- for attr in request.attribute_map:
2121
- if hasattr(request, attr):
2122
- local_var_params[attr] = getattr(request, attr)
1971
+ def _resize_protected_instance_with_http_info(self, request):
1972
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2123
1973
 
2124
1974
  cname = None
2125
1975
 
@@ -2175,14 +2025,10 @@ class SdrsAsyncClient(Client):
2175
2025
  :type request: :class:`huaweicloudsdksdrs.v1.ShowDisasterRecoveryDrillRequest`
2176
2026
  :rtype: :class:`huaweicloudsdksdrs.v1.ShowDisasterRecoveryDrillResponse`
2177
2027
  """
2178
- return self.show_disaster_recovery_drill_with_http_info(request)
2028
+ return self._show_disaster_recovery_drill_with_http_info(request)
2179
2029
 
2180
- def show_disaster_recovery_drill_with_http_info(self, request):
2181
- all_params = ['disaster_recovery_drill_id']
2182
- local_var_params = {}
2183
- for attr in request.attribute_map:
2184
- if hasattr(request, attr):
2185
- local_var_params[attr] = getattr(request, attr)
2030
+ def _show_disaster_recovery_drill_with_http_info(self, request):
2031
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2186
2032
 
2187
2033
  cname = None
2188
2034
 
@@ -2236,14 +2082,10 @@ class SdrsAsyncClient(Client):
2236
2082
  :type request: :class:`huaweicloudsdksdrs.v1.ShowProtectedInstanceRequest`
2237
2083
  :rtype: :class:`huaweicloudsdksdrs.v1.ShowProtectedInstanceResponse`
2238
2084
  """
2239
- return self.show_protected_instance_with_http_info(request)
2085
+ return self._show_protected_instance_with_http_info(request)
2240
2086
 
2241
- def show_protected_instance_with_http_info(self, request):
2242
- all_params = ['protected_instance_id']
2243
- local_var_params = {}
2244
- for attr in request.attribute_map:
2245
- if hasattr(request, attr):
2246
- local_var_params[attr] = getattr(request, attr)
2087
+ def _show_protected_instance_with_http_info(self, request):
2088
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2247
2089
 
2248
2090
  cname = None
2249
2091
 
@@ -2297,14 +2139,10 @@ class SdrsAsyncClient(Client):
2297
2139
  :type request: :class:`huaweicloudsdksdrs.v1.ShowProtectionGroupRequest`
2298
2140
  :rtype: :class:`huaweicloudsdksdrs.v1.ShowProtectionGroupResponse`
2299
2141
  """
2300
- return self.show_protection_group_with_http_info(request)
2142
+ return self._show_protection_group_with_http_info(request)
2301
2143
 
2302
- def show_protection_group_with_http_info(self, request):
2303
- all_params = ['server_group_id']
2304
- local_var_params = {}
2305
- for attr in request.attribute_map:
2306
- if hasattr(request, attr):
2307
- local_var_params[attr] = getattr(request, attr)
2144
+ def _show_protection_group_with_http_info(self, request):
2145
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2308
2146
 
2309
2147
  cname = None
2310
2148
 
@@ -2358,14 +2196,10 @@ class SdrsAsyncClient(Client):
2358
2196
  :type request: :class:`huaweicloudsdksdrs.v1.ShowQuotaRequest`
2359
2197
  :rtype: :class:`huaweicloudsdksdrs.v1.ShowQuotaResponse`
2360
2198
  """
2361
- return self.show_quota_with_http_info(request)
2199
+ return self._show_quota_with_http_info(request)
2362
2200
 
2363
- def show_quota_with_http_info(self, request):
2364
- all_params = []
2365
- local_var_params = {}
2366
- for attr in request.attribute_map:
2367
- if hasattr(request, attr):
2368
- local_var_params[attr] = getattr(request, attr)
2201
+ def _show_quota_with_http_info(self, request):
2202
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2369
2203
 
2370
2204
  cname = None
2371
2205
 
@@ -2417,14 +2251,10 @@ class SdrsAsyncClient(Client):
2417
2251
  :type request: :class:`huaweicloudsdksdrs.v1.ShowReplicationRequest`
2418
2252
  :rtype: :class:`huaweicloudsdksdrs.v1.ShowReplicationResponse`
2419
2253
  """
2420
- return self.show_replication_with_http_info(request)
2254
+ return self._show_replication_with_http_info(request)
2421
2255
 
2422
- def show_replication_with_http_info(self, request):
2423
- all_params = ['replication_id']
2424
- local_var_params = {}
2425
- for attr in request.attribute_map:
2426
- if hasattr(request, attr):
2427
- local_var_params[attr] = getattr(request, attr)
2256
+ def _show_replication_with_http_info(self, request):
2257
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2428
2258
 
2429
2259
  cname = None
2430
2260
 
@@ -2479,14 +2309,10 @@ class SdrsAsyncClient(Client):
2479
2309
  :type request: :class:`huaweicloudsdksdrs.v1.StartFailoverProtectionGroupRequest`
2480
2310
  :rtype: :class:`huaweicloudsdksdrs.v1.StartFailoverProtectionGroupResponse`
2481
2311
  """
2482
- return self.start_failover_protection_group_with_http_info(request)
2312
+ return self._start_failover_protection_group_with_http_info(request)
2483
2313
 
2484
- def start_failover_protection_group_with_http_info(self, request):
2485
- all_params = ['server_group_id', 'failover_protection_group_request_body']
2486
- local_var_params = {}
2487
- for attr in request.attribute_map:
2488
- if hasattr(request, attr):
2489
- local_var_params[attr] = getattr(request, attr)
2314
+ def _start_failover_protection_group_with_http_info(self, request):
2315
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2490
2316
 
2491
2317
  cname = None
2492
2318
 
@@ -2542,14 +2368,10 @@ class SdrsAsyncClient(Client):
2542
2368
  :type request: :class:`huaweicloudsdksdrs.v1.StartProtectionGroupRequest`
2543
2369
  :rtype: :class:`huaweicloudsdksdrs.v1.StartProtectionGroupResponse`
2544
2370
  """
2545
- return self.start_protection_group_with_http_info(request)
2371
+ return self._start_protection_group_with_http_info(request)
2546
2372
 
2547
- def start_protection_group_with_http_info(self, request):
2548
- all_params = ['server_group_id', 'start_protection_group_request_body']
2549
- local_var_params = {}
2550
- for attr in request.attribute_map:
2551
- if hasattr(request, attr):
2552
- local_var_params[attr] = getattr(request, attr)
2373
+ def _start_protection_group_with_http_info(self, request):
2374
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2553
2375
 
2554
2376
  cname = None
2555
2377
 
@@ -2605,14 +2427,10 @@ class SdrsAsyncClient(Client):
2605
2427
  :type request: :class:`huaweicloudsdksdrs.v1.StartReverseProtectionGroupRequest`
2606
2428
  :rtype: :class:`huaweicloudsdksdrs.v1.StartReverseProtectionGroupResponse`
2607
2429
  """
2608
- return self.start_reverse_protection_group_with_http_info(request)
2430
+ return self._start_reverse_protection_group_with_http_info(request)
2609
2431
 
2610
- def start_reverse_protection_group_with_http_info(self, request):
2611
- all_params = ['server_group_id', 'reverse_protection_group_request_body']
2612
- local_var_params = {}
2613
- for attr in request.attribute_map:
2614
- if hasattr(request, attr):
2615
- local_var_params[attr] = getattr(request, attr)
2432
+ def _start_reverse_protection_group_with_http_info(self, request):
2433
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2616
2434
 
2617
2435
  cname = None
2618
2436
 
@@ -2668,14 +2486,10 @@ class SdrsAsyncClient(Client):
2668
2486
  :type request: :class:`huaweicloudsdksdrs.v1.StopProtectionGroupRequest`
2669
2487
  :rtype: :class:`huaweicloudsdksdrs.v1.StopProtectionGroupResponse`
2670
2488
  """
2671
- return self.stop_protection_group_with_http_info(request)
2489
+ return self._stop_protection_group_with_http_info(request)
2672
2490
 
2673
- def stop_protection_group_with_http_info(self, request):
2674
- all_params = ['server_group_id', 'stop_protection_group_request_body']
2675
- local_var_params = {}
2676
- for attr in request.attribute_map:
2677
- if hasattr(request, attr):
2678
- local_var_params[attr] = getattr(request, attr)
2491
+ def _stop_protection_group_with_http_info(self, request):
2492
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2679
2493
 
2680
2494
  cname = None
2681
2495
 
@@ -2731,14 +2545,10 @@ class SdrsAsyncClient(Client):
2731
2545
  :type request: :class:`huaweicloudsdksdrs.v1.UpdateDisasterRecoveryDrillNameRequest`
2732
2546
  :rtype: :class:`huaweicloudsdksdrs.v1.UpdateDisasterRecoveryDrillNameResponse`
2733
2547
  """
2734
- return self.update_disaster_recovery_drill_name_with_http_info(request)
2548
+ return self._update_disaster_recovery_drill_name_with_http_info(request)
2735
2549
 
2736
- def update_disaster_recovery_drill_name_with_http_info(self, request):
2737
- all_params = ['disaster_recovery_drill_id', 'update_disaster_recovery_drill_name_request_body']
2738
- local_var_params = {}
2739
- for attr in request.attribute_map:
2740
- if hasattr(request, attr):
2741
- local_var_params[attr] = getattr(request, attr)
2550
+ def _update_disaster_recovery_drill_name_with_http_info(self, request):
2551
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2742
2552
 
2743
2553
  cname = None
2744
2554
 
@@ -2794,14 +2604,10 @@ class SdrsAsyncClient(Client):
2794
2604
  :type request: :class:`huaweicloudsdksdrs.v1.UpdateProtectedInstanceNameRequest`
2795
2605
  :rtype: :class:`huaweicloudsdksdrs.v1.UpdateProtectedInstanceNameResponse`
2796
2606
  """
2797
- return self.update_protected_instance_name_with_http_info(request)
2607
+ return self._update_protected_instance_name_with_http_info(request)
2798
2608
 
2799
- def update_protected_instance_name_with_http_info(self, request):
2800
- all_params = ['protected_instance_id', 'update_protected_instance_name_request_body']
2801
- local_var_params = {}
2802
- for attr in request.attribute_map:
2803
- if hasattr(request, attr):
2804
- local_var_params[attr] = getattr(request, attr)
2609
+ def _update_protected_instance_name_with_http_info(self, request):
2610
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2805
2611
 
2806
2612
  cname = None
2807
2613
 
@@ -2857,14 +2663,10 @@ class SdrsAsyncClient(Client):
2857
2663
  :type request: :class:`huaweicloudsdksdrs.v1.UpdateProtectionGroupNameRequest`
2858
2664
  :rtype: :class:`huaweicloudsdksdrs.v1.UpdateProtectionGroupNameResponse`
2859
2665
  """
2860
- return self.update_protection_group_name_with_http_info(request)
2666
+ return self._update_protection_group_name_with_http_info(request)
2861
2667
 
2862
- def update_protection_group_name_with_http_info(self, request):
2863
- all_params = ['server_group_id', 'update_protection_group_name_request_body']
2864
- local_var_params = {}
2865
- for attr in request.attribute_map:
2866
- if hasattr(request, attr):
2867
- local_var_params[attr] = getattr(request, attr)
2668
+ def _update_protection_group_name_with_http_info(self, request):
2669
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2868
2670
 
2869
2671
  cname = None
2870
2672
 
@@ -2920,14 +2722,10 @@ class SdrsAsyncClient(Client):
2920
2722
  :type request: :class:`huaweicloudsdksdrs.v1.UpdateReplicationNameRequest`
2921
2723
  :rtype: :class:`huaweicloudsdksdrs.v1.UpdateReplicationNameResponse`
2922
2724
  """
2923
- return self.update_replication_name_with_http_info(request)
2725
+ return self._update_replication_name_with_http_info(request)
2924
2726
 
2925
- def update_replication_name_with_http_info(self, request):
2926
- all_params = ['replication_id', 'update_replication_name_request_body']
2927
- local_var_params = {}
2928
- for attr in request.attribute_map:
2929
- if hasattr(request, attr):
2930
- local_var_params[attr] = getattr(request, attr)
2727
+ def _update_replication_name_with_http_info(self, request):
2728
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2931
2729
 
2932
2730
  cname = None
2933
2731
 
@@ -2983,14 +2781,10 @@ class SdrsAsyncClient(Client):
2983
2781
  :type request: :class:`huaweicloudsdksdrs.v1.ListApiVersionsRequest`
2984
2782
  :rtype: :class:`huaweicloudsdksdrs.v1.ListApiVersionsResponse`
2985
2783
  """
2986
- return self.list_api_versions_with_http_info(request)
2784
+ return self._list_api_versions_with_http_info(request)
2987
2785
 
2988
- def list_api_versions_with_http_info(self, request):
2989
- all_params = []
2990
- local_var_params = {}
2991
- for attr in request.attribute_map:
2992
- if hasattr(request, attr):
2993
- local_var_params[attr] = getattr(request, attr)
2786
+ def _list_api_versions_with_http_info(self, request):
2787
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2994
2788
 
2995
2789
  cname = None
2996
2790
 
@@ -3042,14 +2836,10 @@ class SdrsAsyncClient(Client):
3042
2836
  :type request: :class:`huaweicloudsdksdrs.v1.ShowSpecifiedApiVersionRequest`
3043
2837
  :rtype: :class:`huaweicloudsdksdrs.v1.ShowSpecifiedApiVersionResponse`
3044
2838
  """
3045
- return self.show_specified_api_version_with_http_info(request)
2839
+ return self._show_specified_api_version_with_http_info(request)
3046
2840
 
3047
- def show_specified_api_version_with_http_info(self, request):
3048
- all_params = ['api_version']
3049
- local_var_params = {}
3050
- for attr in request.attribute_map:
3051
- if hasattr(request, attr):
3052
- local_var_params[attr] = getattr(request, attr)
2841
+ def _show_specified_api_version_with_http_info(self, request):
2842
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3053
2843
 
3054
2844
  cname = None
3055
2845
 
@@ -3104,14 +2894,10 @@ class SdrsAsyncClient(Client):
3104
2894
  :type request: :class:`huaweicloudsdksdrs.v1.ShowJobStatusRequest`
3105
2895
  :rtype: :class:`huaweicloudsdksdrs.v1.ShowJobStatusResponse`
3106
2896
  """
3107
- return self.show_job_status_with_http_info(request)
3108
-
3109
- def show_job_status_with_http_info(self, request):
3110
- all_params = ['job_id']
3111
- local_var_params = {}
3112
- for attr in request.attribute_map:
3113
- if hasattr(request, attr):
3114
- local_var_params[attr] = getattr(request, attr)
2897
+ return self._show_job_status_with_http_info(request)
2898
+
2899
+ def _show_job_status_with_http_info(self, request):
2900
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3115
2901
 
3116
2902
  cname = None
3117
2903