huaweicloudsdkdrs 3.1.110__py2.py3-none-any.whl → 3.1.112__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.110.dist-info → huaweicloudsdkdrs-3.1.112.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.110.dist-info → huaweicloudsdkdrs-3.1.112.dist-info}/RECORD +27 -17
- huaweicloudsdkdrs/v5/model/create_job_resp.py +0 -227
- {huaweicloudsdkdrs-3.1.110.dist-info → huaweicloudsdkdrs-3.1.112.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.110.dist-info → huaweicloudsdkdrs-3.1.112.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.110.dist-info → huaweicloudsdkdrs-3.1.112.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,168 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SyncUserJdbcDriverRequest:
|
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
|
+
'job_id': 'str',
|
21
|
+
'x_language': 'str',
|
22
|
+
'body': 'UpdateUserDriverReq'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'job_id': 'job_id',
|
27
|
+
'x_language': 'X-Language',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, job_id=None, x_language=None, body=None):
|
32
|
+
"""SyncUserJdbcDriverRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param job_id: 任务ID。
|
37
|
+
:type job_id: str
|
38
|
+
:param x_language: 请求语言类型。
|
39
|
+
:type x_language: str
|
40
|
+
:param body: Body of the SyncUserJdbcDriverRequest
|
41
|
+
:type body: :class:`huaweicloudsdkdrs.v5.UpdateUserDriverReq`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._job_id = None
|
47
|
+
self._x_language = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.job_id = job_id
|
52
|
+
if x_language is not None:
|
53
|
+
self.x_language = x_language
|
54
|
+
if body is not None:
|
55
|
+
self.body = body
|
56
|
+
|
57
|
+
@property
|
58
|
+
def job_id(self):
|
59
|
+
"""Gets the job_id of this SyncUserJdbcDriverRequest.
|
60
|
+
|
61
|
+
任务ID。
|
62
|
+
|
63
|
+
:return: The job_id of this SyncUserJdbcDriverRequest.
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._job_id
|
67
|
+
|
68
|
+
@job_id.setter
|
69
|
+
def job_id(self, job_id):
|
70
|
+
"""Sets the job_id of this SyncUserJdbcDriverRequest.
|
71
|
+
|
72
|
+
任务ID。
|
73
|
+
|
74
|
+
:param job_id: The job_id of this SyncUserJdbcDriverRequest.
|
75
|
+
:type job_id: str
|
76
|
+
"""
|
77
|
+
self._job_id = job_id
|
78
|
+
|
79
|
+
@property
|
80
|
+
def x_language(self):
|
81
|
+
"""Gets the x_language of this SyncUserJdbcDriverRequest.
|
82
|
+
|
83
|
+
请求语言类型。
|
84
|
+
|
85
|
+
:return: The x_language of this SyncUserJdbcDriverRequest.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._x_language
|
89
|
+
|
90
|
+
@x_language.setter
|
91
|
+
def x_language(self, x_language):
|
92
|
+
"""Sets the x_language of this SyncUserJdbcDriverRequest.
|
93
|
+
|
94
|
+
请求语言类型。
|
95
|
+
|
96
|
+
:param x_language: The x_language of this SyncUserJdbcDriverRequest.
|
97
|
+
:type x_language: str
|
98
|
+
"""
|
99
|
+
self._x_language = x_language
|
100
|
+
|
101
|
+
@property
|
102
|
+
def body(self):
|
103
|
+
"""Gets the body of this SyncUserJdbcDriverRequest.
|
104
|
+
|
105
|
+
:return: The body of this SyncUserJdbcDriverRequest.
|
106
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.UpdateUserDriverReq`
|
107
|
+
"""
|
108
|
+
return self._body
|
109
|
+
|
110
|
+
@body.setter
|
111
|
+
def body(self, body):
|
112
|
+
"""Sets the body of this SyncUserJdbcDriverRequest.
|
113
|
+
|
114
|
+
:param body: The body of this SyncUserJdbcDriverRequest.
|
115
|
+
:type body: :class:`huaweicloudsdkdrs.v5.UpdateUserDriverReq`
|
116
|
+
"""
|
117
|
+
self._body = body
|
118
|
+
|
119
|
+
def to_dict(self):
|
120
|
+
"""Returns the model properties as a dict"""
|
121
|
+
result = {}
|
122
|
+
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
124
|
+
value = getattr(self, attr)
|
125
|
+
if isinstance(value, list):
|
126
|
+
result[attr] = list(map(
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
128
|
+
value
|
129
|
+
))
|
130
|
+
elif hasattr(value, "to_dict"):
|
131
|
+
result[attr] = value.to_dict()
|
132
|
+
elif isinstance(value, dict):
|
133
|
+
result[attr] = dict(map(
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
136
|
+
value.items()
|
137
|
+
))
|
138
|
+
else:
|
139
|
+
if attr in self.sensitive_list:
|
140
|
+
result[attr] = "****"
|
141
|
+
else:
|
142
|
+
result[attr] = value
|
143
|
+
|
144
|
+
return result
|
145
|
+
|
146
|
+
def to_str(self):
|
147
|
+
"""Returns the string representation of the model"""
|
148
|
+
import simplejson as json
|
149
|
+
if six.PY2:
|
150
|
+
import sys
|
151
|
+
reload(sys)
|
152
|
+
sys.setdefaultencoding("utf-8")
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
154
|
+
|
155
|
+
def __repr__(self):
|
156
|
+
"""For `print`"""
|
157
|
+
return self.to_str()
|
158
|
+
|
159
|
+
def __eq__(self, other):
|
160
|
+
"""Returns true if both objects are equal"""
|
161
|
+
if not isinstance(other, SyncUserJdbcDriverRequest):
|
162
|
+
return False
|
163
|
+
|
164
|
+
return self.__dict__ == other.__dict__
|
165
|
+
|
166
|
+
def __ne__(self, other):
|
167
|
+
"""Returns true if both objects are not equal"""
|
168
|
+
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 SyncUserJdbcDriverResponse(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
|
+
"""SyncUserJdbcDriverResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param body: 空响应体。
|
34
|
+
:type body: object
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(SyncUserJdbcDriverResponse, 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 SyncUserJdbcDriverResponse.
|
48
|
+
|
49
|
+
空响应体。
|
50
|
+
|
51
|
+
:return: The body of this SyncUserJdbcDriverResponse.
|
52
|
+
:rtype: object
|
53
|
+
"""
|
54
|
+
return self._body
|
55
|
+
|
56
|
+
@body.setter
|
57
|
+
def body(self, body):
|
58
|
+
"""Sets the body of this SyncUserJdbcDriverResponse.
|
59
|
+
|
60
|
+
空响应体。
|
61
|
+
|
62
|
+
:param body: The body of this SyncUserJdbcDriverResponse.
|
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, SyncUserJdbcDriverResponse):
|
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,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateUserDriverReq:
|
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_name': 'str',
|
21
|
+
'driver_type': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'driver_name': 'driver_name',
|
26
|
+
'driver_type': 'driver_type'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, driver_name=None, driver_type=None):
|
30
|
+
"""UpdateUserDriverReq
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param driver_name: JDBC驱动文件名称,name的长度5-64,结尾以.jar结尾。
|
35
|
+
:type driver_name: str
|
36
|
+
:param driver_type: 指定待同步的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix
|
37
|
+
:type driver_type: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._driver_name = None
|
43
|
+
self._driver_type = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.driver_name = driver_name
|
47
|
+
self.driver_type = driver_type
|
48
|
+
|
49
|
+
@property
|
50
|
+
def driver_name(self):
|
51
|
+
"""Gets the driver_name of this UpdateUserDriverReq.
|
52
|
+
|
53
|
+
JDBC驱动文件名称,name的长度5-64,结尾以.jar结尾。
|
54
|
+
|
55
|
+
:return: The driver_name of this UpdateUserDriverReq.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._driver_name
|
59
|
+
|
60
|
+
@driver_name.setter
|
61
|
+
def driver_name(self, driver_name):
|
62
|
+
"""Sets the driver_name of this UpdateUserDriverReq.
|
63
|
+
|
64
|
+
JDBC驱动文件名称,name的长度5-64,结尾以.jar结尾。
|
65
|
+
|
66
|
+
:param driver_name: The driver_name of this UpdateUserDriverReq.
|
67
|
+
:type driver_name: str
|
68
|
+
"""
|
69
|
+
self._driver_name = driver_name
|
70
|
+
|
71
|
+
@property
|
72
|
+
def driver_type(self):
|
73
|
+
"""Gets the driver_type of this UpdateUserDriverReq.
|
74
|
+
|
75
|
+
指定待同步的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix
|
76
|
+
|
77
|
+
:return: The driver_type of this UpdateUserDriverReq.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._driver_type
|
81
|
+
|
82
|
+
@driver_type.setter
|
83
|
+
def driver_type(self, driver_type):
|
84
|
+
"""Sets the driver_type of this UpdateUserDriverReq.
|
85
|
+
|
86
|
+
指定待同步的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix
|
87
|
+
|
88
|
+
:param driver_type: The driver_type of this UpdateUserDriverReq.
|
89
|
+
:type driver_type: str
|
90
|
+
"""
|
91
|
+
self._driver_type = driver_type
|
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, UpdateUserDriverReq):
|
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
|
@@ -29,7 +29,7 @@ class UploadJdbcDriverRequestBody:
|
|
29
29
|
|
30
30
|
The model defined in huaweicloud sdk
|
31
31
|
|
32
|
-
:param file: 驱动文件,驱动文件名称长度5-64,以jar
|
32
|
+
:param file: 驱动文件,驱动文件名称长度5-64,以jar结尾,文件名相同会替换远程驱动文件
|
33
33
|
:type file: :class:`huaweicloudsdkcore.http.formdata.FormFile`
|
34
34
|
"""
|
35
35
|
|
@@ -44,7 +44,7 @@ class UploadJdbcDriverRequestBody:
|
|
44
44
|
def file(self):
|
45
45
|
"""Gets the file of this UploadJdbcDriverRequestBody.
|
46
46
|
|
47
|
-
驱动文件,驱动文件名称长度5-64,以jar
|
47
|
+
驱动文件,驱动文件名称长度5-64,以jar结尾,文件名相同会替换远程驱动文件
|
48
48
|
|
49
49
|
:return: The file of this UploadJdbcDriverRequestBody.
|
50
50
|
:rtype: :class:`huaweicloudsdkcore.http.formdata.FormFile`
|
@@ -55,7 +55,7 @@ class UploadJdbcDriverRequestBody:
|
|
55
55
|
def file(self, file):
|
56
56
|
"""Sets the file of this UploadJdbcDriverRequestBody.
|
57
57
|
|
58
|
-
驱动文件,驱动文件名称长度5-64,以jar
|
58
|
+
驱动文件,驱动文件名称长度5-64,以jar结尾,文件名相同会替换远程驱动文件
|
59
59
|
|
60
60
|
:param file: The file of this UploadJdbcDriverRequestBody.
|
61
61
|
:type file: :class:`huaweicloudsdkcore.http.formdata.FormFile`
|
@@ -0,0 +1,168 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UploadUserJdbcDriverRequest:
|
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
|
+
'driver_type': 'str',
|
22
|
+
'body': 'UploadUserJdbcDriverRequestBody'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_language': 'X-Language',
|
27
|
+
'driver_type': 'driver_type',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, x_language=None, driver_type=None, body=None):
|
32
|
+
"""UploadUserJdbcDriverRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param x_language: 请求语言类型。
|
37
|
+
:type x_language: str
|
38
|
+
:param driver_type: 指定待上传的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix
|
39
|
+
:type driver_type: str
|
40
|
+
:param body: Body of the UploadUserJdbcDriverRequest
|
41
|
+
:type body: :class:`huaweicloudsdkdrs.v5.UploadUserJdbcDriverRequestBody`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._x_language = None
|
47
|
+
self._driver_type = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if x_language is not None:
|
52
|
+
self.x_language = x_language
|
53
|
+
self.driver_type = driver_type
|
54
|
+
if body is not None:
|
55
|
+
self.body = body
|
56
|
+
|
57
|
+
@property
|
58
|
+
def x_language(self):
|
59
|
+
"""Gets the x_language of this UploadUserJdbcDriverRequest.
|
60
|
+
|
61
|
+
请求语言类型。
|
62
|
+
|
63
|
+
:return: The x_language of this UploadUserJdbcDriverRequest.
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._x_language
|
67
|
+
|
68
|
+
@x_language.setter
|
69
|
+
def x_language(self, x_language):
|
70
|
+
"""Sets the x_language of this UploadUserJdbcDriverRequest.
|
71
|
+
|
72
|
+
请求语言类型。
|
73
|
+
|
74
|
+
:param x_language: The x_language of this UploadUserJdbcDriverRequest.
|
75
|
+
:type x_language: str
|
76
|
+
"""
|
77
|
+
self._x_language = x_language
|
78
|
+
|
79
|
+
@property
|
80
|
+
def driver_type(self):
|
81
|
+
"""Gets the driver_type of this UploadUserJdbcDriverRequest.
|
82
|
+
|
83
|
+
指定待上传的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix
|
84
|
+
|
85
|
+
:return: The driver_type of this UploadUserJdbcDriverRequest.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._driver_type
|
89
|
+
|
90
|
+
@driver_type.setter
|
91
|
+
def driver_type(self, driver_type):
|
92
|
+
"""Sets the driver_type of this UploadUserJdbcDriverRequest.
|
93
|
+
|
94
|
+
指定待上传的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix
|
95
|
+
|
96
|
+
:param driver_type: The driver_type of this UploadUserJdbcDriverRequest.
|
97
|
+
:type driver_type: str
|
98
|
+
"""
|
99
|
+
self._driver_type = driver_type
|
100
|
+
|
101
|
+
@property
|
102
|
+
def body(self):
|
103
|
+
"""Gets the body of this UploadUserJdbcDriverRequest.
|
104
|
+
|
105
|
+
:return: The body of this UploadUserJdbcDriverRequest.
|
106
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.UploadUserJdbcDriverRequestBody`
|
107
|
+
"""
|
108
|
+
return self._body
|
109
|
+
|
110
|
+
@body.setter
|
111
|
+
def body(self, body):
|
112
|
+
"""Sets the body of this UploadUserJdbcDriverRequest.
|
113
|
+
|
114
|
+
:param body: The body of this UploadUserJdbcDriverRequest.
|
115
|
+
:type body: :class:`huaweicloudsdkdrs.v5.UploadUserJdbcDriverRequestBody`
|
116
|
+
"""
|
117
|
+
self._body = body
|
118
|
+
|
119
|
+
def to_dict(self):
|
120
|
+
"""Returns the model properties as a dict"""
|
121
|
+
result = {}
|
122
|
+
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
124
|
+
value = getattr(self, attr)
|
125
|
+
if isinstance(value, list):
|
126
|
+
result[attr] = list(map(
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
128
|
+
value
|
129
|
+
))
|
130
|
+
elif hasattr(value, "to_dict"):
|
131
|
+
result[attr] = value.to_dict()
|
132
|
+
elif isinstance(value, dict):
|
133
|
+
result[attr] = dict(map(
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
136
|
+
value.items()
|
137
|
+
))
|
138
|
+
else:
|
139
|
+
if attr in self.sensitive_list:
|
140
|
+
result[attr] = "****"
|
141
|
+
else:
|
142
|
+
result[attr] = value
|
143
|
+
|
144
|
+
return result
|
145
|
+
|
146
|
+
def to_str(self):
|
147
|
+
"""Returns the string representation of the model"""
|
148
|
+
import simplejson as json
|
149
|
+
if six.PY2:
|
150
|
+
import sys
|
151
|
+
reload(sys)
|
152
|
+
sys.setdefaultencoding("utf-8")
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
154
|
+
|
155
|
+
def __repr__(self):
|
156
|
+
"""For `print`"""
|
157
|
+
return self.to_str()
|
158
|
+
|
159
|
+
def __eq__(self, other):
|
160
|
+
"""Returns true if both objects are equal"""
|
161
|
+
if not isinstance(other, UploadUserJdbcDriverRequest):
|
162
|
+
return False
|
163
|
+
|
164
|
+
return self.__dict__ == other.__dict__
|
165
|
+
|
166
|
+
def __ne__(self, other):
|
167
|
+
"""Returns true if both objects are not equal"""
|
168
|
+
return not self == other
|