2020-09-09 08:56:41 +00:00
|
|
|
# coding: utf-8
|
|
|
|
|
|
|
|
import re
|
|
|
|
import six
|
|
|
|
|
|
|
|
|
2020-11-17 12:13:00 +00:00
|
|
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
2020-09-09 08:56:41 +00:00
|
|
|
|
|
|
|
|
2020-12-07 08:59:42 +00:00
|
|
|
class CreateApplicationEndpointResponse(SdkResponse):
|
2020-09-09 08:56:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
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 = {
|
2020-12-07 08:59:42 +00:00
|
|
|
'request_id': 'str',
|
|
|
|
'endpoint_urn': 'str'
|
2020-09-09 08:56:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
attribute_map = {
|
2020-12-07 08:59:42 +00:00
|
|
|
'request_id': 'request_id',
|
|
|
|
'endpoint_urn': 'endpoint_urn'
|
2020-09-09 08:56:41 +00:00
|
|
|
}
|
|
|
|
|
2020-12-07 08:59:42 +00:00
|
|
|
def __init__(self, request_id=None, endpoint_urn=None):
|
|
|
|
"""CreateApplicationEndpointResponse - a model defined in huaweicloud sdk"""
|
2020-09-09 08:56:41 +00:00
|
|
|
|
2021-05-26 03:27:55 +00:00
|
|
|
super(CreateApplicationEndpointResponse, self).__init__()
|
2020-09-09 08:56:41 +00:00
|
|
|
|
2020-12-07 08:59:42 +00:00
|
|
|
self._request_id = None
|
|
|
|
self._endpoint_urn = None
|
2020-09-09 08:56:41 +00:00
|
|
|
self.discriminator = None
|
|
|
|
|
2020-12-07 08:59:42 +00:00
|
|
|
if request_id is not None:
|
|
|
|
self.request_id = request_id
|
|
|
|
if endpoint_urn is not None:
|
|
|
|
self.endpoint_urn = endpoint_urn
|
2020-09-09 08:56:41 +00:00
|
|
|
|
|
|
|
@property
|
2020-12-07 08:59:42 +00:00
|
|
|
def request_id(self):
|
|
|
|
"""Gets the request_id of this CreateApplicationEndpointResponse.
|
2020-09-09 08:56:41 +00:00
|
|
|
|
2020-12-07 08:59:42 +00:00
|
|
|
请求的唯一标识ID。
|
2020-09-09 08:56:41 +00:00
|
|
|
|
2020-12-07 08:59:42 +00:00
|
|
|
:return: The request_id of this CreateApplicationEndpointResponse.
|
2020-11-30 13:39:15 +00:00
|
|
|
:rtype: str
|
2020-09-09 08:56:41 +00:00
|
|
|
"""
|
2020-12-07 08:59:42 +00:00
|
|
|
return self._request_id
|
2020-09-09 08:56:41 +00:00
|
|
|
|
2020-12-07 08:59:42 +00:00
|
|
|
@request_id.setter
|
|
|
|
def request_id(self, request_id):
|
|
|
|
"""Sets the request_id of this CreateApplicationEndpointResponse.
|
2020-09-09 08:56:41 +00:00
|
|
|
|
2020-12-07 08:59:42 +00:00
|
|
|
请求的唯一标识ID。
|
2020-09-09 08:56:41 +00:00
|
|
|
|
2020-12-07 08:59:42 +00:00
|
|
|
:param request_id: The request_id of this CreateApplicationEndpointResponse.
|
2020-11-30 13:39:15 +00:00
|
|
|
:type: str
|
2020-09-09 08:56:41 +00:00
|
|
|
"""
|
2020-12-07 08:59:42 +00:00
|
|
|
self._request_id = request_id
|
2020-11-30 13:39:15 +00:00
|
|
|
|
|
|
|
@property
|
2020-12-07 08:59:42 +00:00
|
|
|
def endpoint_urn(self):
|
|
|
|
"""Gets the endpoint_urn of this CreateApplicationEndpointResponse.
|
2020-11-30 13:39:15 +00:00
|
|
|
|
2020-12-07 08:59:42 +00:00
|
|
|
Endpoint的唯一资源标识。
|
2020-11-30 13:39:15 +00:00
|
|
|
|
2020-12-07 08:59:42 +00:00
|
|
|
:return: The endpoint_urn of this CreateApplicationEndpointResponse.
|
2020-11-30 13:39:15 +00:00
|
|
|
:rtype: str
|
|
|
|
"""
|
2020-12-07 08:59:42 +00:00
|
|
|
return self._endpoint_urn
|
2020-11-30 13:39:15 +00:00
|
|
|
|
2020-12-07 08:59:42 +00:00
|
|
|
@endpoint_urn.setter
|
|
|
|
def endpoint_urn(self, endpoint_urn):
|
|
|
|
"""Sets the endpoint_urn of this CreateApplicationEndpointResponse.
|
2020-11-30 13:39:15 +00:00
|
|
|
|
2020-12-07 08:59:42 +00:00
|
|
|
Endpoint的唯一资源标识。
|
2020-11-30 13:39:15 +00:00
|
|
|
|
2020-12-07 08:59:42 +00:00
|
|
|
:param endpoint_urn: The endpoint_urn of this CreateApplicationEndpointResponse.
|
2020-11-30 13:39:15 +00:00
|
|
|
:type: str
|
|
|
|
"""
|
2020-12-07 08:59:42 +00:00
|
|
|
self._endpoint_urn = endpoint_urn
|
2020-09-09 08:56:41 +00:00
|
|
|
|
|
|
|
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):
|
2021-07-09 10:57:08 +00:00
|
|
|
import simplejson as json
|
|
|
|
return json.dumps(self.to_dict())
|
2020-09-09 08:56:41 +00:00
|
|
|
|
|
|
|
def __repr__(self):
|
|
|
|
"""For `print` and `pprint`"""
|
|
|
|
return self.to_str()
|
|
|
|
|
|
|
|
def __eq__(self, other):
|
|
|
|
"""Returns true if both objects are equal"""
|
2020-12-07 08:59:42 +00:00
|
|
|
if not isinstance(other, CreateApplicationEndpointResponse):
|
2020-09-09 08:56:41 +00:00
|
|
|
return False
|
|
|
|
|
|
|
|
return self.__dict__ == other.__dict__
|
|
|
|
|
|
|
|
def __ne__(self, other):
|
|
|
|
"""Returns true if both objects are not equal"""
|
|
|
|
return not self == other
|