huaweicloudsdkeihealth 3.1.154__py2.py3-none-any.whl → 3.1.156__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.
- huaweicloudsdkeihealth/v1/__init__.py +13 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +267 -0
- huaweicloudsdkeihealth/v1/eihealth_client.py +267 -0
- huaweicloudsdkeihealth/v1/model/__init__.py +13 -0
- huaweicloudsdkeihealth/v1/model/create_drug_model_resource_req.py +114 -0
- huaweicloudsdkeihealth/v1/model/create_drug_model_resource_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_drug_model_resource_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/delete_drug_model_resource_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_drug_model_resource_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/download_public_data_req.py +140 -0
- huaweicloudsdkeihealth/v1/model/download_public_data_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/download_public_data_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/download_public_data_type_enum.py +88 -0
- huaweicloudsdkeihealth/v1/model/drug_model_resource_status_enum.py +89 -0
- huaweicloudsdkeihealth/v1/model/list_drug_model_resource_request.py +202 -0
- huaweicloudsdkeihealth/v1/model/list_drug_model_resource_response.py +170 -0
- huaweicloudsdkeihealth/v1/model/pangu_drug_model_resource_rsp.py +278 -0
- huaweicloudsdkeihealth/v1/region/eihealth_region.py +2 -5
- huaweicloudsdkeihealth/v2/region/eihealth_region.py +2 -5
- {huaweicloudsdkeihealth-3.1.154.dist-info → huaweicloudsdkeihealth-3.1.156.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.154.dist-info → huaweicloudsdkeihealth-3.1.156.dist-info}/RECORD +24 -11
- {huaweicloudsdkeihealth-3.1.154.dist-info → huaweicloudsdkeihealth-3.1.156.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.154.dist-info → huaweicloudsdkeihealth-3.1.156.dist-info}/WHEEL +0 -0
- {huaweicloudsdkeihealth-3.1.154.dist-info → huaweicloudsdkeihealth-3.1.156.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListDrugModelResourceRequest:
|
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
|
+
'spec_code': 'str',
|
21
|
+
'status_list': 'list[str]',
|
22
|
+
'limit': 'int',
|
23
|
+
'offset': 'int'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'spec_code': 'spec_code',
|
28
|
+
'status_list': 'status_list',
|
29
|
+
'limit': 'limit',
|
30
|
+
'offset': 'offset'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, spec_code=None, status_list=None, limit=None, offset=None):
|
34
|
+
r"""ListDrugModelResourceRequest
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param spec_code: **参数解释**: 规格编码。 **约束限制**: 不涉及 **取值范围**: 长度为[1-64]个字符。 **默认取值**: 不涉及
|
39
|
+
:type spec_code: str
|
40
|
+
:param status_list: **参数解释**: 盘古药物分子大模型的订购状态。 **约束限制**: 数组数量范围[0-10],数组元素仅支持Normal|Freeze|Deleted。 **取值范围**: 不涉及 **默认取值**: 不涉及
|
41
|
+
:type status_list: list[str]
|
42
|
+
:param limit: **参数解释**: 限制量,单次查询总量。 **约束限制**: 不涉及 **取值范围**: 1-1000 **默认取值**: 100
|
43
|
+
:type limit: int
|
44
|
+
:param offset: **参数解释**: 偏移量,查询起始偏移。 **约束限制**: 不涉及 **取值范围**: 0-100000000 **默认取值**: 0
|
45
|
+
:type offset: int
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._spec_code = None
|
51
|
+
self._status_list = None
|
52
|
+
self._limit = None
|
53
|
+
self._offset = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if spec_code is not None:
|
57
|
+
self.spec_code = spec_code
|
58
|
+
if status_list is not None:
|
59
|
+
self.status_list = status_list
|
60
|
+
if limit is not None:
|
61
|
+
self.limit = limit
|
62
|
+
if offset is not None:
|
63
|
+
self.offset = offset
|
64
|
+
|
65
|
+
@property
|
66
|
+
def spec_code(self):
|
67
|
+
r"""Gets the spec_code of this ListDrugModelResourceRequest.
|
68
|
+
|
69
|
+
**参数解释**: 规格编码。 **约束限制**: 不涉及 **取值范围**: 长度为[1-64]个字符。 **默认取值**: 不涉及
|
70
|
+
|
71
|
+
:return: The spec_code of this ListDrugModelResourceRequest.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._spec_code
|
75
|
+
|
76
|
+
@spec_code.setter
|
77
|
+
def spec_code(self, spec_code):
|
78
|
+
r"""Sets the spec_code of this ListDrugModelResourceRequest.
|
79
|
+
|
80
|
+
**参数解释**: 规格编码。 **约束限制**: 不涉及 **取值范围**: 长度为[1-64]个字符。 **默认取值**: 不涉及
|
81
|
+
|
82
|
+
:param spec_code: The spec_code of this ListDrugModelResourceRequest.
|
83
|
+
:type spec_code: str
|
84
|
+
"""
|
85
|
+
self._spec_code = spec_code
|
86
|
+
|
87
|
+
@property
|
88
|
+
def status_list(self):
|
89
|
+
r"""Gets the status_list of this ListDrugModelResourceRequest.
|
90
|
+
|
91
|
+
**参数解释**: 盘古药物分子大模型的订购状态。 **约束限制**: 数组数量范围[0-10],数组元素仅支持Normal|Freeze|Deleted。 **取值范围**: 不涉及 **默认取值**: 不涉及
|
92
|
+
|
93
|
+
:return: The status_list of this ListDrugModelResourceRequest.
|
94
|
+
:rtype: list[str]
|
95
|
+
"""
|
96
|
+
return self._status_list
|
97
|
+
|
98
|
+
@status_list.setter
|
99
|
+
def status_list(self, status_list):
|
100
|
+
r"""Sets the status_list of this ListDrugModelResourceRequest.
|
101
|
+
|
102
|
+
**参数解释**: 盘古药物分子大模型的订购状态。 **约束限制**: 数组数量范围[0-10],数组元素仅支持Normal|Freeze|Deleted。 **取值范围**: 不涉及 **默认取值**: 不涉及
|
103
|
+
|
104
|
+
:param status_list: The status_list of this ListDrugModelResourceRequest.
|
105
|
+
:type status_list: list[str]
|
106
|
+
"""
|
107
|
+
self._status_list = status_list
|
108
|
+
|
109
|
+
@property
|
110
|
+
def limit(self):
|
111
|
+
r"""Gets the limit of this ListDrugModelResourceRequest.
|
112
|
+
|
113
|
+
**参数解释**: 限制量,单次查询总量。 **约束限制**: 不涉及 **取值范围**: 1-1000 **默认取值**: 100
|
114
|
+
|
115
|
+
:return: The limit of this ListDrugModelResourceRequest.
|
116
|
+
:rtype: int
|
117
|
+
"""
|
118
|
+
return self._limit
|
119
|
+
|
120
|
+
@limit.setter
|
121
|
+
def limit(self, limit):
|
122
|
+
r"""Sets the limit of this ListDrugModelResourceRequest.
|
123
|
+
|
124
|
+
**参数解释**: 限制量,单次查询总量。 **约束限制**: 不涉及 **取值范围**: 1-1000 **默认取值**: 100
|
125
|
+
|
126
|
+
:param limit: The limit of this ListDrugModelResourceRequest.
|
127
|
+
:type limit: int
|
128
|
+
"""
|
129
|
+
self._limit = limit
|
130
|
+
|
131
|
+
@property
|
132
|
+
def offset(self):
|
133
|
+
r"""Gets the offset of this ListDrugModelResourceRequest.
|
134
|
+
|
135
|
+
**参数解释**: 偏移量,查询起始偏移。 **约束限制**: 不涉及 **取值范围**: 0-100000000 **默认取值**: 0
|
136
|
+
|
137
|
+
:return: The offset of this ListDrugModelResourceRequest.
|
138
|
+
:rtype: int
|
139
|
+
"""
|
140
|
+
return self._offset
|
141
|
+
|
142
|
+
@offset.setter
|
143
|
+
def offset(self, offset):
|
144
|
+
r"""Sets the offset of this ListDrugModelResourceRequest.
|
145
|
+
|
146
|
+
**参数解释**: 偏移量,查询起始偏移。 **约束限制**: 不涉及 **取值范围**: 0-100000000 **默认取值**: 0
|
147
|
+
|
148
|
+
:param offset: The offset of this ListDrugModelResourceRequest.
|
149
|
+
:type offset: int
|
150
|
+
"""
|
151
|
+
self._offset = offset
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, ListDrugModelResourceRequest):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|
@@ -0,0 +1,170 @@
|
|
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 ListDrugModelResourceResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'count': 'int',
|
22
|
+
'resources': 'list[PanguDrugModelResourceRsp]',
|
23
|
+
'x_resource_mappings': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'count': 'count',
|
28
|
+
'resources': 'resources',
|
29
|
+
'x_resource_mappings': 'X-Resource-Mappings'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, count=None, resources=None, x_resource_mappings=None):
|
33
|
+
r"""ListDrugModelResourceResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param count: **参数解释**: 总数。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
38
|
+
:type count: int
|
39
|
+
:param resources: **参数解释**: 模型列表。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
40
|
+
:type resources: list[:class:`huaweicloudsdkeihealth.v1.PanguDrugModelResourceRsp`]
|
41
|
+
:param x_resource_mappings:
|
42
|
+
:type x_resource_mappings: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(ListDrugModelResourceResponse, self).__init__()
|
46
|
+
|
47
|
+
self._count = None
|
48
|
+
self._resources = None
|
49
|
+
self._x_resource_mappings = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if count is not None:
|
53
|
+
self.count = count
|
54
|
+
if resources is not None:
|
55
|
+
self.resources = resources
|
56
|
+
if x_resource_mappings is not None:
|
57
|
+
self.x_resource_mappings = x_resource_mappings
|
58
|
+
|
59
|
+
@property
|
60
|
+
def count(self):
|
61
|
+
r"""Gets the count of this ListDrugModelResourceResponse.
|
62
|
+
|
63
|
+
**参数解释**: 总数。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
64
|
+
|
65
|
+
:return: The count of this ListDrugModelResourceResponse.
|
66
|
+
:rtype: int
|
67
|
+
"""
|
68
|
+
return self._count
|
69
|
+
|
70
|
+
@count.setter
|
71
|
+
def count(self, count):
|
72
|
+
r"""Sets the count of this ListDrugModelResourceResponse.
|
73
|
+
|
74
|
+
**参数解释**: 总数。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
75
|
+
|
76
|
+
:param count: The count of this ListDrugModelResourceResponse.
|
77
|
+
:type count: int
|
78
|
+
"""
|
79
|
+
self._count = count
|
80
|
+
|
81
|
+
@property
|
82
|
+
def resources(self):
|
83
|
+
r"""Gets the resources of this ListDrugModelResourceResponse.
|
84
|
+
|
85
|
+
**参数解释**: 模型列表。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
86
|
+
|
87
|
+
:return: The resources of this ListDrugModelResourceResponse.
|
88
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.PanguDrugModelResourceRsp`]
|
89
|
+
"""
|
90
|
+
return self._resources
|
91
|
+
|
92
|
+
@resources.setter
|
93
|
+
def resources(self, resources):
|
94
|
+
r"""Sets the resources of this ListDrugModelResourceResponse.
|
95
|
+
|
96
|
+
**参数解释**: 模型列表。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
97
|
+
|
98
|
+
:param resources: The resources of this ListDrugModelResourceResponse.
|
99
|
+
:type resources: list[:class:`huaweicloudsdkeihealth.v1.PanguDrugModelResourceRsp`]
|
100
|
+
"""
|
101
|
+
self._resources = resources
|
102
|
+
|
103
|
+
@property
|
104
|
+
def x_resource_mappings(self):
|
105
|
+
r"""Gets the x_resource_mappings of this ListDrugModelResourceResponse.
|
106
|
+
|
107
|
+
:return: The x_resource_mappings of this ListDrugModelResourceResponse.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._x_resource_mappings
|
111
|
+
|
112
|
+
@x_resource_mappings.setter
|
113
|
+
def x_resource_mappings(self, x_resource_mappings):
|
114
|
+
r"""Sets the x_resource_mappings of this ListDrugModelResourceResponse.
|
115
|
+
|
116
|
+
:param x_resource_mappings: The x_resource_mappings of this ListDrugModelResourceResponse.
|
117
|
+
:type x_resource_mappings: str
|
118
|
+
"""
|
119
|
+
self._x_resource_mappings = x_resource_mappings
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, ListDrugModelResourceResponse):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
return not self == other
|
@@ -0,0 +1,278 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class PanguDrugModelResourceRsp:
|
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
|
+
'id': 'str',
|
21
|
+
'resource_id': 'str',
|
22
|
+
'spec_code': 'str',
|
23
|
+
'charge_mode': 'str',
|
24
|
+
'project_id': 'str',
|
25
|
+
'status': 'DrugModelResourceStatusEnum',
|
26
|
+
'create_time': 'str'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'id': 'id',
|
31
|
+
'resource_id': 'resource_id',
|
32
|
+
'spec_code': 'spec_code',
|
33
|
+
'charge_mode': 'charge_mode',
|
34
|
+
'project_id': 'project_id',
|
35
|
+
'status': 'status',
|
36
|
+
'create_time': 'create_time'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, id=None, resource_id=None, spec_code=None, charge_mode=None, project_id=None, status=None, create_time=None):
|
40
|
+
r"""PanguDrugModelResourceRsp
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param id: **参数解释**: 实例ID。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
45
|
+
:type id: str
|
46
|
+
:param resource_id: **参数解释**: 资源ID。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
47
|
+
:type resource_id: str
|
48
|
+
:param spec_code: **参数解释**: 规格信息。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
49
|
+
:type spec_code: str
|
50
|
+
:param charge_mode: **参数解释**: 计费类型。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
51
|
+
:type charge_mode: str
|
52
|
+
:param project_id: **参数解释**: 项目ID。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
53
|
+
:type project_id: str
|
54
|
+
:param status:
|
55
|
+
:type status: :class:`huaweicloudsdkeihealth.v1.DrugModelResourceStatusEnum`
|
56
|
+
:param create_time: **参数解释**: 购买时间,UTC时间。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
57
|
+
:type create_time: str
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._id = None
|
63
|
+
self._resource_id = None
|
64
|
+
self._spec_code = None
|
65
|
+
self._charge_mode = None
|
66
|
+
self._project_id = None
|
67
|
+
self._status = None
|
68
|
+
self._create_time = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
self.id = id
|
72
|
+
self.resource_id = resource_id
|
73
|
+
self.spec_code = spec_code
|
74
|
+
self.charge_mode = charge_mode
|
75
|
+
self.project_id = project_id
|
76
|
+
self.status = status
|
77
|
+
self.create_time = create_time
|
78
|
+
|
79
|
+
@property
|
80
|
+
def id(self):
|
81
|
+
r"""Gets the id of this PanguDrugModelResourceRsp.
|
82
|
+
|
83
|
+
**参数解释**: 实例ID。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
84
|
+
|
85
|
+
:return: The id of this PanguDrugModelResourceRsp.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._id
|
89
|
+
|
90
|
+
@id.setter
|
91
|
+
def id(self, id):
|
92
|
+
r"""Sets the id of this PanguDrugModelResourceRsp.
|
93
|
+
|
94
|
+
**参数解释**: 实例ID。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
95
|
+
|
96
|
+
:param id: The id of this PanguDrugModelResourceRsp.
|
97
|
+
:type id: str
|
98
|
+
"""
|
99
|
+
self._id = id
|
100
|
+
|
101
|
+
@property
|
102
|
+
def resource_id(self):
|
103
|
+
r"""Gets the resource_id of this PanguDrugModelResourceRsp.
|
104
|
+
|
105
|
+
**参数解释**: 资源ID。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
106
|
+
|
107
|
+
:return: The resource_id of this PanguDrugModelResourceRsp.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._resource_id
|
111
|
+
|
112
|
+
@resource_id.setter
|
113
|
+
def resource_id(self, resource_id):
|
114
|
+
r"""Sets the resource_id of this PanguDrugModelResourceRsp.
|
115
|
+
|
116
|
+
**参数解释**: 资源ID。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
117
|
+
|
118
|
+
:param resource_id: The resource_id of this PanguDrugModelResourceRsp.
|
119
|
+
:type resource_id: str
|
120
|
+
"""
|
121
|
+
self._resource_id = resource_id
|
122
|
+
|
123
|
+
@property
|
124
|
+
def spec_code(self):
|
125
|
+
r"""Gets the spec_code of this PanguDrugModelResourceRsp.
|
126
|
+
|
127
|
+
**参数解释**: 规格信息。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
128
|
+
|
129
|
+
:return: The spec_code of this PanguDrugModelResourceRsp.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._spec_code
|
133
|
+
|
134
|
+
@spec_code.setter
|
135
|
+
def spec_code(self, spec_code):
|
136
|
+
r"""Sets the spec_code of this PanguDrugModelResourceRsp.
|
137
|
+
|
138
|
+
**参数解释**: 规格信息。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
139
|
+
|
140
|
+
:param spec_code: The spec_code of this PanguDrugModelResourceRsp.
|
141
|
+
:type spec_code: str
|
142
|
+
"""
|
143
|
+
self._spec_code = spec_code
|
144
|
+
|
145
|
+
@property
|
146
|
+
def charge_mode(self):
|
147
|
+
r"""Gets the charge_mode of this PanguDrugModelResourceRsp.
|
148
|
+
|
149
|
+
**参数解释**: 计费类型。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
150
|
+
|
151
|
+
:return: The charge_mode of this PanguDrugModelResourceRsp.
|
152
|
+
:rtype: str
|
153
|
+
"""
|
154
|
+
return self._charge_mode
|
155
|
+
|
156
|
+
@charge_mode.setter
|
157
|
+
def charge_mode(self, charge_mode):
|
158
|
+
r"""Sets the charge_mode of this PanguDrugModelResourceRsp.
|
159
|
+
|
160
|
+
**参数解释**: 计费类型。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
161
|
+
|
162
|
+
:param charge_mode: The charge_mode of this PanguDrugModelResourceRsp.
|
163
|
+
:type charge_mode: str
|
164
|
+
"""
|
165
|
+
self._charge_mode = charge_mode
|
166
|
+
|
167
|
+
@property
|
168
|
+
def project_id(self):
|
169
|
+
r"""Gets the project_id of this PanguDrugModelResourceRsp.
|
170
|
+
|
171
|
+
**参数解释**: 项目ID。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
172
|
+
|
173
|
+
:return: The project_id of this PanguDrugModelResourceRsp.
|
174
|
+
:rtype: str
|
175
|
+
"""
|
176
|
+
return self._project_id
|
177
|
+
|
178
|
+
@project_id.setter
|
179
|
+
def project_id(self, project_id):
|
180
|
+
r"""Sets the project_id of this PanguDrugModelResourceRsp.
|
181
|
+
|
182
|
+
**参数解释**: 项目ID。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
183
|
+
|
184
|
+
:param project_id: The project_id of this PanguDrugModelResourceRsp.
|
185
|
+
:type project_id: str
|
186
|
+
"""
|
187
|
+
self._project_id = project_id
|
188
|
+
|
189
|
+
@property
|
190
|
+
def status(self):
|
191
|
+
r"""Gets the status of this PanguDrugModelResourceRsp.
|
192
|
+
|
193
|
+
:return: The status of this PanguDrugModelResourceRsp.
|
194
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DrugModelResourceStatusEnum`
|
195
|
+
"""
|
196
|
+
return self._status
|
197
|
+
|
198
|
+
@status.setter
|
199
|
+
def status(self, status):
|
200
|
+
r"""Sets the status of this PanguDrugModelResourceRsp.
|
201
|
+
|
202
|
+
:param status: The status of this PanguDrugModelResourceRsp.
|
203
|
+
:type status: :class:`huaweicloudsdkeihealth.v1.DrugModelResourceStatusEnum`
|
204
|
+
"""
|
205
|
+
self._status = status
|
206
|
+
|
207
|
+
@property
|
208
|
+
def create_time(self):
|
209
|
+
r"""Gets the create_time of this PanguDrugModelResourceRsp.
|
210
|
+
|
211
|
+
**参数解释**: 购买时间,UTC时间。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
212
|
+
|
213
|
+
:return: The create_time of this PanguDrugModelResourceRsp.
|
214
|
+
:rtype: str
|
215
|
+
"""
|
216
|
+
return self._create_time
|
217
|
+
|
218
|
+
@create_time.setter
|
219
|
+
def create_time(self, create_time):
|
220
|
+
r"""Sets the create_time of this PanguDrugModelResourceRsp.
|
221
|
+
|
222
|
+
**参数解释**: 购买时间,UTC时间。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及
|
223
|
+
|
224
|
+
:param create_time: The create_time of this PanguDrugModelResourceRsp.
|
225
|
+
:type create_time: str
|
226
|
+
"""
|
227
|
+
self._create_time = create_time
|
228
|
+
|
229
|
+
def to_dict(self):
|
230
|
+
"""Returns the model properties as a dict"""
|
231
|
+
result = {}
|
232
|
+
|
233
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
234
|
+
value = getattr(self, attr)
|
235
|
+
if isinstance(value, list):
|
236
|
+
result[attr] = list(map(
|
237
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
238
|
+
value
|
239
|
+
))
|
240
|
+
elif hasattr(value, "to_dict"):
|
241
|
+
result[attr] = value.to_dict()
|
242
|
+
elif isinstance(value, dict):
|
243
|
+
result[attr] = dict(map(
|
244
|
+
lambda item: (item[0], item[1].to_dict())
|
245
|
+
if hasattr(item[1], "to_dict") else item,
|
246
|
+
value.items()
|
247
|
+
))
|
248
|
+
else:
|
249
|
+
if attr in self.sensitive_list:
|
250
|
+
result[attr] = "****"
|
251
|
+
else:
|
252
|
+
result[attr] = value
|
253
|
+
|
254
|
+
return result
|
255
|
+
|
256
|
+
def to_str(self):
|
257
|
+
"""Returns the string representation of the model"""
|
258
|
+
import simplejson as json
|
259
|
+
if six.PY2:
|
260
|
+
import sys
|
261
|
+
reload(sys)
|
262
|
+
sys.setdefaultencoding("utf-8")
|
263
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
264
|
+
|
265
|
+
def __repr__(self):
|
266
|
+
"""For `print`"""
|
267
|
+
return self.to_str()
|
268
|
+
|
269
|
+
def __eq__(self, other):
|
270
|
+
"""Returns true if both objects are equal"""
|
271
|
+
if not isinstance(other, PanguDrugModelResourceRsp):
|
272
|
+
return False
|
273
|
+
|
274
|
+
return self.__dict__ == other.__dict__
|
275
|
+
|
276
|
+
def __ne__(self, other):
|
277
|
+
"""Returns true if both objects are not equal"""
|
278
|
+
return not self == other
|
@@ -7,16 +7,13 @@ class EiHealthRegion:
|
|
7
7
|
_PROVIDER = RegionProviderChain.get_default_region_provider_chain("EIHEALTH")
|
8
8
|
|
9
9
|
CN_NORTH_4 = Region("cn-north-4",
|
10
|
-
"https://
|
10
|
+
"https://ai4sservice.cn-north-4.myhuaweicloud.com")
|
11
11
|
CN_EAST_3 = Region("cn-east-3",
|
12
|
-
"https://
|
13
|
-
CN_SOUTH_1 = Region("cn-south-1",
|
14
|
-
"https://eihealth.cn-south-1.myhuaweicloud.com")
|
12
|
+
"https://ai4sservice.cn-east-3.myhuaweicloud.com")
|
15
13
|
|
16
14
|
static_fields = {
|
17
15
|
"cn-north-4": CN_NORTH_4,
|
18
16
|
"cn-east-3": CN_EAST_3,
|
19
|
-
"cn-south-1": CN_SOUTH_1,
|
20
17
|
}
|
21
18
|
|
22
19
|
@classmethod
|
@@ -7,16 +7,13 @@ class EiHealthRegion:
|
|
7
7
|
_PROVIDER = RegionProviderChain.get_default_region_provider_chain("EIHEALTH")
|
8
8
|
|
9
9
|
CN_NORTH_4 = Region("cn-north-4",
|
10
|
-
"https://
|
10
|
+
"https://ai4sservice.cn-north-4.myhuaweicloud.com")
|
11
11
|
CN_EAST_3 = Region("cn-east-3",
|
12
|
-
"https://
|
13
|
-
CN_SOUTH_1 = Region("cn-south-1",
|
14
|
-
"https://eihealth.cn-south-1.myhuaweicloud.com")
|
12
|
+
"https://ai4sservice.cn-east-3.myhuaweicloud.com")
|
15
13
|
|
16
14
|
static_fields = {
|
17
15
|
"cn-north-4": CN_NORTH_4,
|
18
16
|
"cn-east-3": CN_EAST_3,
|
19
|
-
"cn-south-1": CN_SOUTH_1,
|
20
17
|
}
|
21
18
|
|
22
19
|
@classmethod
|