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.
- huaweicloudsdkivs/__init__.py +0 -0
- huaweicloudsdkivs/v2/__init__.py +54 -0
- huaweicloudsdkivs/v2/ivs_async_client.py +485 -0
- huaweicloudsdkivs/v2/ivs_client.py +482 -0
- huaweicloudsdkivs/v2/model/__init__.py +51 -0
- huaweicloudsdkivs/v2/model/actions_list.py +142 -0
- huaweicloudsdkivs/v2/model/detect_extention_by_id_card_image_request.py +140 -0
- huaweicloudsdkivs/v2/model/detect_extention_by_id_card_image_response.py +162 -0
- huaweicloudsdkivs/v2/model/detect_extention_by_name_and_id_request.py +140 -0
- huaweicloudsdkivs/v2/model/detect_extention_by_name_and_id_response.py +162 -0
- huaweicloudsdkivs/v2/model/detect_standard_by_id_card_image_request.py +140 -0
- huaweicloudsdkivs/v2/model/detect_standard_by_id_card_image_response.py +162 -0
- huaweicloudsdkivs/v2/model/detect_standard_by_name_and_id_request.py +140 -0
- huaweicloudsdkivs/v2/model/detect_standard_by_name_and_id_response.py +162 -0
- huaweicloudsdkivs/v2/model/detect_standard_by_video_and_id_card_image_request.py +140 -0
- huaweicloudsdkivs/v2/model/detect_standard_by_video_and_id_card_image_response.py +162 -0
- huaweicloudsdkivs/v2/model/detect_standard_by_video_and_name_and_id_request.py +140 -0
- huaweicloudsdkivs/v2/model/detect_standard_by_video_and_name_and_id_response.py +162 -0
- huaweicloudsdkivs/v2/model/extention_req_data_by_id_card_image.py +143 -0
- huaweicloudsdkivs/v2/model/extention_req_data_by_name_and_id.py +142 -0
- huaweicloudsdkivs/v2/model/extention_resp_data_by_id_card_image.py +198 -0
- huaweicloudsdkivs/v2/model/extention_resp_data_by_name_and_id.py +173 -0
- huaweicloudsdkivs/v2/model/idcard_result.py +341 -0
- huaweicloudsdkivs/v2/model/ivs_extention_by_id_card_image_request_body.py +134 -0
- huaweicloudsdkivs/v2/model/ivs_extention_by_id_card_image_request_body_data.py +115 -0
- huaweicloudsdkivs/v2/model/ivs_extention_by_id_card_image_response_body_result.py +173 -0
- huaweicloudsdkivs/v2/model/ivs_extention_by_name_and_id_request_body.py +134 -0
- huaweicloudsdkivs/v2/model/ivs_extention_by_name_and_id_request_body_data.py +115 -0
- huaweicloudsdkivs/v2/model/ivs_extention_by_name_and_id_response_body_result.py +173 -0
- huaweicloudsdkivs/v2/model/ivs_standard_by_id_card_image_request_body.py +134 -0
- huaweicloudsdkivs/v2/model/ivs_standard_by_id_card_image_request_body_data.py +115 -0
- huaweicloudsdkivs/v2/model/ivs_standard_by_id_card_image_response_body_result.py +170 -0
- huaweicloudsdkivs/v2/model/ivs_standard_by_name_and_id_request_body.py +134 -0
- huaweicloudsdkivs/v2/model/ivs_standard_by_name_and_id_request_body_data.py +115 -0
- huaweicloudsdkivs/v2/model/ivs_standard_by_name_and_id_response_body_result.py +170 -0
- huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_id_card_image_request_body.py +134 -0
- huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_id_card_image_request_body_data.py +115 -0
- huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_id_card_image_response_body_result.py +170 -0
- huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_name_and_id_request_body.py +134 -0
- huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_name_and_id_request_body_data.py +115 -0
- huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_name_and_id_response_body_result.py +170 -0
- huaweicloudsdkivs/v2/model/meta.py +115 -0
- huaweicloudsdkivs/v2/model/req_data_by_id_card_image.py +229 -0
- huaweicloudsdkivs/v2/model/req_data_by_video_and_id_card_image.py +257 -0
- huaweicloudsdkivs/v2/model/resp_data_by_id_card_image.py +222 -0
- huaweicloudsdkivs/v2/model/resp_data_by_video_and_id_card_image.py +246 -0
- huaweicloudsdkivs/v2/model/standard_req_data_by_name_and_id.py +228 -0
- huaweicloudsdkivs/v2/model/standard_req_data_by_video_and_name_and_id.py +256 -0
- huaweicloudsdkivs/v2/model/standard_resp_data_by_name_and_id.py +198 -0
- huaweicloudsdkivs/v2/model/standard_resp_data_by_video_and_name_and_id.py +222 -0
- huaweicloudsdkivs/v2/model/video_result.py +170 -0
- huaweicloudsdkivs/v2/region/__init__.py +0 -0
- huaweicloudsdkivs/v2/region/ivs_region.py +34 -0
- huaweicloudsdkivs-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkivs-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkivs-3.1.160.dist-info/RECORD +58 -0
- huaweicloudsdkivs-3.1.160.dist-info/WHEEL +5 -0
- 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 DetectStandardByVideoAndIdCardImageRequest:
|
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': 'IvsStandardByVideoAndIdCardImageRequestBody'
|
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"""DetectStandardByVideoAndIdCardImageRequest
|
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 DetectStandardByVideoAndIdCardImageRequest
|
37
|
+
:type body: :class:`huaweicloudsdkivs.v2.IvsStandardByVideoAndIdCardImageRequestBody`
|
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 DetectStandardByVideoAndIdCardImageRequest.
|
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 DetectStandardByVideoAndIdCardImageRequest.
|
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 DetectStandardByVideoAndIdCardImageRequest.
|
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 DetectStandardByVideoAndIdCardImageRequest.
|
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 DetectStandardByVideoAndIdCardImageRequest.
|
76
|
+
|
77
|
+
:return: The body of this DetectStandardByVideoAndIdCardImageRequest.
|
78
|
+
:rtype: :class:`huaweicloudsdkivs.v2.IvsStandardByVideoAndIdCardImageRequestBody`
|
79
|
+
"""
|
80
|
+
return self._body
|
81
|
+
|
82
|
+
@body.setter
|
83
|
+
def body(self, body):
|
84
|
+
r"""Sets the body of this DetectStandardByVideoAndIdCardImageRequest.
|
85
|
+
|
86
|
+
:param body: The body of this DetectStandardByVideoAndIdCardImageRequest.
|
87
|
+
:type body: :class:`huaweicloudsdkivs.v2.IvsStandardByVideoAndIdCardImageRequestBody`
|
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, DetectStandardByVideoAndIdCardImageRequest):
|
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 DetectStandardByVideoAndIdCardImageResponse(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': 'IvsStandardByVideoAndIdCardImageResponseBodyResult',
|
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"""DetectStandardByVideoAndIdCardImageResponse
|
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.IvsStandardByVideoAndIdCardImageResponseBodyResult`
|
41
|
+
:param x_request_id:
|
42
|
+
:type x_request_id: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(DetectStandardByVideoAndIdCardImageResponse, 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 DetectStandardByVideoAndIdCardImageResponse.
|
62
|
+
|
63
|
+
:return: The meta of this DetectStandardByVideoAndIdCardImageResponse.
|
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 DetectStandardByVideoAndIdCardImageResponse.
|
71
|
+
|
72
|
+
:param meta: The meta of this DetectStandardByVideoAndIdCardImageResponse.
|
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 DetectStandardByVideoAndIdCardImageResponse.
|
80
|
+
|
81
|
+
:return: The result of this DetectStandardByVideoAndIdCardImageResponse.
|
82
|
+
:rtype: :class:`huaweicloudsdkivs.v2.IvsStandardByVideoAndIdCardImageResponseBodyResult`
|
83
|
+
"""
|
84
|
+
return self._result
|
85
|
+
|
86
|
+
@result.setter
|
87
|
+
def result(self, result):
|
88
|
+
r"""Sets the result of this DetectStandardByVideoAndIdCardImageResponse.
|
89
|
+
|
90
|
+
:param result: The result of this DetectStandardByVideoAndIdCardImageResponse.
|
91
|
+
:type result: :class:`huaweicloudsdkivs.v2.IvsStandardByVideoAndIdCardImageResponseBodyResult`
|
92
|
+
"""
|
93
|
+
self._result = result
|
94
|
+
|
95
|
+
@property
|
96
|
+
def x_request_id(self):
|
97
|
+
r"""Gets the x_request_id of this DetectStandardByVideoAndIdCardImageResponse.
|
98
|
+
|
99
|
+
:return: The x_request_id of this DetectStandardByVideoAndIdCardImageResponse.
|
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 DetectStandardByVideoAndIdCardImageResponse.
|
107
|
+
|
108
|
+
:param x_request_id: The x_request_id of this DetectStandardByVideoAndIdCardImageResponse.
|
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, DetectStandardByVideoAndIdCardImageResponse):
|
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 DetectStandardByVideoAndNameAndIdRequest:
|
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': 'IvsStandardByVideoAndNameAndIdRequestBody'
|
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"""DetectStandardByVideoAndNameAndIdRequest
|
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 DetectStandardByVideoAndNameAndIdRequest
|
37
|
+
:type body: :class:`huaweicloudsdkivs.v2.IvsStandardByVideoAndNameAndIdRequestBody`
|
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 DetectStandardByVideoAndNameAndIdRequest.
|
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 DetectStandardByVideoAndNameAndIdRequest.
|
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 DetectStandardByVideoAndNameAndIdRequest.
|
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 DetectStandardByVideoAndNameAndIdRequest.
|
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 DetectStandardByVideoAndNameAndIdRequest.
|
76
|
+
|
77
|
+
:return: The body of this DetectStandardByVideoAndNameAndIdRequest.
|
78
|
+
:rtype: :class:`huaweicloudsdkivs.v2.IvsStandardByVideoAndNameAndIdRequestBody`
|
79
|
+
"""
|
80
|
+
return self._body
|
81
|
+
|
82
|
+
@body.setter
|
83
|
+
def body(self, body):
|
84
|
+
r"""Sets the body of this DetectStandardByVideoAndNameAndIdRequest.
|
85
|
+
|
86
|
+
:param body: The body of this DetectStandardByVideoAndNameAndIdRequest.
|
87
|
+
:type body: :class:`huaweicloudsdkivs.v2.IvsStandardByVideoAndNameAndIdRequestBody`
|
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, DetectStandardByVideoAndNameAndIdRequest):
|
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 DetectStandardByVideoAndNameAndIdResponse(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': 'IvsStandardByVideoAndNameAndIdResponseBodyResult',
|
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"""DetectStandardByVideoAndNameAndIdResponse
|
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.IvsStandardByVideoAndNameAndIdResponseBodyResult`
|
41
|
+
:param x_request_id:
|
42
|
+
:type x_request_id: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(DetectStandardByVideoAndNameAndIdResponse, 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 DetectStandardByVideoAndNameAndIdResponse.
|
62
|
+
|
63
|
+
:return: The meta of this DetectStandardByVideoAndNameAndIdResponse.
|
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 DetectStandardByVideoAndNameAndIdResponse.
|
71
|
+
|
72
|
+
:param meta: The meta of this DetectStandardByVideoAndNameAndIdResponse.
|
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 DetectStandardByVideoAndNameAndIdResponse.
|
80
|
+
|
81
|
+
:return: The result of this DetectStandardByVideoAndNameAndIdResponse.
|
82
|
+
:rtype: :class:`huaweicloudsdkivs.v2.IvsStandardByVideoAndNameAndIdResponseBodyResult`
|
83
|
+
"""
|
84
|
+
return self._result
|
85
|
+
|
86
|
+
@result.setter
|
87
|
+
def result(self, result):
|
88
|
+
r"""Sets the result of this DetectStandardByVideoAndNameAndIdResponse.
|
89
|
+
|
90
|
+
:param result: The result of this DetectStandardByVideoAndNameAndIdResponse.
|
91
|
+
:type result: :class:`huaweicloudsdkivs.v2.IvsStandardByVideoAndNameAndIdResponseBodyResult`
|
92
|
+
"""
|
93
|
+
self._result = result
|
94
|
+
|
95
|
+
@property
|
96
|
+
def x_request_id(self):
|
97
|
+
r"""Gets the x_request_id of this DetectStandardByVideoAndNameAndIdResponse.
|
98
|
+
|
99
|
+
:return: The x_request_id of this DetectStandardByVideoAndNameAndIdResponse.
|
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 DetectStandardByVideoAndNameAndIdResponse.
|
107
|
+
|
108
|
+
:param x_request_id: The x_request_id of this DetectStandardByVideoAndNameAndIdResponse.
|
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, DetectStandardByVideoAndNameAndIdResponse):
|
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
|