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,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 DeleteReplicationResponse(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"""DeleteReplicationResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param job_id: 成功返回jobId信息
|
34
|
+
:type job_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(DeleteReplicationResponse, 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 DeleteReplicationResponse.
|
48
|
+
|
49
|
+
成功返回jobId信息
|
50
|
+
|
51
|
+
:return: The job_id of this DeleteReplicationResponse.
|
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 DeleteReplicationResponse.
|
59
|
+
|
60
|
+
成功返回jobId信息
|
61
|
+
|
62
|
+
:param job_id: The job_id of this DeleteReplicationResponse.
|
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, DeleteReplicationResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteResourceTag:
|
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
|
+
'key': 'str',
|
21
|
+
'value': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'key': 'key',
|
26
|
+
'value': 'value'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, key=None, value=None):
|
30
|
+
r"""DeleteResourceTag
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param key: 键。同一资源的key值不能重复。最大长度为36个UNICODE字符。key不能为空,不允许为空字符串。不能包含以下字符:非打印字符ASCII(0-31)特殊字符“*”,“<”,“>”,“\\”,“=”,“,”,“|”,“/”键。不能为空。对于同一资源键值唯一。
|
35
|
+
:type key: str
|
36
|
+
:param value: 值。最大长度为43个UNICODE字符。删除时如果value有值按照key/value删除,如果value没值,则按照key删除。当value存在时,不能为空,可以为空字符串。不能包含以下字符:非打印字符ASCII(0-31)特殊字符“*”,“<”,“>”,“\\”,“=”,“,”,“|”,“/”。长度不超过43个字符。
|
37
|
+
:type value: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._key = None
|
43
|
+
self._value = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.key = key
|
47
|
+
if value is not None:
|
48
|
+
self.value = value
|
49
|
+
|
50
|
+
@property
|
51
|
+
def key(self):
|
52
|
+
r"""Gets the key of this DeleteResourceTag.
|
53
|
+
|
54
|
+
键。同一资源的key值不能重复。最大长度为36个UNICODE字符。key不能为空,不允许为空字符串。不能包含以下字符:非打印字符ASCII(0-31)特殊字符“*”,“<”,“>”,“\\”,“=”,“,”,“|”,“/”键。不能为空。对于同一资源键值唯一。
|
55
|
+
|
56
|
+
:return: The key of this DeleteResourceTag.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._key
|
60
|
+
|
61
|
+
@key.setter
|
62
|
+
def key(self, key):
|
63
|
+
r"""Sets the key of this DeleteResourceTag.
|
64
|
+
|
65
|
+
键。同一资源的key值不能重复。最大长度为36个UNICODE字符。key不能为空,不允许为空字符串。不能包含以下字符:非打印字符ASCII(0-31)特殊字符“*”,“<”,“>”,“\\”,“=”,“,”,“|”,“/”键。不能为空。对于同一资源键值唯一。
|
66
|
+
|
67
|
+
:param key: The key of this DeleteResourceTag.
|
68
|
+
:type key: str
|
69
|
+
"""
|
70
|
+
self._key = key
|
71
|
+
|
72
|
+
@property
|
73
|
+
def value(self):
|
74
|
+
r"""Gets the value of this DeleteResourceTag.
|
75
|
+
|
76
|
+
值。最大长度为43个UNICODE字符。删除时如果value有值按照key/value删除,如果value没值,则按照key删除。当value存在时,不能为空,可以为空字符串。不能包含以下字符:非打印字符ASCII(0-31)特殊字符“*”,“<”,“>”,“\\”,“=”,“,”,“|”,“/”。长度不超过43个字符。
|
77
|
+
|
78
|
+
:return: The value of this DeleteResourceTag.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._value
|
82
|
+
|
83
|
+
@value.setter
|
84
|
+
def value(self, value):
|
85
|
+
r"""Sets the value of this DeleteResourceTag.
|
86
|
+
|
87
|
+
值。最大长度为43个UNICODE字符。删除时如果value有值按照key/value删除,如果value没值,则按照key删除。当value存在时,不能为空,可以为空字符串。不能包含以下字符:非打印字符ASCII(0-31)特殊字符“*”,“<”,“>”,“\\”,“=”,“,”,“|”,“/”。长度不超过43个字符。
|
88
|
+
|
89
|
+
:param value: The value of this DeleteResourceTag.
|
90
|
+
:type value: str
|
91
|
+
"""
|
92
|
+
self._value = value
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, DeleteResourceTag):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
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 DeleteServerGroupFailureJobsRequest:
|
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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'server_group_id': 'server_group_id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, server_group_id=None):
|
28
|
+
r"""DeleteServerGroupFailureJobsRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param server_group_id: 保护组ID。
|
33
|
+
:type server_group_id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._server_group_id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.server_group_id = server_group_id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def server_group_id(self):
|
45
|
+
r"""Gets the server_group_id of this DeleteServerGroupFailureJobsRequest.
|
46
|
+
|
47
|
+
保护组ID。
|
48
|
+
|
49
|
+
:return: The server_group_id of this DeleteServerGroupFailureJobsRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._server_group_id
|
53
|
+
|
54
|
+
@server_group_id.setter
|
55
|
+
def server_group_id(self, server_group_id):
|
56
|
+
r"""Sets the server_group_id of this DeleteServerGroupFailureJobsRequest.
|
57
|
+
|
58
|
+
保护组ID。
|
59
|
+
|
60
|
+
:param server_group_id: The server_group_id of this DeleteServerGroupFailureJobsRequest.
|
61
|
+
:type server_group_id: str
|
62
|
+
"""
|
63
|
+
self._server_group_id = server_group_id
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, DeleteServerGroupFailureJobsRequest):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class DeleteServerGroupFailureJobsResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""DeleteServerGroupFailureJobsResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(DeleteServerGroupFailureJobsResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, DeleteServerGroupFailureJobsResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DetachProtectedInstanceReplicationRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'protected_instance_id': 'str',
|
21
|
+
'replication_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'protected_instance_id': 'protected_instance_id',
|
26
|
+
'replication_id': 'replication_id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, protected_instance_id=None, replication_id=None):
|
30
|
+
r"""DetachProtectedInstanceReplicationRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param protected_instance_id: 保护实例的ID。
|
35
|
+
:type protected_instance_id: str
|
36
|
+
:param replication_id: 复制对的ID。
|
37
|
+
:type replication_id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._protected_instance_id = None
|
43
|
+
self._replication_id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.protected_instance_id = protected_instance_id
|
47
|
+
self.replication_id = replication_id
|
48
|
+
|
49
|
+
@property
|
50
|
+
def protected_instance_id(self):
|
51
|
+
r"""Gets the protected_instance_id of this DetachProtectedInstanceReplicationRequest.
|
52
|
+
|
53
|
+
保护实例的ID。
|
54
|
+
|
55
|
+
:return: The protected_instance_id of this DetachProtectedInstanceReplicationRequest.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._protected_instance_id
|
59
|
+
|
60
|
+
@protected_instance_id.setter
|
61
|
+
def protected_instance_id(self, protected_instance_id):
|
62
|
+
r"""Sets the protected_instance_id of this DetachProtectedInstanceReplicationRequest.
|
63
|
+
|
64
|
+
保护实例的ID。
|
65
|
+
|
66
|
+
:param protected_instance_id: The protected_instance_id of this DetachProtectedInstanceReplicationRequest.
|
67
|
+
:type protected_instance_id: str
|
68
|
+
"""
|
69
|
+
self._protected_instance_id = protected_instance_id
|
70
|
+
|
71
|
+
@property
|
72
|
+
def replication_id(self):
|
73
|
+
r"""Gets the replication_id of this DetachProtectedInstanceReplicationRequest.
|
74
|
+
|
75
|
+
复制对的ID。
|
76
|
+
|
77
|
+
:return: The replication_id of this DetachProtectedInstanceReplicationRequest.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._replication_id
|
81
|
+
|
82
|
+
@replication_id.setter
|
83
|
+
def replication_id(self, replication_id):
|
84
|
+
r"""Sets the replication_id of this DetachProtectedInstanceReplicationRequest.
|
85
|
+
|
86
|
+
复制对的ID。
|
87
|
+
|
88
|
+
:param replication_id: The replication_id of this DetachProtectedInstanceReplicationRequest.
|
89
|
+
:type replication_id: str
|
90
|
+
"""
|
91
|
+
self._replication_id = replication_id
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, DetachProtectedInstanceReplicationRequest):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|