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 DetectExtentionByIdCardImageRequest:
|
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': 'IvsExtentionByIdCardImageRequestBody'
|
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"""DetectExtentionByIdCardImageRequest
|
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 DetectExtentionByIdCardImageRequest
|
37
|
+
:type body: :class:`huaweicloudsdkivs.v2.IvsExtentionByIdCardImageRequestBody`
|
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 DetectExtentionByIdCardImageRequest.
|
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 DetectExtentionByIdCardImageRequest.
|
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 DetectExtentionByIdCardImageRequest.
|
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 DetectExtentionByIdCardImageRequest.
|
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 DetectExtentionByIdCardImageRequest.
|
76
|
+
|
77
|
+
:return: The body of this DetectExtentionByIdCardImageRequest.
|
78
|
+
:rtype: :class:`huaweicloudsdkivs.v2.IvsExtentionByIdCardImageRequestBody`
|
79
|
+
"""
|
80
|
+
return self._body
|
81
|
+
|
82
|
+
@body.setter
|
83
|
+
def body(self, body):
|
84
|
+
r"""Sets the body of this DetectExtentionByIdCardImageRequest.
|
85
|
+
|
86
|
+
:param body: The body of this DetectExtentionByIdCardImageRequest.
|
87
|
+
:type body: :class:`huaweicloudsdkivs.v2.IvsExtentionByIdCardImageRequestBody`
|
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, DetectExtentionByIdCardImageRequest):
|
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 DetectExtentionByIdCardImageResponse(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': 'IvsExtentionByIdCardImageResponseBodyResult',
|
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"""DetectExtentionByIdCardImageResponse
|
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.IvsExtentionByIdCardImageResponseBodyResult`
|
41
|
+
:param x_request_id:
|
42
|
+
:type x_request_id: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(DetectExtentionByIdCardImageResponse, 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 DetectExtentionByIdCardImageResponse.
|
62
|
+
|
63
|
+
:return: The meta of this DetectExtentionByIdCardImageResponse.
|
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 DetectExtentionByIdCardImageResponse.
|
71
|
+
|
72
|
+
:param meta: The meta of this DetectExtentionByIdCardImageResponse.
|
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 DetectExtentionByIdCardImageResponse.
|
80
|
+
|
81
|
+
:return: The result of this DetectExtentionByIdCardImageResponse.
|
82
|
+
:rtype: :class:`huaweicloudsdkivs.v2.IvsExtentionByIdCardImageResponseBodyResult`
|
83
|
+
"""
|
84
|
+
return self._result
|
85
|
+
|
86
|
+
@result.setter
|
87
|
+
def result(self, result):
|
88
|
+
r"""Sets the result of this DetectExtentionByIdCardImageResponse.
|
89
|
+
|
90
|
+
:param result: The result of this DetectExtentionByIdCardImageResponse.
|
91
|
+
:type result: :class:`huaweicloudsdkivs.v2.IvsExtentionByIdCardImageResponseBodyResult`
|
92
|
+
"""
|
93
|
+
self._result = result
|
94
|
+
|
95
|
+
@property
|
96
|
+
def x_request_id(self):
|
97
|
+
r"""Gets the x_request_id of this DetectExtentionByIdCardImageResponse.
|
98
|
+
|
99
|
+
:return: The x_request_id of this DetectExtentionByIdCardImageResponse.
|
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 DetectExtentionByIdCardImageResponse.
|
107
|
+
|
108
|
+
:param x_request_id: The x_request_id of this DetectExtentionByIdCardImageResponse.
|
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, DetectExtentionByIdCardImageResponse):
|
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 DetectExtentionByNameAndIdRequest:
|
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': 'IvsExtentionByNameAndIdRequestBody'
|
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"""DetectExtentionByNameAndIdRequest
|
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 DetectExtentionByNameAndIdRequest
|
37
|
+
:type body: :class:`huaweicloudsdkivs.v2.IvsExtentionByNameAndIdRequestBody`
|
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 DetectExtentionByNameAndIdRequest.
|
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 DetectExtentionByNameAndIdRequest.
|
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 DetectExtentionByNameAndIdRequest.
|
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 DetectExtentionByNameAndIdRequest.
|
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 DetectExtentionByNameAndIdRequest.
|
76
|
+
|
77
|
+
:return: The body of this DetectExtentionByNameAndIdRequest.
|
78
|
+
:rtype: :class:`huaweicloudsdkivs.v2.IvsExtentionByNameAndIdRequestBody`
|
79
|
+
"""
|
80
|
+
return self._body
|
81
|
+
|
82
|
+
@body.setter
|
83
|
+
def body(self, body):
|
84
|
+
r"""Sets the body of this DetectExtentionByNameAndIdRequest.
|
85
|
+
|
86
|
+
:param body: The body of this DetectExtentionByNameAndIdRequest.
|
87
|
+
:type body: :class:`huaweicloudsdkivs.v2.IvsExtentionByNameAndIdRequestBody`
|
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, DetectExtentionByNameAndIdRequest):
|
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 DetectExtentionByNameAndIdResponse(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': 'IvsExtentionByNameAndIdResponseBodyResult',
|
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"""DetectExtentionByNameAndIdResponse
|
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.IvsExtentionByNameAndIdResponseBodyResult`
|
41
|
+
:param x_request_id:
|
42
|
+
:type x_request_id: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(DetectExtentionByNameAndIdResponse, 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 DetectExtentionByNameAndIdResponse.
|
62
|
+
|
63
|
+
:return: The meta of this DetectExtentionByNameAndIdResponse.
|
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 DetectExtentionByNameAndIdResponse.
|
71
|
+
|
72
|
+
:param meta: The meta of this DetectExtentionByNameAndIdResponse.
|
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 DetectExtentionByNameAndIdResponse.
|
80
|
+
|
81
|
+
:return: The result of this DetectExtentionByNameAndIdResponse.
|
82
|
+
:rtype: :class:`huaweicloudsdkivs.v2.IvsExtentionByNameAndIdResponseBodyResult`
|
83
|
+
"""
|
84
|
+
return self._result
|
85
|
+
|
86
|
+
@result.setter
|
87
|
+
def result(self, result):
|
88
|
+
r"""Sets the result of this DetectExtentionByNameAndIdResponse.
|
89
|
+
|
90
|
+
:param result: The result of this DetectExtentionByNameAndIdResponse.
|
91
|
+
:type result: :class:`huaweicloudsdkivs.v2.IvsExtentionByNameAndIdResponseBodyResult`
|
92
|
+
"""
|
93
|
+
self._result = result
|
94
|
+
|
95
|
+
@property
|
96
|
+
def x_request_id(self):
|
97
|
+
r"""Gets the x_request_id of this DetectExtentionByNameAndIdResponse.
|
98
|
+
|
99
|
+
:return: The x_request_id of this DetectExtentionByNameAndIdResponse.
|
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 DetectExtentionByNameAndIdResponse.
|
107
|
+
|
108
|
+
:param x_request_id: The x_request_id of this DetectExtentionByNameAndIdResponse.
|
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, DetectExtentionByNameAndIdResponse):
|
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
|