huaweicloudsdkosm 3.1.143__py2.py3-none-any.whl → 3.1.145__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.
Potentially problematic release.
This version of huaweicloudsdkosm might be problematic. Click here for more details.
- huaweicloudsdkosm/v2/__init__.py +3 -0
- huaweicloudsdkosm/v2/model/__init__.py +3 -0
- huaweicloudsdkosm/v2/model/upload_accessory_request.py +198 -0
- huaweicloudsdkosm/v2/model/upload_accessory_request_body.py +142 -0
- huaweicloudsdkosm/v2/model/upload_accessory_response.py +116 -0
- huaweicloudsdkosm/v2/osm_async_client.py +75 -0
- huaweicloudsdkosm/v2/osm_client.py +75 -0
- {huaweicloudsdkosm-3.1.143.dist-info → huaweicloudsdkosm-3.1.145.dist-info}/METADATA +2 -2
- {huaweicloudsdkosm-3.1.143.dist-info → huaweicloudsdkosm-3.1.145.dist-info}/RECORD +12 -9
- {huaweicloudsdkosm-3.1.143.dist-info → huaweicloudsdkosm-3.1.145.dist-info}/LICENSE +0 -0
- {huaweicloudsdkosm-3.1.143.dist-info → huaweicloudsdkosm-3.1.145.dist-info}/WHEEL +0 -0
- {huaweicloudsdkosm-3.1.143.dist-info → huaweicloudsdkosm-3.1.145.dist-info}/top_level.txt +0 -0
huaweicloudsdkosm/v2/__init__.py
CHANGED
|
@@ -295,6 +295,9 @@ from huaweicloudsdkosm.v2.model.update_labels_response import UpdateLabelsRespon
|
|
|
295
295
|
from huaweicloudsdkosm.v2.model.update_new_instant_messages_read_request import UpdateNewInstantMessagesReadRequest
|
|
296
296
|
from huaweicloudsdkosm.v2.model.update_new_instant_messages_read_response import UpdateNewInstantMessagesReadResponse
|
|
297
297
|
from huaweicloudsdkosm.v2.model.update_unread_new_instant_msg_v2_req import UpdateUnreadNewInstantMsgV2Req
|
|
298
|
+
from huaweicloudsdkosm.v2.model.upload_accessory_request import UploadAccessoryRequest
|
|
299
|
+
from huaweicloudsdkosm.v2.model.upload_accessory_request_body import UploadAccessoryRequestBody
|
|
300
|
+
from huaweicloudsdkosm.v2.model.upload_accessory_response import UploadAccessoryResponse
|
|
298
301
|
from huaweicloudsdkosm.v2.model.upload_json_accessories_request import UploadJsonAccessoriesRequest
|
|
299
302
|
from huaweicloudsdkosm.v2.model.upload_json_accessories_response import UploadJsonAccessoriesResponse
|
|
300
303
|
from huaweicloudsdkosm.v2.model.user_instant_incident_msg_v2 import UserInstantIncidentMsgV2
|
|
@@ -293,6 +293,9 @@ from huaweicloudsdkosm.v2.model.update_labels_response import UpdateLabelsRespon
|
|
|
293
293
|
from huaweicloudsdkosm.v2.model.update_new_instant_messages_read_request import UpdateNewInstantMessagesReadRequest
|
|
294
294
|
from huaweicloudsdkosm.v2.model.update_new_instant_messages_read_response import UpdateNewInstantMessagesReadResponse
|
|
295
295
|
from huaweicloudsdkosm.v2.model.update_unread_new_instant_msg_v2_req import UpdateUnreadNewInstantMsgV2Req
|
|
296
|
+
from huaweicloudsdkosm.v2.model.upload_accessory_request import UploadAccessoryRequest
|
|
297
|
+
from huaweicloudsdkosm.v2.model.upload_accessory_request_body import UploadAccessoryRequestBody
|
|
298
|
+
from huaweicloudsdkosm.v2.model.upload_accessory_response import UploadAccessoryResponse
|
|
296
299
|
from huaweicloudsdkosm.v2.model.upload_json_accessories_request import UploadJsonAccessoriesRequest
|
|
297
300
|
from huaweicloudsdkosm.v2.model.upload_json_accessories_response import UploadJsonAccessoriesResponse
|
|
298
301
|
from huaweicloudsdkosm.v2.model.user_instant_incident_msg_v2 import UserInstantIncidentMsgV2
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UploadAccessoryRequest:
|
|
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_site': 'int',
|
|
21
|
+
'x_language': 'str',
|
|
22
|
+
'x_time_zone': 'str',
|
|
23
|
+
'body': 'UploadAccessoryRequestBody'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'x_site': 'X-Site',
|
|
28
|
+
'x_language': 'X-Language',
|
|
29
|
+
'x_time_zone': 'X-Time-Zone',
|
|
30
|
+
'body': 'body'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, x_site=None, x_language=None, x_time_zone=None, body=None):
|
|
34
|
+
r"""UploadAccessoryRequest
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param x_site: 对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
39
|
+
:type x_site: int
|
|
40
|
+
:param x_language: 语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
41
|
+
:type x_language: str
|
|
42
|
+
:param x_time_zone: 环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
43
|
+
:type x_time_zone: str
|
|
44
|
+
:param body: Body of the UploadAccessoryRequest
|
|
45
|
+
:type body: :class:`huaweicloudsdkosm.v2.UploadAccessoryRequestBody`
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._x_site = None
|
|
51
|
+
self._x_language = None
|
|
52
|
+
self._x_time_zone = None
|
|
53
|
+
self._body = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
if x_site is not None:
|
|
57
|
+
self.x_site = x_site
|
|
58
|
+
if x_language is not None:
|
|
59
|
+
self.x_language = x_language
|
|
60
|
+
if x_time_zone is not None:
|
|
61
|
+
self.x_time_zone = x_time_zone
|
|
62
|
+
if body is not None:
|
|
63
|
+
self.body = body
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def x_site(self):
|
|
67
|
+
r"""Gets the x_site of this UploadAccessoryRequest.
|
|
68
|
+
|
|
69
|
+
对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
70
|
+
|
|
71
|
+
:return: The x_site of this UploadAccessoryRequest.
|
|
72
|
+
:rtype: int
|
|
73
|
+
"""
|
|
74
|
+
return self._x_site
|
|
75
|
+
|
|
76
|
+
@x_site.setter
|
|
77
|
+
def x_site(self, x_site):
|
|
78
|
+
r"""Sets the x_site of this UploadAccessoryRequest.
|
|
79
|
+
|
|
80
|
+
对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
81
|
+
|
|
82
|
+
:param x_site: The x_site of this UploadAccessoryRequest.
|
|
83
|
+
:type x_site: int
|
|
84
|
+
"""
|
|
85
|
+
self._x_site = x_site
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def x_language(self):
|
|
89
|
+
r"""Gets the x_language of this UploadAccessoryRequest.
|
|
90
|
+
|
|
91
|
+
语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
92
|
+
|
|
93
|
+
:return: The x_language of this UploadAccessoryRequest.
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._x_language
|
|
97
|
+
|
|
98
|
+
@x_language.setter
|
|
99
|
+
def x_language(self, x_language):
|
|
100
|
+
r"""Sets the x_language of this UploadAccessoryRequest.
|
|
101
|
+
|
|
102
|
+
语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
103
|
+
|
|
104
|
+
:param x_language: The x_language of this UploadAccessoryRequest.
|
|
105
|
+
:type x_language: str
|
|
106
|
+
"""
|
|
107
|
+
self._x_language = x_language
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def x_time_zone(self):
|
|
111
|
+
r"""Gets the x_time_zone of this UploadAccessoryRequest.
|
|
112
|
+
|
|
113
|
+
环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
114
|
+
|
|
115
|
+
:return: The x_time_zone of this UploadAccessoryRequest.
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._x_time_zone
|
|
119
|
+
|
|
120
|
+
@x_time_zone.setter
|
|
121
|
+
def x_time_zone(self, x_time_zone):
|
|
122
|
+
r"""Sets the x_time_zone of this UploadAccessoryRequest.
|
|
123
|
+
|
|
124
|
+
环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
125
|
+
|
|
126
|
+
:param x_time_zone: The x_time_zone of this UploadAccessoryRequest.
|
|
127
|
+
:type x_time_zone: str
|
|
128
|
+
"""
|
|
129
|
+
self._x_time_zone = x_time_zone
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def body(self):
|
|
133
|
+
r"""Gets the body of this UploadAccessoryRequest.
|
|
134
|
+
|
|
135
|
+
:return: The body of this UploadAccessoryRequest.
|
|
136
|
+
:rtype: :class:`huaweicloudsdkosm.v2.UploadAccessoryRequestBody`
|
|
137
|
+
"""
|
|
138
|
+
return self._body
|
|
139
|
+
|
|
140
|
+
@body.setter
|
|
141
|
+
def body(self, body):
|
|
142
|
+
r"""Sets the body of this UploadAccessoryRequest.
|
|
143
|
+
|
|
144
|
+
:param body: The body of this UploadAccessoryRequest.
|
|
145
|
+
:type body: :class:`huaweicloudsdkosm.v2.UploadAccessoryRequestBody`
|
|
146
|
+
"""
|
|
147
|
+
self._body = body
|
|
148
|
+
|
|
149
|
+
def to_dict(self):
|
|
150
|
+
"""Returns the model properties as a dict"""
|
|
151
|
+
result = {}
|
|
152
|
+
|
|
153
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
154
|
+
value = getattr(self, attr)
|
|
155
|
+
if isinstance(value, list):
|
|
156
|
+
result[attr] = list(map(
|
|
157
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
158
|
+
value
|
|
159
|
+
))
|
|
160
|
+
elif hasattr(value, "to_dict"):
|
|
161
|
+
result[attr] = value.to_dict()
|
|
162
|
+
elif isinstance(value, dict):
|
|
163
|
+
result[attr] = dict(map(
|
|
164
|
+
lambda item: (item[0], item[1].to_dict())
|
|
165
|
+
if hasattr(item[1], "to_dict") else item,
|
|
166
|
+
value.items()
|
|
167
|
+
))
|
|
168
|
+
else:
|
|
169
|
+
if attr in self.sensitive_list:
|
|
170
|
+
result[attr] = "****"
|
|
171
|
+
else:
|
|
172
|
+
result[attr] = value
|
|
173
|
+
|
|
174
|
+
return result
|
|
175
|
+
|
|
176
|
+
def to_str(self):
|
|
177
|
+
"""Returns the string representation of the model"""
|
|
178
|
+
import simplejson as json
|
|
179
|
+
if six.PY2:
|
|
180
|
+
import sys
|
|
181
|
+
reload(sys)
|
|
182
|
+
sys.setdefaultencoding("utf-8")
|
|
183
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
184
|
+
|
|
185
|
+
def __repr__(self):
|
|
186
|
+
"""For `print`"""
|
|
187
|
+
return self.to_str()
|
|
188
|
+
|
|
189
|
+
def __eq__(self, other):
|
|
190
|
+
"""Returns true if both objects are equal"""
|
|
191
|
+
if not isinstance(other, UploadAccessoryRequest):
|
|
192
|
+
return False
|
|
193
|
+
|
|
194
|
+
return self.__dict__ == other.__dict__
|
|
195
|
+
|
|
196
|
+
def __ne__(self, other):
|
|
197
|
+
"""Returns true if both objects are not equal"""
|
|
198
|
+
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 UploadAccessoryRequestBody:
|
|
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
|
+
'file': 'file',
|
|
21
|
+
'form_data': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'file': 'file',
|
|
26
|
+
'form_data': 'form_data'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, file=None, form_data=None):
|
|
30
|
+
r"""UploadAccessoryRequestBody
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param file: 文件内容
|
|
35
|
+
:type file: :class:`huaweicloudsdkcore.http.formdata.FormFile`
|
|
36
|
+
:param form_data: 附件的一些信息,比如来源
|
|
37
|
+
:type form_data: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._file = None
|
|
43
|
+
self._form_data = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.file = file
|
|
47
|
+
self.form_data = form_data
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def file(self):
|
|
51
|
+
r"""Gets the file of this UploadAccessoryRequestBody.
|
|
52
|
+
|
|
53
|
+
文件内容
|
|
54
|
+
|
|
55
|
+
:return: The file of this UploadAccessoryRequestBody.
|
|
56
|
+
:rtype: :class:`huaweicloudsdkcore.http.formdata.FormFile`
|
|
57
|
+
"""
|
|
58
|
+
return self._file
|
|
59
|
+
|
|
60
|
+
@file.setter
|
|
61
|
+
def file(self, file):
|
|
62
|
+
r"""Sets the file of this UploadAccessoryRequestBody.
|
|
63
|
+
|
|
64
|
+
文件内容
|
|
65
|
+
|
|
66
|
+
:param file: The file of this UploadAccessoryRequestBody.
|
|
67
|
+
:type file: :class:`huaweicloudsdkcore.http.formdata.FormFile`
|
|
68
|
+
"""
|
|
69
|
+
self._file = file
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def form_data(self):
|
|
73
|
+
r"""Gets the form_data of this UploadAccessoryRequestBody.
|
|
74
|
+
|
|
75
|
+
附件的一些信息,比如来源
|
|
76
|
+
|
|
77
|
+
:return: The form_data of this UploadAccessoryRequestBody.
|
|
78
|
+
:rtype: str
|
|
79
|
+
"""
|
|
80
|
+
return self._form_data
|
|
81
|
+
|
|
82
|
+
@form_data.setter
|
|
83
|
+
def form_data(self, form_data):
|
|
84
|
+
r"""Sets the form_data of this UploadAccessoryRequestBody.
|
|
85
|
+
|
|
86
|
+
附件的一些信息,比如来源
|
|
87
|
+
|
|
88
|
+
:param form_data: The form_data of this UploadAccessoryRequestBody.
|
|
89
|
+
:type form_data: str
|
|
90
|
+
"""
|
|
91
|
+
self._form_data = form_data
|
|
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, UploadAccessoryRequestBody):
|
|
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,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 UploadAccessoryResponse(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
|
+
'accessory_id': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'accessory_id': 'accessory_id'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, accessory_id=None):
|
|
29
|
+
r"""UploadAccessoryResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param accessory_id: 附件id
|
|
34
|
+
:type accessory_id: str
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
super(UploadAccessoryResponse, self).__init__()
|
|
38
|
+
|
|
39
|
+
self._accessory_id = None
|
|
40
|
+
self.discriminator = None
|
|
41
|
+
|
|
42
|
+
if accessory_id is not None:
|
|
43
|
+
self.accessory_id = accessory_id
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def accessory_id(self):
|
|
47
|
+
r"""Gets the accessory_id of this UploadAccessoryResponse.
|
|
48
|
+
|
|
49
|
+
附件id
|
|
50
|
+
|
|
51
|
+
:return: The accessory_id of this UploadAccessoryResponse.
|
|
52
|
+
:rtype: str
|
|
53
|
+
"""
|
|
54
|
+
return self._accessory_id
|
|
55
|
+
|
|
56
|
+
@accessory_id.setter
|
|
57
|
+
def accessory_id(self, accessory_id):
|
|
58
|
+
r"""Sets the accessory_id of this UploadAccessoryResponse.
|
|
59
|
+
|
|
60
|
+
附件id
|
|
61
|
+
|
|
62
|
+
:param accessory_id: The accessory_id of this UploadAccessoryResponse.
|
|
63
|
+
:type accessory_id: str
|
|
64
|
+
"""
|
|
65
|
+
self._accessory_id = accessory_id
|
|
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, UploadAccessoryResponse):
|
|
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
|
|
@@ -6970,6 +6970,81 @@ class OsmAsyncClient(Client):
|
|
|
6970
6970
|
|
|
6971
6971
|
return http_info
|
|
6972
6972
|
|
|
6973
|
+
def upload_accessory_async(self, request):
|
|
6974
|
+
r"""上传附件
|
|
6975
|
+
|
|
6976
|
+
上传附件接口,使用form-data,上传附件需要满足\"附件限制\"返回的关于大小等限制
|
|
6977
|
+
|
|
6978
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
6979
|
+
|
|
6980
|
+
|
|
6981
|
+
:param request: Request instance for UploadAccessory
|
|
6982
|
+
:type request: :class:`huaweicloudsdkosm.v2.UploadAccessoryRequest`
|
|
6983
|
+
:rtype: :class:`huaweicloudsdkosm.v2.UploadAccessoryResponse`
|
|
6984
|
+
"""
|
|
6985
|
+
http_info = self._upload_accessory_http_info(request)
|
|
6986
|
+
return self._call_api(**http_info)
|
|
6987
|
+
|
|
6988
|
+
def upload_accessory_async_invoker(self, request):
|
|
6989
|
+
http_info = self._upload_accessory_http_info(request)
|
|
6990
|
+
return AsyncInvoker(self, http_info)
|
|
6991
|
+
|
|
6992
|
+
def _upload_accessory_http_info(self, request):
|
|
6993
|
+
http_info = {
|
|
6994
|
+
"method": "POST",
|
|
6995
|
+
"resource_path": "/v2/servicerequest/accessorys",
|
|
6996
|
+
"request_type": request.__class__.__name__,
|
|
6997
|
+
"response_type": "UploadAccessoryResponse"
|
|
6998
|
+
}
|
|
6999
|
+
|
|
7000
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
7001
|
+
|
|
7002
|
+
cname = None
|
|
7003
|
+
|
|
7004
|
+
collection_formats = {}
|
|
7005
|
+
|
|
7006
|
+
path_params = {}
|
|
7007
|
+
|
|
7008
|
+
query_params = []
|
|
7009
|
+
|
|
7010
|
+
header_params = {}
|
|
7011
|
+
if 'x_site' in local_var_params:
|
|
7012
|
+
header_params['X-Site'] = local_var_params['x_site']
|
|
7013
|
+
if 'x_language' in local_var_params:
|
|
7014
|
+
header_params['X-Language'] = local_var_params['x_language']
|
|
7015
|
+
if 'x_time_zone' in local_var_params:
|
|
7016
|
+
header_params['X-Time-Zone'] = local_var_params['x_time_zone']
|
|
7017
|
+
|
|
7018
|
+
form_params = {}
|
|
7019
|
+
if 'file' in local_var_params:
|
|
7020
|
+
form_params['file'] = local_var_params['file']
|
|
7021
|
+
if 'form_data' in local_var_params:
|
|
7022
|
+
form_params['form_data'] = local_var_params['form_data']
|
|
7023
|
+
|
|
7024
|
+
body = None
|
|
7025
|
+
if 'body' in local_var_params:
|
|
7026
|
+
body = local_var_params['body']
|
|
7027
|
+
if isinstance(request, SdkStreamRequest):
|
|
7028
|
+
body = request.get_file_stream()
|
|
7029
|
+
|
|
7030
|
+
response_headers = []
|
|
7031
|
+
|
|
7032
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
7033
|
+
['multipart/form-data'])
|
|
7034
|
+
|
|
7035
|
+
auth_settings = []
|
|
7036
|
+
|
|
7037
|
+
http_info["cname"] = cname
|
|
7038
|
+
http_info["collection_formats"] = collection_formats
|
|
7039
|
+
http_info["path_params"] = path_params
|
|
7040
|
+
http_info["query_params"] = query_params
|
|
7041
|
+
http_info["header_params"] = header_params
|
|
7042
|
+
http_info["post_params"] = form_params
|
|
7043
|
+
http_info["body"] = body
|
|
7044
|
+
http_info["response_headers"] = response_headers
|
|
7045
|
+
|
|
7046
|
+
return http_info
|
|
7047
|
+
|
|
6973
7048
|
def upload_json_accessories_async(self, request):
|
|
6974
7049
|
r"""上传附件
|
|
6975
7050
|
|
|
@@ -6970,6 +6970,81 @@ class OsmClient(Client):
|
|
|
6970
6970
|
|
|
6971
6971
|
return http_info
|
|
6972
6972
|
|
|
6973
|
+
def upload_accessory(self, request):
|
|
6974
|
+
r"""上传附件
|
|
6975
|
+
|
|
6976
|
+
上传附件接口,使用form-data,上传附件需要满足\"附件限制\"返回的关于大小等限制
|
|
6977
|
+
|
|
6978
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
6979
|
+
|
|
6980
|
+
:param request: Request instance for UploadAccessory
|
|
6981
|
+
:type request: :class:`huaweicloudsdkosm.v2.UploadAccessoryRequest`
|
|
6982
|
+
:rtype: :class:`huaweicloudsdkosm.v2.UploadAccessoryResponse`
|
|
6983
|
+
"""
|
|
6984
|
+
http_info = self._upload_accessory_http_info(request)
|
|
6985
|
+
return self._call_api(**http_info)
|
|
6986
|
+
|
|
6987
|
+
def upload_accessory_invoker(self, request):
|
|
6988
|
+
http_info = self._upload_accessory_http_info(request)
|
|
6989
|
+
return SyncInvoker(self, http_info)
|
|
6990
|
+
|
|
6991
|
+
@classmethod
|
|
6992
|
+
def _upload_accessory_http_info(cls, request):
|
|
6993
|
+
http_info = {
|
|
6994
|
+
"method": "POST",
|
|
6995
|
+
"resource_path": "/v2/servicerequest/accessorys",
|
|
6996
|
+
"request_type": request.__class__.__name__,
|
|
6997
|
+
"response_type": "UploadAccessoryResponse"
|
|
6998
|
+
}
|
|
6999
|
+
|
|
7000
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
7001
|
+
|
|
7002
|
+
cname = None
|
|
7003
|
+
|
|
7004
|
+
collection_formats = {}
|
|
7005
|
+
|
|
7006
|
+
path_params = {}
|
|
7007
|
+
|
|
7008
|
+
query_params = []
|
|
7009
|
+
|
|
7010
|
+
header_params = {}
|
|
7011
|
+
if 'x_site' in local_var_params:
|
|
7012
|
+
header_params['X-Site'] = local_var_params['x_site']
|
|
7013
|
+
if 'x_language' in local_var_params:
|
|
7014
|
+
header_params['X-Language'] = local_var_params['x_language']
|
|
7015
|
+
if 'x_time_zone' in local_var_params:
|
|
7016
|
+
header_params['X-Time-Zone'] = local_var_params['x_time_zone']
|
|
7017
|
+
|
|
7018
|
+
form_params = {}
|
|
7019
|
+
if 'file' in local_var_params:
|
|
7020
|
+
form_params['file'] = local_var_params['file']
|
|
7021
|
+
if 'form_data' in local_var_params:
|
|
7022
|
+
form_params['form_data'] = local_var_params['form_data']
|
|
7023
|
+
|
|
7024
|
+
body = None
|
|
7025
|
+
if 'body' in local_var_params:
|
|
7026
|
+
body = local_var_params['body']
|
|
7027
|
+
if isinstance(request, SdkStreamRequest):
|
|
7028
|
+
body = request.get_file_stream()
|
|
7029
|
+
|
|
7030
|
+
response_headers = []
|
|
7031
|
+
|
|
7032
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
7033
|
+
['multipart/form-data'])
|
|
7034
|
+
|
|
7035
|
+
auth_settings = []
|
|
7036
|
+
|
|
7037
|
+
http_info["cname"] = cname
|
|
7038
|
+
http_info["collection_formats"] = collection_formats
|
|
7039
|
+
http_info["path_params"] = path_params
|
|
7040
|
+
http_info["query_params"] = query_params
|
|
7041
|
+
http_info["header_params"] = header_params
|
|
7042
|
+
http_info["post_params"] = form_params
|
|
7043
|
+
http_info["body"] = body
|
|
7044
|
+
http_info["response_headers"] = response_headers
|
|
7045
|
+
|
|
7046
|
+
return http_info
|
|
7047
|
+
|
|
6973
7048
|
def upload_json_accessories(self, request):
|
|
6974
7049
|
r"""上传附件
|
|
6975
7050
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huaweicloudsdkosm
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.145
|
|
4
4
|
Summary: OSM
|
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
|
6
6
|
Author: HuaweiCloud SDK
|
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: huaweicloudsdkcore>=3.1.
|
|
25
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.145
|
|
26
26
|
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
huaweicloudsdkosm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
huaweicloudsdkosm/v2/__init__.py,sha256=
|
|
3
|
-
huaweicloudsdkosm/v2/osm_async_client.py,sha256=
|
|
4
|
-
huaweicloudsdkosm/v2/osm_client.py,sha256=
|
|
5
|
-
huaweicloudsdkosm/v2/model/__init__.py,sha256=
|
|
2
|
+
huaweicloudsdkosm/v2/__init__.py,sha256=UcBeLm1uXogrcrarnC5CMQHRiZiYMckaKooNLbQe_6c,26279
|
|
3
|
+
huaweicloudsdkosm/v2/osm_async_client.py,sha256=8u_SKpt4CnUDDYc_oKfT78ImDXdtC0lnvXMOH6UwsZY,252657
|
|
4
|
+
huaweicloudsdkosm/v2/osm_client.py,sha256=G-hB9XH7fiX8NV2kYTCH-raZl5hLwmTg77CQzrrJI20,252746
|
|
5
|
+
huaweicloudsdkosm/v2/model/__init__.py,sha256=J1q9iKyKFauW6xpj8vft1q0y4CkYL0h5zWsy8quHXYk,26193
|
|
6
6
|
huaweicloudsdkosm/v2/model/accessory_json_format_req.py,sha256=r9jLNNcqZbIi_jacRsz-vdmyEjiC7yHkofaku8LJ5Rg,6089
|
|
7
7
|
huaweicloudsdkosm/v2/model/accessory_limit_vo.py,sha256=tU4RJgzbG0Ea5XsVDL-mBo7LwMmCPGyiwrZzMzUFORU,4923
|
|
8
8
|
huaweicloudsdkosm/v2/model/accessory_url.py,sha256=mMt3W4FBckPgDKmvg9HYJ0HFsD__oRFKtXYT-RYL9l0,4827
|
|
@@ -293,6 +293,9 @@ huaweicloudsdkosm/v2/model/update_labels_response.py,sha256=joWAYNRbWFWc1bKJiAZU
|
|
|
293
293
|
huaweicloudsdkosm/v2/model/update_new_instant_messages_read_request.py,sha256=Qk4u0dOeoZvq3TeKkeqrFvH0smpRUlwpoycao18dEEU,7691
|
|
294
294
|
huaweicloudsdkosm/v2/model/update_new_instant_messages_read_response.py,sha256=eaL9kTDqp21bECvZzvzm_P7WmZcqmmWN4RM88-wv6h4,4214
|
|
295
295
|
huaweicloudsdkosm/v2/model/update_unread_new_instant_msg_v2_req.py,sha256=2mq79YcL7OhKUSL9ShckTOyD9LuEw12WjOcMDX0XH1M,3319
|
|
296
|
+
huaweicloudsdkosm/v2/model/upload_accessory_request.py,sha256=ritpI0twUkfLtwf94VBhYvD8dZPeOrHDlXbgcgenxto,6661
|
|
297
|
+
huaweicloudsdkosm/v2/model/upload_accessory_request_body.py,sha256=53UEpXWJRJ8Dq14OxpgF5GBI22Zxe_TLelnWRTX069E,3989
|
|
298
|
+
huaweicloudsdkosm/v2/model/upload_accessory_response.py,sha256=sh9wcMnMf1ZMiOUZ9ZovdH0oRh1lqQQQu8QXUIbINTc,3301
|
|
296
299
|
huaweicloudsdkosm/v2/model/upload_json_accessories_request.py,sha256=hd2-41cJzm6UcsoHzDd7zCVl0Cbe2dQf_e2zFxByYi4,6768
|
|
297
300
|
huaweicloudsdkosm/v2/model/upload_json_accessories_response.py,sha256=StvecB1TIO3Y8ellePwxQ8KmKsXXcLBhgYfMhbO3nBQ,3349
|
|
298
301
|
huaweicloudsdkosm/v2/model/user_instant_incident_msg_v2.py,sha256=3I_Jyc3aNFX8UlNTdH-QEEUgvt7rHIF0DOTCQybB0zU,4216
|
|
@@ -301,8 +304,8 @@ huaweicloudsdkosm/v2/model/verify_verify_code_v2_req.py,sha256=b7UR_hU8OV05KseYg
|
|
|
301
304
|
huaweicloudsdkosm/v2/model/work_order_operate_v2_req.py,sha256=x6kmQRqURFEJ5oV7EXTs2dOdoZCFgxvXZQLIQFC_7_o,6317
|
|
302
305
|
huaweicloudsdkosm/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
303
306
|
huaweicloudsdkosm/v2/region/osm_region.py,sha256=rEwyuUmp0P1-uY-KdHFPL82R47LbuC063dLwLVOrx3E,960
|
|
304
|
-
huaweicloudsdkosm-3.1.
|
|
305
|
-
huaweicloudsdkosm-3.1.
|
|
306
|
-
huaweicloudsdkosm-3.1.
|
|
307
|
-
huaweicloudsdkosm-3.1.
|
|
308
|
-
huaweicloudsdkosm-3.1.
|
|
307
|
+
huaweicloudsdkosm-3.1.145.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
|
308
|
+
huaweicloudsdkosm-3.1.145.dist-info/METADATA,sha256=EvZNXcFCMt1cxXqZlbcsYqEirdJ78tiAUI2WIKa8Qks,1135
|
|
309
|
+
huaweicloudsdkosm-3.1.145.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
|
|
310
|
+
huaweicloudsdkosm-3.1.145.dist-info/top_level.txt,sha256=6yoOdrBJDzRufHVrD-dd5wbu5WQ62ZDBvItV7Sh9m14,18
|
|
311
|
+
huaweicloudsdkosm-3.1.145.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|