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,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ExtendReplicationRequestParams:
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
+ 'new_size': 'int'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'new_size': 'new_size'
25
+ }
26
+
27
+ def __init__(self, new_size=None):
28
+ r"""ExtendReplicationRequestParams
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param new_size: 复制对内的磁盘扩容后的最终容量。单位:GB 说明:该参数的取值为小数时,系统默认取小数点前的整数值。
33
+ :type new_size: int
34
+ """
35
+
36
+
37
+
38
+ self._new_size = None
39
+ self.discriminator = None
40
+
41
+ self.new_size = new_size
42
+
43
+ @property
44
+ def new_size(self):
45
+ r"""Gets the new_size of this ExtendReplicationRequestParams.
46
+
47
+ 复制对内的磁盘扩容后的最终容量。单位:GB 说明:该参数的取值为小数时,系统默认取小数点前的整数值。
48
+
49
+ :return: The new_size of this ExtendReplicationRequestParams.
50
+ :rtype: int
51
+ """
52
+ return self._new_size
53
+
54
+ @new_size.setter
55
+ def new_size(self, new_size):
56
+ r"""Sets the new_size of this ExtendReplicationRequestParams.
57
+
58
+ 复制对内的磁盘扩容后的最终容量。单位:GB 说明:该参数的取值为小数时,系统默认取小数点前的整数值。
59
+
60
+ :param new_size: The new_size of this ExtendReplicationRequestParams.
61
+ :type new_size: int
62
+ """
63
+ self._new_size = new_size
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, ExtendReplicationRequestParams):
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,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class FailoverProtectionGroupRequestBody:
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
+ 'failover_server_group': 'object'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'failover_server_group': 'failover-server-group'
25
+ }
26
+
27
+ def __init__(self, failover_server_group=None):
28
+ r"""FailoverProtectionGroupRequestBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param failover_server_group: 标识保护组故障切换操作。该参数目前默认值为空。
33
+ :type failover_server_group: object
34
+ """
35
+
36
+
37
+
38
+ self._failover_server_group = None
39
+ self.discriminator = None
40
+
41
+ self.failover_server_group = failover_server_group
42
+
43
+ @property
44
+ def failover_server_group(self):
45
+ r"""Gets the failover_server_group of this FailoverProtectionGroupRequestBody.
46
+
47
+ 标识保护组故障切换操作。该参数目前默认值为空。
48
+
49
+ :return: The failover_server_group of this FailoverProtectionGroupRequestBody.
50
+ :rtype: object
51
+ """
52
+ return self._failover_server_group
53
+
54
+ @failover_server_group.setter
55
+ def failover_server_group(self, failover_server_group):
56
+ r"""Sets the failover_server_group of this FailoverProtectionGroupRequestBody.
57
+
58
+ 标识保护组故障切换操作。该参数目前默认值为空。
59
+
60
+ :param failover_server_group: The failover_server_group of this FailoverProtectionGroupRequestBody.
61
+ :type failover_server_group: object
62
+ """
63
+ self._failover_server_group = failover_server_group
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, FailoverProtectionGroupRequestBody):
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,366 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class FailureJobParams:
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
+ 'job_type': 'str',
21
+ 'job_status': 'str',
22
+ 'begin_time': 'str',
23
+ 'job_id': 'str',
24
+ 'failure_status': 'str',
25
+ 'resource_id': 'str',
26
+ 'resource_name': 'str',
27
+ 'error_code': 'str',
28
+ 'fail_reason': 'str',
29
+ 'resource_type': 'str'
30
+ }
31
+
32
+ attribute_map = {
33
+ 'job_type': 'job_type',
34
+ 'job_status': 'job_status',
35
+ 'begin_time': 'begin_time',
36
+ 'job_id': 'job_id',
37
+ 'failure_status': 'failure_status',
38
+ 'resource_id': 'resource_id',
39
+ 'resource_name': 'resource_name',
40
+ 'error_code': 'error_code',
41
+ 'fail_reason': 'fail_reason',
42
+ 'resource_type': 'resource_type'
43
+ }
44
+
45
+ def __init__(self, job_type=None, job_status=None, begin_time=None, job_id=None, failure_status=None, resource_id=None, resource_name=None, error_code=None, fail_reason=None, resource_type=None):
46
+ r"""FailureJobParams
47
+
48
+ The model defined in huaweicloud sdk
49
+
50
+ :param job_type: 任务名称。
51
+ :type job_type: str
52
+ :param job_status: 任务状态。当前仅支持“FAIL”。FAIL:表示任务失败。
53
+ :type job_status: str
54
+ :param begin_time: 任务操作时间。默认格式为:\"yyyy-MM-ddTHH:mm:ss.SSSZ\",例:\"2019-04-01T12:00:00.000Z\"。
55
+ :type begin_time: str
56
+ :param job_id: 任务id。执行异步API命令下发成功的返回参数。
57
+ :type job_id: str
58
+ :param failure_status: 失败任务状态。createFail:表示创建失败。deleteFail:表示删除失败。attachFail:表示挂载失败。detachFail:表示卸载失败。expandFail:表示扩容失败。resizeFail:表示变更规格失败。startFail:表示开启保护失败。stopFail:表示停止保护失败。reverseFail:表示切换失败。failoverFail:表示故障切换失败。reprotectFail : 表示重保护失败。
59
+ :type failure_status: str
60
+ :param resource_id: 资源ID。
61
+ :type resource_id: str
62
+ :param resource_name: 资源名称。
63
+ :type resource_name: str
64
+ :param error_code: 任务失败错误码。
65
+ :type error_code: str
66
+ :param fail_reason: 任务失败原因。
67
+ :type fail_reason: str
68
+ :param resource_type: 资源类型。 server_groups:表示保护组。 protected_instances:表示保护实例。 replications:表示复制对。 disaster_recovery_drills:表示容灾演练。
69
+ :type resource_type: str
70
+ """
71
+
72
+
73
+
74
+ self._job_type = None
75
+ self._job_status = None
76
+ self._begin_time = None
77
+ self._job_id = None
78
+ self._failure_status = None
79
+ self._resource_id = None
80
+ self._resource_name = None
81
+ self._error_code = None
82
+ self._fail_reason = None
83
+ self._resource_type = None
84
+ self.discriminator = None
85
+
86
+ self.job_type = job_type
87
+ self.job_status = job_status
88
+ self.begin_time = begin_time
89
+ self.job_id = job_id
90
+ self.failure_status = failure_status
91
+ self.resource_id = resource_id
92
+ self.resource_name = resource_name
93
+ self.error_code = error_code
94
+ self.fail_reason = fail_reason
95
+ self.resource_type = resource_type
96
+
97
+ @property
98
+ def job_type(self):
99
+ r"""Gets the job_type of this FailureJobParams.
100
+
101
+ 任务名称。
102
+
103
+ :return: The job_type of this FailureJobParams.
104
+ :rtype: str
105
+ """
106
+ return self._job_type
107
+
108
+ @job_type.setter
109
+ def job_type(self, job_type):
110
+ r"""Sets the job_type of this FailureJobParams.
111
+
112
+ 任务名称。
113
+
114
+ :param job_type: The job_type of this FailureJobParams.
115
+ :type job_type: str
116
+ """
117
+ self._job_type = job_type
118
+
119
+ @property
120
+ def job_status(self):
121
+ r"""Gets the job_status of this FailureJobParams.
122
+
123
+ 任务状态。当前仅支持“FAIL”。FAIL:表示任务失败。
124
+
125
+ :return: The job_status of this FailureJobParams.
126
+ :rtype: str
127
+ """
128
+ return self._job_status
129
+
130
+ @job_status.setter
131
+ def job_status(self, job_status):
132
+ r"""Sets the job_status of this FailureJobParams.
133
+
134
+ 任务状态。当前仅支持“FAIL”。FAIL:表示任务失败。
135
+
136
+ :param job_status: The job_status of this FailureJobParams.
137
+ :type job_status: str
138
+ """
139
+ self._job_status = job_status
140
+
141
+ @property
142
+ def begin_time(self):
143
+ r"""Gets the begin_time of this FailureJobParams.
144
+
145
+ 任务操作时间。默认格式为:\"yyyy-MM-ddTHH:mm:ss.SSSZ\",例:\"2019-04-01T12:00:00.000Z\"。
146
+
147
+ :return: The begin_time of this FailureJobParams.
148
+ :rtype: str
149
+ """
150
+ return self._begin_time
151
+
152
+ @begin_time.setter
153
+ def begin_time(self, begin_time):
154
+ r"""Sets the begin_time of this FailureJobParams.
155
+
156
+ 任务操作时间。默认格式为:\"yyyy-MM-ddTHH:mm:ss.SSSZ\",例:\"2019-04-01T12:00:00.000Z\"。
157
+
158
+ :param begin_time: The begin_time of this FailureJobParams.
159
+ :type begin_time: str
160
+ """
161
+ self._begin_time = begin_time
162
+
163
+ @property
164
+ def job_id(self):
165
+ r"""Gets the job_id of this FailureJobParams.
166
+
167
+ 任务id。执行异步API命令下发成功的返回参数。
168
+
169
+ :return: The job_id of this FailureJobParams.
170
+ :rtype: str
171
+ """
172
+ return self._job_id
173
+
174
+ @job_id.setter
175
+ def job_id(self, job_id):
176
+ r"""Sets the job_id of this FailureJobParams.
177
+
178
+ 任务id。执行异步API命令下发成功的返回参数。
179
+
180
+ :param job_id: The job_id of this FailureJobParams.
181
+ :type job_id: str
182
+ """
183
+ self._job_id = job_id
184
+
185
+ @property
186
+ def failure_status(self):
187
+ r"""Gets the failure_status of this FailureJobParams.
188
+
189
+ 失败任务状态。createFail:表示创建失败。deleteFail:表示删除失败。attachFail:表示挂载失败。detachFail:表示卸载失败。expandFail:表示扩容失败。resizeFail:表示变更规格失败。startFail:表示开启保护失败。stopFail:表示停止保护失败。reverseFail:表示切换失败。failoverFail:表示故障切换失败。reprotectFail : 表示重保护失败。
190
+
191
+ :return: The failure_status of this FailureJobParams.
192
+ :rtype: str
193
+ """
194
+ return self._failure_status
195
+
196
+ @failure_status.setter
197
+ def failure_status(self, failure_status):
198
+ r"""Sets the failure_status of this FailureJobParams.
199
+
200
+ 失败任务状态。createFail:表示创建失败。deleteFail:表示删除失败。attachFail:表示挂载失败。detachFail:表示卸载失败。expandFail:表示扩容失败。resizeFail:表示变更规格失败。startFail:表示开启保护失败。stopFail:表示停止保护失败。reverseFail:表示切换失败。failoverFail:表示故障切换失败。reprotectFail : 表示重保护失败。
201
+
202
+ :param failure_status: The failure_status of this FailureJobParams.
203
+ :type failure_status: str
204
+ """
205
+ self._failure_status = failure_status
206
+
207
+ @property
208
+ def resource_id(self):
209
+ r"""Gets the resource_id of this FailureJobParams.
210
+
211
+ 资源ID。
212
+
213
+ :return: The resource_id of this FailureJobParams.
214
+ :rtype: str
215
+ """
216
+ return self._resource_id
217
+
218
+ @resource_id.setter
219
+ def resource_id(self, resource_id):
220
+ r"""Sets the resource_id of this FailureJobParams.
221
+
222
+ 资源ID。
223
+
224
+ :param resource_id: The resource_id of this FailureJobParams.
225
+ :type resource_id: str
226
+ """
227
+ self._resource_id = resource_id
228
+
229
+ @property
230
+ def resource_name(self):
231
+ r"""Gets the resource_name of this FailureJobParams.
232
+
233
+ 资源名称。
234
+
235
+ :return: The resource_name of this FailureJobParams.
236
+ :rtype: str
237
+ """
238
+ return self._resource_name
239
+
240
+ @resource_name.setter
241
+ def resource_name(self, resource_name):
242
+ r"""Sets the resource_name of this FailureJobParams.
243
+
244
+ 资源名称。
245
+
246
+ :param resource_name: The resource_name of this FailureJobParams.
247
+ :type resource_name: str
248
+ """
249
+ self._resource_name = resource_name
250
+
251
+ @property
252
+ def error_code(self):
253
+ r"""Gets the error_code of this FailureJobParams.
254
+
255
+ 任务失败错误码。
256
+
257
+ :return: The error_code of this FailureJobParams.
258
+ :rtype: str
259
+ """
260
+ return self._error_code
261
+
262
+ @error_code.setter
263
+ def error_code(self, error_code):
264
+ r"""Sets the error_code of this FailureJobParams.
265
+
266
+ 任务失败错误码。
267
+
268
+ :param error_code: The error_code of this FailureJobParams.
269
+ :type error_code: str
270
+ """
271
+ self._error_code = error_code
272
+
273
+ @property
274
+ def fail_reason(self):
275
+ r"""Gets the fail_reason of this FailureJobParams.
276
+
277
+ 任务失败原因。
278
+
279
+ :return: The fail_reason of this FailureJobParams.
280
+ :rtype: str
281
+ """
282
+ return self._fail_reason
283
+
284
+ @fail_reason.setter
285
+ def fail_reason(self, fail_reason):
286
+ r"""Sets the fail_reason of this FailureJobParams.
287
+
288
+ 任务失败原因。
289
+
290
+ :param fail_reason: The fail_reason of this FailureJobParams.
291
+ :type fail_reason: str
292
+ """
293
+ self._fail_reason = fail_reason
294
+
295
+ @property
296
+ def resource_type(self):
297
+ r"""Gets the resource_type of this FailureJobParams.
298
+
299
+ 资源类型。 server_groups:表示保护组。 protected_instances:表示保护实例。 replications:表示复制对。 disaster_recovery_drills:表示容灾演练。
300
+
301
+ :return: The resource_type of this FailureJobParams.
302
+ :rtype: str
303
+ """
304
+ return self._resource_type
305
+
306
+ @resource_type.setter
307
+ def resource_type(self, resource_type):
308
+ r"""Sets the resource_type of this FailureJobParams.
309
+
310
+ 资源类型。 server_groups:表示保护组。 protected_instances:表示保护实例。 replications:表示复制对。 disaster_recovery_drills:表示容灾演练。
311
+
312
+ :param resource_type: The resource_type of this FailureJobParams.
313
+ :type resource_type: str
314
+ """
315
+ self._resource_type = resource_type
316
+
317
+ def to_dict(self):
318
+ """Returns the model properties as a dict"""
319
+ result = {}
320
+
321
+ for attr, _ in six.iteritems(self.openapi_types):
322
+ value = getattr(self, attr)
323
+ if isinstance(value, list):
324
+ result[attr] = list(map(
325
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
326
+ value
327
+ ))
328
+ elif hasattr(value, "to_dict"):
329
+ result[attr] = value.to_dict()
330
+ elif isinstance(value, dict):
331
+ result[attr] = dict(map(
332
+ lambda item: (item[0], item[1].to_dict())
333
+ if hasattr(item[1], "to_dict") else item,
334
+ value.items()
335
+ ))
336
+ else:
337
+ if attr in self.sensitive_list:
338
+ result[attr] = "****"
339
+ else:
340
+ result[attr] = value
341
+
342
+ return result
343
+
344
+ def to_str(self):
345
+ """Returns the string representation of the model"""
346
+ import simplejson as json
347
+ if six.PY2:
348
+ import sys
349
+ reload(sys)
350
+ sys.setdefaultencoding("utf-8")
351
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
352
+
353
+ def __repr__(self):
354
+ """For `print`"""
355
+ return self.to_str()
356
+
357
+ def __eq__(self, other):
358
+ """Returns true if both objects are equal"""
359
+ if not isinstance(other, FailureJobParams):
360
+ return False
361
+
362
+ return self.__dict__ == other.__dict__
363
+
364
+ def __ne__(self, other):
365
+ """Returns true if both objects are not equal"""
366
+ return not self == other