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.
- huaweicloudsdksdrs/__init__.py +0 -0
- huaweicloudsdksdrs/v1/__init__.py +173 -0
- huaweicloudsdksdrs/v1/model/__init__.py +170 -0
- huaweicloudsdksdrs/v1/model/add_protected_instance_nic_request.py +139 -0
- huaweicloudsdksdrs/v1/model/add_protected_instance_nic_response.py +116 -0
- huaweicloudsdksdrs/v1/model/add_protected_instance_tags_request.py +139 -0
- huaweicloudsdksdrs/v1/model/add_protected_instance_tags_response.py +85 -0
- huaweicloudsdksdrs/v1/model/attach_protected_instance_replication_request.py +139 -0
- huaweicloudsdksdrs/v1/model/attach_protected_instance_replication_response.py +116 -0
- huaweicloudsdksdrs/v1/model/batch_add_tags_request.py +139 -0
- huaweicloudsdksdrs/v1/model/batch_add_tags_request_body.py +142 -0
- huaweicloudsdksdrs/v1/model/batch_add_tags_response.py +85 -0
- huaweicloudsdksdrs/v1/model/batch_create_protected_instances_request.py +111 -0
- huaweicloudsdksdrs/v1/model/batch_create_protected_instances_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/batch_create_protected_instances_request_params.py +344 -0
- huaweicloudsdksdrs/v1/model/batch_create_protected_instances_response.py +116 -0
- huaweicloudsdksdrs/v1/model/batch_delete_protected_instances_request.py +111 -0
- huaweicloudsdksdrs/v1/model/batch_delete_protected_instances_request_body.py +172 -0
- huaweicloudsdksdrs/v1/model/batch_delete_protected_instances_response.py +116 -0
- huaweicloudsdksdrs/v1/model/batch_delete_tags_request.py +139 -0
- huaweicloudsdksdrs/v1/model/batch_delete_tags_request_body.py +142 -0
- huaweicloudsdksdrs/v1/model/batch_delete_tags_response.py +85 -0
- huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_request.py +111 -0
- huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_request_params.py +171 -0
- huaweicloudsdksdrs/v1/model/create_disaster_recovery_drill_response.py +116 -0
- huaweicloudsdksdrs/v1/model/create_protected_instance_request.py +111 -0
- huaweicloudsdksdrs/v1/model/create_protected_instance_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/create_protected_instance_request_params.py +402 -0
- huaweicloudsdksdrs/v1/model/create_protected_instance_response.py +116 -0
- huaweicloudsdksdrs/v1/model/create_protection_group_request.py +111 -0
- huaweicloudsdksdrs/v1/model/create_protection_group_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/create_protection_group_request_params.py +284 -0
- huaweicloudsdksdrs/v1/model/create_protection_group_response.py +116 -0
- huaweicloudsdksdrs/v1/model/create_replication_request.py +111 -0
- huaweicloudsdksdrs/v1/model/create_replication_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/create_replication_request_params.py +228 -0
- huaweicloudsdksdrs/v1/model/create_replication_response.py +116 -0
- huaweicloudsdksdrs/v1/model/delete_all_server_group_failure_jobs_request.py +84 -0
- huaweicloudsdksdrs/v1/model/delete_all_server_group_failure_jobs_response.py +85 -0
- huaweicloudsdksdrs/v1/model/delete_disaster_recovery_drill_request.py +114 -0
- huaweicloudsdksdrs/v1/model/delete_disaster_recovery_drill_response.py +116 -0
- huaweicloudsdksdrs/v1/model/delete_failure_job_request.py +114 -0
- huaweicloudsdksdrs/v1/model/delete_failure_job_response.py +85 -0
- huaweicloudsdksdrs/v1/model/delete_protected_instance_nic_request.py +139 -0
- huaweicloudsdksdrs/v1/model/delete_protected_instance_nic_response.py +116 -0
- huaweicloudsdksdrs/v1/model/delete_protected_instance_request.py +139 -0
- huaweicloudsdksdrs/v1/model/delete_protected_instance_request_body.py +144 -0
- huaweicloudsdksdrs/v1/model/delete_protected_instance_response.py +116 -0
- huaweicloudsdksdrs/v1/model/delete_protected_instance_tag_request.py +142 -0
- huaweicloudsdksdrs/v1/model/delete_protected_instance_tag_response.py +85 -0
- huaweicloudsdksdrs/v1/model/delete_protection_group_request.py +114 -0
- huaweicloudsdksdrs/v1/model/delete_protection_group_response.py +116 -0
- huaweicloudsdksdrs/v1/model/delete_replication_request.py +139 -0
- huaweicloudsdksdrs/v1/model/delete_replication_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/delete_replication_request_params.py +144 -0
- huaweicloudsdksdrs/v1/model/delete_replication_response.py +116 -0
- huaweicloudsdksdrs/v1/model/delete_resource_tag.py +143 -0
- huaweicloudsdksdrs/v1/model/delete_server_group_failure_jobs_request.py +114 -0
- huaweicloudsdksdrs/v1/model/delete_server_group_failure_jobs_response.py +85 -0
- huaweicloudsdksdrs/v1/model/detach_protected_instance_replication_request.py +142 -0
- huaweicloudsdksdrs/v1/model/detach_protected_instance_replication_response.py +116 -0
- huaweicloudsdksdrs/v1/model/drill_server_params.py +142 -0
- huaweicloudsdksdrs/v1/model/expand_replication_request.py +139 -0
- huaweicloudsdksdrs/v1/model/expand_replication_response.py +116 -0
- huaweicloudsdksdrs/v1/model/extend_replication_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/extend_replication_request_params.py +114 -0
- huaweicloudsdksdrs/v1/model/failover_protection_group_request_body.py +114 -0
- huaweicloudsdksdrs/v1/model/failure_job_params.py +366 -0
- huaweicloudsdksdrs/v1/model/job_entities.py +289 -0
- huaweicloudsdksdrs/v1/model/list_active_active_domains_request.py +84 -0
- huaweicloudsdksdrs/v1/model/list_active_active_domains_response.py +116 -0
- huaweicloudsdksdrs/v1/model/list_api_versions_request.py +84 -0
- huaweicloudsdksdrs/v1/model/list_api_versions_response.py +116 -0
- huaweicloudsdksdrs/v1/model/list_disaster_recovery_drills_request.py +260 -0
- huaweicloudsdksdrs/v1/model/list_disaster_recovery_drills_response.py +145 -0
- huaweicloudsdksdrs/v1/model/list_failure_jobs_request.py +260 -0
- huaweicloudsdksdrs/v1/model/list_failure_jobs_response.py +145 -0
- huaweicloudsdksdrs/v1/model/list_protected_instance_tags_request.py +114 -0
- huaweicloudsdksdrs/v1/model/list_protected_instance_tags_response.py +116 -0
- huaweicloudsdksdrs/v1/model/list_protected_instances_by_tags_request.py +111 -0
- huaweicloudsdksdrs/v1/model/list_protected_instances_by_tags_request_body.py +317 -0
- huaweicloudsdksdrs/v1/model/list_protected_instances_by_tags_response.py +145 -0
- huaweicloudsdksdrs/v1/model/list_protected_instances_project_tags_request.py +84 -0
- huaweicloudsdksdrs/v1/model/list_protected_instances_project_tags_response.py +116 -0
- huaweicloudsdksdrs/v1/model/list_protected_instances_request.py +347 -0
- huaweicloudsdksdrs/v1/model/list_protected_instances_response.py +145 -0
- huaweicloudsdksdrs/v1/model/list_protection_groups_request.py +260 -0
- huaweicloudsdksdrs/v1/model/list_protection_groups_response.py +145 -0
- huaweicloudsdksdrs/v1/model/list_replications_request.py +376 -0
- huaweicloudsdksdrs/v1/model/list_replications_response.py +145 -0
- huaweicloudsdksdrs/v1/model/list_rpo_statistics_request.py +231 -0
- huaweicloudsdksdrs/v1/model/list_rpo_statistics_response.py +145 -0
- huaweicloudsdksdrs/v1/model/match_params.py +142 -0
- huaweicloudsdksdrs/v1/model/metadata_params.py +114 -0
- huaweicloudsdksdrs/v1/model/protected_instance_add_nic_request_body.py +172 -0
- huaweicloudsdksdrs/v1/model/protected_instance_add_tags_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/protected_instance_attach_replication_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/protected_instance_attach_replication_request_params.py +142 -0
- huaweicloudsdksdrs/v1/model/protected_instance_attachment.py +142 -0
- huaweicloudsdksdrs/v1/model/protected_instance_delete_nic_request_body.py +114 -0
- huaweicloudsdksdrs/v1/model/quota_params.py +114 -0
- huaweicloudsdksdrs/v1/model/quota_resource_params.py +226 -0
- huaweicloudsdksdrs/v1/model/replication_attachment.py +142 -0
- huaweicloudsdksdrs/v1/model/replication_cluster_params.py +114 -0
- huaweicloudsdksdrs/v1/model/replication_record_metadata.py +198 -0
- huaweicloudsdksdrs/v1/model/resize_protected_instance_request.py +139 -0
- huaweicloudsdksdrs/v1/model/resize_protected_instance_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/resize_protected_instance_request_params.py +231 -0
- huaweicloudsdksdrs/v1/model/resize_protected_instance_response.py +116 -0
- huaweicloudsdksdrs/v1/model/resource_id.py +114 -0
- huaweicloudsdksdrs/v1/model/resource_params.py +195 -0
- huaweicloudsdksdrs/v1/model/resource_tag.py +142 -0
- huaweicloudsdksdrs/v1/model/reverse_protection_group_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/reverse_protection_group_request_params.py +114 -0
- huaweicloudsdksdrs/v1/model/rpo_stattistics_params.py +254 -0
- huaweicloudsdksdrs/v1/model/security_groups_params.py +114 -0
- huaweicloudsdksdrs/v1/model/server_info.py +143 -0
- huaweicloudsdksdrs/v1/model/show_active_active_domain_params.py +246 -0
- huaweicloudsdksdrs/v1/model/show_api_version_links_params.py +142 -0
- huaweicloudsdksdrs/v1/model/show_api_version_params.py +254 -0
- huaweicloudsdksdrs/v1/model/show_disaster_recovery_drill_params.py +310 -0
- huaweicloudsdksdrs/v1/model/show_disaster_recovery_drill_request.py +114 -0
- huaweicloudsdksdrs/v1/model/show_disaster_recovery_drill_response.py +112 -0
- huaweicloudsdksdrs/v1/model/show_job_status_request.py +114 -0
- huaweicloudsdksdrs/v1/model/show_job_status_response.py +315 -0
- huaweicloudsdksdrs/v1/model/show_protected_instance_params.py +475 -0
- huaweicloudsdksdrs/v1/model/show_protected_instance_request.py +114 -0
- huaweicloudsdksdrs/v1/model/show_protected_instance_response.py +112 -0
- huaweicloudsdksdrs/v1/model/show_protection_group_params.py +786 -0
- huaweicloudsdksdrs/v1/model/show_protection_group_request.py +114 -0
- huaweicloudsdksdrs/v1/model/show_protection_group_response.py +112 -0
- huaweicloudsdksdrs/v1/model/show_quota_request.py +84 -0
- huaweicloudsdksdrs/v1/model/show_quota_response.py +112 -0
- huaweicloudsdksdrs/v1/model/show_replication_params.py +530 -0
- huaweicloudsdksdrs/v1/model/show_replication_request.py +114 -0
- huaweicloudsdksdrs/v1/model/show_replication_response.py +112 -0
- huaweicloudsdksdrs/v1/model/show_specified_api_version_request.py +114 -0
- huaweicloudsdksdrs/v1/model/show_specified_api_version_response.py +112 -0
- huaweicloudsdksdrs/v1/model/start_failover_protection_group_request.py +139 -0
- huaweicloudsdksdrs/v1/model/start_failover_protection_group_response.py +116 -0
- huaweicloudsdksdrs/v1/model/start_protection_group_request.py +139 -0
- huaweicloudsdksdrs/v1/model/start_protection_group_request_body.py +114 -0
- huaweicloudsdksdrs/v1/model/start_protection_group_response.py +116 -0
- huaweicloudsdksdrs/v1/model/start_reverse_protection_group_request.py +139 -0
- huaweicloudsdksdrs/v1/model/start_reverse_protection_group_response.py +116 -0
- huaweicloudsdksdrs/v1/model/stop_protection_group_request.py +139 -0
- huaweicloudsdksdrs/v1/model/stop_protection_group_request_body.py +114 -0
- huaweicloudsdksdrs/v1/model/stop_protection_group_response.py +116 -0
- huaweicloudsdksdrs/v1/model/sub_job_entities.py +260 -0
- huaweicloudsdksdrs/v1/model/sub_job_params.py +306 -0
- huaweicloudsdksdrs/v1/model/tag_params.py +142 -0
- huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_request.py +139 -0
- huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_request_params.py +114 -0
- huaweicloudsdksdrs/v1/model/update_disaster_recovery_drill_name_response.py +112 -0
- huaweicloudsdksdrs/v1/model/update_protected_instance_name_request.py +139 -0
- huaweicloudsdksdrs/v1/model/update_protected_instance_name_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/update_protected_instance_name_request_params.py +114 -0
- huaweicloudsdksdrs/v1/model/update_protected_instance_name_response.py +112 -0
- huaweicloudsdksdrs/v1/model/update_protection_group_name_request.py +139 -0
- huaweicloudsdksdrs/v1/model/update_protection_group_name_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/update_protection_group_name_request_params.py +114 -0
- huaweicloudsdksdrs/v1/model/update_protection_group_name_response.py +112 -0
- huaweicloudsdksdrs/v1/model/update_replication_name_request.py +139 -0
- huaweicloudsdksdrs/v1/model/update_replication_name_request_body.py +110 -0
- huaweicloudsdksdrs/v1/model/update_replication_name_request_params.py +114 -0
- huaweicloudsdksdrs/v1/model/update_replication_name_response.py +112 -0
- huaweicloudsdksdrs/v1/region/__init__.py +0 -0
- huaweicloudsdksdrs/v1/region/sdrs_region.py +49 -0
- huaweicloudsdksdrs/v1/sdrs_async_client.py +3390 -0
- huaweicloudsdksdrs/v1/sdrs_client.py +3387 -0
- huaweicloudsdksdrs-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdksdrs-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdksdrs-3.1.160.dist-info/RECORD +177 -0
- huaweicloudsdksdrs-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdksdrs-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateProtectionGroupRequest:
|
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
|
+
'body': 'CreateProtectionGroupRequestBody'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""CreateProtectionGroupRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreateProtectionGroupRequest
|
33
|
+
:type body: :class:`huaweicloudsdksdrs.v1.CreateProtectionGroupRequestBody`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
r"""Gets the body of this CreateProtectionGroupRequest.
|
47
|
+
|
48
|
+
:return: The body of this CreateProtectionGroupRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdksdrs.v1.CreateProtectionGroupRequestBody`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this CreateProtectionGroupRequest.
|
56
|
+
|
57
|
+
:param body: The body of this CreateProtectionGroupRequest.
|
58
|
+
:type body: :class:`huaweicloudsdksdrs.v1.CreateProtectionGroupRequestBody`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, CreateProtectionGroupRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|
@@ -0,0 +1,110 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateProtectionGroupRequestBody:
|
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
|
+
'server_group': 'CreateProtectionGroupRequestParams'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'server_group': 'server_group'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, server_group=None):
|
28
|
+
r"""CreateProtectionGroupRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param server_group:
|
33
|
+
:type server_group: :class:`huaweicloudsdksdrs.v1.CreateProtectionGroupRequestParams`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._server_group = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.server_group = server_group
|
42
|
+
|
43
|
+
@property
|
44
|
+
def server_group(self):
|
45
|
+
r"""Gets the server_group of this CreateProtectionGroupRequestBody.
|
46
|
+
|
47
|
+
:return: The server_group of this CreateProtectionGroupRequestBody.
|
48
|
+
:rtype: :class:`huaweicloudsdksdrs.v1.CreateProtectionGroupRequestParams`
|
49
|
+
"""
|
50
|
+
return self._server_group
|
51
|
+
|
52
|
+
@server_group.setter
|
53
|
+
def server_group(self, server_group):
|
54
|
+
r"""Sets the server_group of this CreateProtectionGroupRequestBody.
|
55
|
+
|
56
|
+
:param server_group: The server_group of this CreateProtectionGroupRequestBody.
|
57
|
+
:type server_group: :class:`huaweicloudsdksdrs.v1.CreateProtectionGroupRequestParams`
|
58
|
+
"""
|
59
|
+
self._server_group = server_group
|
60
|
+
|
61
|
+
def to_dict(self):
|
62
|
+
"""Returns the model properties as a dict"""
|
63
|
+
result = {}
|
64
|
+
|
65
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
66
|
+
value = getattr(self, attr)
|
67
|
+
if isinstance(value, list):
|
68
|
+
result[attr] = list(map(
|
69
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
70
|
+
value
|
71
|
+
))
|
72
|
+
elif hasattr(value, "to_dict"):
|
73
|
+
result[attr] = value.to_dict()
|
74
|
+
elif isinstance(value, dict):
|
75
|
+
result[attr] = dict(map(
|
76
|
+
lambda item: (item[0], item[1].to_dict())
|
77
|
+
if hasattr(item[1], "to_dict") else item,
|
78
|
+
value.items()
|
79
|
+
))
|
80
|
+
else:
|
81
|
+
if attr in self.sensitive_list:
|
82
|
+
result[attr] = "****"
|
83
|
+
else:
|
84
|
+
result[attr] = value
|
85
|
+
|
86
|
+
return result
|
87
|
+
|
88
|
+
def to_str(self):
|
89
|
+
"""Returns the string representation of the model"""
|
90
|
+
import simplejson as json
|
91
|
+
if six.PY2:
|
92
|
+
import sys
|
93
|
+
reload(sys)
|
94
|
+
sys.setdefaultencoding("utf-8")
|
95
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
96
|
+
|
97
|
+
def __repr__(self):
|
98
|
+
"""For `print`"""
|
99
|
+
return self.to_str()
|
100
|
+
|
101
|
+
def __eq__(self, other):
|
102
|
+
"""Returns true if both objects are equal"""
|
103
|
+
if not isinstance(other, CreateProtectionGroupRequestBody):
|
104
|
+
return False
|
105
|
+
|
106
|
+
return self.__dict__ == other.__dict__
|
107
|
+
|
108
|
+
def __ne__(self, other):
|
109
|
+
"""Returns true if both objects are not equal"""
|
110
|
+
return not self == other
|
@@ -0,0 +1,284 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateProtectionGroupRequestParams:
|
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
|
+
'name': 'str',
|
21
|
+
'description': 'str',
|
22
|
+
'source_availability_zone': 'str',
|
23
|
+
'target_availability_zone': 'str',
|
24
|
+
'domain_id': 'str',
|
25
|
+
'source_vpc_id': 'str',
|
26
|
+
'dr_type': 'str'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'name': 'name',
|
31
|
+
'description': 'description',
|
32
|
+
'source_availability_zone': 'source_availability_zone',
|
33
|
+
'target_availability_zone': 'target_availability_zone',
|
34
|
+
'domain_id': 'domain_id',
|
35
|
+
'source_vpc_id': 'source_vpc_id',
|
36
|
+
'dr_type': 'dr_type'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, name=None, description=None, source_availability_zone=None, target_availability_zone=None, domain_id=None, source_vpc_id=None, dr_type=None):
|
40
|
+
r"""CreateProtectionGroupRequestParams
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param name: 指定保护组的名称,最大支持长度为64个字节。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
|
45
|
+
:type name: str
|
46
|
+
:param description: 指定保护组的描述,最大支持长度为64个字节。不能包含左尖括号(<)或右尖括号(>)。
|
47
|
+
:type description: str
|
48
|
+
:param source_availability_zone: 指定保护组的生产站点可用区名称。
|
49
|
+
:type source_availability_zone: str
|
50
|
+
:param target_availability_zone: 指定保护组的容灾站点可用区名称。
|
51
|
+
:type target_availability_zone: str
|
52
|
+
:param domain_id: 指定双活域的ID。
|
53
|
+
:type domain_id: str
|
54
|
+
:param source_vpc_id: 生产站点虚拟私有云ID。
|
55
|
+
:type source_vpc_id: str
|
56
|
+
:param dr_type: 部署模式。默认值为“migration”,migration表示VPC内迁移。
|
57
|
+
:type dr_type: str
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._name = None
|
63
|
+
self._description = None
|
64
|
+
self._source_availability_zone = None
|
65
|
+
self._target_availability_zone = None
|
66
|
+
self._domain_id = None
|
67
|
+
self._source_vpc_id = None
|
68
|
+
self._dr_type = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
self.name = name
|
72
|
+
if description is not None:
|
73
|
+
self.description = description
|
74
|
+
self.source_availability_zone = source_availability_zone
|
75
|
+
self.target_availability_zone = target_availability_zone
|
76
|
+
self.domain_id = domain_id
|
77
|
+
self.source_vpc_id = source_vpc_id
|
78
|
+
if dr_type is not None:
|
79
|
+
self.dr_type = dr_type
|
80
|
+
|
81
|
+
@property
|
82
|
+
def name(self):
|
83
|
+
r"""Gets the name of this CreateProtectionGroupRequestParams.
|
84
|
+
|
85
|
+
指定保护组的名称,最大支持长度为64个字节。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
|
86
|
+
|
87
|
+
:return: The name of this CreateProtectionGroupRequestParams.
|
88
|
+
:rtype: str
|
89
|
+
"""
|
90
|
+
return self._name
|
91
|
+
|
92
|
+
@name.setter
|
93
|
+
def name(self, name):
|
94
|
+
r"""Sets the name of this CreateProtectionGroupRequestParams.
|
95
|
+
|
96
|
+
指定保护组的名称,最大支持长度为64个字节。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
|
97
|
+
|
98
|
+
:param name: The name of this CreateProtectionGroupRequestParams.
|
99
|
+
:type name: str
|
100
|
+
"""
|
101
|
+
self._name = name
|
102
|
+
|
103
|
+
@property
|
104
|
+
def description(self):
|
105
|
+
r"""Gets the description of this CreateProtectionGroupRequestParams.
|
106
|
+
|
107
|
+
指定保护组的描述,最大支持长度为64个字节。不能包含左尖括号(<)或右尖括号(>)。
|
108
|
+
|
109
|
+
:return: The description of this CreateProtectionGroupRequestParams.
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._description
|
113
|
+
|
114
|
+
@description.setter
|
115
|
+
def description(self, description):
|
116
|
+
r"""Sets the description of this CreateProtectionGroupRequestParams.
|
117
|
+
|
118
|
+
指定保护组的描述,最大支持长度为64个字节。不能包含左尖括号(<)或右尖括号(>)。
|
119
|
+
|
120
|
+
:param description: The description of this CreateProtectionGroupRequestParams.
|
121
|
+
:type description: str
|
122
|
+
"""
|
123
|
+
self._description = description
|
124
|
+
|
125
|
+
@property
|
126
|
+
def source_availability_zone(self):
|
127
|
+
r"""Gets the source_availability_zone of this CreateProtectionGroupRequestParams.
|
128
|
+
|
129
|
+
指定保护组的生产站点可用区名称。
|
130
|
+
|
131
|
+
:return: The source_availability_zone of this CreateProtectionGroupRequestParams.
|
132
|
+
:rtype: str
|
133
|
+
"""
|
134
|
+
return self._source_availability_zone
|
135
|
+
|
136
|
+
@source_availability_zone.setter
|
137
|
+
def source_availability_zone(self, source_availability_zone):
|
138
|
+
r"""Sets the source_availability_zone of this CreateProtectionGroupRequestParams.
|
139
|
+
|
140
|
+
指定保护组的生产站点可用区名称。
|
141
|
+
|
142
|
+
:param source_availability_zone: The source_availability_zone of this CreateProtectionGroupRequestParams.
|
143
|
+
:type source_availability_zone: str
|
144
|
+
"""
|
145
|
+
self._source_availability_zone = source_availability_zone
|
146
|
+
|
147
|
+
@property
|
148
|
+
def target_availability_zone(self):
|
149
|
+
r"""Gets the target_availability_zone of this CreateProtectionGroupRequestParams.
|
150
|
+
|
151
|
+
指定保护组的容灾站点可用区名称。
|
152
|
+
|
153
|
+
:return: The target_availability_zone of this CreateProtectionGroupRequestParams.
|
154
|
+
:rtype: str
|
155
|
+
"""
|
156
|
+
return self._target_availability_zone
|
157
|
+
|
158
|
+
@target_availability_zone.setter
|
159
|
+
def target_availability_zone(self, target_availability_zone):
|
160
|
+
r"""Sets the target_availability_zone of this CreateProtectionGroupRequestParams.
|
161
|
+
|
162
|
+
指定保护组的容灾站点可用区名称。
|
163
|
+
|
164
|
+
:param target_availability_zone: The target_availability_zone of this CreateProtectionGroupRequestParams.
|
165
|
+
:type target_availability_zone: str
|
166
|
+
"""
|
167
|
+
self._target_availability_zone = target_availability_zone
|
168
|
+
|
169
|
+
@property
|
170
|
+
def domain_id(self):
|
171
|
+
r"""Gets the domain_id of this CreateProtectionGroupRequestParams.
|
172
|
+
|
173
|
+
指定双活域的ID。
|
174
|
+
|
175
|
+
:return: The domain_id of this CreateProtectionGroupRequestParams.
|
176
|
+
:rtype: str
|
177
|
+
"""
|
178
|
+
return self._domain_id
|
179
|
+
|
180
|
+
@domain_id.setter
|
181
|
+
def domain_id(self, domain_id):
|
182
|
+
r"""Sets the domain_id of this CreateProtectionGroupRequestParams.
|
183
|
+
|
184
|
+
指定双活域的ID。
|
185
|
+
|
186
|
+
:param domain_id: The domain_id of this CreateProtectionGroupRequestParams.
|
187
|
+
:type domain_id: str
|
188
|
+
"""
|
189
|
+
self._domain_id = domain_id
|
190
|
+
|
191
|
+
@property
|
192
|
+
def source_vpc_id(self):
|
193
|
+
r"""Gets the source_vpc_id of this CreateProtectionGroupRequestParams.
|
194
|
+
|
195
|
+
生产站点虚拟私有云ID。
|
196
|
+
|
197
|
+
:return: The source_vpc_id of this CreateProtectionGroupRequestParams.
|
198
|
+
:rtype: str
|
199
|
+
"""
|
200
|
+
return self._source_vpc_id
|
201
|
+
|
202
|
+
@source_vpc_id.setter
|
203
|
+
def source_vpc_id(self, source_vpc_id):
|
204
|
+
r"""Sets the source_vpc_id of this CreateProtectionGroupRequestParams.
|
205
|
+
|
206
|
+
生产站点虚拟私有云ID。
|
207
|
+
|
208
|
+
:param source_vpc_id: The source_vpc_id of this CreateProtectionGroupRequestParams.
|
209
|
+
:type source_vpc_id: str
|
210
|
+
"""
|
211
|
+
self._source_vpc_id = source_vpc_id
|
212
|
+
|
213
|
+
@property
|
214
|
+
def dr_type(self):
|
215
|
+
r"""Gets the dr_type of this CreateProtectionGroupRequestParams.
|
216
|
+
|
217
|
+
部署模式。默认值为“migration”,migration表示VPC内迁移。
|
218
|
+
|
219
|
+
:return: The dr_type of this CreateProtectionGroupRequestParams.
|
220
|
+
:rtype: str
|
221
|
+
"""
|
222
|
+
return self._dr_type
|
223
|
+
|
224
|
+
@dr_type.setter
|
225
|
+
def dr_type(self, dr_type):
|
226
|
+
r"""Sets the dr_type of this CreateProtectionGroupRequestParams.
|
227
|
+
|
228
|
+
部署模式。默认值为“migration”,migration表示VPC内迁移。
|
229
|
+
|
230
|
+
:param dr_type: The dr_type of this CreateProtectionGroupRequestParams.
|
231
|
+
:type dr_type: str
|
232
|
+
"""
|
233
|
+
self._dr_type = dr_type
|
234
|
+
|
235
|
+
def to_dict(self):
|
236
|
+
"""Returns the model properties as a dict"""
|
237
|
+
result = {}
|
238
|
+
|
239
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
240
|
+
value = getattr(self, attr)
|
241
|
+
if isinstance(value, list):
|
242
|
+
result[attr] = list(map(
|
243
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
244
|
+
value
|
245
|
+
))
|
246
|
+
elif hasattr(value, "to_dict"):
|
247
|
+
result[attr] = value.to_dict()
|
248
|
+
elif isinstance(value, dict):
|
249
|
+
result[attr] = dict(map(
|
250
|
+
lambda item: (item[0], item[1].to_dict())
|
251
|
+
if hasattr(item[1], "to_dict") else item,
|
252
|
+
value.items()
|
253
|
+
))
|
254
|
+
else:
|
255
|
+
if attr in self.sensitive_list:
|
256
|
+
result[attr] = "****"
|
257
|
+
else:
|
258
|
+
result[attr] = value
|
259
|
+
|
260
|
+
return result
|
261
|
+
|
262
|
+
def to_str(self):
|
263
|
+
"""Returns the string representation of the model"""
|
264
|
+
import simplejson as json
|
265
|
+
if six.PY2:
|
266
|
+
import sys
|
267
|
+
reload(sys)
|
268
|
+
sys.setdefaultencoding("utf-8")
|
269
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
270
|
+
|
271
|
+
def __repr__(self):
|
272
|
+
"""For `print`"""
|
273
|
+
return self.to_str()
|
274
|
+
|
275
|
+
def __eq__(self, other):
|
276
|
+
"""Returns true if both objects are equal"""
|
277
|
+
if not isinstance(other, CreateProtectionGroupRequestParams):
|
278
|
+
return False
|
279
|
+
|
280
|
+
return self.__dict__ == other.__dict__
|
281
|
+
|
282
|
+
def __ne__(self, other):
|
283
|
+
"""Returns true if both objects are not equal"""
|
284
|
+
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 CreateProtectionGroupResponse(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"""CreateProtectionGroupResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param job_id: 成功返回jobId信息
|
34
|
+
:type job_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateProtectionGroupResponse, 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 CreateProtectionGroupResponse.
|
48
|
+
|
49
|
+
成功返回jobId信息
|
50
|
+
|
51
|
+
:return: The job_id of this CreateProtectionGroupResponse.
|
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 CreateProtectionGroupResponse.
|
59
|
+
|
60
|
+
成功返回jobId信息
|
61
|
+
|
62
|
+
:param job_id: The job_id of this CreateProtectionGroupResponse.
|
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, CreateProtectionGroupResponse):
|
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
|