huaweicloudsdkdcs 3.1.147__py2.py3-none-any.whl → 3.1.149__py2.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.
Potentially problematic release.
This version of huaweicloudsdkdcs might be problematic. Click here for more details.
- huaweicloudsdkdcs/v2/__init__.py +29 -0
- huaweicloudsdkdcs/v2/dcs_async_client.py +604 -0
- huaweicloudsdkdcs/v2/dcs_client.py +604 -0
- huaweicloudsdkdcs/v2/model/__init__.py +29 -0
- huaweicloudsdkdcs/v2/model/band_width.py +144 -0
- huaweicloudsdkdcs/v2/model/create_instance_body.py +3 -3
- huaweicloudsdkdcs/v2/model/create_offline_key_analysis_request.py +139 -0
- huaweicloudsdkdcs/v2/model/create_offline_key_analysis_request_body.py +143 -0
- huaweicloudsdkdcs/v2/model/create_offline_key_analysis_response.py +116 -0
- huaweicloudsdkdcs/v2/model/delete_offline_key_analysis_task_request.py +142 -0
- huaweicloudsdkdcs/v2/model/delete_offline_key_analysis_task_response.py +116 -0
- huaweicloudsdkdcs/v2/model/dims_info.py +144 -0
- huaweicloudsdkdcs/v2/model/download_hot_key_request.py +142 -0
- huaweicloudsdkdcs/v2/model/download_hot_key_response.py +85 -0
- huaweicloudsdkdcs/v2/model/key_space.py +202 -0
- huaweicloudsdkdcs/v2/model/key_type_byte.py +144 -0
- huaweicloudsdkdcs/v2/model/key_type_num.py +144 -0
- huaweicloudsdkdcs/v2/model/largest_key.py +202 -0
- huaweicloudsdkdcs/v2/model/largest_key_prefix.py +202 -0
- huaweicloudsdkdcs/v2/model/list_offline_key_analysis_task_request.py +201 -0
- huaweicloudsdkdcs/v2/model/list_offline_key_analysis_task_response.py +174 -0
- huaweicloudsdkdcs/v2/model/migrate_az_request.py +139 -0
- huaweicloudsdkdcs/v2/model/migrate_az_request_body.py +144 -0
- huaweicloudsdkdcs/v2/model/migrate_az_response.py +85 -0
- huaweicloudsdkdcs/v2/model/offline_key_analysis_record.py +231 -0
- huaweicloudsdkdcs/v2/model/rename_command_resp.py +119 -3
- huaweicloudsdkdcs/v2/model/rollback_exchange_instance_ip_request.py +114 -0
- huaweicloudsdkdcs/v2/model/rollback_exchange_instance_ip_response.py +85 -0
- huaweicloudsdkdcs/v2/model/show_instance_topology_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_instance_topology_response.py +290 -0
- huaweicloudsdkdcs/v2/model/show_offline_key_analysis_task_request.py +142 -0
- huaweicloudsdkdcs/v2/model/show_offline_key_analysis_task_response.py +580 -0
- huaweicloudsdkdcs/v2/model/topology_info.py +538 -0
- huaweicloudsdkdcs/v2/model/update_ip_whitelist_async_request.py +139 -0
- huaweicloudsdkdcs/v2/model/update_ip_whitelist_async_response.py +116 -0
- {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/METADATA +2 -2
- {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/RECORD +40 -11
- {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,174 @@
|
|
|
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 ListOfflineKeyAnalysisTaskResponse(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
|
+
'instance_id': 'str',
|
|
22
|
+
'total': 'int',
|
|
23
|
+
'records': 'list[OfflineKeyAnalysisRecord]'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'instance_id': 'instance_id',
|
|
28
|
+
'total': 'total',
|
|
29
|
+
'records': 'records'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
def __init__(self, instance_id=None, total=None, records=None):
|
|
33
|
+
r"""ListOfflineKeyAnalysisTaskResponse
|
|
34
|
+
|
|
35
|
+
The model defined in huaweicloud sdk
|
|
36
|
+
|
|
37
|
+
:param instance_id: **参数解释**: 实例ID。 **取值范围**: 不涉及。
|
|
38
|
+
:type instance_id: str
|
|
39
|
+
:param total: **参数解释**: 离线全量key分析的总数。 **取值范围**: 不涉及。
|
|
40
|
+
:type total: int
|
|
41
|
+
:param records: **参数解释**: 离线全量key分析记录列表。
|
|
42
|
+
:type records: list[:class:`huaweicloudsdkdcs.v2.OfflineKeyAnalysisRecord`]
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
super(ListOfflineKeyAnalysisTaskResponse, self).__init__()
|
|
46
|
+
|
|
47
|
+
self._instance_id = None
|
|
48
|
+
self._total = None
|
|
49
|
+
self._records = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
|
|
52
|
+
if instance_id is not None:
|
|
53
|
+
self.instance_id = instance_id
|
|
54
|
+
if total is not None:
|
|
55
|
+
self.total = total
|
|
56
|
+
if records is not None:
|
|
57
|
+
self.records = records
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def instance_id(self):
|
|
61
|
+
r"""Gets the instance_id of this ListOfflineKeyAnalysisTaskResponse.
|
|
62
|
+
|
|
63
|
+
**参数解释**: 实例ID。 **取值范围**: 不涉及。
|
|
64
|
+
|
|
65
|
+
:return: The instance_id of this ListOfflineKeyAnalysisTaskResponse.
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._instance_id
|
|
69
|
+
|
|
70
|
+
@instance_id.setter
|
|
71
|
+
def instance_id(self, instance_id):
|
|
72
|
+
r"""Sets the instance_id of this ListOfflineKeyAnalysisTaskResponse.
|
|
73
|
+
|
|
74
|
+
**参数解释**: 实例ID。 **取值范围**: 不涉及。
|
|
75
|
+
|
|
76
|
+
:param instance_id: The instance_id of this ListOfflineKeyAnalysisTaskResponse.
|
|
77
|
+
:type instance_id: str
|
|
78
|
+
"""
|
|
79
|
+
self._instance_id = instance_id
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def total(self):
|
|
83
|
+
r"""Gets the total of this ListOfflineKeyAnalysisTaskResponse.
|
|
84
|
+
|
|
85
|
+
**参数解释**: 离线全量key分析的总数。 **取值范围**: 不涉及。
|
|
86
|
+
|
|
87
|
+
:return: The total of this ListOfflineKeyAnalysisTaskResponse.
|
|
88
|
+
:rtype: int
|
|
89
|
+
"""
|
|
90
|
+
return self._total
|
|
91
|
+
|
|
92
|
+
@total.setter
|
|
93
|
+
def total(self, total):
|
|
94
|
+
r"""Sets the total of this ListOfflineKeyAnalysisTaskResponse.
|
|
95
|
+
|
|
96
|
+
**参数解释**: 离线全量key分析的总数。 **取值范围**: 不涉及。
|
|
97
|
+
|
|
98
|
+
:param total: The total of this ListOfflineKeyAnalysisTaskResponse.
|
|
99
|
+
:type total: int
|
|
100
|
+
"""
|
|
101
|
+
self._total = total
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def records(self):
|
|
105
|
+
r"""Gets the records of this ListOfflineKeyAnalysisTaskResponse.
|
|
106
|
+
|
|
107
|
+
**参数解释**: 离线全量key分析记录列表。
|
|
108
|
+
|
|
109
|
+
:return: The records of this ListOfflineKeyAnalysisTaskResponse.
|
|
110
|
+
:rtype: list[:class:`huaweicloudsdkdcs.v2.OfflineKeyAnalysisRecord`]
|
|
111
|
+
"""
|
|
112
|
+
return self._records
|
|
113
|
+
|
|
114
|
+
@records.setter
|
|
115
|
+
def records(self, records):
|
|
116
|
+
r"""Sets the records of this ListOfflineKeyAnalysisTaskResponse.
|
|
117
|
+
|
|
118
|
+
**参数解释**: 离线全量key分析记录列表。
|
|
119
|
+
|
|
120
|
+
:param records: The records of this ListOfflineKeyAnalysisTaskResponse.
|
|
121
|
+
:type records: list[:class:`huaweicloudsdkdcs.v2.OfflineKeyAnalysisRecord`]
|
|
122
|
+
"""
|
|
123
|
+
self._records = records
|
|
124
|
+
|
|
125
|
+
def to_dict(self):
|
|
126
|
+
"""Returns the model properties as a dict"""
|
|
127
|
+
result = {}
|
|
128
|
+
|
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
130
|
+
value = getattr(self, attr)
|
|
131
|
+
if isinstance(value, list):
|
|
132
|
+
result[attr] = list(map(
|
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
134
|
+
value
|
|
135
|
+
))
|
|
136
|
+
elif hasattr(value, "to_dict"):
|
|
137
|
+
result[attr] = value.to_dict()
|
|
138
|
+
elif isinstance(value, dict):
|
|
139
|
+
result[attr] = dict(map(
|
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
|
142
|
+
value.items()
|
|
143
|
+
))
|
|
144
|
+
else:
|
|
145
|
+
if attr in self.sensitive_list:
|
|
146
|
+
result[attr] = "****"
|
|
147
|
+
else:
|
|
148
|
+
result[attr] = value
|
|
149
|
+
|
|
150
|
+
return result
|
|
151
|
+
|
|
152
|
+
def to_str(self):
|
|
153
|
+
"""Returns the string representation of the model"""
|
|
154
|
+
import simplejson as json
|
|
155
|
+
if six.PY2:
|
|
156
|
+
import sys
|
|
157
|
+
reload(sys)
|
|
158
|
+
sys.setdefaultencoding("utf-8")
|
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
160
|
+
|
|
161
|
+
def __repr__(self):
|
|
162
|
+
"""For `print`"""
|
|
163
|
+
return self.to_str()
|
|
164
|
+
|
|
165
|
+
def __eq__(self, other):
|
|
166
|
+
"""Returns true if both objects are equal"""
|
|
167
|
+
if not isinstance(other, ListOfflineKeyAnalysisTaskResponse):
|
|
168
|
+
return False
|
|
169
|
+
|
|
170
|
+
return self.__dict__ == other.__dict__
|
|
171
|
+
|
|
172
|
+
def __ne__(self, other):
|
|
173
|
+
"""Returns true if both objects are not equal"""
|
|
174
|
+
return not self == other
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MigrateAzRequest:
|
|
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
|
+
'instance_id': 'str',
|
|
21
|
+
'body': 'MigrateAZRequestBody'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'instance_id': 'instance_id',
|
|
26
|
+
'body': 'body'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, instance_id=None, body=None):
|
|
30
|
+
r"""MigrateAzRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param instance_id: **参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
35
|
+
:type instance_id: str
|
|
36
|
+
:param body: Body of the MigrateAzRequest
|
|
37
|
+
:type body: :class:`huaweicloudsdkdcs.v2.MigrateAZRequestBody`
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._instance_id = None
|
|
43
|
+
self._body = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.instance_id = instance_id
|
|
47
|
+
if body is not None:
|
|
48
|
+
self.body = body
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def instance_id(self):
|
|
52
|
+
r"""Gets the instance_id of this MigrateAzRequest.
|
|
53
|
+
|
|
54
|
+
**参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
55
|
+
|
|
56
|
+
:return: The instance_id of this MigrateAzRequest.
|
|
57
|
+
:rtype: str
|
|
58
|
+
"""
|
|
59
|
+
return self._instance_id
|
|
60
|
+
|
|
61
|
+
@instance_id.setter
|
|
62
|
+
def instance_id(self, instance_id):
|
|
63
|
+
r"""Sets the instance_id of this MigrateAzRequest.
|
|
64
|
+
|
|
65
|
+
**参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
66
|
+
|
|
67
|
+
:param instance_id: The instance_id of this MigrateAzRequest.
|
|
68
|
+
:type instance_id: str
|
|
69
|
+
"""
|
|
70
|
+
self._instance_id = instance_id
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def body(self):
|
|
74
|
+
r"""Gets the body of this MigrateAzRequest.
|
|
75
|
+
|
|
76
|
+
:return: The body of this MigrateAzRequest.
|
|
77
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.MigrateAZRequestBody`
|
|
78
|
+
"""
|
|
79
|
+
return self._body
|
|
80
|
+
|
|
81
|
+
@body.setter
|
|
82
|
+
def body(self, body):
|
|
83
|
+
r"""Sets the body of this MigrateAzRequest.
|
|
84
|
+
|
|
85
|
+
:param body: The body of this MigrateAzRequest.
|
|
86
|
+
:type body: :class:`huaweicloudsdkdcs.v2.MigrateAZRequestBody`
|
|
87
|
+
"""
|
|
88
|
+
self._body = body
|
|
89
|
+
|
|
90
|
+
def to_dict(self):
|
|
91
|
+
"""Returns the model properties as a dict"""
|
|
92
|
+
result = {}
|
|
93
|
+
|
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
95
|
+
value = getattr(self, attr)
|
|
96
|
+
if isinstance(value, list):
|
|
97
|
+
result[attr] = list(map(
|
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
99
|
+
value
|
|
100
|
+
))
|
|
101
|
+
elif hasattr(value, "to_dict"):
|
|
102
|
+
result[attr] = value.to_dict()
|
|
103
|
+
elif isinstance(value, dict):
|
|
104
|
+
result[attr] = dict(map(
|
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
|
107
|
+
value.items()
|
|
108
|
+
))
|
|
109
|
+
else:
|
|
110
|
+
if attr in self.sensitive_list:
|
|
111
|
+
result[attr] = "****"
|
|
112
|
+
else:
|
|
113
|
+
result[attr] = value
|
|
114
|
+
|
|
115
|
+
return result
|
|
116
|
+
|
|
117
|
+
def to_str(self):
|
|
118
|
+
"""Returns the string representation of the model"""
|
|
119
|
+
import simplejson as json
|
|
120
|
+
if six.PY2:
|
|
121
|
+
import sys
|
|
122
|
+
reload(sys)
|
|
123
|
+
sys.setdefaultencoding("utf-8")
|
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
125
|
+
|
|
126
|
+
def __repr__(self):
|
|
127
|
+
"""For `print`"""
|
|
128
|
+
return self.to_str()
|
|
129
|
+
|
|
130
|
+
def __eq__(self, other):
|
|
131
|
+
"""Returns true if both objects are equal"""
|
|
132
|
+
if not isinstance(other, MigrateAzRequest):
|
|
133
|
+
return False
|
|
134
|
+
|
|
135
|
+
return self.__dict__ == other.__dict__
|
|
136
|
+
|
|
137
|
+
def __ne__(self, other):
|
|
138
|
+
"""Returns true if both objects are not equal"""
|
|
139
|
+
return not self == other
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MigrateAZRequestBody:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'new_available_zones': 'list[str]',
|
|
21
|
+
'execute_immediately': 'bool'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'new_available_zones': 'new_available_zones',
|
|
26
|
+
'execute_immediately': 'execute_immediately'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, new_available_zones=None, execute_immediately=None):
|
|
30
|
+
r"""MigrateAZRequestBody
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param new_available_zones: **参数解释**: 新可用区。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
35
|
+
:type new_available_zones: list[str]
|
|
36
|
+
:param execute_immediately: **参数解释**: 是否立即执行变更。 **约束限制**: 不涉及。 **取值范围**: true:立即执行变更。 false:暂不执行变更。 **默认取值**: true
|
|
37
|
+
:type execute_immediately: bool
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._new_available_zones = None
|
|
43
|
+
self._execute_immediately = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
if new_available_zones is not None:
|
|
47
|
+
self.new_available_zones = new_available_zones
|
|
48
|
+
if execute_immediately is not None:
|
|
49
|
+
self.execute_immediately = execute_immediately
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def new_available_zones(self):
|
|
53
|
+
r"""Gets the new_available_zones of this MigrateAZRequestBody.
|
|
54
|
+
|
|
55
|
+
**参数解释**: 新可用区。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
56
|
+
|
|
57
|
+
:return: The new_available_zones of this MigrateAZRequestBody.
|
|
58
|
+
:rtype: list[str]
|
|
59
|
+
"""
|
|
60
|
+
return self._new_available_zones
|
|
61
|
+
|
|
62
|
+
@new_available_zones.setter
|
|
63
|
+
def new_available_zones(self, new_available_zones):
|
|
64
|
+
r"""Sets the new_available_zones of this MigrateAZRequestBody.
|
|
65
|
+
|
|
66
|
+
**参数解释**: 新可用区。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
67
|
+
|
|
68
|
+
:param new_available_zones: The new_available_zones of this MigrateAZRequestBody.
|
|
69
|
+
:type new_available_zones: list[str]
|
|
70
|
+
"""
|
|
71
|
+
self._new_available_zones = new_available_zones
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def execute_immediately(self):
|
|
75
|
+
r"""Gets the execute_immediately of this MigrateAZRequestBody.
|
|
76
|
+
|
|
77
|
+
**参数解释**: 是否立即执行变更。 **约束限制**: 不涉及。 **取值范围**: true:立即执行变更。 false:暂不执行变更。 **默认取值**: true
|
|
78
|
+
|
|
79
|
+
:return: The execute_immediately of this MigrateAZRequestBody.
|
|
80
|
+
:rtype: bool
|
|
81
|
+
"""
|
|
82
|
+
return self._execute_immediately
|
|
83
|
+
|
|
84
|
+
@execute_immediately.setter
|
|
85
|
+
def execute_immediately(self, execute_immediately):
|
|
86
|
+
r"""Sets the execute_immediately of this MigrateAZRequestBody.
|
|
87
|
+
|
|
88
|
+
**参数解释**: 是否立即执行变更。 **约束限制**: 不涉及。 **取值范围**: true:立即执行变更。 false:暂不执行变更。 **默认取值**: true
|
|
89
|
+
|
|
90
|
+
:param execute_immediately: The execute_immediately of this MigrateAZRequestBody.
|
|
91
|
+
:type execute_immediately: bool
|
|
92
|
+
"""
|
|
93
|
+
self._execute_immediately = execute_immediately
|
|
94
|
+
|
|
95
|
+
def to_dict(self):
|
|
96
|
+
"""Returns the model properties as a dict"""
|
|
97
|
+
result = {}
|
|
98
|
+
|
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
100
|
+
value = getattr(self, attr)
|
|
101
|
+
if isinstance(value, list):
|
|
102
|
+
result[attr] = list(map(
|
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
104
|
+
value
|
|
105
|
+
))
|
|
106
|
+
elif hasattr(value, "to_dict"):
|
|
107
|
+
result[attr] = value.to_dict()
|
|
108
|
+
elif isinstance(value, dict):
|
|
109
|
+
result[attr] = dict(map(
|
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
|
112
|
+
value.items()
|
|
113
|
+
))
|
|
114
|
+
else:
|
|
115
|
+
if attr in self.sensitive_list:
|
|
116
|
+
result[attr] = "****"
|
|
117
|
+
else:
|
|
118
|
+
result[attr] = value
|
|
119
|
+
|
|
120
|
+
return result
|
|
121
|
+
|
|
122
|
+
def to_str(self):
|
|
123
|
+
"""Returns the string representation of the model"""
|
|
124
|
+
import simplejson as json
|
|
125
|
+
if six.PY2:
|
|
126
|
+
import sys
|
|
127
|
+
reload(sys)
|
|
128
|
+
sys.setdefaultencoding("utf-8")
|
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
130
|
+
|
|
131
|
+
def __repr__(self):
|
|
132
|
+
"""For `print`"""
|
|
133
|
+
return self.to_str()
|
|
134
|
+
|
|
135
|
+
def __eq__(self, other):
|
|
136
|
+
"""Returns true if both objects are equal"""
|
|
137
|
+
if not isinstance(other, MigrateAZRequestBody):
|
|
138
|
+
return False
|
|
139
|
+
|
|
140
|
+
return self.__dict__ == other.__dict__
|
|
141
|
+
|
|
142
|
+
def __ne__(self, other):
|
|
143
|
+
"""Returns true if both objects are not equal"""
|
|
144
|
+
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 MigrateAzResponse(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"""MigrateAzResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
super(MigrateAzResponse, 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, MigrateAzResponse):
|
|
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
|