huaweicloudsdkivs 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.
Files changed (58) hide show
  1. huaweicloudsdkivs/__init__.py +0 -0
  2. huaweicloudsdkivs/v2/__init__.py +54 -0
  3. huaweicloudsdkivs/v2/ivs_async_client.py +485 -0
  4. huaweicloudsdkivs/v2/ivs_client.py +482 -0
  5. huaweicloudsdkivs/v2/model/__init__.py +51 -0
  6. huaweicloudsdkivs/v2/model/actions_list.py +142 -0
  7. huaweicloudsdkivs/v2/model/detect_extention_by_id_card_image_request.py +140 -0
  8. huaweicloudsdkivs/v2/model/detect_extention_by_id_card_image_response.py +162 -0
  9. huaweicloudsdkivs/v2/model/detect_extention_by_name_and_id_request.py +140 -0
  10. huaweicloudsdkivs/v2/model/detect_extention_by_name_and_id_response.py +162 -0
  11. huaweicloudsdkivs/v2/model/detect_standard_by_id_card_image_request.py +140 -0
  12. huaweicloudsdkivs/v2/model/detect_standard_by_id_card_image_response.py +162 -0
  13. huaweicloudsdkivs/v2/model/detect_standard_by_name_and_id_request.py +140 -0
  14. huaweicloudsdkivs/v2/model/detect_standard_by_name_and_id_response.py +162 -0
  15. huaweicloudsdkivs/v2/model/detect_standard_by_video_and_id_card_image_request.py +140 -0
  16. huaweicloudsdkivs/v2/model/detect_standard_by_video_and_id_card_image_response.py +162 -0
  17. huaweicloudsdkivs/v2/model/detect_standard_by_video_and_name_and_id_request.py +140 -0
  18. huaweicloudsdkivs/v2/model/detect_standard_by_video_and_name_and_id_response.py +162 -0
  19. huaweicloudsdkivs/v2/model/extention_req_data_by_id_card_image.py +143 -0
  20. huaweicloudsdkivs/v2/model/extention_req_data_by_name_and_id.py +142 -0
  21. huaweicloudsdkivs/v2/model/extention_resp_data_by_id_card_image.py +198 -0
  22. huaweicloudsdkivs/v2/model/extention_resp_data_by_name_and_id.py +173 -0
  23. huaweicloudsdkivs/v2/model/idcard_result.py +341 -0
  24. huaweicloudsdkivs/v2/model/ivs_extention_by_id_card_image_request_body.py +134 -0
  25. huaweicloudsdkivs/v2/model/ivs_extention_by_id_card_image_request_body_data.py +115 -0
  26. huaweicloudsdkivs/v2/model/ivs_extention_by_id_card_image_response_body_result.py +173 -0
  27. huaweicloudsdkivs/v2/model/ivs_extention_by_name_and_id_request_body.py +134 -0
  28. huaweicloudsdkivs/v2/model/ivs_extention_by_name_and_id_request_body_data.py +115 -0
  29. huaweicloudsdkivs/v2/model/ivs_extention_by_name_and_id_response_body_result.py +173 -0
  30. huaweicloudsdkivs/v2/model/ivs_standard_by_id_card_image_request_body.py +134 -0
  31. huaweicloudsdkivs/v2/model/ivs_standard_by_id_card_image_request_body_data.py +115 -0
  32. huaweicloudsdkivs/v2/model/ivs_standard_by_id_card_image_response_body_result.py +170 -0
  33. huaweicloudsdkivs/v2/model/ivs_standard_by_name_and_id_request_body.py +134 -0
  34. huaweicloudsdkivs/v2/model/ivs_standard_by_name_and_id_request_body_data.py +115 -0
  35. huaweicloudsdkivs/v2/model/ivs_standard_by_name_and_id_response_body_result.py +170 -0
  36. huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_id_card_image_request_body.py +134 -0
  37. huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_id_card_image_request_body_data.py +115 -0
  38. huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_id_card_image_response_body_result.py +170 -0
  39. huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_name_and_id_request_body.py +134 -0
  40. huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_name_and_id_request_body_data.py +115 -0
  41. huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_name_and_id_response_body_result.py +170 -0
  42. huaweicloudsdkivs/v2/model/meta.py +115 -0
  43. huaweicloudsdkivs/v2/model/req_data_by_id_card_image.py +229 -0
  44. huaweicloudsdkivs/v2/model/req_data_by_video_and_id_card_image.py +257 -0
  45. huaweicloudsdkivs/v2/model/resp_data_by_id_card_image.py +222 -0
  46. huaweicloudsdkivs/v2/model/resp_data_by_video_and_id_card_image.py +246 -0
  47. huaweicloudsdkivs/v2/model/standard_req_data_by_name_and_id.py +228 -0
  48. huaweicloudsdkivs/v2/model/standard_req_data_by_video_and_name_and_id.py +256 -0
  49. huaweicloudsdkivs/v2/model/standard_resp_data_by_name_and_id.py +198 -0
  50. huaweicloudsdkivs/v2/model/standard_resp_data_by_video_and_name_and_id.py +222 -0
  51. huaweicloudsdkivs/v2/model/video_result.py +170 -0
  52. huaweicloudsdkivs/v2/region/__init__.py +0 -0
  53. huaweicloudsdkivs/v2/region/ivs_region.py +34 -0
  54. huaweicloudsdkivs-3.1.160.dist-info/LICENSE +13 -0
  55. huaweicloudsdkivs-3.1.160.dist-info/METADATA +26 -0
  56. huaweicloudsdkivs-3.1.160.dist-info/RECORD +58 -0
  57. huaweicloudsdkivs-3.1.160.dist-info/WHEEL +5 -0
  58. huaweicloudsdkivs-3.1.160.dist-info/top_level.txt +1 -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 DetectStandardByIdCardImageRequest:
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
+ 'enterprise_project_id': 'str',
21
+ 'body': 'IvsStandardByIdCardImageRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'enterprise_project_id': 'Enterprise-Project-Id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, enterprise_project_id=None, body=None):
30
+ r"""DetectStandardByIdCardImageRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param enterprise_project_id: 企业项目ID。IVS支持通过企业项目管理(EPS)对不同用户组和用户的资源使用,进行分账。 获取方法:进入“[企业项目管理](https://console.huaweicloud.com/eps/?region=cn-north-4#/projects/list)”页面,单击企业项目名称,在企业项目详情页获取Enterprise-Project-Id(企业项目ID)。 企业项目创建步骤请参见用户指南。 > 说明: 创建企业项目后,在传参时,有以下三类场景。 - 携带正确的ID,正常使用IVS服务,账单的企业项目会被分类到企业ID对应的企业项目中。 - 携带格式正确但不存在的ID,正常使用IVS服务,账单的企业项目会显示对应不存在的企业项目ID。 - 不携带ID或格式错误ID(包含特殊字符等),正常使用IVS服务,账单的企业项目会被分类到\"default\"中。
35
+ :type enterprise_project_id: str
36
+ :param body: Body of the DetectStandardByIdCardImageRequest
37
+ :type body: :class:`huaweicloudsdkivs.v2.IvsStandardByIdCardImageRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._enterprise_project_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ if enterprise_project_id is not None:
47
+ self.enterprise_project_id = enterprise_project_id
48
+ if body is not None:
49
+ self.body = body
50
+
51
+ @property
52
+ def enterprise_project_id(self):
53
+ r"""Gets the enterprise_project_id of this DetectStandardByIdCardImageRequest.
54
+
55
+ 企业项目ID。IVS支持通过企业项目管理(EPS)对不同用户组和用户的资源使用,进行分账。 获取方法:进入“[企业项目管理](https://console.huaweicloud.com/eps/?region=cn-north-4#/projects/list)”页面,单击企业项目名称,在企业项目详情页获取Enterprise-Project-Id(企业项目ID)。 企业项目创建步骤请参见用户指南。 > 说明: 创建企业项目后,在传参时,有以下三类场景。 - 携带正确的ID,正常使用IVS服务,账单的企业项目会被分类到企业ID对应的企业项目中。 - 携带格式正确但不存在的ID,正常使用IVS服务,账单的企业项目会显示对应不存在的企业项目ID。 - 不携带ID或格式错误ID(包含特殊字符等),正常使用IVS服务,账单的企业项目会被分类到\"default\"中。
56
+
57
+ :return: The enterprise_project_id of this DetectStandardByIdCardImageRequest.
58
+ :rtype: str
59
+ """
60
+ return self._enterprise_project_id
61
+
62
+ @enterprise_project_id.setter
63
+ def enterprise_project_id(self, enterprise_project_id):
64
+ r"""Sets the enterprise_project_id of this DetectStandardByIdCardImageRequest.
65
+
66
+ 企业项目ID。IVS支持通过企业项目管理(EPS)对不同用户组和用户的资源使用,进行分账。 获取方法:进入“[企业项目管理](https://console.huaweicloud.com/eps/?region=cn-north-4#/projects/list)”页面,单击企业项目名称,在企业项目详情页获取Enterprise-Project-Id(企业项目ID)。 企业项目创建步骤请参见用户指南。 > 说明: 创建企业项目后,在传参时,有以下三类场景。 - 携带正确的ID,正常使用IVS服务,账单的企业项目会被分类到企业ID对应的企业项目中。 - 携带格式正确但不存在的ID,正常使用IVS服务,账单的企业项目会显示对应不存在的企业项目ID。 - 不携带ID或格式错误ID(包含特殊字符等),正常使用IVS服务,账单的企业项目会被分类到\"default\"中。
67
+
68
+ :param enterprise_project_id: The enterprise_project_id of this DetectStandardByIdCardImageRequest.
69
+ :type enterprise_project_id: str
70
+ """
71
+ self._enterprise_project_id = enterprise_project_id
72
+
73
+ @property
74
+ def body(self):
75
+ r"""Gets the body of this DetectStandardByIdCardImageRequest.
76
+
77
+ :return: The body of this DetectStandardByIdCardImageRequest.
78
+ :rtype: :class:`huaweicloudsdkivs.v2.IvsStandardByIdCardImageRequestBody`
79
+ """
80
+ return self._body
81
+
82
+ @body.setter
83
+ def body(self, body):
84
+ r"""Sets the body of this DetectStandardByIdCardImageRequest.
85
+
86
+ :param body: The body of this DetectStandardByIdCardImageRequest.
87
+ :type body: :class:`huaweicloudsdkivs.v2.IvsStandardByIdCardImageRequestBody`
88
+ """
89
+ self._body = body
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, DetectStandardByIdCardImageRequest):
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,162 @@
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 DetectStandardByIdCardImageResponse(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
+ 'meta': 'Meta',
22
+ 'result': 'IvsStandardByIdCardImageResponseBodyResult',
23
+ 'x_request_id': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'meta': 'meta',
28
+ 'result': 'result',
29
+ 'x_request_id': 'X-Request-Id'
30
+ }
31
+
32
+ def __init__(self, meta=None, result=None, x_request_id=None):
33
+ r"""DetectStandardByIdCardImageResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param meta:
38
+ :type meta: :class:`huaweicloudsdkivs.v2.Meta`
39
+ :param result:
40
+ :type result: :class:`huaweicloudsdkivs.v2.IvsStandardByIdCardImageResponseBodyResult`
41
+ :param x_request_id:
42
+ :type x_request_id: str
43
+ """
44
+
45
+ super(DetectStandardByIdCardImageResponse, self).__init__()
46
+
47
+ self._meta = None
48
+ self._result = None
49
+ self._x_request_id = None
50
+ self.discriminator = None
51
+
52
+ if meta is not None:
53
+ self.meta = meta
54
+ if result is not None:
55
+ self.result = result
56
+ if x_request_id is not None:
57
+ self.x_request_id = x_request_id
58
+
59
+ @property
60
+ def meta(self):
61
+ r"""Gets the meta of this DetectStandardByIdCardImageResponse.
62
+
63
+ :return: The meta of this DetectStandardByIdCardImageResponse.
64
+ :rtype: :class:`huaweicloudsdkivs.v2.Meta`
65
+ """
66
+ return self._meta
67
+
68
+ @meta.setter
69
+ def meta(self, meta):
70
+ r"""Sets the meta of this DetectStandardByIdCardImageResponse.
71
+
72
+ :param meta: The meta of this DetectStandardByIdCardImageResponse.
73
+ :type meta: :class:`huaweicloudsdkivs.v2.Meta`
74
+ """
75
+ self._meta = meta
76
+
77
+ @property
78
+ def result(self):
79
+ r"""Gets the result of this DetectStandardByIdCardImageResponse.
80
+
81
+ :return: The result of this DetectStandardByIdCardImageResponse.
82
+ :rtype: :class:`huaweicloudsdkivs.v2.IvsStandardByIdCardImageResponseBodyResult`
83
+ """
84
+ return self._result
85
+
86
+ @result.setter
87
+ def result(self, result):
88
+ r"""Sets the result of this DetectStandardByIdCardImageResponse.
89
+
90
+ :param result: The result of this DetectStandardByIdCardImageResponse.
91
+ :type result: :class:`huaweicloudsdkivs.v2.IvsStandardByIdCardImageResponseBodyResult`
92
+ """
93
+ self._result = result
94
+
95
+ @property
96
+ def x_request_id(self):
97
+ r"""Gets the x_request_id of this DetectStandardByIdCardImageResponse.
98
+
99
+ :return: The x_request_id of this DetectStandardByIdCardImageResponse.
100
+ :rtype: str
101
+ """
102
+ return self._x_request_id
103
+
104
+ @x_request_id.setter
105
+ def x_request_id(self, x_request_id):
106
+ r"""Sets the x_request_id of this DetectStandardByIdCardImageResponse.
107
+
108
+ :param x_request_id: The x_request_id of this DetectStandardByIdCardImageResponse.
109
+ :type x_request_id: str
110
+ """
111
+ self._x_request_id = x_request_id
112
+
113
+ def to_dict(self):
114
+ """Returns the model properties as a dict"""
115
+ result = {}
116
+
117
+ for attr, _ in six.iteritems(self.openapi_types):
118
+ value = getattr(self, attr)
119
+ if isinstance(value, list):
120
+ result[attr] = list(map(
121
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
122
+ value
123
+ ))
124
+ elif hasattr(value, "to_dict"):
125
+ result[attr] = value.to_dict()
126
+ elif isinstance(value, dict):
127
+ result[attr] = dict(map(
128
+ lambda item: (item[0], item[1].to_dict())
129
+ if hasattr(item[1], "to_dict") else item,
130
+ value.items()
131
+ ))
132
+ else:
133
+ if attr in self.sensitive_list:
134
+ result[attr] = "****"
135
+ else:
136
+ result[attr] = value
137
+
138
+ return result
139
+
140
+ def to_str(self):
141
+ """Returns the string representation of the model"""
142
+ import simplejson as json
143
+ if six.PY2:
144
+ import sys
145
+ reload(sys)
146
+ sys.setdefaultencoding("utf-8")
147
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
148
+
149
+ def __repr__(self):
150
+ """For `print`"""
151
+ return self.to_str()
152
+
153
+ def __eq__(self, other):
154
+ """Returns true if both objects are equal"""
155
+ if not isinstance(other, DetectStandardByIdCardImageResponse):
156
+ return False
157
+
158
+ return self.__dict__ == other.__dict__
159
+
160
+ def __ne__(self, other):
161
+ """Returns true if both objects are not equal"""
162
+ return not self == other
@@ -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 DetectStandardByNameAndIdRequest:
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
+ 'enterprise_project_id': 'str',
21
+ 'body': 'IvsStandardByNameAndIdRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'enterprise_project_id': 'Enterprise-Project-Id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, enterprise_project_id=None, body=None):
30
+ r"""DetectStandardByNameAndIdRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param enterprise_project_id: 企业项目ID。IVS支持通过企业项目管理(EPS)对不同用户组和用户的资源使用,进行分账。 获取方法:进入“[企业项目管理](https://console.huaweicloud.com/eps/?region=cn-north-4#/projects/list)”页面,单击企业项目名称,在企业项目详情页获取Enterprise-Project-Id(企业项目ID)。 企业项目创建步骤请参见用户指南。 > 说明: 创建企业项目后,在传参时,有以下三类场景。 - 携带正确的ID,正常使用IVS服务,账单的企业项目会被分类到企业ID对应的企业项目中。 - 携带格式正确但不存在的ID,正常使用IVS服务,账单的企业项目会显示对应不存在的企业项目ID。 - 不携带ID或格式错误ID(包含特殊字符等),正常使用IVS服务,账单的企业项目会被分类到\"default\"中。
35
+ :type enterprise_project_id: str
36
+ :param body: Body of the DetectStandardByNameAndIdRequest
37
+ :type body: :class:`huaweicloudsdkivs.v2.IvsStandardByNameAndIdRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._enterprise_project_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ if enterprise_project_id is not None:
47
+ self.enterprise_project_id = enterprise_project_id
48
+ if body is not None:
49
+ self.body = body
50
+
51
+ @property
52
+ def enterprise_project_id(self):
53
+ r"""Gets the enterprise_project_id of this DetectStandardByNameAndIdRequest.
54
+
55
+ 企业项目ID。IVS支持通过企业项目管理(EPS)对不同用户组和用户的资源使用,进行分账。 获取方法:进入“[企业项目管理](https://console.huaweicloud.com/eps/?region=cn-north-4#/projects/list)”页面,单击企业项目名称,在企业项目详情页获取Enterprise-Project-Id(企业项目ID)。 企业项目创建步骤请参见用户指南。 > 说明: 创建企业项目后,在传参时,有以下三类场景。 - 携带正确的ID,正常使用IVS服务,账单的企业项目会被分类到企业ID对应的企业项目中。 - 携带格式正确但不存在的ID,正常使用IVS服务,账单的企业项目会显示对应不存在的企业项目ID。 - 不携带ID或格式错误ID(包含特殊字符等),正常使用IVS服务,账单的企业项目会被分类到\"default\"中。
56
+
57
+ :return: The enterprise_project_id of this DetectStandardByNameAndIdRequest.
58
+ :rtype: str
59
+ """
60
+ return self._enterprise_project_id
61
+
62
+ @enterprise_project_id.setter
63
+ def enterprise_project_id(self, enterprise_project_id):
64
+ r"""Sets the enterprise_project_id of this DetectStandardByNameAndIdRequest.
65
+
66
+ 企业项目ID。IVS支持通过企业项目管理(EPS)对不同用户组和用户的资源使用,进行分账。 获取方法:进入“[企业项目管理](https://console.huaweicloud.com/eps/?region=cn-north-4#/projects/list)”页面,单击企业项目名称,在企业项目详情页获取Enterprise-Project-Id(企业项目ID)。 企业项目创建步骤请参见用户指南。 > 说明: 创建企业项目后,在传参时,有以下三类场景。 - 携带正确的ID,正常使用IVS服务,账单的企业项目会被分类到企业ID对应的企业项目中。 - 携带格式正确但不存在的ID,正常使用IVS服务,账单的企业项目会显示对应不存在的企业项目ID。 - 不携带ID或格式错误ID(包含特殊字符等),正常使用IVS服务,账单的企业项目会被分类到\"default\"中。
67
+
68
+ :param enterprise_project_id: The enterprise_project_id of this DetectStandardByNameAndIdRequest.
69
+ :type enterprise_project_id: str
70
+ """
71
+ self._enterprise_project_id = enterprise_project_id
72
+
73
+ @property
74
+ def body(self):
75
+ r"""Gets the body of this DetectStandardByNameAndIdRequest.
76
+
77
+ :return: The body of this DetectStandardByNameAndIdRequest.
78
+ :rtype: :class:`huaweicloudsdkivs.v2.IvsStandardByNameAndIdRequestBody`
79
+ """
80
+ return self._body
81
+
82
+ @body.setter
83
+ def body(self, body):
84
+ r"""Sets the body of this DetectStandardByNameAndIdRequest.
85
+
86
+ :param body: The body of this DetectStandardByNameAndIdRequest.
87
+ :type body: :class:`huaweicloudsdkivs.v2.IvsStandardByNameAndIdRequestBody`
88
+ """
89
+ self._body = body
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, DetectStandardByNameAndIdRequest):
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,162 @@
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 DetectStandardByNameAndIdResponse(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
+ 'meta': 'Meta',
22
+ 'result': 'IvsStandardByNameAndIdResponseBodyResult',
23
+ 'x_request_id': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'meta': 'meta',
28
+ 'result': 'result',
29
+ 'x_request_id': 'X-Request-Id'
30
+ }
31
+
32
+ def __init__(self, meta=None, result=None, x_request_id=None):
33
+ r"""DetectStandardByNameAndIdResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param meta:
38
+ :type meta: :class:`huaweicloudsdkivs.v2.Meta`
39
+ :param result:
40
+ :type result: :class:`huaweicloudsdkivs.v2.IvsStandardByNameAndIdResponseBodyResult`
41
+ :param x_request_id:
42
+ :type x_request_id: str
43
+ """
44
+
45
+ super(DetectStandardByNameAndIdResponse, self).__init__()
46
+
47
+ self._meta = None
48
+ self._result = None
49
+ self._x_request_id = None
50
+ self.discriminator = None
51
+
52
+ if meta is not None:
53
+ self.meta = meta
54
+ if result is not None:
55
+ self.result = result
56
+ if x_request_id is not None:
57
+ self.x_request_id = x_request_id
58
+
59
+ @property
60
+ def meta(self):
61
+ r"""Gets the meta of this DetectStandardByNameAndIdResponse.
62
+
63
+ :return: The meta of this DetectStandardByNameAndIdResponse.
64
+ :rtype: :class:`huaweicloudsdkivs.v2.Meta`
65
+ """
66
+ return self._meta
67
+
68
+ @meta.setter
69
+ def meta(self, meta):
70
+ r"""Sets the meta of this DetectStandardByNameAndIdResponse.
71
+
72
+ :param meta: The meta of this DetectStandardByNameAndIdResponse.
73
+ :type meta: :class:`huaweicloudsdkivs.v2.Meta`
74
+ """
75
+ self._meta = meta
76
+
77
+ @property
78
+ def result(self):
79
+ r"""Gets the result of this DetectStandardByNameAndIdResponse.
80
+
81
+ :return: The result of this DetectStandardByNameAndIdResponse.
82
+ :rtype: :class:`huaweicloudsdkivs.v2.IvsStandardByNameAndIdResponseBodyResult`
83
+ """
84
+ return self._result
85
+
86
+ @result.setter
87
+ def result(self, result):
88
+ r"""Sets the result of this DetectStandardByNameAndIdResponse.
89
+
90
+ :param result: The result of this DetectStandardByNameAndIdResponse.
91
+ :type result: :class:`huaweicloudsdkivs.v2.IvsStandardByNameAndIdResponseBodyResult`
92
+ """
93
+ self._result = result
94
+
95
+ @property
96
+ def x_request_id(self):
97
+ r"""Gets the x_request_id of this DetectStandardByNameAndIdResponse.
98
+
99
+ :return: The x_request_id of this DetectStandardByNameAndIdResponse.
100
+ :rtype: str
101
+ """
102
+ return self._x_request_id
103
+
104
+ @x_request_id.setter
105
+ def x_request_id(self, x_request_id):
106
+ r"""Sets the x_request_id of this DetectStandardByNameAndIdResponse.
107
+
108
+ :param x_request_id: The x_request_id of this DetectStandardByNameAndIdResponse.
109
+ :type x_request_id: str
110
+ """
111
+ self._x_request_id = x_request_id
112
+
113
+ def to_dict(self):
114
+ """Returns the model properties as a dict"""
115
+ result = {}
116
+
117
+ for attr, _ in six.iteritems(self.openapi_types):
118
+ value = getattr(self, attr)
119
+ if isinstance(value, list):
120
+ result[attr] = list(map(
121
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
122
+ value
123
+ ))
124
+ elif hasattr(value, "to_dict"):
125
+ result[attr] = value.to_dict()
126
+ elif isinstance(value, dict):
127
+ result[attr] = dict(map(
128
+ lambda item: (item[0], item[1].to_dict())
129
+ if hasattr(item[1], "to_dict") else item,
130
+ value.items()
131
+ ))
132
+ else:
133
+ if attr in self.sensitive_list:
134
+ result[attr] = "****"
135
+ else:
136
+ result[attr] = value
137
+
138
+ return result
139
+
140
+ def to_str(self):
141
+ """Returns the string representation of the model"""
142
+ import simplejson as json
143
+ if six.PY2:
144
+ import sys
145
+ reload(sys)
146
+ sys.setdefaultencoding("utf-8")
147
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
148
+
149
+ def __repr__(self):
150
+ """For `print`"""
151
+ return self.to_str()
152
+
153
+ def __eq__(self, other):
154
+ """Returns true if both objects are equal"""
155
+ if not isinstance(other, DetectStandardByNameAndIdResponse):
156
+ return False
157
+
158
+ return self.__dict__ == other.__dict__
159
+
160
+ def __ne__(self, other):
161
+ """Returns true if both objects are not equal"""
162
+ return not self == other