huaweicloudsdkeihealth 3.1.155__py2.py3-none-any.whl → 3.1.157__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.
Files changed (24) hide show
  1. huaweicloudsdkeihealth/v1/__init__.py +13 -0
  2. huaweicloudsdkeihealth/v1/eihealth_async_client.py +267 -0
  3. huaweicloudsdkeihealth/v1/eihealth_client.py +267 -0
  4. huaweicloudsdkeihealth/v1/model/__init__.py +13 -0
  5. huaweicloudsdkeihealth/v1/model/create_drug_model_resource_req.py +114 -0
  6. huaweicloudsdkeihealth/v1/model/create_drug_model_resource_request.py +111 -0
  7. huaweicloudsdkeihealth/v1/model/create_drug_model_resource_response.py +85 -0
  8. huaweicloudsdkeihealth/v1/model/delete_drug_model_resource_request.py +114 -0
  9. huaweicloudsdkeihealth/v1/model/delete_drug_model_resource_response.py +85 -0
  10. huaweicloudsdkeihealth/v1/model/download_public_data_req.py +140 -0
  11. huaweicloudsdkeihealth/v1/model/download_public_data_request.py +111 -0
  12. huaweicloudsdkeihealth/v1/model/download_public_data_response.py +85 -0
  13. huaweicloudsdkeihealth/v1/model/download_public_data_type_enum.py +88 -0
  14. huaweicloudsdkeihealth/v1/model/drug_model_resource_status_enum.py +89 -0
  15. huaweicloudsdkeihealth/v1/model/list_drug_model_resource_request.py +202 -0
  16. huaweicloudsdkeihealth/v1/model/list_drug_model_resource_response.py +170 -0
  17. huaweicloudsdkeihealth/v1/model/pangu_drug_model_resource_rsp.py +278 -0
  18. huaweicloudsdkeihealth/v1/region/eihealth_region.py +2 -5
  19. huaweicloudsdkeihealth/v2/region/eihealth_region.py +2 -5
  20. {huaweicloudsdkeihealth-3.1.155.dist-info → huaweicloudsdkeihealth-3.1.157.dist-info}/METADATA +2 -2
  21. {huaweicloudsdkeihealth-3.1.155.dist-info → huaweicloudsdkeihealth-3.1.157.dist-info}/RECORD +24 -11
  22. {huaweicloudsdkeihealth-3.1.155.dist-info → huaweicloudsdkeihealth-3.1.157.dist-info}/LICENSE +0 -0
  23. {huaweicloudsdkeihealth-3.1.155.dist-info → huaweicloudsdkeihealth-3.1.157.dist-info}/WHEEL +0 -0
  24. {huaweicloudsdkeihealth-3.1.155.dist-info → huaweicloudsdkeihealth-3.1.157.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,140 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DownloadPublicDataReq:
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
+ 'type': 'DownloadPublicDataTypeEnum',
21
+ 'url': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'type': 'type',
26
+ 'url': 'url'
27
+ }
28
+
29
+ def __init__(self, type=None, url=None):
30
+ r"""DownloadPublicDataReq
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param type:
35
+ :type type: :class:`huaweicloudsdkeihealth.v1.DownloadPublicDataTypeEnum`
36
+ :param url: **参数解释**: 资源地址,支持https、obs地址。 **约束限制**: 不涉及 **取值范围**: 长度为[1-2000]个字符。 **默认取值**: 不涉及
37
+ :type url: str
38
+ """
39
+
40
+
41
+
42
+ self._type = None
43
+ self._url = None
44
+ self.discriminator = None
45
+
46
+ if type is not None:
47
+ self.type = type
48
+ if url is not None:
49
+ self.url = url
50
+
51
+ @property
52
+ def type(self):
53
+ r"""Gets the type of this DownloadPublicDataReq.
54
+
55
+ :return: The type of this DownloadPublicDataReq.
56
+ :rtype: :class:`huaweicloudsdkeihealth.v1.DownloadPublicDataTypeEnum`
57
+ """
58
+ return self._type
59
+
60
+ @type.setter
61
+ def type(self, type):
62
+ r"""Sets the type of this DownloadPublicDataReq.
63
+
64
+ :param type: The type of this DownloadPublicDataReq.
65
+ :type type: :class:`huaweicloudsdkeihealth.v1.DownloadPublicDataTypeEnum`
66
+ """
67
+ self._type = type
68
+
69
+ @property
70
+ def url(self):
71
+ r"""Gets the url of this DownloadPublicDataReq.
72
+
73
+ **参数解释**: 资源地址,支持https、obs地址。 **约束限制**: 不涉及 **取值范围**: 长度为[1-2000]个字符。 **默认取值**: 不涉及
74
+
75
+ :return: The url of this DownloadPublicDataReq.
76
+ :rtype: str
77
+ """
78
+ return self._url
79
+
80
+ @url.setter
81
+ def url(self, url):
82
+ r"""Sets the url of this DownloadPublicDataReq.
83
+
84
+ **参数解释**: 资源地址,支持https、obs地址。 **约束限制**: 不涉及 **取值范围**: 长度为[1-2000]个字符。 **默认取值**: 不涉及
85
+
86
+ :param url: The url of this DownloadPublicDataReq.
87
+ :type url: str
88
+ """
89
+ self._url = url
90
+
91
+ def to_dict(self):
92
+ """Returns the model properties as a dict"""
93
+ result = {}
94
+
95
+ for attr, _ in six.iteritems(self.openapi_types):
96
+ value = getattr(self, attr)
97
+ if isinstance(value, list):
98
+ result[attr] = list(map(
99
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
100
+ value
101
+ ))
102
+ elif hasattr(value, "to_dict"):
103
+ result[attr] = value.to_dict()
104
+ elif isinstance(value, dict):
105
+ result[attr] = dict(map(
106
+ lambda item: (item[0], item[1].to_dict())
107
+ if hasattr(item[1], "to_dict") else item,
108
+ value.items()
109
+ ))
110
+ else:
111
+ if attr in self.sensitive_list:
112
+ result[attr] = "****"
113
+ else:
114
+ result[attr] = value
115
+
116
+ return result
117
+
118
+ def to_str(self):
119
+ """Returns the string representation of the model"""
120
+ import simplejson as json
121
+ if six.PY2:
122
+ import sys
123
+ reload(sys)
124
+ sys.setdefaultencoding("utf-8")
125
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
126
+
127
+ def __repr__(self):
128
+ """For `print`"""
129
+ return self.to_str()
130
+
131
+ def __eq__(self, other):
132
+ """Returns true if both objects are equal"""
133
+ if not isinstance(other, DownloadPublicDataReq):
134
+ return False
135
+
136
+ return self.__dict__ == other.__dict__
137
+
138
+ def __ne__(self, other):
139
+ """Returns true if both objects are not equal"""
140
+ return not self == other
@@ -0,0 +1,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DownloadPublicDataRequest:
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
+ 'body': 'DownloadPublicDataReq'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ r"""DownloadPublicDataRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the DownloadPublicDataRequest
33
+ :type body: :class:`huaweicloudsdkeihealth.v1.DownloadPublicDataReq`
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ r"""Gets the body of this DownloadPublicDataRequest.
47
+
48
+ :return: The body of this DownloadPublicDataRequest.
49
+ :rtype: :class:`huaweicloudsdkeihealth.v1.DownloadPublicDataReq`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ r"""Sets the body of this DownloadPublicDataRequest.
56
+
57
+ :param body: The body of this DownloadPublicDataRequest.
58
+ :type body: :class:`huaweicloudsdkeihealth.v1.DownloadPublicDataReq`
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, DownloadPublicDataRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other
@@ -0,0 +1,85 @@
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 DownloadPublicDataResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ r"""DownloadPublicDataResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(DownloadPublicDataResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, DownloadPublicDataResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -0,0 +1,88 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DownloadPublicDataTypeEnum:
9
+ """
10
+ allowed enum values
11
+ """
12
+ PUBLIC = "PUBLIC"
13
+ EXTRANET = "EXTRANET"
14
+ """
15
+ Attributes:
16
+ openapi_types (dict): The key is attribute name
17
+ and the value is attribute type.
18
+ attribute_map (dict): The key is attribute name
19
+ and the value is json key in definition.
20
+ """
21
+ sensitive_list = []
22
+
23
+ openapi_types = {
24
+ }
25
+
26
+ attribute_map = {
27
+ }
28
+
29
+ def __init__(self):
30
+ r"""DownloadPublicDataTypeEnum
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ """
35
+
36
+
37
+ self.discriminator = None
38
+
39
+ def to_dict(self):
40
+ """Returns the model properties as a dict"""
41
+ result = {}
42
+
43
+ for attr, _ in six.iteritems(self.openapi_types):
44
+ value = getattr(self, attr)
45
+ if isinstance(value, list):
46
+ result[attr] = list(map(
47
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
48
+ value
49
+ ))
50
+ elif hasattr(value, "to_dict"):
51
+ result[attr] = value.to_dict()
52
+ elif isinstance(value, dict):
53
+ result[attr] = dict(map(
54
+ lambda item: (item[0], item[1].to_dict())
55
+ if hasattr(item[1], "to_dict") else item,
56
+ value.items()
57
+ ))
58
+ else:
59
+ if attr in self.sensitive_list:
60
+ result[attr] = "****"
61
+ else:
62
+ result[attr] = value
63
+
64
+ return result
65
+
66
+ def to_str(self):
67
+ """Returns the string representation of the model"""
68
+ import simplejson as json
69
+ if six.PY2:
70
+ import sys
71
+ reload(sys)
72
+ sys.setdefaultencoding("utf-8")
73
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
74
+
75
+ def __repr__(self):
76
+ """For `print`"""
77
+ return self.to_str()
78
+
79
+ def __eq__(self, other):
80
+ """Returns true if both objects are equal"""
81
+ if not isinstance(other, DownloadPublicDataTypeEnum):
82
+ return False
83
+
84
+ return self.__dict__ == other.__dict__
85
+
86
+ def __ne__(self, other):
87
+ """Returns true if both objects are not equal"""
88
+ return not self == other
@@ -0,0 +1,89 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DrugModelResourceStatusEnum:
9
+ """
10
+ allowed enum values
11
+ """
12
+ NORMAL = "Normal"
13
+ FREEZE = "Freeze"
14
+ DELETED = "Deleted"
15
+ """
16
+ Attributes:
17
+ openapi_types (dict): The key is attribute name
18
+ and the value is attribute type.
19
+ attribute_map (dict): The key is attribute name
20
+ and the value is json key in definition.
21
+ """
22
+ sensitive_list = []
23
+
24
+ openapi_types = {
25
+ }
26
+
27
+ attribute_map = {
28
+ }
29
+
30
+ def __init__(self):
31
+ r"""DrugModelResourceStatusEnum
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ """
36
+
37
+
38
+ self.discriminator = None
39
+
40
+ def to_dict(self):
41
+ """Returns the model properties as a dict"""
42
+ result = {}
43
+
44
+ for attr, _ in six.iteritems(self.openapi_types):
45
+ value = getattr(self, attr)
46
+ if isinstance(value, list):
47
+ result[attr] = list(map(
48
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
49
+ value
50
+ ))
51
+ elif hasattr(value, "to_dict"):
52
+ result[attr] = value.to_dict()
53
+ elif isinstance(value, dict):
54
+ result[attr] = dict(map(
55
+ lambda item: (item[0], item[1].to_dict())
56
+ if hasattr(item[1], "to_dict") else item,
57
+ value.items()
58
+ ))
59
+ else:
60
+ if attr in self.sensitive_list:
61
+ result[attr] = "****"
62
+ else:
63
+ result[attr] = value
64
+
65
+ return result
66
+
67
+ def to_str(self):
68
+ """Returns the string representation of the model"""
69
+ import simplejson as json
70
+ if six.PY2:
71
+ import sys
72
+ reload(sys)
73
+ sys.setdefaultencoding("utf-8")
74
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
75
+
76
+ def __repr__(self):
77
+ """For `print`"""
78
+ return self.to_str()
79
+
80
+ def __eq__(self, other):
81
+ """Returns true if both objects are equal"""
82
+ if not isinstance(other, DrugModelResourceStatusEnum):
83
+ return False
84
+
85
+ return self.__dict__ == other.__dict__
86
+
87
+ def __ne__(self, other):
88
+ """Returns true if both objects are not equal"""
89
+ return not self == other