huaweicloudsdkdrs 3.1.110__py2.py3-none-any.whl → 3.1.111__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.
Files changed (28) hide show
  1. huaweicloudsdkdrs/v5/__init__.py +11 -1
  2. huaweicloudsdkdrs/v5/drs_async_client.py +278 -0
  3. huaweicloudsdkdrs/v5/drs_client.py +278 -0
  4. huaweicloudsdkdrs/v5/model/__init__.py +11 -1
  5. huaweicloudsdkdrs/v5/model/action_params.py +30 -1
  6. huaweicloudsdkdrs/v5/model/create_job_response.py +139 -19
  7. huaweicloudsdkdrs/v5/model/delete_user_driver_req.py +142 -0
  8. huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_request.py +140 -0
  9. huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_response.py +116 -0
  10. huaweicloudsdkdrs/v5/model/job_base_info.py +3 -3
  11. huaweicloudsdkdrs/v5/model/job_detail_resp.py +3 -3
  12. huaweicloudsdkdrs/v5/model/job_endpoint_info.py +3 -3
  13. huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_request.py +201 -0
  14. huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_response.py +145 -0
  15. huaweicloudsdkdrs/v5/model/policy_config.py +32 -3
  16. huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_request.py +168 -0
  17. huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_response.py +116 -0
  18. huaweicloudsdkdrs/v5/model/update_user_driver_req.py +142 -0
  19. huaweicloudsdkdrs/v5/model/upload_jdbc_driver_request_body.py +3 -3
  20. huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request.py +168 -0
  21. huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request_body.py +114 -0
  22. huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_response.py +116 -0
  23. {huaweicloudsdkdrs-3.1.110.dist-info → huaweicloudsdkdrs-3.1.111.dist-info}/METADATA +2 -2
  24. {huaweicloudsdkdrs-3.1.110.dist-info → huaweicloudsdkdrs-3.1.111.dist-info}/RECORD +27 -17
  25. huaweicloudsdkdrs/v5/model/create_job_resp.py +0 -227
  26. {huaweicloudsdkdrs-3.1.110.dist-info → huaweicloudsdkdrs-3.1.111.dist-info}/LICENSE +0 -0
  27. {huaweicloudsdkdrs-3.1.110.dist-info → huaweicloudsdkdrs-3.1.111.dist-info}/WHEEL +0 -0
  28. {huaweicloudsdkdrs-3.1.110.dist-info → huaweicloudsdkdrs-3.1.111.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 DeleteUserJdbcDriverResponse(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
+ """DeleteUserJdbcDriverResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body: 空响应体。
34
+ :type body: object
35
+ """
36
+
37
+ super(DeleteUserJdbcDriverResponse, 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 DeleteUserJdbcDriverResponse.
48
+
49
+ 空响应体。
50
+
51
+ :return: The body of this DeleteUserJdbcDriverResponse.
52
+ :rtype: object
53
+ """
54
+ return self._body
55
+
56
+ @body.setter
57
+ def body(self, body):
58
+ """Sets the body of this DeleteUserJdbcDriverResponse.
59
+
60
+ 空响应体。
61
+
62
+ :param body: The body of this DeleteUserJdbcDriverResponse.
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, DeleteUserJdbcDriverResponse):
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
@@ -61,7 +61,7 @@ class JobBaseInfo:
61
61
  :type job_type: str
62
62
  :param multi_write: 灾备类型是否双主灾备。说明: - job_type 是cloudDataGuard时,必填,灾备类型是双主灾备时,multi_write取值true, 否则为false。 - job_type 是其他类型时,multi_write是非必选参数。
63
63
  :type multi_write: bool
64
- :param engine_type: 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。
64
+ :param engine_type: 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。 - mysql-to-mysql:MySQL同步到MySQL,实时同步场景使用。
65
65
  :type engine_type: str
66
66
  :param job_direction: 迁移方向。取值: - up:入云 ,灾备场景时对应本云为备。 - down:出云,灾备场景时对应本云为主。 - non-dbs:自建。
67
67
  :type job_direction: str
@@ -202,7 +202,7 @@ class JobBaseInfo:
202
202
  def engine_type(self):
203
203
  """Gets the engine_type of this JobBaseInfo.
204
204
 
205
- 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。
205
+ 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。 - mysql-to-mysql:MySQL同步到MySQL,实时同步场景使用。
206
206
 
207
207
  :return: The engine_type of this JobBaseInfo.
208
208
  :rtype: str
@@ -213,7 +213,7 @@ class JobBaseInfo:
213
213
  def engine_type(self, engine_type):
214
214
  """Sets the engine_type of this JobBaseInfo.
215
215
 
216
- 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。
216
+ 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。 - mysql-to-mysql:MySQL同步到MySQL,实时同步场景使用。
217
217
 
218
218
  :param engine_type: The engine_type of this JobBaseInfo.
219
219
  :type engine_type: str
@@ -91,7 +91,7 @@ class JobDetailResp:
91
91
 
92
92
  :param id: 任务ID。
93
93
  :type id: str
94
- :param status: 任务状态。
94
+ :param status: 任务状态。 - CREATING:创建中 - CREATE_FAILED:创建失败 - CONFIGURATION:配置中 - STARTJOBING:启动中 - WAITING_FOR_START:等待启动中 - START_JOB_FAILED:启动失败 - PAUSING:已暂停 - FULL_TRANSFER_STARTED:全量开始,灾备场景下为初始化 - FULL_TRANSFER_FAILED:全量失败,灾备场景下为初始化失败 - FULL_TRANSFER_COMPLETE:全量完成,灾备场景下为初始化完成 - INCRE_TRANSFER_STARTED:增量开始,灾备场景下为灾备中 - INCRE_TRANSFER_FAILED:增量失败,灾备场景下为灾备异常 - RELEASE_RESOURCE_STARTED:结束任务中 - RELEASE_RESOURCE_FAILED:结束任务失败 - RELEASE_RESOURCE_COMPLETE:已结束 - REBUILD_NODE_STARTED:故障恢复中 - REBUILD_NODE_FAILED:故障恢复失败 - CHANGE_JOB_STARTED:任务变更中 - CHANGE_JOB_FAILED:任务变更失败 - DELETED:已删除 - CHILD_TRANSFER_STARTING:再编辑子任务启动中 - CHILD_TRANSFER_STARTED:再编辑子任务迁移中 - CHILD_TRANSFER_COMPLETE:再编辑子任务迁移完成 - CHILD_TRANSFER_FAILED:再编辑子任务迁移失败 - RELEASE_CHILD_TRANSFER_STARTED:再编辑子任务结束中 - RELEASE_CHILD_TRANSFER_COMPLETE:再编辑子任务已结束 - NODE_UPGRADE_START:升级开始 - NODE_UPGRADE_COMPLETE:升级完成 - NODE_UPGRADE_FAILED:升级失败
95
95
  :type status: str
96
96
  :param create_time: 任务创建时间。
97
97
  :type create_time: str
@@ -277,7 +277,7 @@ class JobDetailResp:
277
277
  def status(self):
278
278
  """Gets the status of this JobDetailResp.
279
279
 
280
- 任务状态。
280
+ 任务状态。 - CREATING:创建中 - CREATE_FAILED:创建失败 - CONFIGURATION:配置中 - STARTJOBING:启动中 - WAITING_FOR_START:等待启动中 - START_JOB_FAILED:启动失败 - PAUSING:已暂停 - FULL_TRANSFER_STARTED:全量开始,灾备场景下为初始化 - FULL_TRANSFER_FAILED:全量失败,灾备场景下为初始化失败 - FULL_TRANSFER_COMPLETE:全量完成,灾备场景下为初始化完成 - INCRE_TRANSFER_STARTED:增量开始,灾备场景下为灾备中 - INCRE_TRANSFER_FAILED:增量失败,灾备场景下为灾备异常 - RELEASE_RESOURCE_STARTED:结束任务中 - RELEASE_RESOURCE_FAILED:结束任务失败 - RELEASE_RESOURCE_COMPLETE:已结束 - REBUILD_NODE_STARTED:故障恢复中 - REBUILD_NODE_FAILED:故障恢复失败 - CHANGE_JOB_STARTED:任务变更中 - CHANGE_JOB_FAILED:任务变更失败 - DELETED:已删除 - CHILD_TRANSFER_STARTING:再编辑子任务启动中 - CHILD_TRANSFER_STARTED:再编辑子任务迁移中 - CHILD_TRANSFER_COMPLETE:再编辑子任务迁移完成 - CHILD_TRANSFER_FAILED:再编辑子任务迁移失败 - RELEASE_CHILD_TRANSFER_STARTED:再编辑子任务结束中 - RELEASE_CHILD_TRANSFER_COMPLETE:再编辑子任务已结束 - NODE_UPGRADE_START:升级开始 - NODE_UPGRADE_COMPLETE:升级完成 - NODE_UPGRADE_FAILED:升级失败
281
281
 
282
282
  :return: The status of this JobDetailResp.
283
283
  :rtype: str
@@ -288,7 +288,7 @@ class JobDetailResp:
288
288
  def status(self, status):
289
289
  """Sets the status of this JobDetailResp.
290
290
 
291
- 任务状态。
291
+ 任务状态。 - CREATING:创建中 - CREATE_FAILED:创建失败 - CONFIGURATION:配置中 - STARTJOBING:启动中 - WAITING_FOR_START:等待启动中 - START_JOB_FAILED:启动失败 - PAUSING:已暂停 - FULL_TRANSFER_STARTED:全量开始,灾备场景下为初始化 - FULL_TRANSFER_FAILED:全量失败,灾备场景下为初始化失败 - FULL_TRANSFER_COMPLETE:全量完成,灾备场景下为初始化完成 - INCRE_TRANSFER_STARTED:增量开始,灾备场景下为灾备中 - INCRE_TRANSFER_FAILED:增量失败,灾备场景下为灾备异常 - RELEASE_RESOURCE_STARTED:结束任务中 - RELEASE_RESOURCE_FAILED:结束任务失败 - RELEASE_RESOURCE_COMPLETE:已结束 - REBUILD_NODE_STARTED:故障恢复中 - REBUILD_NODE_FAILED:故障恢复失败 - CHANGE_JOB_STARTED:任务变更中 - CHANGE_JOB_FAILED:任务变更失败 - DELETED:已删除 - CHILD_TRANSFER_STARTING:再编辑子任务启动中 - CHILD_TRANSFER_STARTED:再编辑子任务迁移中 - CHILD_TRANSFER_COMPLETE:再编辑子任务迁移完成 - CHILD_TRANSFER_FAILED:再编辑子任务迁移失败 - RELEASE_CHILD_TRANSFER_STARTED:再编辑子任务结束中 - RELEASE_CHILD_TRANSFER_COMPLETE:再编辑子任务已结束 - NODE_UPGRADE_START:升级开始 - NODE_UPGRADE_COMPLETE:升级完成 - NODE_UPGRADE_FAILED:升级失败
292
292
 
293
293
  :param status: The status of this JobDetailResp.
294
294
  :type status: str
@@ -45,7 +45,7 @@ class JobEndpointInfo:
45
45
 
46
46
  The model defined in huaweicloud sdk
47
47
 
48
- :param db_type: 数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。
48
+ :param db_type: 数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。 - mysql:MySQL。
49
49
  :type db_type: str
50
50
  :param endpoint_type: 数据库实例类型。取值: - offline:自建数据库。 - ecs:华为云ECS自建数据库。 - cloud:华为云数据库。
51
51
  :type endpoint_type: str
@@ -97,7 +97,7 @@ class JobEndpointInfo:
97
97
  def db_type(self):
98
98
  """Gets the db_type of this JobEndpointInfo.
99
99
 
100
- 数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。
100
+ 数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。 - mysql:MySQL。
101
101
 
102
102
  :return: The db_type of this JobEndpointInfo.
103
103
  :rtype: str
@@ -108,7 +108,7 @@ class JobEndpointInfo:
108
108
  def db_type(self, db_type):
109
109
  """Sets the db_type of this JobEndpointInfo.
110
110
 
111
- 数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。
111
+ 数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。 - mysql:MySQL。
112
112
 
113
113
  :param db_type: The db_type of this JobEndpointInfo.
114
114
  :type db_type: str
@@ -0,0 +1,201 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListUserJdbcDriversRequest:
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
+ 'limit': 'int',
21
+ 'offset': 'int',
22
+ 'driver_type': 'str',
23
+ 'x_language': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'limit': 'limit',
28
+ 'offset': 'offset',
29
+ 'driver_type': 'driver_type',
30
+ 'x_language': 'X-Language'
31
+ }
32
+
33
+ def __init__(self, limit=None, offset=None, driver_type=None, x_language=None):
34
+ """ListUserJdbcDriversRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param limit: 每页显示的条目数量。默认为10。
39
+ :type limit: int
40
+ :param offset: 偏移量,表示从此偏移量开始查询, offset 大于等于 0。默认为0。
41
+ :type offset: int
42
+ :param driver_type: 指定待查询的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix
43
+ :type driver_type: str
44
+ :param x_language: 请求语言类型。
45
+ :type x_language: str
46
+ """
47
+
48
+
49
+
50
+ self._limit = None
51
+ self._offset = None
52
+ self._driver_type = None
53
+ self._x_language = None
54
+ self.discriminator = None
55
+
56
+ if limit is not None:
57
+ self.limit = limit
58
+ if offset is not None:
59
+ self.offset = offset
60
+ self.driver_type = driver_type
61
+ if x_language is not None:
62
+ self.x_language = x_language
63
+
64
+ @property
65
+ def limit(self):
66
+ """Gets the limit of this ListUserJdbcDriversRequest.
67
+
68
+ 每页显示的条目数量。默认为10。
69
+
70
+ :return: The limit of this ListUserJdbcDriversRequest.
71
+ :rtype: int
72
+ """
73
+ return self._limit
74
+
75
+ @limit.setter
76
+ def limit(self, limit):
77
+ """Sets the limit of this ListUserJdbcDriversRequest.
78
+
79
+ 每页显示的条目数量。默认为10。
80
+
81
+ :param limit: The limit of this ListUserJdbcDriversRequest.
82
+ :type limit: int
83
+ """
84
+ self._limit = limit
85
+
86
+ @property
87
+ def offset(self):
88
+ """Gets the offset of this ListUserJdbcDriversRequest.
89
+
90
+ 偏移量,表示从此偏移量开始查询, offset 大于等于 0。默认为0。
91
+
92
+ :return: The offset of this ListUserJdbcDriversRequest.
93
+ :rtype: int
94
+ """
95
+ return self._offset
96
+
97
+ @offset.setter
98
+ def offset(self, offset):
99
+ """Sets the offset of this ListUserJdbcDriversRequest.
100
+
101
+ 偏移量,表示从此偏移量开始查询, offset 大于等于 0。默认为0。
102
+
103
+ :param offset: The offset of this ListUserJdbcDriversRequest.
104
+ :type offset: int
105
+ """
106
+ self._offset = offset
107
+
108
+ @property
109
+ def driver_type(self):
110
+ """Gets the driver_type of this ListUserJdbcDriversRequest.
111
+
112
+ 指定待查询的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix
113
+
114
+ :return: The driver_type of this ListUserJdbcDriversRequest.
115
+ :rtype: str
116
+ """
117
+ return self._driver_type
118
+
119
+ @driver_type.setter
120
+ def driver_type(self, driver_type):
121
+ """Sets the driver_type of this ListUserJdbcDriversRequest.
122
+
123
+ 指定待查询的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix
124
+
125
+ :param driver_type: The driver_type of this ListUserJdbcDriversRequest.
126
+ :type driver_type: str
127
+ """
128
+ self._driver_type = driver_type
129
+
130
+ @property
131
+ def x_language(self):
132
+ """Gets the x_language of this ListUserJdbcDriversRequest.
133
+
134
+ 请求语言类型。
135
+
136
+ :return: The x_language of this ListUserJdbcDriversRequest.
137
+ :rtype: str
138
+ """
139
+ return self._x_language
140
+
141
+ @x_language.setter
142
+ def x_language(self, x_language):
143
+ """Sets the x_language of this ListUserJdbcDriversRequest.
144
+
145
+ 请求语言类型。
146
+
147
+ :param x_language: The x_language of this ListUserJdbcDriversRequest.
148
+ :type x_language: str
149
+ """
150
+ self._x_language = x_language
151
+
152
+ def to_dict(self):
153
+ """Returns the model properties as a dict"""
154
+ result = {}
155
+
156
+ for attr, _ in six.iteritems(self.openapi_types):
157
+ value = getattr(self, attr)
158
+ if isinstance(value, list):
159
+ result[attr] = list(map(
160
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
161
+ value
162
+ ))
163
+ elif hasattr(value, "to_dict"):
164
+ result[attr] = value.to_dict()
165
+ elif isinstance(value, dict):
166
+ result[attr] = dict(map(
167
+ lambda item: (item[0], item[1].to_dict())
168
+ if hasattr(item[1], "to_dict") else item,
169
+ value.items()
170
+ ))
171
+ else:
172
+ if attr in self.sensitive_list:
173
+ result[attr] = "****"
174
+ else:
175
+ result[attr] = value
176
+
177
+ return result
178
+
179
+ def to_str(self):
180
+ """Returns the string representation of the model"""
181
+ import simplejson as json
182
+ if six.PY2:
183
+ import sys
184
+ reload(sys)
185
+ sys.setdefaultencoding("utf-8")
186
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
187
+
188
+ def __repr__(self):
189
+ """For `print`"""
190
+ return self.to_str()
191
+
192
+ def __eq__(self, other):
193
+ """Returns true if both objects are equal"""
194
+ if not isinstance(other, ListUserJdbcDriversRequest):
195
+ return False
196
+
197
+ return self.__dict__ == other.__dict__
198
+
199
+ def __ne__(self, other):
200
+ """Returns true if both objects are not equal"""
201
+ return not self == other
@@ -0,0 +1,145 @@
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 ListUserJdbcDriversResponse(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
+ 'count': 'int',
22
+ 'items': 'list[DriverInfo]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'count': 'count',
27
+ 'items': 'items'
28
+ }
29
+
30
+ def __init__(self, count=None, items=None):
31
+ """ListUserJdbcDriversResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param count: 驱动文件总数。
36
+ :type count: int
37
+ :param items: 驱动文件列表。
38
+ :type items: list[:class:`huaweicloudsdkdrs.v5.DriverInfo`]
39
+ """
40
+
41
+ super(ListUserJdbcDriversResponse, self).__init__()
42
+
43
+ self._count = None
44
+ self._items = None
45
+ self.discriminator = None
46
+
47
+ if count is not None:
48
+ self.count = count
49
+ if items is not None:
50
+ self.items = items
51
+
52
+ @property
53
+ def count(self):
54
+ """Gets the count of this ListUserJdbcDriversResponse.
55
+
56
+ 驱动文件总数。
57
+
58
+ :return: The count of this ListUserJdbcDriversResponse.
59
+ :rtype: int
60
+ """
61
+ return self._count
62
+
63
+ @count.setter
64
+ def count(self, count):
65
+ """Sets the count of this ListUserJdbcDriversResponse.
66
+
67
+ 驱动文件总数。
68
+
69
+ :param count: The count of this ListUserJdbcDriversResponse.
70
+ :type count: int
71
+ """
72
+ self._count = count
73
+
74
+ @property
75
+ def items(self):
76
+ """Gets the items of this ListUserJdbcDriversResponse.
77
+
78
+ 驱动文件列表。
79
+
80
+ :return: The items of this ListUserJdbcDriversResponse.
81
+ :rtype: list[:class:`huaweicloudsdkdrs.v5.DriverInfo`]
82
+ """
83
+ return self._items
84
+
85
+ @items.setter
86
+ def items(self, items):
87
+ """Sets the items of this ListUserJdbcDriversResponse.
88
+
89
+ 驱动文件列表。
90
+
91
+ :param items: The items of this ListUserJdbcDriversResponse.
92
+ :type items: list[:class:`huaweicloudsdkdrs.v5.DriverInfo`]
93
+ """
94
+ self._items = items
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, ListUserJdbcDriversResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other
@@ -25,7 +25,8 @@ class PolicyConfig:
25
25
  'support_ddl_info': 'str',
26
26
  'sync_type_policy': 'str',
27
27
  'increment_read_mode': 'str',
28
- 'dml_types': 'str'
28
+ 'dml_types': 'str',
29
+ 'is_create_table_with_index': 'bool'
29
30
  }
30
31
 
31
32
  attribute_map = {
@@ -37,10 +38,11 @@ class PolicyConfig:
37
38
  'support_ddl_info': 'support_ddl_info',
38
39
  'sync_type_policy': 'sync_type_policy',
39
40
  'increment_read_mode': 'increment_read_mode',
40
- 'dml_types': 'dml_types'
41
+ 'dml_types': 'dml_types',
42
+ 'is_create_table_with_index': 'is_create_table_with_index'
41
43
  }
42
44
 
43
- def __init__(self, filter_ddl_policy=None, conflict_policy=None, index_trans=None, ddl_trans=None, data_sync_topology_type=None, support_ddl_info=None, sync_type_policy=None, increment_read_mode=None, dml_types=None):
45
+ def __init__(self, filter_ddl_policy=None, conflict_policy=None, index_trans=None, ddl_trans=None, data_sync_topology_type=None, support_ddl_info=None, sync_type_policy=None, increment_read_mode=None, dml_types=None, is_create_table_with_index=None):
44
46
  """PolicyConfig
45
47
 
46
48
  The model defined in huaweicloud sdk
@@ -63,6 +65,8 @@ class PolicyConfig:
63
65
  :type increment_read_mode: str
64
66
  :param dml_types: DML同步类型。
65
67
  :type dml_types: str
68
+ :param is_create_table_with_index: 索引与表结构是否同时建立。
69
+ :type is_create_table_with_index: bool
66
70
  """
67
71
 
68
72
 
@@ -76,6 +80,7 @@ class PolicyConfig:
76
80
  self._sync_type_policy = None
77
81
  self._increment_read_mode = None
78
82
  self._dml_types = None
83
+ self._is_create_table_with_index = None
79
84
  self.discriminator = None
80
85
 
81
86
  if filter_ddl_policy is not None:
@@ -96,6 +101,8 @@ class PolicyConfig:
96
101
  self.increment_read_mode = increment_read_mode
97
102
  if dml_types is not None:
98
103
  self.dml_types = dml_types
104
+ if is_create_table_with_index is not None:
105
+ self.is_create_table_with_index = is_create_table_with_index
99
106
 
100
107
  @property
101
108
  def filter_ddl_policy(self):
@@ -295,6 +302,28 @@ class PolicyConfig:
295
302
  """
296
303
  self._dml_types = dml_types
297
304
 
305
+ @property
306
+ def is_create_table_with_index(self):
307
+ """Gets the is_create_table_with_index of this PolicyConfig.
308
+
309
+ 索引与表结构是否同时建立。
310
+
311
+ :return: The is_create_table_with_index of this PolicyConfig.
312
+ :rtype: bool
313
+ """
314
+ return self._is_create_table_with_index
315
+
316
+ @is_create_table_with_index.setter
317
+ def is_create_table_with_index(self, is_create_table_with_index):
318
+ """Sets the is_create_table_with_index of this PolicyConfig.
319
+
320
+ 索引与表结构是否同时建立。
321
+
322
+ :param is_create_table_with_index: The is_create_table_with_index of this PolicyConfig.
323
+ :type is_create_table_with_index: bool
324
+ """
325
+ self._is_create_table_with_index = is_create_table_with_index
326
+
298
327
  def to_dict(self):
299
328
  """Returns the model properties as a dict"""
300
329
  result = {}