huaweicloudsdkmssi 3.1.160__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.
- huaweicloudsdkmssi/__init__.py +0 -0
- huaweicloudsdkmssi/v1/__init__.py +53 -0
- huaweicloudsdkmssi/v1/model/__init__.py +50 -0
- huaweicloudsdkmssi/v1/model/action_base_info.py +542 -0
- huaweicloudsdkmssi/v1/model/api_config.py +115 -0
- huaweicloudsdkmssi/v1/model/auth_config_a.py +261 -0
- huaweicloudsdkmssi/v1/model/base_connection_info.py +361 -0
- huaweicloudsdkmssi/v1/model/connection_info.py +761 -0
- huaweicloudsdkmssi/v1/model/connector_info.py +753 -0
- huaweicloudsdkmssi/v1/model/connector_info0.py +575 -0
- huaweicloudsdkmssi/v1/model/create_connection_info_request.py +111 -0
- huaweicloudsdkmssi/v1/model/create_connection_info_response.py +174 -0
- huaweicloudsdkmssi/v1/model/create_custom_connector_from_openapi_request.py +111 -0
- huaweicloudsdkmssi/v1/model/create_custom_connector_from_openapi_response.py +282 -0
- huaweicloudsdkmssi/v1/model/create_flow_request.py +111 -0
- huaweicloudsdkmssi/v1/model/create_flow_response.py +203 -0
- huaweicloudsdkmssi/v1/model/create_flow_template_from_flow_request.py +139 -0
- huaweicloudsdkmssi/v1/model/create_flow_template_from_flow_response.py +203 -0
- huaweicloudsdkmssi/v1/model/custom_connector_info_v2.py +244 -0
- huaweicloudsdkmssi/v1/model/delete_connection_info_request.py +114 -0
- huaweicloudsdkmssi/v1/model/delete_connection_info_response.py +174 -0
- huaweicloudsdkmssi/v1/model/delete_custom_connector_request.py +114 -0
- huaweicloudsdkmssi/v1/model/delete_custom_connector_response.py +174 -0
- huaweicloudsdkmssi/v1/model/delete_flow_request.py +114 -0
- huaweicloudsdkmssi/v1/model/delete_flow_response.py +174 -0
- huaweicloudsdkmssi/v1/model/flow_meta.py +1114 -0
- huaweicloudsdkmssi/v1/model/runtime_permission.py +231 -0
- huaweicloudsdkmssi/v1/model/search_flow_by_id_request.py +143 -0
- huaweicloudsdkmssi/v1/model/search_flow_by_id_response.py +1115 -0
- huaweicloudsdkmssi/v1/model/show_all_connections_request.py +171 -0
- huaweicloudsdkmssi/v1/model/show_all_connections_response.py +85 -0
- huaweicloudsdkmssi/v1/model/show_all_flows_request.py +258 -0
- huaweicloudsdkmssi/v1/model/show_all_flows_response.py +145 -0
- huaweicloudsdkmssi/v1/model/show_connectors_request.py +258 -0
- huaweicloudsdkmssi/v1/model/show_connectors_response.py +145 -0
- huaweicloudsdkmssi/v1/model/show_custom_connector_request.py +114 -0
- huaweicloudsdkmssi/v1/model/show_custom_connector_response.py +174 -0
- huaweicloudsdkmssi/v1/model/show_custom_connectors_request.py +171 -0
- huaweicloudsdkmssi/v1/model/show_custom_connectors_response.py +145 -0
- huaweicloudsdkmssi/v1/model/show_single_connection_request.py +114 -0
- huaweicloudsdkmssi/v1/model/show_single_connection_response.py +762 -0
- huaweicloudsdkmssi/v1/model/tag.py +144 -0
- huaweicloudsdkmssi/v1/model/template_message.py +171 -0
- huaweicloudsdkmssi/v1/model/trigger_base_info.py +542 -0
- huaweicloudsdkmssi/v1/model/update_connection_info_request.py +139 -0
- huaweicloudsdkmssi/v1/model/update_connection_info_response.py +174 -0
- huaweicloudsdkmssi/v1/model/update_flow_request.py +139 -0
- huaweicloudsdkmssi/v1/model/update_flow_response.py +203 -0
- huaweicloudsdkmssi/v1/mssi_async_client.py +1157 -0
- huaweicloudsdkmssi/v1/mssi_client.py +1154 -0
- huaweicloudsdkmssi/v1/region/__init__.py +0 -0
- huaweicloudsdkmssi/v1/region/mssi_region.py +31 -0
- huaweicloudsdkmssi-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkmssi-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkmssi-3.1.160.dist-info/RECORD +57 -0
- huaweicloudsdkmssi-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkmssi-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,244 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CustomConnectorInfoV2:
|
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
|
+
'api_config': 'ApiConfig',
|
21
|
+
'auth_content': 'AuthConfigA',
|
22
|
+
'connector_created_type': 'str',
|
23
|
+
'connector_type': 'str',
|
24
|
+
'icon': 'str',
|
25
|
+
'swagger': 'object'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'api_config': 'api_config',
|
30
|
+
'auth_content': 'auth_content',
|
31
|
+
'connector_created_type': 'connector_created_type',
|
32
|
+
'connector_type': 'connector_type',
|
33
|
+
'icon': 'icon',
|
34
|
+
'swagger': 'swagger'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, api_config=None, auth_content=None, connector_created_type=None, connector_type=None, icon=None, swagger=None):
|
38
|
+
r"""CustomConnectorInfoV2
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param api_config:
|
43
|
+
:type api_config: :class:`huaweicloudsdkmssi.v1.ApiConfig`
|
44
|
+
:param auth_content:
|
45
|
+
:type auth_content: :class:`huaweicloudsdkmssi.v1.AuthConfigA`
|
46
|
+
:param connector_created_type:
|
47
|
+
:type connector_created_type: str
|
48
|
+
:param connector_type:
|
49
|
+
:type connector_type: str
|
50
|
+
:param icon: logo base64编码
|
51
|
+
:type icon: str
|
52
|
+
:param swagger: swagger文档,大文本
|
53
|
+
:type swagger: object
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._api_config = None
|
59
|
+
self._auth_content = None
|
60
|
+
self._connector_created_type = None
|
61
|
+
self._connector_type = None
|
62
|
+
self._icon = None
|
63
|
+
self._swagger = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if api_config is not None:
|
67
|
+
self.api_config = api_config
|
68
|
+
if auth_content is not None:
|
69
|
+
self.auth_content = auth_content
|
70
|
+
if connector_created_type is not None:
|
71
|
+
self.connector_created_type = connector_created_type
|
72
|
+
if connector_type is not None:
|
73
|
+
self.connector_type = connector_type
|
74
|
+
if icon is not None:
|
75
|
+
self.icon = icon
|
76
|
+
if swagger is not None:
|
77
|
+
self.swagger = swagger
|
78
|
+
|
79
|
+
@property
|
80
|
+
def api_config(self):
|
81
|
+
r"""Gets the api_config of this CustomConnectorInfoV2.
|
82
|
+
|
83
|
+
:return: The api_config of this CustomConnectorInfoV2.
|
84
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.ApiConfig`
|
85
|
+
"""
|
86
|
+
return self._api_config
|
87
|
+
|
88
|
+
@api_config.setter
|
89
|
+
def api_config(self, api_config):
|
90
|
+
r"""Sets the api_config of this CustomConnectorInfoV2.
|
91
|
+
|
92
|
+
:param api_config: The api_config of this CustomConnectorInfoV2.
|
93
|
+
:type api_config: :class:`huaweicloudsdkmssi.v1.ApiConfig`
|
94
|
+
"""
|
95
|
+
self._api_config = api_config
|
96
|
+
|
97
|
+
@property
|
98
|
+
def auth_content(self):
|
99
|
+
r"""Gets the auth_content of this CustomConnectorInfoV2.
|
100
|
+
|
101
|
+
:return: The auth_content of this CustomConnectorInfoV2.
|
102
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.AuthConfigA`
|
103
|
+
"""
|
104
|
+
return self._auth_content
|
105
|
+
|
106
|
+
@auth_content.setter
|
107
|
+
def auth_content(self, auth_content):
|
108
|
+
r"""Sets the auth_content of this CustomConnectorInfoV2.
|
109
|
+
|
110
|
+
:param auth_content: The auth_content of this CustomConnectorInfoV2.
|
111
|
+
:type auth_content: :class:`huaweicloudsdkmssi.v1.AuthConfigA`
|
112
|
+
"""
|
113
|
+
self._auth_content = auth_content
|
114
|
+
|
115
|
+
@property
|
116
|
+
def connector_created_type(self):
|
117
|
+
r"""Gets the connector_created_type of this CustomConnectorInfoV2.
|
118
|
+
|
119
|
+
:return: The connector_created_type of this CustomConnectorInfoV2.
|
120
|
+
:rtype: str
|
121
|
+
"""
|
122
|
+
return self._connector_created_type
|
123
|
+
|
124
|
+
@connector_created_type.setter
|
125
|
+
def connector_created_type(self, connector_created_type):
|
126
|
+
r"""Sets the connector_created_type of this CustomConnectorInfoV2.
|
127
|
+
|
128
|
+
:param connector_created_type: The connector_created_type of this CustomConnectorInfoV2.
|
129
|
+
:type connector_created_type: str
|
130
|
+
"""
|
131
|
+
self._connector_created_type = connector_created_type
|
132
|
+
|
133
|
+
@property
|
134
|
+
def connector_type(self):
|
135
|
+
r"""Gets the connector_type of this CustomConnectorInfoV2.
|
136
|
+
|
137
|
+
:return: The connector_type of this CustomConnectorInfoV2.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._connector_type
|
141
|
+
|
142
|
+
@connector_type.setter
|
143
|
+
def connector_type(self, connector_type):
|
144
|
+
r"""Sets the connector_type of this CustomConnectorInfoV2.
|
145
|
+
|
146
|
+
:param connector_type: The connector_type of this CustomConnectorInfoV2.
|
147
|
+
:type connector_type: str
|
148
|
+
"""
|
149
|
+
self._connector_type = connector_type
|
150
|
+
|
151
|
+
@property
|
152
|
+
def icon(self):
|
153
|
+
r"""Gets the icon of this CustomConnectorInfoV2.
|
154
|
+
|
155
|
+
logo base64编码
|
156
|
+
|
157
|
+
:return: The icon of this CustomConnectorInfoV2.
|
158
|
+
:rtype: str
|
159
|
+
"""
|
160
|
+
return self._icon
|
161
|
+
|
162
|
+
@icon.setter
|
163
|
+
def icon(self, icon):
|
164
|
+
r"""Sets the icon of this CustomConnectorInfoV2.
|
165
|
+
|
166
|
+
logo base64编码
|
167
|
+
|
168
|
+
:param icon: The icon of this CustomConnectorInfoV2.
|
169
|
+
:type icon: str
|
170
|
+
"""
|
171
|
+
self._icon = icon
|
172
|
+
|
173
|
+
@property
|
174
|
+
def swagger(self):
|
175
|
+
r"""Gets the swagger of this CustomConnectorInfoV2.
|
176
|
+
|
177
|
+
swagger文档,大文本
|
178
|
+
|
179
|
+
:return: The swagger of this CustomConnectorInfoV2.
|
180
|
+
:rtype: object
|
181
|
+
"""
|
182
|
+
return self._swagger
|
183
|
+
|
184
|
+
@swagger.setter
|
185
|
+
def swagger(self, swagger):
|
186
|
+
r"""Sets the swagger of this CustomConnectorInfoV2.
|
187
|
+
|
188
|
+
swagger文档,大文本
|
189
|
+
|
190
|
+
:param swagger: The swagger of this CustomConnectorInfoV2.
|
191
|
+
:type swagger: object
|
192
|
+
"""
|
193
|
+
self._swagger = swagger
|
194
|
+
|
195
|
+
def to_dict(self):
|
196
|
+
"""Returns the model properties as a dict"""
|
197
|
+
result = {}
|
198
|
+
|
199
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
200
|
+
value = getattr(self, attr)
|
201
|
+
if isinstance(value, list):
|
202
|
+
result[attr] = list(map(
|
203
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
204
|
+
value
|
205
|
+
))
|
206
|
+
elif hasattr(value, "to_dict"):
|
207
|
+
result[attr] = value.to_dict()
|
208
|
+
elif isinstance(value, dict):
|
209
|
+
result[attr] = dict(map(
|
210
|
+
lambda item: (item[0], item[1].to_dict())
|
211
|
+
if hasattr(item[1], "to_dict") else item,
|
212
|
+
value.items()
|
213
|
+
))
|
214
|
+
else:
|
215
|
+
if attr in self.sensitive_list:
|
216
|
+
result[attr] = "****"
|
217
|
+
else:
|
218
|
+
result[attr] = value
|
219
|
+
|
220
|
+
return result
|
221
|
+
|
222
|
+
def to_str(self):
|
223
|
+
"""Returns the string representation of the model"""
|
224
|
+
import simplejson as json
|
225
|
+
if six.PY2:
|
226
|
+
import sys
|
227
|
+
reload(sys)
|
228
|
+
sys.setdefaultencoding("utf-8")
|
229
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
230
|
+
|
231
|
+
def __repr__(self):
|
232
|
+
"""For `print`"""
|
233
|
+
return self.to_str()
|
234
|
+
|
235
|
+
def __eq__(self, other):
|
236
|
+
"""Returns true if both objects are equal"""
|
237
|
+
if not isinstance(other, CustomConnectorInfoV2):
|
238
|
+
return False
|
239
|
+
|
240
|
+
return self.__dict__ == other.__dict__
|
241
|
+
|
242
|
+
def __ne__(self, other):
|
243
|
+
"""Returns true if both objects are not equal"""
|
244
|
+
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 DeleteConnectionInfoRequest:
|
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
|
+
'connect_id': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'connect_id': 'connect_id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, connect_id=None):
|
28
|
+
r"""DeleteConnectionInfoRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param connect_id: ID of Connection
|
33
|
+
:type connect_id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._connect_id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.connect_id = connect_id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def connect_id(self):
|
45
|
+
r"""Gets the connect_id of this DeleteConnectionInfoRequest.
|
46
|
+
|
47
|
+
ID of Connection
|
48
|
+
|
49
|
+
:return: The connect_id of this DeleteConnectionInfoRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._connect_id
|
53
|
+
|
54
|
+
@connect_id.setter
|
55
|
+
def connect_id(self, connect_id):
|
56
|
+
r"""Sets the connect_id of this DeleteConnectionInfoRequest.
|
57
|
+
|
58
|
+
ID of Connection
|
59
|
+
|
60
|
+
:param connect_id: The connect_id of this DeleteConnectionInfoRequest.
|
61
|
+
:type connect_id: str
|
62
|
+
"""
|
63
|
+
self._connect_id = connect_id
|
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, DeleteConnectionInfoRequest):
|
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,174 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class DeleteConnectionInfoResponse(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
|
+
'res_code': 'int',
|
22
|
+
'res_log': 'str',
|
23
|
+
'res_msg': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'res_code': 'res_code',
|
28
|
+
'res_log': 'res_log',
|
29
|
+
'res_msg': 'res_msg'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, res_code=None, res_log=None, res_msg=None):
|
33
|
+
r"""DeleteConnectionInfoResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param res_code: 状态码
|
38
|
+
:type res_code: int
|
39
|
+
:param res_log: 成功信息
|
40
|
+
:type res_log: str
|
41
|
+
:param res_msg: 成功信息
|
42
|
+
:type res_msg: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(DeleteConnectionInfoResponse, self).__init__()
|
46
|
+
|
47
|
+
self._res_code = None
|
48
|
+
self._res_log = None
|
49
|
+
self._res_msg = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if res_code is not None:
|
53
|
+
self.res_code = res_code
|
54
|
+
if res_log is not None:
|
55
|
+
self.res_log = res_log
|
56
|
+
if res_msg is not None:
|
57
|
+
self.res_msg = res_msg
|
58
|
+
|
59
|
+
@property
|
60
|
+
def res_code(self):
|
61
|
+
r"""Gets the res_code of this DeleteConnectionInfoResponse.
|
62
|
+
|
63
|
+
状态码
|
64
|
+
|
65
|
+
:return: The res_code of this DeleteConnectionInfoResponse.
|
66
|
+
:rtype: int
|
67
|
+
"""
|
68
|
+
return self._res_code
|
69
|
+
|
70
|
+
@res_code.setter
|
71
|
+
def res_code(self, res_code):
|
72
|
+
r"""Sets the res_code of this DeleteConnectionInfoResponse.
|
73
|
+
|
74
|
+
状态码
|
75
|
+
|
76
|
+
:param res_code: The res_code of this DeleteConnectionInfoResponse.
|
77
|
+
:type res_code: int
|
78
|
+
"""
|
79
|
+
self._res_code = res_code
|
80
|
+
|
81
|
+
@property
|
82
|
+
def res_log(self):
|
83
|
+
r"""Gets the res_log of this DeleteConnectionInfoResponse.
|
84
|
+
|
85
|
+
成功信息
|
86
|
+
|
87
|
+
:return: The res_log of this DeleteConnectionInfoResponse.
|
88
|
+
:rtype: str
|
89
|
+
"""
|
90
|
+
return self._res_log
|
91
|
+
|
92
|
+
@res_log.setter
|
93
|
+
def res_log(self, res_log):
|
94
|
+
r"""Sets the res_log of this DeleteConnectionInfoResponse.
|
95
|
+
|
96
|
+
成功信息
|
97
|
+
|
98
|
+
:param res_log: The res_log of this DeleteConnectionInfoResponse.
|
99
|
+
:type res_log: str
|
100
|
+
"""
|
101
|
+
self._res_log = res_log
|
102
|
+
|
103
|
+
@property
|
104
|
+
def res_msg(self):
|
105
|
+
r"""Gets the res_msg of this DeleteConnectionInfoResponse.
|
106
|
+
|
107
|
+
成功信息
|
108
|
+
|
109
|
+
:return: The res_msg of this DeleteConnectionInfoResponse.
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._res_msg
|
113
|
+
|
114
|
+
@res_msg.setter
|
115
|
+
def res_msg(self, res_msg):
|
116
|
+
r"""Sets the res_msg of this DeleteConnectionInfoResponse.
|
117
|
+
|
118
|
+
成功信息
|
119
|
+
|
120
|
+
:param res_msg: The res_msg of this DeleteConnectionInfoResponse.
|
121
|
+
:type res_msg: str
|
122
|
+
"""
|
123
|
+
self._res_msg = res_msg
|
124
|
+
|
125
|
+
def to_dict(self):
|
126
|
+
"""Returns the model properties as a dict"""
|
127
|
+
result = {}
|
128
|
+
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
130
|
+
value = getattr(self, attr)
|
131
|
+
if isinstance(value, list):
|
132
|
+
result[attr] = list(map(
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
134
|
+
value
|
135
|
+
))
|
136
|
+
elif hasattr(value, "to_dict"):
|
137
|
+
result[attr] = value.to_dict()
|
138
|
+
elif isinstance(value, dict):
|
139
|
+
result[attr] = dict(map(
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
142
|
+
value.items()
|
143
|
+
))
|
144
|
+
else:
|
145
|
+
if attr in self.sensitive_list:
|
146
|
+
result[attr] = "****"
|
147
|
+
else:
|
148
|
+
result[attr] = value
|
149
|
+
|
150
|
+
return result
|
151
|
+
|
152
|
+
def to_str(self):
|
153
|
+
"""Returns the string representation of the model"""
|
154
|
+
import simplejson as json
|
155
|
+
if six.PY2:
|
156
|
+
import sys
|
157
|
+
reload(sys)
|
158
|
+
sys.setdefaultencoding("utf-8")
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
160
|
+
|
161
|
+
def __repr__(self):
|
162
|
+
"""For `print`"""
|
163
|
+
return self.to_str()
|
164
|
+
|
165
|
+
def __eq__(self, other):
|
166
|
+
"""Returns true if both objects are equal"""
|
167
|
+
if not isinstance(other, DeleteConnectionInfoResponse):
|
168
|
+
return False
|
169
|
+
|
170
|
+
return self.__dict__ == other.__dict__
|
171
|
+
|
172
|
+
def __ne__(self, other):
|
173
|
+
"""Returns true if both objects are not equal"""
|
174
|
+
return not self == other
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteCustomConnectorRequest:
|
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
|
+
'connector_id': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'connector_id': 'connector_id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, connector_id=None):
|
28
|
+
r"""DeleteCustomConnectorRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param connector_id: ID of CustomConnector
|
33
|
+
:type connector_id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._connector_id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.connector_id = connector_id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def connector_id(self):
|
45
|
+
r"""Gets the connector_id of this DeleteCustomConnectorRequest.
|
46
|
+
|
47
|
+
ID of CustomConnector
|
48
|
+
|
49
|
+
:return: The connector_id of this DeleteCustomConnectorRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._connector_id
|
53
|
+
|
54
|
+
@connector_id.setter
|
55
|
+
def connector_id(self, connector_id):
|
56
|
+
r"""Sets the connector_id of this DeleteCustomConnectorRequest.
|
57
|
+
|
58
|
+
ID of CustomConnector
|
59
|
+
|
60
|
+
:param connector_id: The connector_id of this DeleteCustomConnectorRequest.
|
61
|
+
:type connector_id: str
|
62
|
+
"""
|
63
|
+
self._connector_id = connector_id
|
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, DeleteCustomConnectorRequest):
|
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
|