huaweicloudsdksdrs 3.1.160__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. huaweicloudsdksdrs/__init__.py +0 -0
  2. huaweicloudsdksdrs/v1/__init__.py +173 -0
  3. huaweicloudsdksdrs/v1/model/__init__.py +170 -0
  4. huaweicloudsdksdrs/v1/model/add_protected_instance_nic_request.py +139 -0
  5. huaweicloudsdksdrs/v1/model/add_protected_instance_nic_response.py +116 -0
  6. huaweicloudsdksdrs/v1/model/add_protected_instance_tags_request.py +139 -0
  7. huaweicloudsdksdrs/v1/model/add_protected_instance_tags_response.py +85 -0
  8. huaweicloudsdksdrs/v1/model/attach_protected_instance_replication_request.py +139 -0
  9. huaweicloudsdksdrs/v1/model/attach_protected_instance_replication_response.py +116 -0
  10. huaweicloudsdksdrs/v1/model/batch_add_tags_request.py +139 -0
  11. huaweicloudsdksdrs/v1/model/batch_add_tags_request_body.py +142 -0
  12. huaweicloudsdksdrs/v1/model/batch_add_tags_response.py +85 -0
  13. huaweicloudsdksdrs/v1/model/batch_create_protected_instances_request.py +111 -0
  14. huaweicloudsdksdrs/v1/model/batch_create_protected_instances_request_body.py +110 -0
  15. huaweicloudsdksdrs/v1/model/batch_create_protected_instances_request_params.py +344 -0
  16. huaweicloudsdksdrs/v1/model/batch_create_protected_instances_response.py +116 -0
  17. huaweicloudsdksdrs/v1/model/batch_delete_protected_instances_request.py +111 -0
  18. huaweicloudsdksdrs/v1/model/batch_delete_protected_instances_request_body.py +172 -0
  19. huaweicloudsdksdrs/v1/model/batch_delete_protected_instances_response.py +116 -0
  20. huaweicloudsdksdrs/v1/model/batch_delete_tags_request.py +139 -0
  21. huaweicloudsdksdrs/v1/model/batch_delete_tags_request_body.py +142 -0
  22. huaweicloudsdksdrs/v1/model/batch_delete_tags_response.py +85 -0
  23. huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_request.py +111 -0
  24. huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_request_body.py +110 -0
  25. huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_request_params.py +171 -0
  26. huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_response.py +116 -0
  27. huaweicloudsdksdrs/v1/model/create_protected_instance_request.py +111 -0
  28. huaweicloudsdksdrs/v1/model/create_protected_instance_request_body.py +110 -0
  29. huaweicloudsdksdrs/v1/model/create_protected_instance_request_params.py +402 -0
  30. huaweicloudsdksdrs/v1/model/create_protected_instance_response.py +116 -0
  31. huaweicloudsdksdrs/v1/model/create_protection_group_request.py +111 -0
  32. huaweicloudsdksdrs/v1/model/create_protection_group_request_body.py +110 -0
  33. huaweicloudsdksdrs/v1/model/create_protection_group_request_params.py +284 -0
  34. huaweicloudsdksdrs/v1/model/create_protection_group_response.py +116 -0
  35. huaweicloudsdksdrs/v1/model/create_replication_request.py +111 -0
  36. huaweicloudsdksdrs/v1/model/create_replication_request_body.py +110 -0
  37. huaweicloudsdksdrs/v1/model/create_replication_request_params.py +228 -0
  38. huaweicloudsdksdrs/v1/model/create_replication_response.py +116 -0
  39. huaweicloudsdksdrs/v1/model/delete_all_server_group_failure_jobs_request.py +84 -0
  40. huaweicloudsdksdrs/v1/model/delete_all_server_group_failure_jobs_response.py +85 -0
  41. huaweicloudsdksdrs/v1/model/delete_disaster_recovery_drill_request.py +114 -0
  42. huaweicloudsdksdrs/v1/model/delete_disaster_recovery_drill_response.py +116 -0
  43. huaweicloudsdksdrs/v1/model/delete_failure_job_request.py +114 -0
  44. huaweicloudsdksdrs/v1/model/delete_failure_job_response.py +85 -0
  45. huaweicloudsdksdrs/v1/model/delete_protected_instance_nic_request.py +139 -0
  46. huaweicloudsdksdrs/v1/model/delete_protected_instance_nic_response.py +116 -0
  47. huaweicloudsdksdrs/v1/model/delete_protected_instance_request.py +139 -0
  48. huaweicloudsdksdrs/v1/model/delete_protected_instance_request_body.py +144 -0
  49. huaweicloudsdksdrs/v1/model/delete_protected_instance_response.py +116 -0
  50. huaweicloudsdksdrs/v1/model/delete_protected_instance_tag_request.py +142 -0
  51. huaweicloudsdksdrs/v1/model/delete_protected_instance_tag_response.py +85 -0
  52. huaweicloudsdksdrs/v1/model/delete_protection_group_request.py +114 -0
  53. huaweicloudsdksdrs/v1/model/delete_protection_group_response.py +116 -0
  54. huaweicloudsdksdrs/v1/model/delete_replication_request.py +139 -0
  55. huaweicloudsdksdrs/v1/model/delete_replication_request_body.py +110 -0
  56. huaweicloudsdksdrs/v1/model/delete_replication_request_params.py +144 -0
  57. huaweicloudsdksdrs/v1/model/delete_replication_response.py +116 -0
  58. huaweicloudsdksdrs/v1/model/delete_resource_tag.py +143 -0
  59. huaweicloudsdksdrs/v1/model/delete_server_group_failure_jobs_request.py +114 -0
  60. huaweicloudsdksdrs/v1/model/delete_server_group_failure_jobs_response.py +85 -0
  61. huaweicloudsdksdrs/v1/model/detach_protected_instance_replication_request.py +142 -0
  62. huaweicloudsdksdrs/v1/model/detach_protected_instance_replication_response.py +116 -0
  63. huaweicloudsdksdrs/v1/model/drill_server_params.py +142 -0
  64. huaweicloudsdksdrs/v1/model/expand_replication_request.py +139 -0
  65. huaweicloudsdksdrs/v1/model/expand_replication_response.py +116 -0
  66. huaweicloudsdksdrs/v1/model/extend_replication_request_body.py +110 -0
  67. huaweicloudsdksdrs/v1/model/extend_replication_request_params.py +114 -0
  68. huaweicloudsdksdrs/v1/model/failover_protection_group_request_body.py +114 -0
  69. huaweicloudsdksdrs/v1/model/failure_job_params.py +366 -0
  70. huaweicloudsdksdrs/v1/model/job_entities.py +289 -0
  71. huaweicloudsdksdrs/v1/model/list_active_active_domains_request.py +84 -0
  72. huaweicloudsdksdrs/v1/model/list_active_active_domains_response.py +116 -0
  73. huaweicloudsdksdrs/v1/model/list_api_versions_request.py +84 -0
  74. huaweicloudsdksdrs/v1/model/list_api_versions_response.py +116 -0
  75. huaweicloudsdksdrs/v1/model/list_disaster_recovery_drills_request.py +260 -0
  76. huaweicloudsdksdrs/v1/model/list_disaster_recovery_drills_response.py +145 -0
  77. huaweicloudsdksdrs/v1/model/list_failure_jobs_request.py +260 -0
  78. huaweicloudsdksdrs/v1/model/list_failure_jobs_response.py +145 -0
  79. huaweicloudsdksdrs/v1/model/list_protected_instance_tags_request.py +114 -0
  80. huaweicloudsdksdrs/v1/model/list_protected_instance_tags_response.py +116 -0
  81. huaweicloudsdksdrs/v1/model/list_protected_instances_by_tags_request.py +111 -0
  82. huaweicloudsdksdrs/v1/model/list_protected_instances_by_tags_request_body.py +317 -0
  83. huaweicloudsdksdrs/v1/model/list_protected_instances_by_tags_response.py +145 -0
  84. huaweicloudsdksdrs/v1/model/list_protected_instances_project_tags_request.py +84 -0
  85. huaweicloudsdksdrs/v1/model/list_protected_instances_project_tags_response.py +116 -0
  86. huaweicloudsdksdrs/v1/model/list_protected_instances_request.py +347 -0
  87. huaweicloudsdksdrs/v1/model/list_protected_instances_response.py +145 -0
  88. huaweicloudsdksdrs/v1/model/list_protection_groups_request.py +260 -0
  89. huaweicloudsdksdrs/v1/model/list_protection_groups_response.py +145 -0
  90. huaweicloudsdksdrs/v1/model/list_replications_request.py +376 -0
  91. huaweicloudsdksdrs/v1/model/list_replications_response.py +145 -0
  92. huaweicloudsdksdrs/v1/model/list_rpo_statistics_request.py +231 -0
  93. huaweicloudsdksdrs/v1/model/list_rpo_statistics_response.py +145 -0
  94. huaweicloudsdksdrs/v1/model/match_params.py +142 -0
  95. huaweicloudsdksdrs/v1/model/metadata_params.py +114 -0
  96. huaweicloudsdksdrs/v1/model/protected_instance_add_nic_request_body.py +172 -0
  97. huaweicloudsdksdrs/v1/model/protected_instance_add_tags_request_body.py +110 -0
  98. huaweicloudsdksdrs/v1/model/protected_instance_attach_replication_request_body.py +110 -0
  99. huaweicloudsdksdrs/v1/model/protected_instance_attach_replication_request_params.py +142 -0
  100. huaweicloudsdksdrs/v1/model/protected_instance_attachment.py +142 -0
  101. huaweicloudsdksdrs/v1/model/protected_instance_delete_nic_request_body.py +114 -0
  102. huaweicloudsdksdrs/v1/model/quota_params.py +114 -0
  103. huaweicloudsdksdrs/v1/model/quota_resource_params.py +226 -0
  104. huaweicloudsdksdrs/v1/model/replication_attachment.py +142 -0
  105. huaweicloudsdksdrs/v1/model/replication_cluster_params.py +114 -0
  106. huaweicloudsdksdrs/v1/model/replication_record_metadata.py +198 -0
  107. huaweicloudsdksdrs/v1/model/resize_protected_instance_request.py +139 -0
  108. huaweicloudsdksdrs/v1/model/resize_protected_instance_request_body.py +110 -0
  109. huaweicloudsdksdrs/v1/model/resize_protected_instance_request_params.py +231 -0
  110. huaweicloudsdksdrs/v1/model/resize_protected_instance_response.py +116 -0
  111. huaweicloudsdksdrs/v1/model/resource_id.py +114 -0
  112. huaweicloudsdksdrs/v1/model/resource_params.py +195 -0
  113. huaweicloudsdksdrs/v1/model/resource_tag.py +142 -0
  114. huaweicloudsdksdrs/v1/model/reverse_protection_group_request_body.py +110 -0
  115. huaweicloudsdksdrs/v1/model/reverse_protection_group_request_params.py +114 -0
  116. huaweicloudsdksdrs/v1/model/rpo_stattistics_params.py +254 -0
  117. huaweicloudsdksdrs/v1/model/security_groups_params.py +114 -0
  118. huaweicloudsdksdrs/v1/model/server_info.py +143 -0
  119. huaweicloudsdksdrs/v1/model/show_active_active_domain_params.py +246 -0
  120. huaweicloudsdksdrs/v1/model/show_api_version_links_params.py +142 -0
  121. huaweicloudsdksdrs/v1/model/show_api_version_params.py +254 -0
  122. huaweicloudsdksdrs/v1/model/show_disaster_recovery_drill_params.py +310 -0
  123. huaweicloudsdksdrs/v1/model/show_disaster_recovery_drill_request.py +114 -0
  124. huaweicloudsdksdrs/v1/model/show_disaster_recovery_drill_response.py +112 -0
  125. huaweicloudsdksdrs/v1/model/show_job_status_request.py +114 -0
  126. huaweicloudsdksdrs/v1/model/show_job_status_response.py +315 -0
  127. huaweicloudsdksdrs/v1/model/show_protected_instance_params.py +475 -0
  128. huaweicloudsdksdrs/v1/model/show_protected_instance_request.py +114 -0
  129. huaweicloudsdksdrs/v1/model/show_protected_instance_response.py +112 -0
  130. huaweicloudsdksdrs/v1/model/show_protection_group_params.py +786 -0
  131. huaweicloudsdksdrs/v1/model/show_protection_group_request.py +114 -0
  132. huaweicloudsdksdrs/v1/model/show_protection_group_response.py +112 -0
  133. huaweicloudsdksdrs/v1/model/show_quota_request.py +84 -0
  134. huaweicloudsdksdrs/v1/model/show_quota_response.py +112 -0
  135. huaweicloudsdksdrs/v1/model/show_replication_params.py +530 -0
  136. huaweicloudsdksdrs/v1/model/show_replication_request.py +114 -0
  137. huaweicloudsdksdrs/v1/model/show_replication_response.py +112 -0
  138. huaweicloudsdksdrs/v1/model/show_specified_api_version_request.py +114 -0
  139. huaweicloudsdksdrs/v1/model/show_specified_api_version_response.py +112 -0
  140. huaweicloudsdksdrs/v1/model/start_failover_protection_group_request.py +139 -0
  141. huaweicloudsdksdrs/v1/model/start_failover_protection_group_response.py +116 -0
  142. huaweicloudsdksdrs/v1/model/start_protection_group_request.py +139 -0
  143. huaweicloudsdksdrs/v1/model/start_protection_group_request_body.py +114 -0
  144. huaweicloudsdksdrs/v1/model/start_protection_group_response.py +116 -0
  145. huaweicloudsdksdrs/v1/model/start_reverse_protection_group_request.py +139 -0
  146. huaweicloudsdksdrs/v1/model/start_reverse_protection_group_response.py +116 -0
  147. huaweicloudsdksdrs/v1/model/stop_protection_group_request.py +139 -0
  148. huaweicloudsdksdrs/v1/model/stop_protection_group_request_body.py +114 -0
  149. huaweicloudsdksdrs/v1/model/stop_protection_group_response.py +116 -0
  150. huaweicloudsdksdrs/v1/model/sub_job_entities.py +260 -0
  151. huaweicloudsdksdrs/v1/model/sub_job_params.py +306 -0
  152. huaweicloudsdksdrs/v1/model/tag_params.py +142 -0
  153. huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_request.py +139 -0
  154. huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_request_body.py +110 -0
  155. huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_request_params.py +114 -0
  156. huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_response.py +112 -0
  157. huaweicloudsdksdrs/v1/model/update_protected_instance_name_request.py +139 -0
  158. huaweicloudsdksdrs/v1/model/update_protected_instance_name_request_body.py +110 -0
  159. huaweicloudsdksdrs/v1/model/update_protected_instance_name_request_params.py +114 -0
  160. huaweicloudsdksdrs/v1/model/update_protected_instance_name_response.py +112 -0
  161. huaweicloudsdksdrs/v1/model/update_protection_group_name_request.py +139 -0
  162. huaweicloudsdksdrs/v1/model/update_protection_group_name_request_body.py +110 -0
  163. huaweicloudsdksdrs/v1/model/update_protection_group_name_request_params.py +114 -0
  164. huaweicloudsdksdrs/v1/model/update_protection_group_name_response.py +112 -0
  165. huaweicloudsdksdrs/v1/model/update_replication_name_request.py +139 -0
  166. huaweicloudsdksdrs/v1/model/update_replication_name_request_body.py +110 -0
  167. huaweicloudsdksdrs/v1/model/update_replication_name_request_params.py +114 -0
  168. huaweicloudsdksdrs/v1/model/update_replication_name_response.py +112 -0
  169. huaweicloudsdksdrs/v1/region/__init__.py +0 -0
  170. huaweicloudsdksdrs/v1/region/sdrs_region.py +49 -0
  171. huaweicloudsdksdrs/v1/sdrs_async_client.py +3390 -0
  172. huaweicloudsdksdrs/v1/sdrs_client.py +3387 -0
  173. huaweicloudsdksdrs-3.1.160.dist-info/LICENSE +13 -0
  174. huaweicloudsdksdrs-3.1.160.dist-info/METADATA +26 -0
  175. huaweicloudsdksdrs-3.1.160.dist-info/RECORD +177 -0
  176. huaweicloudsdksdrs-3.1.160.dist-info/WHEEL +5 -0
  177. huaweicloudsdksdrs-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,85 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class DeleteAllServerGroupFailureJobsResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ r"""DeleteAllServerGroupFailureJobsResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(DeleteAllServerGroupFailureJobsResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, DeleteAllServerGroupFailureJobsResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteDisasterRecoveryDrillRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'disaster_recovery_drill_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'disaster_recovery_drill_id': 'disaster_recovery_drill_id'
25
+ }
26
+
27
+ def __init__(self, disaster_recovery_drill_id=None):
28
+ r"""DeleteDisasterRecoveryDrillRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param disaster_recovery_drill_id: 容灾演练的ID。
33
+ :type disaster_recovery_drill_id: str
34
+ """
35
+
36
+
37
+
38
+ self._disaster_recovery_drill_id = None
39
+ self.discriminator = None
40
+
41
+ self.disaster_recovery_drill_id = disaster_recovery_drill_id
42
+
43
+ @property
44
+ def disaster_recovery_drill_id(self):
45
+ r"""Gets the disaster_recovery_drill_id of this DeleteDisasterRecoveryDrillRequest.
46
+
47
+ 容灾演练的ID。
48
+
49
+ :return: The disaster_recovery_drill_id of this DeleteDisasterRecoveryDrillRequest.
50
+ :rtype: str
51
+ """
52
+ return self._disaster_recovery_drill_id
53
+
54
+ @disaster_recovery_drill_id.setter
55
+ def disaster_recovery_drill_id(self, disaster_recovery_drill_id):
56
+ r"""Sets the disaster_recovery_drill_id of this DeleteDisasterRecoveryDrillRequest.
57
+
58
+ 容灾演练的ID。
59
+
60
+ :param disaster_recovery_drill_id: The disaster_recovery_drill_id of this DeleteDisasterRecoveryDrillRequest.
61
+ :type disaster_recovery_drill_id: str
62
+ """
63
+ self._disaster_recovery_drill_id = disaster_recovery_drill_id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, DeleteDisasterRecoveryDrillRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,116 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class DeleteDisasterRecoveryDrillResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'job_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'job_id': 'job_id'
26
+ }
27
+
28
+ def __init__(self, job_id=None):
29
+ r"""DeleteDisasterRecoveryDrillResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param job_id: 成功返回jobId信息
34
+ :type job_id: str
35
+ """
36
+
37
+ super(DeleteDisasterRecoveryDrillResponse, self).__init__()
38
+
39
+ self._job_id = None
40
+ self.discriminator = None
41
+
42
+ if job_id is not None:
43
+ self.job_id = job_id
44
+
45
+ @property
46
+ def job_id(self):
47
+ r"""Gets the job_id of this DeleteDisasterRecoveryDrillResponse.
48
+
49
+ 成功返回jobId信息
50
+
51
+ :return: The job_id of this DeleteDisasterRecoveryDrillResponse.
52
+ :rtype: str
53
+ """
54
+ return self._job_id
55
+
56
+ @job_id.setter
57
+ def job_id(self, job_id):
58
+ r"""Sets the job_id of this DeleteDisasterRecoveryDrillResponse.
59
+
60
+ 成功返回jobId信息
61
+
62
+ :param job_id: The job_id of this DeleteDisasterRecoveryDrillResponse.
63
+ :type job_id: str
64
+ """
65
+ self._job_id = job_id
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, DeleteDisasterRecoveryDrillResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteFailureJobRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'failure_job_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'failure_job_id': 'failure_job_id'
25
+ }
26
+
27
+ def __init__(self, failure_job_id=None):
28
+ r"""DeleteFailureJobRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param failure_job_id: 失败任务ID。
33
+ :type failure_job_id: str
34
+ """
35
+
36
+
37
+
38
+ self._failure_job_id = None
39
+ self.discriminator = None
40
+
41
+ self.failure_job_id = failure_job_id
42
+
43
+ @property
44
+ def failure_job_id(self):
45
+ r"""Gets the failure_job_id of this DeleteFailureJobRequest.
46
+
47
+ 失败任务ID。
48
+
49
+ :return: The failure_job_id of this DeleteFailureJobRequest.
50
+ :rtype: str
51
+ """
52
+ return self._failure_job_id
53
+
54
+ @failure_job_id.setter
55
+ def failure_job_id(self, failure_job_id):
56
+ r"""Sets the failure_job_id of this DeleteFailureJobRequest.
57
+
58
+ 失败任务ID。
59
+
60
+ :param failure_job_id: The failure_job_id of this DeleteFailureJobRequest.
61
+ :type failure_job_id: str
62
+ """
63
+ self._failure_job_id = failure_job_id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, DeleteFailureJobRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,85 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class DeleteFailureJobResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ r"""DeleteFailureJobResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(DeleteFailureJobResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, DeleteFailureJobResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteProtectedInstanceNicRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'protected_instance_id': 'str',
21
+ 'body': 'ProtectedInstanceDeleteNicRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'protected_instance_id': 'protected_instance_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, protected_instance_id=None, body=None):
30
+ r"""DeleteProtectedInstanceNicRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param protected_instance_id: 保护实例的ID。
35
+ :type protected_instance_id: str
36
+ :param body: Body of the DeleteProtectedInstanceNicRequest
37
+ :type body: :class:`huaweicloudsdksdrs.v1.ProtectedInstanceDeleteNicRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._protected_instance_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.protected_instance_id = protected_instance_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def protected_instance_id(self):
52
+ r"""Gets the protected_instance_id of this DeleteProtectedInstanceNicRequest.
53
+
54
+ 保护实例的ID。
55
+
56
+ :return: The protected_instance_id of this DeleteProtectedInstanceNicRequest.
57
+ :rtype: str
58
+ """
59
+ return self._protected_instance_id
60
+
61
+ @protected_instance_id.setter
62
+ def protected_instance_id(self, protected_instance_id):
63
+ r"""Sets the protected_instance_id of this DeleteProtectedInstanceNicRequest.
64
+
65
+ 保护实例的ID。
66
+
67
+ :param protected_instance_id: The protected_instance_id of this DeleteProtectedInstanceNicRequest.
68
+ :type protected_instance_id: str
69
+ """
70
+ self._protected_instance_id = protected_instance_id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this DeleteProtectedInstanceNicRequest.
75
+
76
+ :return: The body of this DeleteProtectedInstanceNicRequest.
77
+ :rtype: :class:`huaweicloudsdksdrs.v1.ProtectedInstanceDeleteNicRequestBody`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this DeleteProtectedInstanceNicRequest.
84
+
85
+ :param body: The body of this DeleteProtectedInstanceNicRequest.
86
+ :type body: :class:`huaweicloudsdksdrs.v1.ProtectedInstanceDeleteNicRequestBody`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, DeleteProtectedInstanceNicRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other