225 lines
6.8 KiB
Python
225 lines
6.8 KiB
Python
![]() |
# coding: utf-8
|
|||
|
|
|||
|
import six
|
|||
|
|
|||
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|||
|
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|||
|
|
|||
|
|
|||
|
class ShowFeatureChildrenResponse(SdkResponse):
|
|||
|
|
|||
|
"""
|
|||
|
Attributes:
|
|||
|
openapi_types (dict): The key is attribute name
|
|||
|
and the value is attribute type.
|
|||
|
attribute_map (dict): The key is attribute name
|
|||
|
and the value is json key in definition.
|
|||
|
"""
|
|||
|
sensitive_list = []
|
|||
|
|
|||
|
openapi_types = {
|
|||
|
'status': 'str',
|
|||
|
'result': 'ResultValueListTestItemVo',
|
|||
|
'error': 'ApiError',
|
|||
|
'request_id': 'str',
|
|||
|
'server_address': 'str'
|
|||
|
}
|
|||
|
|
|||
|
attribute_map = {
|
|||
|
'status': 'status',
|
|||
|
'result': 'result',
|
|||
|
'error': 'error',
|
|||
|
'request_id': 'request_id',
|
|||
|
'server_address': 'server_address'
|
|||
|
}
|
|||
|
|
|||
|
def __init__(self, status=None, result=None, error=None, request_id=None, server_address=None):
|
|||
|
"""ShowFeatureChildrenResponse
|
|||
|
|
|||
|
The model defined in huaweicloud sdk
|
|||
|
|
|||
|
:param status: 对外时:success|error; 对内时:ok|failed
|
|||
|
:type status: str
|
|||
|
:param result:
|
|||
|
:type result: :class:`huaweicloudsdkcloudtest.v1.ResultValueListTestItemVo`
|
|||
|
:param error:
|
|||
|
:type error: :class:`huaweicloudsdkcloudtest.v1.ApiError`
|
|||
|
:param request_id: 由接口调用方传入,建议使用UUID保证请求的唯一性。
|
|||
|
:type request_id: str
|
|||
|
:param server_address: 对内接口才有此属性
|
|||
|
:type server_address: str
|
|||
|
"""
|
|||
|
|
|||
|
super(ShowFeatureChildrenResponse, self).__init__()
|
|||
|
|
|||
|
self._status = None
|
|||
|
self._result = None
|
|||
|
self._error = None
|
|||
|
self._request_id = None
|
|||
|
self._server_address = None
|
|||
|
self.discriminator = None
|
|||
|
|
|||
|
if status is not None:
|
|||
|
self.status = status
|
|||
|
if result is not None:
|
|||
|
self.result = result
|
|||
|
if error is not None:
|
|||
|
self.error = error
|
|||
|
if request_id is not None:
|
|||
|
self.request_id = request_id
|
|||
|
if server_address is not None:
|
|||
|
self.server_address = server_address
|
|||
|
|
|||
|
@property
|
|||
|
def status(self):
|
|||
|
"""Gets the status of this ShowFeatureChildrenResponse.
|
|||
|
|
|||
|
对外时:success|error; 对内时:ok|failed
|
|||
|
|
|||
|
:return: The status of this ShowFeatureChildrenResponse.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._status
|
|||
|
|
|||
|
@status.setter
|
|||
|
def status(self, status):
|
|||
|
"""Sets the status of this ShowFeatureChildrenResponse.
|
|||
|
|
|||
|
对外时:success|error; 对内时:ok|failed
|
|||
|
|
|||
|
:param status: The status of this ShowFeatureChildrenResponse.
|
|||
|
:type status: str
|
|||
|
"""
|
|||
|
self._status = status
|
|||
|
|
|||
|
@property
|
|||
|
def result(self):
|
|||
|
"""Gets the result of this ShowFeatureChildrenResponse.
|
|||
|
|
|||
|
:return: The result of this ShowFeatureChildrenResponse.
|
|||
|
:rtype: :class:`huaweicloudsdkcloudtest.v1.ResultValueListTestItemVo`
|
|||
|
"""
|
|||
|
return self._result
|
|||
|
|
|||
|
@result.setter
|
|||
|
def result(self, result):
|
|||
|
"""Sets the result of this ShowFeatureChildrenResponse.
|
|||
|
|
|||
|
:param result: The result of this ShowFeatureChildrenResponse.
|
|||
|
:type result: :class:`huaweicloudsdkcloudtest.v1.ResultValueListTestItemVo`
|
|||
|
"""
|
|||
|
self._result = result
|
|||
|
|
|||
|
@property
|
|||
|
def error(self):
|
|||
|
"""Gets the error of this ShowFeatureChildrenResponse.
|
|||
|
|
|||
|
:return: The error of this ShowFeatureChildrenResponse.
|
|||
|
:rtype: :class:`huaweicloudsdkcloudtest.v1.ApiError`
|
|||
|
"""
|
|||
|
return self._error
|
|||
|
|
|||
|
@error.setter
|
|||
|
def error(self, error):
|
|||
|
"""Sets the error of this ShowFeatureChildrenResponse.
|
|||
|
|
|||
|
:param error: The error of this ShowFeatureChildrenResponse.
|
|||
|
:type error: :class:`huaweicloudsdkcloudtest.v1.ApiError`
|
|||
|
"""
|
|||
|
self._error = error
|
|||
|
|
|||
|
@property
|
|||
|
def request_id(self):
|
|||
|
"""Gets the request_id of this ShowFeatureChildrenResponse.
|
|||
|
|
|||
|
由接口调用方传入,建议使用UUID保证请求的唯一性。
|
|||
|
|
|||
|
:return: The request_id of this ShowFeatureChildrenResponse.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._request_id
|
|||
|
|
|||
|
@request_id.setter
|
|||
|
def request_id(self, request_id):
|
|||
|
"""Sets the request_id of this ShowFeatureChildrenResponse.
|
|||
|
|
|||
|
由接口调用方传入,建议使用UUID保证请求的唯一性。
|
|||
|
|
|||
|
:param request_id: The request_id of this ShowFeatureChildrenResponse.
|
|||
|
:type request_id: str
|
|||
|
"""
|
|||
|
self._request_id = request_id
|
|||
|
|
|||
|
@property
|
|||
|
def server_address(self):
|
|||
|
"""Gets the server_address of this ShowFeatureChildrenResponse.
|
|||
|
|
|||
|
对内接口才有此属性
|
|||
|
|
|||
|
:return: The server_address of this ShowFeatureChildrenResponse.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._server_address
|
|||
|
|
|||
|
@server_address.setter
|
|||
|
def server_address(self, server_address):
|
|||
|
"""Sets the server_address of this ShowFeatureChildrenResponse.
|
|||
|
|
|||
|
对内接口才有此属性
|
|||
|
|
|||
|
:param server_address: The server_address of this ShowFeatureChildrenResponse.
|
|||
|
:type server_address: str
|
|||
|
"""
|
|||
|
self._server_address = server_address
|
|||
|
|
|||
|
def to_dict(self):
|
|||
|
"""Returns the model properties as a dict"""
|
|||
|
result = {}
|
|||
|
|
|||
|
for attr, _ in six.iteritems(self.openapi_types):
|
|||
|
value = getattr(self, attr)
|
|||
|
if isinstance(value, list):
|
|||
|
result[attr] = list(map(
|
|||
|
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|||
|
value
|
|||
|
))
|
|||
|
elif hasattr(value, "to_dict"):
|
|||
|
result[attr] = value.to_dict()
|
|||
|
elif isinstance(value, dict):
|
|||
|
result[attr] = dict(map(
|
|||
|
lambda item: (item[0], item[1].to_dict())
|
|||
|
if hasattr(item[1], "to_dict") else item,
|
|||
|
value.items()
|
|||
|
))
|
|||
|
else:
|
|||
|
if attr in self.sensitive_list:
|
|||
|
result[attr] = "****"
|
|||
|
else:
|
|||
|
result[attr] = value
|
|||
|
|
|||
|
return result
|
|||
|
|
|||
|
def to_str(self):
|
|||
|
"""Returns the string representation of the model"""
|
|||
|
import simplejson as json
|
|||
|
if six.PY2:
|
|||
|
import sys
|
|||
|
reload(sys)
|
|||
|
sys.setdefaultencoding("utf-8")
|
|||
|
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|||
|
|
|||
|
def __repr__(self):
|
|||
|
"""For `print`"""
|
|||
|
return self.to_str()
|
|||
|
|
|||
|
def __eq__(self, other):
|
|||
|
"""Returns true if both objects are equal"""
|
|||
|
if not isinstance(other, ShowFeatureChildrenResponse):
|
|||
|
return False
|
|||
|
|
|||
|
return self.__dict__ == other.__dict__
|
|||
|
|
|||
|
def __ne__(self, other):
|
|||
|
"""Returns true if both objects are not equal"""
|
|||
|
return not self == other
|