huaweicloudsdkdrs 3.1.109__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.
- huaweicloudsdkdrs/v5/__init__.py +11 -1
- huaweicloudsdkdrs/v5/drs_async_client.py +278 -0
- huaweicloudsdkdrs/v5/drs_client.py +278 -0
- huaweicloudsdkdrs/v5/model/__init__.py +11 -1
- huaweicloudsdkdrs/v5/model/action_params.py +30 -1
- huaweicloudsdkdrs/v5/model/create_job_response.py +139 -19
- huaweicloudsdkdrs/v5/model/delete_user_driver_req.py +142 -0
- huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_request.py +140 -0
- huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_response.py +116 -0
- huaweicloudsdkdrs/v5/model/job_base_info.py +3 -3
- huaweicloudsdkdrs/v5/model/job_detail_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/job_endpoint_info.py +3 -3
- huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_request.py +201 -0
- huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_response.py +145 -0
- huaweicloudsdkdrs/v5/model/policy_config.py +32 -3
- huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_request.py +168 -0
- huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_user_driver_req.py +142 -0
- huaweicloudsdkdrs/v5/model/upload_jdbc_driver_request_body.py +3 -3
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request.py +168 -0
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request_body.py +114 -0
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_response.py +116 -0
- {huaweicloudsdkdrs-3.1.109.dist-info → huaweicloudsdkdrs-3.1.111.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.109.dist-info → huaweicloudsdkdrs-3.1.111.dist-info}/RECORD +27 -17
- huaweicloudsdkdrs/v5/model/create_job_resp.py +0 -227
- {huaweicloudsdkdrs-3.1.109.dist-info → huaweicloudsdkdrs-3.1.111.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.109.dist-info → huaweicloudsdkdrs-3.1.111.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.109.dist-info → huaweicloudsdkdrs-3.1.111.dist-info}/top_level.txt +0 -0
@@ -74,7 +74,6 @@ from huaweicloudsdkdrs.v5.model.count_instance_by_tags_request import CountInsta
|
|
74
74
|
from huaweicloudsdkdrs.v5.model.count_instance_by_tags_response import CountInstanceByTagsResponse
|
75
75
|
from huaweicloudsdkdrs.v5.model.create_job_req import CreateJobReq
|
76
76
|
from huaweicloudsdkdrs.v5.model.create_job_request import CreateJobRequest
|
77
|
-
from huaweicloudsdkdrs.v5.model.create_job_resp import CreateJobResp
|
78
77
|
from huaweicloudsdkdrs.v5.model.create_job_response import CreateJobResponse
|
79
78
|
from huaweicloudsdkdrs.v5.model.customized_dns import CustomizedDns
|
80
79
|
from huaweicloudsdkdrs.v5.model.data_filtering_condition import DataFilteringCondition
|
@@ -94,6 +93,9 @@ from huaweicloudsdkdrs.v5.model.delete_jdbc_driver_response import DeleteJdbcDri
|
|
94
93
|
from huaweicloudsdkdrs.v5.model.delete_job_request import DeleteJobRequest
|
95
94
|
from huaweicloudsdkdrs.v5.model.delete_job_resp import DeleteJobResp
|
96
95
|
from huaweicloudsdkdrs.v5.model.delete_job_response import DeleteJobResponse
|
96
|
+
from huaweicloudsdkdrs.v5.model.delete_user_driver_req import DeleteUserDriverReq
|
97
|
+
from huaweicloudsdkdrs.v5.model.delete_user_jdbc_driver_request import DeleteUserJdbcDriverRequest
|
98
|
+
from huaweicloudsdkdrs.v5.model.delete_user_jdbc_driver_response import DeleteUserJdbcDriverResponse
|
97
99
|
from huaweicloudsdkdrs.v5.model.dirty_data import DirtyData
|
98
100
|
from huaweicloudsdkdrs.v5.model.download_batch_create_template_request import DownloadBatchCreateTemplateRequest
|
99
101
|
from huaweicloudsdkdrs.v5.model.download_batch_create_template_response import DownloadBatchCreateTemplateResponse
|
@@ -154,6 +156,8 @@ from huaweicloudsdkdrs.v5.model.list_project_tags_request import ListProjectTags
|
|
154
156
|
from huaweicloudsdkdrs.v5.model.list_project_tags_response import ListProjectTagsResponse
|
155
157
|
from huaweicloudsdkdrs.v5.model.list_tags_request import ListTagsRequest
|
156
158
|
from huaweicloudsdkdrs.v5.model.list_tags_response import ListTagsResponse
|
159
|
+
from huaweicloudsdkdrs.v5.model.list_user_jdbc_drivers_request import ListUserJdbcDriversRequest
|
160
|
+
from huaweicloudsdkdrs.v5.model.list_user_jdbc_drivers_response import ListUserJdbcDriversResponse
|
157
161
|
from huaweicloudsdkdrs.v5.model.lists_agency_permissions_request import ListsAgencyPermissionsRequest
|
158
162
|
from huaweicloudsdkdrs.v5.model.lists_agency_permissions_response import ListsAgencyPermissionsResponse
|
159
163
|
from huaweicloudsdkdrs.v5.model.migration_object_overview_info import MigrationObjectOverviewInfo
|
@@ -261,6 +265,8 @@ from huaweicloudsdkdrs.v5.model.stop_job_action_response import StopJobActionRes
|
|
261
265
|
from huaweicloudsdkdrs.v5.model.support_import_file_result import SupportImportFileResult
|
262
266
|
from huaweicloudsdkdrs.v5.model.sync_jdbc_driver_request import SyncJdbcDriverRequest
|
263
267
|
from huaweicloudsdkdrs.v5.model.sync_jdbc_driver_response import SyncJdbcDriverResponse
|
268
|
+
from huaweicloudsdkdrs.v5.model.sync_user_jdbc_driver_request import SyncUserJdbcDriverRequest
|
269
|
+
from huaweicloudsdkdrs.v5.model.sync_user_jdbc_driver_response import SyncUserJdbcDriverResponse
|
264
270
|
from huaweicloudsdkdrs.v5.model.table_line_compare_detail_info import TableLineCompareDetailInfo
|
265
271
|
from huaweicloudsdkdrs.v5.model.table_object import TableObject
|
266
272
|
from huaweicloudsdkdrs.v5.model.tag import Tag
|
@@ -284,12 +290,16 @@ from huaweicloudsdkdrs.v5.model.update_job_request import UpdateJobRequest
|
|
284
290
|
from huaweicloudsdkdrs.v5.model.update_job_response import UpdateJobResponse
|
285
291
|
from huaweicloudsdkdrs.v5.model.update_start_position_request import UpdateStartPositionRequest
|
286
292
|
from huaweicloudsdkdrs.v5.model.update_start_position_response import UpdateStartPositionResponse
|
293
|
+
from huaweicloudsdkdrs.v5.model.update_user_driver_req import UpdateUserDriverReq
|
287
294
|
from huaweicloudsdkdrs.v5.model.upload_db_object_template_request import UploadDbObjectTemplateRequest
|
288
295
|
from huaweicloudsdkdrs.v5.model.upload_db_object_template_request_body import UploadDbObjectTemplateRequestBody
|
289
296
|
from huaweicloudsdkdrs.v5.model.upload_db_object_template_response import UploadDbObjectTemplateResponse
|
290
297
|
from huaweicloudsdkdrs.v5.model.upload_jdbc_driver_request import UploadJdbcDriverRequest
|
291
298
|
from huaweicloudsdkdrs.v5.model.upload_jdbc_driver_request_body import UploadJdbcDriverRequestBody
|
292
299
|
from huaweicloudsdkdrs.v5.model.upload_jdbc_driver_response import UploadJdbcDriverResponse
|
300
|
+
from huaweicloudsdkdrs.v5.model.upload_user_jdbc_driver_request import UploadUserJdbcDriverRequest
|
301
|
+
from huaweicloudsdkdrs.v5.model.upload_user_jdbc_driver_request_body import UploadUserJdbcDriverRequestBody
|
302
|
+
from huaweicloudsdkdrs.v5.model.upload_user_jdbc_driver_response import UploadUserJdbcDriverResponse
|
293
303
|
from huaweicloudsdkdrs.v5.model.user_migration_info import UserMigrationInfo
|
294
304
|
from huaweicloudsdkdrs.v5.model.user_migration_list import UserMigrationList
|
295
305
|
from huaweicloudsdkdrs.v5.model.user_migration_role import UserMigrationRole
|
@@ -24,6 +24,7 @@ class ActionParams:
|
|
24
24
|
'start_time': 'str',
|
25
25
|
'compare_task_param': 'CompareTaskParams',
|
26
26
|
'is_sync_re_edit': 'bool',
|
27
|
+
'is_only_init_task': 'bool',
|
27
28
|
'force_delete': 'bool',
|
28
29
|
'public_ip_config': 'PublicIpConfig',
|
29
30
|
'replay_config': 'ReplayConfigInfo'
|
@@ -37,12 +38,13 @@ class ActionParams:
|
|
37
38
|
'start_time': 'start_time',
|
38
39
|
'compare_task_param': 'compare_task_param',
|
39
40
|
'is_sync_re_edit': 'is_sync_re_edit',
|
41
|
+
'is_only_init_task': 'is_only_init_task',
|
40
42
|
'force_delete': 'force_delete',
|
41
43
|
'public_ip_config': 'public_ip_config',
|
42
44
|
'replay_config': 'replay_config'
|
43
45
|
}
|
44
46
|
|
45
|
-
def __init__(self, endpoints=None, precheck_mode=None, skip_precheck_info=None, pause_mode=None, start_time=None, compare_task_param=None, is_sync_re_edit=None, force_delete=None, public_ip_config=None, replay_config=None):
|
47
|
+
def __init__(self, endpoints=None, precheck_mode=None, skip_precheck_info=None, pause_mode=None, start_time=None, compare_task_param=None, is_sync_re_edit=None, is_only_init_task=None, force_delete=None, public_ip_config=None, replay_config=None):
|
46
48
|
"""ActionParams
|
47
49
|
|
48
50
|
The model defined in huaweicloud sdk
|
@@ -61,6 +63,8 @@ class ActionParams:
|
|
61
63
|
:type compare_task_param: :class:`huaweicloudsdkdrs.v5.CompareTaskParams`
|
62
64
|
:param is_sync_re_edit: 再编辑任务启动时取值true。
|
63
65
|
:type is_sync_re_edit: bool
|
66
|
+
:param is_only_init_task: 是否支持只初始化任务。仅支持白名单用户使用,需要提交工单申请才能使用。
|
67
|
+
:type is_only_init_task: bool
|
64
68
|
:param force_delete: 强制结束时取值为true。
|
65
69
|
:type force_delete: bool
|
66
70
|
:param public_ip_config:
|
@@ -78,6 +82,7 @@ class ActionParams:
|
|
78
82
|
self._start_time = None
|
79
83
|
self._compare_task_param = None
|
80
84
|
self._is_sync_re_edit = None
|
85
|
+
self._is_only_init_task = None
|
81
86
|
self._force_delete = None
|
82
87
|
self._public_ip_config = None
|
83
88
|
self._replay_config = None
|
@@ -97,6 +102,8 @@ class ActionParams:
|
|
97
102
|
self.compare_task_param = compare_task_param
|
98
103
|
if is_sync_re_edit is not None:
|
99
104
|
self.is_sync_re_edit = is_sync_re_edit
|
105
|
+
if is_only_init_task is not None:
|
106
|
+
self.is_only_init_task = is_only_init_task
|
100
107
|
if force_delete is not None:
|
101
108
|
self.force_delete = force_delete
|
102
109
|
if public_ip_config is not None:
|
@@ -250,6 +257,28 @@ class ActionParams:
|
|
250
257
|
"""
|
251
258
|
self._is_sync_re_edit = is_sync_re_edit
|
252
259
|
|
260
|
+
@property
|
261
|
+
def is_only_init_task(self):
|
262
|
+
"""Gets the is_only_init_task of this ActionParams.
|
263
|
+
|
264
|
+
是否支持只初始化任务。仅支持白名单用户使用,需要提交工单申请才能使用。
|
265
|
+
|
266
|
+
:return: The is_only_init_task of this ActionParams.
|
267
|
+
:rtype: bool
|
268
|
+
"""
|
269
|
+
return self._is_only_init_task
|
270
|
+
|
271
|
+
@is_only_init_task.setter
|
272
|
+
def is_only_init_task(self, is_only_init_task):
|
273
|
+
"""Sets the is_only_init_task of this ActionParams.
|
274
|
+
|
275
|
+
是否支持只初始化任务。仅支持白名单用户使用,需要提交工单申请才能使用。
|
276
|
+
|
277
|
+
:param is_only_init_task: The is_only_init_task of this ActionParams.
|
278
|
+
:type is_only_init_task: bool
|
279
|
+
"""
|
280
|
+
self._is_only_init_task = is_only_init_task
|
281
|
+
|
253
282
|
@property
|
254
283
|
def force_delete(self):
|
255
284
|
"""Gets the force_delete of this ActionParams.
|
@@ -18,47 +18,167 @@ class CreateJobResponse(SdkResponse):
|
|
18
18
|
sensitive_list = []
|
19
19
|
|
20
20
|
openapi_types = {
|
21
|
-
'
|
21
|
+
'id': 'str',
|
22
|
+
'name': 'str',
|
23
|
+
'status': 'str',
|
24
|
+
'create_time': 'str',
|
25
|
+
'is_clone_job': 'str'
|
22
26
|
}
|
23
27
|
|
24
28
|
attribute_map = {
|
25
|
-
'
|
29
|
+
'id': 'id',
|
30
|
+
'name': 'name',
|
31
|
+
'status': 'status',
|
32
|
+
'create_time': 'create_time',
|
33
|
+
'is_clone_job': 'is_clone_job'
|
26
34
|
}
|
27
35
|
|
28
|
-
def __init__(self,
|
36
|
+
def __init__(self, id=None, name=None, status=None, create_time=None, is_clone_job=None):
|
29
37
|
"""CreateJobResponse
|
30
38
|
|
31
39
|
The model defined in huaweicloud sdk
|
32
40
|
|
33
|
-
:param
|
34
|
-
:type
|
41
|
+
:param id: 任务ID。
|
42
|
+
:type id: str
|
43
|
+
:param name: 任务名称。
|
44
|
+
:type name: str
|
45
|
+
:param status: 任务状态。
|
46
|
+
:type status: str
|
47
|
+
:param create_time: 任务创建时间。
|
48
|
+
:type create_time: str
|
49
|
+
:param is_clone_job: 是否为克隆任务。
|
50
|
+
:type is_clone_job: str
|
35
51
|
"""
|
36
52
|
|
37
53
|
super(CreateJobResponse, self).__init__()
|
38
54
|
|
39
|
-
self.
|
55
|
+
self._id = None
|
56
|
+
self._name = None
|
57
|
+
self._status = None
|
58
|
+
self._create_time = None
|
59
|
+
self._is_clone_job = None
|
40
60
|
self.discriminator = None
|
41
61
|
|
42
|
-
if
|
43
|
-
self.
|
62
|
+
if id is not None:
|
63
|
+
self.id = id
|
64
|
+
if name is not None:
|
65
|
+
self.name = name
|
66
|
+
if status is not None:
|
67
|
+
self.status = status
|
68
|
+
if create_time is not None:
|
69
|
+
self.create_time = create_time
|
70
|
+
if is_clone_job is not None:
|
71
|
+
self.is_clone_job = is_clone_job
|
44
72
|
|
45
73
|
@property
|
46
|
-
def
|
47
|
-
"""Gets the
|
74
|
+
def id(self):
|
75
|
+
"""Gets the id of this CreateJobResponse.
|
48
76
|
|
49
|
-
|
50
|
-
|
77
|
+
任务ID。
|
78
|
+
|
79
|
+
:return: The id of this CreateJobResponse.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._id
|
83
|
+
|
84
|
+
@id.setter
|
85
|
+
def id(self, id):
|
86
|
+
"""Sets the id of this CreateJobResponse.
|
87
|
+
|
88
|
+
任务ID。
|
89
|
+
|
90
|
+
:param id: The id of this CreateJobResponse.
|
91
|
+
:type id: str
|
92
|
+
"""
|
93
|
+
self._id = id
|
94
|
+
|
95
|
+
@property
|
96
|
+
def name(self):
|
97
|
+
"""Gets the name of this CreateJobResponse.
|
98
|
+
|
99
|
+
任务名称。
|
100
|
+
|
101
|
+
:return: The name of this CreateJobResponse.
|
102
|
+
:rtype: str
|
103
|
+
"""
|
104
|
+
return self._name
|
105
|
+
|
106
|
+
@name.setter
|
107
|
+
def name(self, name):
|
108
|
+
"""Sets the name of this CreateJobResponse.
|
109
|
+
|
110
|
+
任务名称。
|
111
|
+
|
112
|
+
:param name: The name of this CreateJobResponse.
|
113
|
+
:type name: str
|
114
|
+
"""
|
115
|
+
self._name = name
|
116
|
+
|
117
|
+
@property
|
118
|
+
def status(self):
|
119
|
+
"""Gets the status of this CreateJobResponse.
|
120
|
+
|
121
|
+
任务状态。
|
122
|
+
|
123
|
+
:return: The status of this CreateJobResponse.
|
124
|
+
:rtype: str
|
51
125
|
"""
|
52
|
-
return self.
|
126
|
+
return self._status
|
127
|
+
|
128
|
+
@status.setter
|
129
|
+
def status(self, status):
|
130
|
+
"""Sets the status of this CreateJobResponse.
|
131
|
+
|
132
|
+
任务状态。
|
133
|
+
|
134
|
+
:param status: The status of this CreateJobResponse.
|
135
|
+
:type status: str
|
136
|
+
"""
|
137
|
+
self._status = status
|
138
|
+
|
139
|
+
@property
|
140
|
+
def create_time(self):
|
141
|
+
"""Gets the create_time of this CreateJobResponse.
|
142
|
+
|
143
|
+
任务创建时间。
|
144
|
+
|
145
|
+
:return: The create_time of this CreateJobResponse.
|
146
|
+
:rtype: str
|
147
|
+
"""
|
148
|
+
return self._create_time
|
149
|
+
|
150
|
+
@create_time.setter
|
151
|
+
def create_time(self, create_time):
|
152
|
+
"""Sets the create_time of this CreateJobResponse.
|
153
|
+
|
154
|
+
任务创建时间。
|
155
|
+
|
156
|
+
:param create_time: The create_time of this CreateJobResponse.
|
157
|
+
:type create_time: str
|
158
|
+
"""
|
159
|
+
self._create_time = create_time
|
160
|
+
|
161
|
+
@property
|
162
|
+
def is_clone_job(self):
|
163
|
+
"""Gets the is_clone_job of this CreateJobResponse.
|
164
|
+
|
165
|
+
是否为克隆任务。
|
166
|
+
|
167
|
+
:return: The is_clone_job of this CreateJobResponse.
|
168
|
+
:rtype: str
|
169
|
+
"""
|
170
|
+
return self._is_clone_job
|
171
|
+
|
172
|
+
@is_clone_job.setter
|
173
|
+
def is_clone_job(self, is_clone_job):
|
174
|
+
"""Sets the is_clone_job of this CreateJobResponse.
|
53
175
|
|
54
|
-
|
55
|
-
def job(self, job):
|
56
|
-
"""Sets the job of this CreateJobResponse.
|
176
|
+
是否为克隆任务。
|
57
177
|
|
58
|
-
:param
|
59
|
-
:type
|
178
|
+
:param is_clone_job: The is_clone_job of this CreateJobResponse.
|
179
|
+
:type is_clone_job: str
|
60
180
|
"""
|
61
|
-
self.
|
181
|
+
self._is_clone_job = is_clone_job
|
62
182
|
|
63
183
|
def to_dict(self):
|
64
184
|
"""Returns the model properties as a dict"""
|
@@ -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 DeleteUserDriverReq:
|
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
|
+
'driver_type': 'str',
|
21
|
+
'driver_names': 'list[str]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'driver_type': 'driver_type',
|
26
|
+
'driver_names': 'driver_names'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, driver_type=None, driver_names=None):
|
30
|
+
"""DeleteUserDriverReq
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param driver_type: 指定待删除的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix
|
35
|
+
:type driver_type: str
|
36
|
+
:param driver_names: JDBC驱动文件列表,列表长度1-20,driver_name的长度5-64,结尾以.jar结尾。
|
37
|
+
:type driver_names: list[str]
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._driver_type = None
|
43
|
+
self._driver_names = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.driver_type = driver_type
|
47
|
+
self.driver_names = driver_names
|
48
|
+
|
49
|
+
@property
|
50
|
+
def driver_type(self):
|
51
|
+
"""Gets the driver_type of this DeleteUserDriverReq.
|
52
|
+
|
53
|
+
指定待删除的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix
|
54
|
+
|
55
|
+
:return: The driver_type of this DeleteUserDriverReq.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._driver_type
|
59
|
+
|
60
|
+
@driver_type.setter
|
61
|
+
def driver_type(self, driver_type):
|
62
|
+
"""Sets the driver_type of this DeleteUserDriverReq.
|
63
|
+
|
64
|
+
指定待删除的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix
|
65
|
+
|
66
|
+
:param driver_type: The driver_type of this DeleteUserDriverReq.
|
67
|
+
:type driver_type: str
|
68
|
+
"""
|
69
|
+
self._driver_type = driver_type
|
70
|
+
|
71
|
+
@property
|
72
|
+
def driver_names(self):
|
73
|
+
"""Gets the driver_names of this DeleteUserDriverReq.
|
74
|
+
|
75
|
+
JDBC驱动文件列表,列表长度1-20,driver_name的长度5-64,结尾以.jar结尾。
|
76
|
+
|
77
|
+
:return: The driver_names of this DeleteUserDriverReq.
|
78
|
+
:rtype: list[str]
|
79
|
+
"""
|
80
|
+
return self._driver_names
|
81
|
+
|
82
|
+
@driver_names.setter
|
83
|
+
def driver_names(self, driver_names):
|
84
|
+
"""Sets the driver_names of this DeleteUserDriverReq.
|
85
|
+
|
86
|
+
JDBC驱动文件列表,列表长度1-20,driver_name的长度5-64,结尾以.jar结尾。
|
87
|
+
|
88
|
+
:param driver_names: The driver_names of this DeleteUserDriverReq.
|
89
|
+
:type driver_names: list[str]
|
90
|
+
"""
|
91
|
+
self._driver_names = driver_names
|
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, DeleteUserDriverReq):
|
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
|
@@ -0,0 +1,140 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteUserJdbcDriverRequest:
|
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
|
+
'x_language': 'str',
|
21
|
+
'body': 'DeleteUserDriverReq'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, body=None):
|
30
|
+
"""DeleteUserJdbcDriverRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 请求语言类型。
|
35
|
+
:type x_language: str
|
36
|
+
:param body: Body of the DeleteUserJdbcDriverRequest
|
37
|
+
:type body: :class:`huaweicloudsdkdrs.v5.DeleteUserDriverReq`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
if body is not None:
|
49
|
+
self.body = body
|
50
|
+
|
51
|
+
@property
|
52
|
+
def x_language(self):
|
53
|
+
"""Gets the x_language of this DeleteUserJdbcDriverRequest.
|
54
|
+
|
55
|
+
请求语言类型。
|
56
|
+
|
57
|
+
:return: The x_language of this DeleteUserJdbcDriverRequest.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._x_language
|
61
|
+
|
62
|
+
@x_language.setter
|
63
|
+
def x_language(self, x_language):
|
64
|
+
"""Sets the x_language of this DeleteUserJdbcDriverRequest.
|
65
|
+
|
66
|
+
请求语言类型。
|
67
|
+
|
68
|
+
:param x_language: The x_language of this DeleteUserJdbcDriverRequest.
|
69
|
+
:type x_language: str
|
70
|
+
"""
|
71
|
+
self._x_language = x_language
|
72
|
+
|
73
|
+
@property
|
74
|
+
def body(self):
|
75
|
+
"""Gets the body of this DeleteUserJdbcDriverRequest.
|
76
|
+
|
77
|
+
:return: The body of this DeleteUserJdbcDriverRequest.
|
78
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.DeleteUserDriverReq`
|
79
|
+
"""
|
80
|
+
return self._body
|
81
|
+
|
82
|
+
@body.setter
|
83
|
+
def body(self, body):
|
84
|
+
"""Sets the body of this DeleteUserJdbcDriverRequest.
|
85
|
+
|
86
|
+
:param body: The body of this DeleteUserJdbcDriverRequest.
|
87
|
+
:type body: :class:`huaweicloudsdkdrs.v5.DeleteUserDriverReq`
|
88
|
+
"""
|
89
|
+
self._body = body
|
90
|
+
|
91
|
+
def to_dict(self):
|
92
|
+
"""Returns the model properties as a dict"""
|
93
|
+
result = {}
|
94
|
+
|
95
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
96
|
+
value = getattr(self, attr)
|
97
|
+
if isinstance(value, list):
|
98
|
+
result[attr] = list(map(
|
99
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
100
|
+
value
|
101
|
+
))
|
102
|
+
elif hasattr(value, "to_dict"):
|
103
|
+
result[attr] = value.to_dict()
|
104
|
+
elif isinstance(value, dict):
|
105
|
+
result[attr] = dict(map(
|
106
|
+
lambda item: (item[0], item[1].to_dict())
|
107
|
+
if hasattr(item[1], "to_dict") else item,
|
108
|
+
value.items()
|
109
|
+
))
|
110
|
+
else:
|
111
|
+
if attr in self.sensitive_list:
|
112
|
+
result[attr] = "****"
|
113
|
+
else:
|
114
|
+
result[attr] = value
|
115
|
+
|
116
|
+
return result
|
117
|
+
|
118
|
+
def to_str(self):
|
119
|
+
"""Returns the string representation of the model"""
|
120
|
+
import simplejson as json
|
121
|
+
if six.PY2:
|
122
|
+
import sys
|
123
|
+
reload(sys)
|
124
|
+
sys.setdefaultencoding("utf-8")
|
125
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
126
|
+
|
127
|
+
def __repr__(self):
|
128
|
+
"""For `print`"""
|
129
|
+
return self.to_str()
|
130
|
+
|
131
|
+
def __eq__(self, other):
|
132
|
+
"""Returns true if both objects are equal"""
|
133
|
+
if not isinstance(other, DeleteUserJdbcDriverRequest):
|
134
|
+
return False
|
135
|
+
|
136
|
+
return self.__dict__ == other.__dict__
|
137
|
+
|
138
|
+
def __ne__(self, other):
|
139
|
+
"""Returns true if both objects are not equal"""
|
140
|
+
return not self == other
|