huaweicloudsdkdrs 3.1.76__py2.py3-none-any.whl → 3.1.78__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.
- huaweicloudsdkdrs/v3/__init__.py +1 -0
- huaweicloudsdkdrs/v3/model/__init__.py +1 -0
- huaweicloudsdkdrs/v3/model/customized_dns.py +170 -0
- huaweicloudsdkdrs/v3/model/test_end_point.py +28 -3
- huaweicloudsdkdrs/v3/region/drs_region.py +4 -8
- huaweicloudsdkdrs/v5/__init__.py +30 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +736 -94
- huaweicloudsdkdrs/v5/drs_client.py +736 -94
- huaweicloudsdkdrs/v5/model/__init__.py +30 -0
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/base_endpoint.py +6 -6
- huaweicloudsdkdrs/v5/model/base_endpoint_config.py +32 -3
- huaweicloudsdkdrs/v5/model/batch_add_tag_req.py +114 -0
- huaweicloudsdkdrs/v5/model/batch_create_tags_request.py +196 -0
- huaweicloudsdkdrs/v5/model/batch_create_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/batch_delete_tag_req.py +114 -0
- huaweicloudsdkdrs/v5/model/batch_delete_tags_request.py +196 -0
- huaweicloudsdkdrs/v5/model/batch_delete_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/count_instance_by_tags_request.py +168 -0
- huaweicloudsdkdrs/v5/model/count_instance_by_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/customized_dns.py +170 -0
- huaweicloudsdkdrs/v5/model/job_base_info.py +3 -3
- huaweicloudsdkdrs/v5/model/job_endpoint_info.py +31 -6
- huaweicloudsdkdrs/v5/model/job_link_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/list_instance_by_tags_request.py +226 -0
- huaweicloudsdkdrs/v5/model/list_instance_by_tags_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_instance_tags_request.py +171 -0
- huaweicloudsdkdrs/v5/model/list_instance_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/list_job_history_parameter.py +283 -0
- huaweicloudsdkdrs/v5/model/list_job_history_parameters_request.py +288 -0
- huaweicloudsdkdrs/v5/model/list_job_history_parameters_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_job_parameters_request.py +230 -0
- huaweicloudsdkdrs/v5/model/list_job_parameters_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_jobs_request.py +3 -3
- huaweicloudsdkdrs/v5/model/list_tags_request.py +143 -0
- huaweicloudsdkdrs/v5/model/list_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/modify_parameter_req.py +114 -0
- huaweicloudsdkdrs/v5/model/parameter_config.py +312 -0
- huaweicloudsdkdrs/v5/model/parameter_info.py +142 -0
- huaweicloudsdkdrs/v5/model/query_instance_by_tag_req.py +173 -0
- huaweicloudsdkdrs/v5/model/resource_instance.py +202 -0
- huaweicloudsdkdrs/v5/model/resource_tag_info.py +144 -0
- huaweicloudsdkdrs/v5/model/tag.py +142 -0
- huaweicloudsdkdrs/v5/model/tag_match.py +142 -0
- huaweicloudsdkdrs/v5/model/update_job_configurations_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_job_configurations_response.py +116 -0
- huaweicloudsdkdrs/v5/region/drs_region.py +4 -8
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/RECORD +54 -23
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/top_level.txt +0 -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 BatchCreateTagsResponse(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
|
+
'body': 'object'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'body': 'body'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, body=None):
|
29
|
+
"""BatchCreateTagsResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param body: 空响应体。
|
34
|
+
:type body: object
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(BatchCreateTagsResponse, self).__init__()
|
38
|
+
|
39
|
+
self._body = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if body is not None:
|
43
|
+
self.body = body
|
44
|
+
|
45
|
+
@property
|
46
|
+
def body(self):
|
47
|
+
"""Gets the body of this BatchCreateTagsResponse.
|
48
|
+
|
49
|
+
空响应体。
|
50
|
+
|
51
|
+
:return: The body of this BatchCreateTagsResponse.
|
52
|
+
:rtype: object
|
53
|
+
"""
|
54
|
+
return self._body
|
55
|
+
|
56
|
+
@body.setter
|
57
|
+
def body(self, body):
|
58
|
+
"""Sets the body of this BatchCreateTagsResponse.
|
59
|
+
|
60
|
+
空响应体。
|
61
|
+
|
62
|
+
:param body: The body of this BatchCreateTagsResponse.
|
63
|
+
:type body: object
|
64
|
+
"""
|
65
|
+
self._body = body
|
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, BatchCreateTagsResponse):
|
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,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BatchDeleteTagReq:
|
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
|
+
'tags': 'list[BatchResourceTag]'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'tags': 'tags'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, tags=None):
|
28
|
+
"""BatchDeleteTagReq
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param tags: 标签列表。
|
33
|
+
:type tags: list[:class:`huaweicloudsdkdrs.v5.BatchResourceTag`]
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._tags = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.tags = tags
|
42
|
+
|
43
|
+
@property
|
44
|
+
def tags(self):
|
45
|
+
"""Gets the tags of this BatchDeleteTagReq.
|
46
|
+
|
47
|
+
标签列表。
|
48
|
+
|
49
|
+
:return: The tags of this BatchDeleteTagReq.
|
50
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v5.BatchResourceTag`]
|
51
|
+
"""
|
52
|
+
return self._tags
|
53
|
+
|
54
|
+
@tags.setter
|
55
|
+
def tags(self, tags):
|
56
|
+
"""Sets the tags of this BatchDeleteTagReq.
|
57
|
+
|
58
|
+
标签列表。
|
59
|
+
|
60
|
+
:param tags: The tags of this BatchDeleteTagReq.
|
61
|
+
:type tags: list[:class:`huaweicloudsdkdrs.v5.BatchResourceTag`]
|
62
|
+
"""
|
63
|
+
self._tags = tags
|
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, BatchDeleteTagReq):
|
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,196 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BatchDeleteTagsRequest:
|
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
|
+
'resource_type': 'str',
|
21
|
+
'x_language': 'str',
|
22
|
+
'resource_id': 'str',
|
23
|
+
'body': 'BatchDeleteTagReq'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'resource_type': 'resource_type',
|
28
|
+
'x_language': 'X-Language',
|
29
|
+
'resource_id': 'resource_id',
|
30
|
+
'body': 'body'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, resource_type=None, x_language=None, resource_id=None, body=None):
|
34
|
+
"""BatchDeleteTagsRequest
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param resource_type: 资源类型。 - migration:实时迁移 - sync:实时同步 - cloudDataGuard:实时灾备 - subscription:数据订阅 - backupMigration:备份迁移 - replay:录制回放
|
39
|
+
:type resource_type: str
|
40
|
+
:param x_language: 请求语言类型。
|
41
|
+
:type x_language: str
|
42
|
+
:param resource_id: 资源ID,即DRS任务ID。
|
43
|
+
:type resource_id: str
|
44
|
+
:param body: Body of the BatchDeleteTagsRequest
|
45
|
+
:type body: :class:`huaweicloudsdkdrs.v5.BatchDeleteTagReq`
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._resource_type = None
|
51
|
+
self._x_language = None
|
52
|
+
self._resource_id = None
|
53
|
+
self._body = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.resource_type = resource_type
|
57
|
+
if x_language is not None:
|
58
|
+
self.x_language = x_language
|
59
|
+
self.resource_id = resource_id
|
60
|
+
if body is not None:
|
61
|
+
self.body = body
|
62
|
+
|
63
|
+
@property
|
64
|
+
def resource_type(self):
|
65
|
+
"""Gets the resource_type of this BatchDeleteTagsRequest.
|
66
|
+
|
67
|
+
资源类型。 - migration:实时迁移 - sync:实时同步 - cloudDataGuard:实时灾备 - subscription:数据订阅 - backupMigration:备份迁移 - replay:录制回放
|
68
|
+
|
69
|
+
:return: The resource_type of this BatchDeleteTagsRequest.
|
70
|
+
:rtype: str
|
71
|
+
"""
|
72
|
+
return self._resource_type
|
73
|
+
|
74
|
+
@resource_type.setter
|
75
|
+
def resource_type(self, resource_type):
|
76
|
+
"""Sets the resource_type of this BatchDeleteTagsRequest.
|
77
|
+
|
78
|
+
资源类型。 - migration:实时迁移 - sync:实时同步 - cloudDataGuard:实时灾备 - subscription:数据订阅 - backupMigration:备份迁移 - replay:录制回放
|
79
|
+
|
80
|
+
:param resource_type: The resource_type of this BatchDeleteTagsRequest.
|
81
|
+
:type resource_type: str
|
82
|
+
"""
|
83
|
+
self._resource_type = resource_type
|
84
|
+
|
85
|
+
@property
|
86
|
+
def x_language(self):
|
87
|
+
"""Gets the x_language of this BatchDeleteTagsRequest.
|
88
|
+
|
89
|
+
请求语言类型。
|
90
|
+
|
91
|
+
:return: The x_language of this BatchDeleteTagsRequest.
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._x_language
|
95
|
+
|
96
|
+
@x_language.setter
|
97
|
+
def x_language(self, x_language):
|
98
|
+
"""Sets the x_language of this BatchDeleteTagsRequest.
|
99
|
+
|
100
|
+
请求语言类型。
|
101
|
+
|
102
|
+
:param x_language: The x_language of this BatchDeleteTagsRequest.
|
103
|
+
:type x_language: str
|
104
|
+
"""
|
105
|
+
self._x_language = x_language
|
106
|
+
|
107
|
+
@property
|
108
|
+
def resource_id(self):
|
109
|
+
"""Gets the resource_id of this BatchDeleteTagsRequest.
|
110
|
+
|
111
|
+
资源ID,即DRS任务ID。
|
112
|
+
|
113
|
+
:return: The resource_id of this BatchDeleteTagsRequest.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._resource_id
|
117
|
+
|
118
|
+
@resource_id.setter
|
119
|
+
def resource_id(self, resource_id):
|
120
|
+
"""Sets the resource_id of this BatchDeleteTagsRequest.
|
121
|
+
|
122
|
+
资源ID,即DRS任务ID。
|
123
|
+
|
124
|
+
:param resource_id: The resource_id of this BatchDeleteTagsRequest.
|
125
|
+
:type resource_id: str
|
126
|
+
"""
|
127
|
+
self._resource_id = resource_id
|
128
|
+
|
129
|
+
@property
|
130
|
+
def body(self):
|
131
|
+
"""Gets the body of this BatchDeleteTagsRequest.
|
132
|
+
|
133
|
+
:return: The body of this BatchDeleteTagsRequest.
|
134
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.BatchDeleteTagReq`
|
135
|
+
"""
|
136
|
+
return self._body
|
137
|
+
|
138
|
+
@body.setter
|
139
|
+
def body(self, body):
|
140
|
+
"""Sets the body of this BatchDeleteTagsRequest.
|
141
|
+
|
142
|
+
:param body: The body of this BatchDeleteTagsRequest.
|
143
|
+
:type body: :class:`huaweicloudsdkdrs.v5.BatchDeleteTagReq`
|
144
|
+
"""
|
145
|
+
self._body = body
|
146
|
+
|
147
|
+
def to_dict(self):
|
148
|
+
"""Returns the model properties as a dict"""
|
149
|
+
result = {}
|
150
|
+
|
151
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
152
|
+
value = getattr(self, attr)
|
153
|
+
if isinstance(value, list):
|
154
|
+
result[attr] = list(map(
|
155
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
156
|
+
value
|
157
|
+
))
|
158
|
+
elif hasattr(value, "to_dict"):
|
159
|
+
result[attr] = value.to_dict()
|
160
|
+
elif isinstance(value, dict):
|
161
|
+
result[attr] = dict(map(
|
162
|
+
lambda item: (item[0], item[1].to_dict())
|
163
|
+
if hasattr(item[1], "to_dict") else item,
|
164
|
+
value.items()
|
165
|
+
))
|
166
|
+
else:
|
167
|
+
if attr in self.sensitive_list:
|
168
|
+
result[attr] = "****"
|
169
|
+
else:
|
170
|
+
result[attr] = value
|
171
|
+
|
172
|
+
return result
|
173
|
+
|
174
|
+
def to_str(self):
|
175
|
+
"""Returns the string representation of the model"""
|
176
|
+
import simplejson as json
|
177
|
+
if six.PY2:
|
178
|
+
import sys
|
179
|
+
reload(sys)
|
180
|
+
sys.setdefaultencoding("utf-8")
|
181
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
182
|
+
|
183
|
+
def __repr__(self):
|
184
|
+
"""For `print`"""
|
185
|
+
return self.to_str()
|
186
|
+
|
187
|
+
def __eq__(self, other):
|
188
|
+
"""Returns true if both objects are equal"""
|
189
|
+
if not isinstance(other, BatchDeleteTagsRequest):
|
190
|
+
return False
|
191
|
+
|
192
|
+
return self.__dict__ == other.__dict__
|
193
|
+
|
194
|
+
def __ne__(self, other):
|
195
|
+
"""Returns true if both objects are not equal"""
|
196
|
+
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 BatchDeleteTagsResponse(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
|
+
'body': 'object'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'body': 'body'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, body=None):
|
29
|
+
"""BatchDeleteTagsResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param body: 空响应体。
|
34
|
+
:type body: object
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(BatchDeleteTagsResponse, self).__init__()
|
38
|
+
|
39
|
+
self._body = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if body is not None:
|
43
|
+
self.body = body
|
44
|
+
|
45
|
+
@property
|
46
|
+
def body(self):
|
47
|
+
"""Gets the body of this BatchDeleteTagsResponse.
|
48
|
+
|
49
|
+
空响应体。
|
50
|
+
|
51
|
+
:return: The body of this BatchDeleteTagsResponse.
|
52
|
+
:rtype: object
|
53
|
+
"""
|
54
|
+
return self._body
|
55
|
+
|
56
|
+
@body.setter
|
57
|
+
def body(self, body):
|
58
|
+
"""Sets the body of this BatchDeleteTagsResponse.
|
59
|
+
|
60
|
+
空响应体。
|
61
|
+
|
62
|
+
:param body: The body of this BatchDeleteTagsResponse.
|
63
|
+
:type body: object
|
64
|
+
"""
|
65
|
+
self._body = body
|
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, BatchDeleteTagsResponse):
|
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
|
@@ -75,7 +75,7 @@ class ChildrenJobListResp:
|
|
75
75
|
:type description: str
|
76
76
|
:param create_time: 任务创建时间。
|
77
77
|
:type create_time: str
|
78
|
-
:param engine_type: 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。
|
78
|
+
:param engine_type: 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。
|
79
79
|
:type engine_type: str
|
80
80
|
:param net_type: 网络类型。取值: - eip:公网网络。 - vpc:VPC网络,灾备场景不支持选择VPC网络。 - vpn:VPN、专线网络。
|
81
81
|
:type net_type: str
|
@@ -262,7 +262,7 @@ class ChildrenJobListResp:
|
|
262
262
|
def engine_type(self):
|
263
263
|
"""Gets the engine_type of this ChildrenJobListResp.
|
264
264
|
|
265
|
-
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。
|
265
|
+
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。
|
266
266
|
|
267
267
|
:return: The engine_type of this ChildrenJobListResp.
|
268
268
|
:rtype: str
|
@@ -273,7 +273,7 @@ class ChildrenJobListResp:
|
|
273
273
|
def engine_type(self, engine_type):
|
274
274
|
"""Sets the engine_type of this ChildrenJobListResp.
|
275
275
|
|
276
|
-
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。
|
276
|
+
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。
|
277
277
|
|
278
278
|
:param engine_type: The engine_type of this ChildrenJobListResp.
|
279
279
|
:type engine_type: str
|