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,110 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateProtectedInstanceRequestBody:
|
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': 'CreateProtectedInstanceRequestParams'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'protected_instance': 'protected_instance'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, protected_instance=None):
|
28
|
+
r"""CreateProtectedInstanceRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param protected_instance:
|
33
|
+
:type protected_instance: :class:`huaweicloudsdksdrs.v1.CreateProtectedInstanceRequestParams`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._protected_instance = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.protected_instance = protected_instance
|
42
|
+
|
43
|
+
@property
|
44
|
+
def protected_instance(self):
|
45
|
+
r"""Gets the protected_instance of this CreateProtectedInstanceRequestBody.
|
46
|
+
|
47
|
+
:return: The protected_instance of this CreateProtectedInstanceRequestBody.
|
48
|
+
:rtype: :class:`huaweicloudsdksdrs.v1.CreateProtectedInstanceRequestParams`
|
49
|
+
"""
|
50
|
+
return self._protected_instance
|
51
|
+
|
52
|
+
@protected_instance.setter
|
53
|
+
def protected_instance(self, protected_instance):
|
54
|
+
r"""Sets the protected_instance of this CreateProtectedInstanceRequestBody.
|
55
|
+
|
56
|
+
:param protected_instance: The protected_instance of this CreateProtectedInstanceRequestBody.
|
57
|
+
:type protected_instance: :class:`huaweicloudsdksdrs.v1.CreateProtectedInstanceRequestParams`
|
58
|
+
"""
|
59
|
+
self._protected_instance = protected_instance
|
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, CreateProtectedInstanceRequestBody):
|
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,402 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateProtectedInstanceRequestParams:
|
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_id': 'str',
|
21
|
+
'server_id': 'str',
|
22
|
+
'name': 'str',
|
23
|
+
'description': 'str',
|
24
|
+
'cluster_id': 'str',
|
25
|
+
'primary_subnet_id': 'str',
|
26
|
+
'primary_ip_address': 'str',
|
27
|
+
'tags': 'list[ResourceTag]',
|
28
|
+
'flavor_ref': 'str',
|
29
|
+
'tenancy': 'str',
|
30
|
+
'dedicated_host_id': 'str'
|
31
|
+
}
|
32
|
+
|
33
|
+
attribute_map = {
|
34
|
+
'server_group_id': 'server_group_id',
|
35
|
+
'server_id': 'server_id',
|
36
|
+
'name': 'name',
|
37
|
+
'description': 'description',
|
38
|
+
'cluster_id': 'cluster_id',
|
39
|
+
'primary_subnet_id': 'primary_subnet_id',
|
40
|
+
'primary_ip_address': 'primary_ip_address',
|
41
|
+
'tags': 'tags',
|
42
|
+
'flavor_ref': 'flavorRef',
|
43
|
+
'tenancy': 'tenancy',
|
44
|
+
'dedicated_host_id': 'dedicated_host_id'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, server_group_id=None, server_id=None, name=None, description=None, cluster_id=None, primary_subnet_id=None, primary_ip_address=None, tags=None, flavor_ref=None, tenancy=None, dedicated_host_id=None):
|
48
|
+
r"""CreateProtectedInstanceRequestParams
|
49
|
+
|
50
|
+
The model defined in huaweicloud sdk
|
51
|
+
|
52
|
+
:param server_group_id: 需要加入的保护组ID。
|
53
|
+
:type server_group_id: str
|
54
|
+
:param server_id: 指定的生产站点云服务器ID。
|
55
|
+
:type server_id: str
|
56
|
+
:param name: 指定保护实例的名称,最大支持长度为64个字节。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
|
57
|
+
:type name: str
|
58
|
+
:param description: 指定保护实例的描述,最大支持长度为64个字节。不能包含左尖括号(<)或右尖括号(>)。
|
59
|
+
:type description: str
|
60
|
+
:param cluster_id: 专属分布式存储池ID。 当容灾站点磁盘选择专属分布式存储时指定该字段。
|
61
|
+
:type cluster_id: str
|
62
|
+
:param primary_subnet_id: 容灾站点云服务器主网卡所在的子网subnetID,与neutron_network_id字段值一致。
|
63
|
+
:type primary_subnet_id: str
|
64
|
+
:param primary_ip_address: 容灾站点云服务器主网卡IP地址。此参数仅在传入primary_subnet_id时有效。指定primary_subnet_id时,如果不指定该参数,将自动分配容灾站点云服务器主网卡IP地址。
|
65
|
+
:type primary_ip_address: str
|
66
|
+
:param tags: 标签列表。
|
67
|
+
:type tags: list[:class:`huaweicloudsdksdrs.v1.ResourceTag`]
|
68
|
+
:param flavor_ref: 指定的容灾站点云服务器的flavor ID。 查询flavor列表,请参见查询云服务器规格变更支持列表。 说明:不指定此参数时,容灾站点云服务器的flavor ID默认和生产站点云服务器保持一致。 不同规格的云服务器在性能上存在差异,可能会对云服务器上运行的应用产生影响。为保证切换/故障切换后云服务器的性能,建议容灾站点服务器的规格(CPU、内存)不低于生产站点云服务器的规格(CPU、内存)。 生产站点云服务器和容灾站点云服务器的flavor存在匹配关系,可以通过上述接口使用生产站点云服务器过滤出满足要求的容灾站点云服务器flavor。
|
69
|
+
:type flavor_ref: str
|
70
|
+
:param tenancy: 在专属主机或共享池中创建容灾站点云服务器,默认为在共享池中创建。 值为:shared或dedicated。shared:表示共享池。 dedicated:表示专属主机。
|
71
|
+
:type tenancy: str
|
72
|
+
:param dedicated_host_id: 专属主机id,此属性仅在tenancy值为dedicated时有效。 若不指定此属性,系统将自动分配租户可以自动放置弹性云服务器的专属主机。
|
73
|
+
:type dedicated_host_id: str
|
74
|
+
"""
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
self._server_group_id = None
|
79
|
+
self._server_id = None
|
80
|
+
self._name = None
|
81
|
+
self._description = None
|
82
|
+
self._cluster_id = None
|
83
|
+
self._primary_subnet_id = None
|
84
|
+
self._primary_ip_address = None
|
85
|
+
self._tags = None
|
86
|
+
self._flavor_ref = None
|
87
|
+
self._tenancy = None
|
88
|
+
self._dedicated_host_id = None
|
89
|
+
self.discriminator = None
|
90
|
+
|
91
|
+
self.server_group_id = server_group_id
|
92
|
+
self.server_id = server_id
|
93
|
+
self.name = name
|
94
|
+
if description is not None:
|
95
|
+
self.description = description
|
96
|
+
if cluster_id is not None:
|
97
|
+
self.cluster_id = cluster_id
|
98
|
+
if primary_subnet_id is not None:
|
99
|
+
self.primary_subnet_id = primary_subnet_id
|
100
|
+
if primary_ip_address is not None:
|
101
|
+
self.primary_ip_address = primary_ip_address
|
102
|
+
if tags is not None:
|
103
|
+
self.tags = tags
|
104
|
+
if flavor_ref is not None:
|
105
|
+
self.flavor_ref = flavor_ref
|
106
|
+
if tenancy is not None:
|
107
|
+
self.tenancy = tenancy
|
108
|
+
if dedicated_host_id is not None:
|
109
|
+
self.dedicated_host_id = dedicated_host_id
|
110
|
+
|
111
|
+
@property
|
112
|
+
def server_group_id(self):
|
113
|
+
r"""Gets the server_group_id of this CreateProtectedInstanceRequestParams.
|
114
|
+
|
115
|
+
需要加入的保护组ID。
|
116
|
+
|
117
|
+
:return: The server_group_id of this CreateProtectedInstanceRequestParams.
|
118
|
+
:rtype: str
|
119
|
+
"""
|
120
|
+
return self._server_group_id
|
121
|
+
|
122
|
+
@server_group_id.setter
|
123
|
+
def server_group_id(self, server_group_id):
|
124
|
+
r"""Sets the server_group_id of this CreateProtectedInstanceRequestParams.
|
125
|
+
|
126
|
+
需要加入的保护组ID。
|
127
|
+
|
128
|
+
:param server_group_id: The server_group_id of this CreateProtectedInstanceRequestParams.
|
129
|
+
:type server_group_id: str
|
130
|
+
"""
|
131
|
+
self._server_group_id = server_group_id
|
132
|
+
|
133
|
+
@property
|
134
|
+
def server_id(self):
|
135
|
+
r"""Gets the server_id of this CreateProtectedInstanceRequestParams.
|
136
|
+
|
137
|
+
指定的生产站点云服务器ID。
|
138
|
+
|
139
|
+
:return: The server_id of this CreateProtectedInstanceRequestParams.
|
140
|
+
:rtype: str
|
141
|
+
"""
|
142
|
+
return self._server_id
|
143
|
+
|
144
|
+
@server_id.setter
|
145
|
+
def server_id(self, server_id):
|
146
|
+
r"""Sets the server_id of this CreateProtectedInstanceRequestParams.
|
147
|
+
|
148
|
+
指定的生产站点云服务器ID。
|
149
|
+
|
150
|
+
:param server_id: The server_id of this CreateProtectedInstanceRequestParams.
|
151
|
+
:type server_id: str
|
152
|
+
"""
|
153
|
+
self._server_id = server_id
|
154
|
+
|
155
|
+
@property
|
156
|
+
def name(self):
|
157
|
+
r"""Gets the name of this CreateProtectedInstanceRequestParams.
|
158
|
+
|
159
|
+
指定保护实例的名称,最大支持长度为64个字节。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
|
160
|
+
|
161
|
+
:return: The name of this CreateProtectedInstanceRequestParams.
|
162
|
+
:rtype: str
|
163
|
+
"""
|
164
|
+
return self._name
|
165
|
+
|
166
|
+
@name.setter
|
167
|
+
def name(self, name):
|
168
|
+
r"""Sets the name of this CreateProtectedInstanceRequestParams.
|
169
|
+
|
170
|
+
指定保护实例的名称,最大支持长度为64个字节。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
|
171
|
+
|
172
|
+
:param name: The name of this CreateProtectedInstanceRequestParams.
|
173
|
+
:type name: str
|
174
|
+
"""
|
175
|
+
self._name = name
|
176
|
+
|
177
|
+
@property
|
178
|
+
def description(self):
|
179
|
+
r"""Gets the description of this CreateProtectedInstanceRequestParams.
|
180
|
+
|
181
|
+
指定保护实例的描述,最大支持长度为64个字节。不能包含左尖括号(<)或右尖括号(>)。
|
182
|
+
|
183
|
+
:return: The description of this CreateProtectedInstanceRequestParams.
|
184
|
+
:rtype: str
|
185
|
+
"""
|
186
|
+
return self._description
|
187
|
+
|
188
|
+
@description.setter
|
189
|
+
def description(self, description):
|
190
|
+
r"""Sets the description of this CreateProtectedInstanceRequestParams.
|
191
|
+
|
192
|
+
指定保护实例的描述,最大支持长度为64个字节。不能包含左尖括号(<)或右尖括号(>)。
|
193
|
+
|
194
|
+
:param description: The description of this CreateProtectedInstanceRequestParams.
|
195
|
+
:type description: str
|
196
|
+
"""
|
197
|
+
self._description = description
|
198
|
+
|
199
|
+
@property
|
200
|
+
def cluster_id(self):
|
201
|
+
r"""Gets the cluster_id of this CreateProtectedInstanceRequestParams.
|
202
|
+
|
203
|
+
专属分布式存储池ID。 当容灾站点磁盘选择专属分布式存储时指定该字段。
|
204
|
+
|
205
|
+
:return: The cluster_id of this CreateProtectedInstanceRequestParams.
|
206
|
+
:rtype: str
|
207
|
+
"""
|
208
|
+
return self._cluster_id
|
209
|
+
|
210
|
+
@cluster_id.setter
|
211
|
+
def cluster_id(self, cluster_id):
|
212
|
+
r"""Sets the cluster_id of this CreateProtectedInstanceRequestParams.
|
213
|
+
|
214
|
+
专属分布式存储池ID。 当容灾站点磁盘选择专属分布式存储时指定该字段。
|
215
|
+
|
216
|
+
:param cluster_id: The cluster_id of this CreateProtectedInstanceRequestParams.
|
217
|
+
:type cluster_id: str
|
218
|
+
"""
|
219
|
+
self._cluster_id = cluster_id
|
220
|
+
|
221
|
+
@property
|
222
|
+
def primary_subnet_id(self):
|
223
|
+
r"""Gets the primary_subnet_id of this CreateProtectedInstanceRequestParams.
|
224
|
+
|
225
|
+
容灾站点云服务器主网卡所在的子网subnetID,与neutron_network_id字段值一致。
|
226
|
+
|
227
|
+
:return: The primary_subnet_id of this CreateProtectedInstanceRequestParams.
|
228
|
+
:rtype: str
|
229
|
+
"""
|
230
|
+
return self._primary_subnet_id
|
231
|
+
|
232
|
+
@primary_subnet_id.setter
|
233
|
+
def primary_subnet_id(self, primary_subnet_id):
|
234
|
+
r"""Sets the primary_subnet_id of this CreateProtectedInstanceRequestParams.
|
235
|
+
|
236
|
+
容灾站点云服务器主网卡所在的子网subnetID,与neutron_network_id字段值一致。
|
237
|
+
|
238
|
+
:param primary_subnet_id: The primary_subnet_id of this CreateProtectedInstanceRequestParams.
|
239
|
+
:type primary_subnet_id: str
|
240
|
+
"""
|
241
|
+
self._primary_subnet_id = primary_subnet_id
|
242
|
+
|
243
|
+
@property
|
244
|
+
def primary_ip_address(self):
|
245
|
+
r"""Gets the primary_ip_address of this CreateProtectedInstanceRequestParams.
|
246
|
+
|
247
|
+
容灾站点云服务器主网卡IP地址。此参数仅在传入primary_subnet_id时有效。指定primary_subnet_id时,如果不指定该参数,将自动分配容灾站点云服务器主网卡IP地址。
|
248
|
+
|
249
|
+
:return: The primary_ip_address of this CreateProtectedInstanceRequestParams.
|
250
|
+
:rtype: str
|
251
|
+
"""
|
252
|
+
return self._primary_ip_address
|
253
|
+
|
254
|
+
@primary_ip_address.setter
|
255
|
+
def primary_ip_address(self, primary_ip_address):
|
256
|
+
r"""Sets the primary_ip_address of this CreateProtectedInstanceRequestParams.
|
257
|
+
|
258
|
+
容灾站点云服务器主网卡IP地址。此参数仅在传入primary_subnet_id时有效。指定primary_subnet_id时,如果不指定该参数,将自动分配容灾站点云服务器主网卡IP地址。
|
259
|
+
|
260
|
+
:param primary_ip_address: The primary_ip_address of this CreateProtectedInstanceRequestParams.
|
261
|
+
:type primary_ip_address: str
|
262
|
+
"""
|
263
|
+
self._primary_ip_address = primary_ip_address
|
264
|
+
|
265
|
+
@property
|
266
|
+
def tags(self):
|
267
|
+
r"""Gets the tags of this CreateProtectedInstanceRequestParams.
|
268
|
+
|
269
|
+
标签列表。
|
270
|
+
|
271
|
+
:return: The tags of this CreateProtectedInstanceRequestParams.
|
272
|
+
:rtype: list[:class:`huaweicloudsdksdrs.v1.ResourceTag`]
|
273
|
+
"""
|
274
|
+
return self._tags
|
275
|
+
|
276
|
+
@tags.setter
|
277
|
+
def tags(self, tags):
|
278
|
+
r"""Sets the tags of this CreateProtectedInstanceRequestParams.
|
279
|
+
|
280
|
+
标签列表。
|
281
|
+
|
282
|
+
:param tags: The tags of this CreateProtectedInstanceRequestParams.
|
283
|
+
:type tags: list[:class:`huaweicloudsdksdrs.v1.ResourceTag`]
|
284
|
+
"""
|
285
|
+
self._tags = tags
|
286
|
+
|
287
|
+
@property
|
288
|
+
def flavor_ref(self):
|
289
|
+
r"""Gets the flavor_ref of this CreateProtectedInstanceRequestParams.
|
290
|
+
|
291
|
+
指定的容灾站点云服务器的flavor ID。 查询flavor列表,请参见查询云服务器规格变更支持列表。 说明:不指定此参数时,容灾站点云服务器的flavor ID默认和生产站点云服务器保持一致。 不同规格的云服务器在性能上存在差异,可能会对云服务器上运行的应用产生影响。为保证切换/故障切换后云服务器的性能,建议容灾站点服务器的规格(CPU、内存)不低于生产站点云服务器的规格(CPU、内存)。 生产站点云服务器和容灾站点云服务器的flavor存在匹配关系,可以通过上述接口使用生产站点云服务器过滤出满足要求的容灾站点云服务器flavor。
|
292
|
+
|
293
|
+
:return: The flavor_ref of this CreateProtectedInstanceRequestParams.
|
294
|
+
:rtype: str
|
295
|
+
"""
|
296
|
+
return self._flavor_ref
|
297
|
+
|
298
|
+
@flavor_ref.setter
|
299
|
+
def flavor_ref(self, flavor_ref):
|
300
|
+
r"""Sets the flavor_ref of this CreateProtectedInstanceRequestParams.
|
301
|
+
|
302
|
+
指定的容灾站点云服务器的flavor ID。 查询flavor列表,请参见查询云服务器规格变更支持列表。 说明:不指定此参数时,容灾站点云服务器的flavor ID默认和生产站点云服务器保持一致。 不同规格的云服务器在性能上存在差异,可能会对云服务器上运行的应用产生影响。为保证切换/故障切换后云服务器的性能,建议容灾站点服务器的规格(CPU、内存)不低于生产站点云服务器的规格(CPU、内存)。 生产站点云服务器和容灾站点云服务器的flavor存在匹配关系,可以通过上述接口使用生产站点云服务器过滤出满足要求的容灾站点云服务器flavor。
|
303
|
+
|
304
|
+
:param flavor_ref: The flavor_ref of this CreateProtectedInstanceRequestParams.
|
305
|
+
:type flavor_ref: str
|
306
|
+
"""
|
307
|
+
self._flavor_ref = flavor_ref
|
308
|
+
|
309
|
+
@property
|
310
|
+
def tenancy(self):
|
311
|
+
r"""Gets the tenancy of this CreateProtectedInstanceRequestParams.
|
312
|
+
|
313
|
+
在专属主机或共享池中创建容灾站点云服务器,默认为在共享池中创建。 值为:shared或dedicated。shared:表示共享池。 dedicated:表示专属主机。
|
314
|
+
|
315
|
+
:return: The tenancy of this CreateProtectedInstanceRequestParams.
|
316
|
+
:rtype: str
|
317
|
+
"""
|
318
|
+
return self._tenancy
|
319
|
+
|
320
|
+
@tenancy.setter
|
321
|
+
def tenancy(self, tenancy):
|
322
|
+
r"""Sets the tenancy of this CreateProtectedInstanceRequestParams.
|
323
|
+
|
324
|
+
在专属主机或共享池中创建容灾站点云服务器,默认为在共享池中创建。 值为:shared或dedicated。shared:表示共享池。 dedicated:表示专属主机。
|
325
|
+
|
326
|
+
:param tenancy: The tenancy of this CreateProtectedInstanceRequestParams.
|
327
|
+
:type tenancy: str
|
328
|
+
"""
|
329
|
+
self._tenancy = tenancy
|
330
|
+
|
331
|
+
@property
|
332
|
+
def dedicated_host_id(self):
|
333
|
+
r"""Gets the dedicated_host_id of this CreateProtectedInstanceRequestParams.
|
334
|
+
|
335
|
+
专属主机id,此属性仅在tenancy值为dedicated时有效。 若不指定此属性,系统将自动分配租户可以自动放置弹性云服务器的专属主机。
|
336
|
+
|
337
|
+
:return: The dedicated_host_id of this CreateProtectedInstanceRequestParams.
|
338
|
+
:rtype: str
|
339
|
+
"""
|
340
|
+
return self._dedicated_host_id
|
341
|
+
|
342
|
+
@dedicated_host_id.setter
|
343
|
+
def dedicated_host_id(self, dedicated_host_id):
|
344
|
+
r"""Sets the dedicated_host_id of this CreateProtectedInstanceRequestParams.
|
345
|
+
|
346
|
+
专属主机id,此属性仅在tenancy值为dedicated时有效。 若不指定此属性,系统将自动分配租户可以自动放置弹性云服务器的专属主机。
|
347
|
+
|
348
|
+
:param dedicated_host_id: The dedicated_host_id of this CreateProtectedInstanceRequestParams.
|
349
|
+
:type dedicated_host_id: str
|
350
|
+
"""
|
351
|
+
self._dedicated_host_id = dedicated_host_id
|
352
|
+
|
353
|
+
def to_dict(self):
|
354
|
+
"""Returns the model properties as a dict"""
|
355
|
+
result = {}
|
356
|
+
|
357
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
358
|
+
value = getattr(self, attr)
|
359
|
+
if isinstance(value, list):
|
360
|
+
result[attr] = list(map(
|
361
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
362
|
+
value
|
363
|
+
))
|
364
|
+
elif hasattr(value, "to_dict"):
|
365
|
+
result[attr] = value.to_dict()
|
366
|
+
elif isinstance(value, dict):
|
367
|
+
result[attr] = dict(map(
|
368
|
+
lambda item: (item[0], item[1].to_dict())
|
369
|
+
if hasattr(item[1], "to_dict") else item,
|
370
|
+
value.items()
|
371
|
+
))
|
372
|
+
else:
|
373
|
+
if attr in self.sensitive_list:
|
374
|
+
result[attr] = "****"
|
375
|
+
else:
|
376
|
+
result[attr] = value
|
377
|
+
|
378
|
+
return result
|
379
|
+
|
380
|
+
def to_str(self):
|
381
|
+
"""Returns the string representation of the model"""
|
382
|
+
import simplejson as json
|
383
|
+
if six.PY2:
|
384
|
+
import sys
|
385
|
+
reload(sys)
|
386
|
+
sys.setdefaultencoding("utf-8")
|
387
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
388
|
+
|
389
|
+
def __repr__(self):
|
390
|
+
"""For `print`"""
|
391
|
+
return self.to_str()
|
392
|
+
|
393
|
+
def __eq__(self, other):
|
394
|
+
"""Returns true if both objects are equal"""
|
395
|
+
if not isinstance(other, CreateProtectedInstanceRequestParams):
|
396
|
+
return False
|
397
|
+
|
398
|
+
return self.__dict__ == other.__dict__
|
399
|
+
|
400
|
+
def __ne__(self, other):
|
401
|
+
"""Returns true if both objects are not equal"""
|
402
|
+
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 CreateProtectedInstanceResponse(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"""CreateProtectedInstanceResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param job_id: 成功返回jobId信息
|
34
|
+
:type job_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateProtectedInstanceResponse, 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 CreateProtectedInstanceResponse.
|
48
|
+
|
49
|
+
成功返回jobId信息
|
50
|
+
|
51
|
+
:return: The job_id of this CreateProtectedInstanceResponse.
|
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 CreateProtectedInstanceResponse.
|
59
|
+
|
60
|
+
成功返回jobId信息
|
61
|
+
|
62
|
+
:param job_id: The job_id of this CreateProtectedInstanceResponse.
|
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, CreateProtectedInstanceResponse):
|
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
|