huaweicloudsdkvpcep 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 (114) hide show
  1. huaweicloudsdkvpcep/__init__.py +0 -0
  2. huaweicloudsdkvpcep/v1/__init__.py +110 -0
  3. huaweicloudsdkvpcep/v1/model/__init__.py +107 -0
  4. huaweicloudsdkvpcep/v1/model/accept_or_reject_endpoint_request.py +139 -0
  5. huaweicloudsdkvpcep/v1/model/accept_or_reject_endpoint_request_body.py +142 -0
  6. huaweicloudsdkvpcep/v1/model/accept_or_reject_endpoint_response.py +116 -0
  7. huaweicloudsdkvpcep/v1/model/add_or_remove_service_permissions_request.py +139 -0
  8. huaweicloudsdkvpcep/v1/model/add_or_remove_service_permissions_request_body.py +171 -0
  9. huaweicloudsdkvpcep/v1/model/add_or_remove_service_permissions_response.py +145 -0
  10. huaweicloudsdkvpcep/v1/model/batch_add_endpoint_service_permissions_request.py +139 -0
  11. huaweicloudsdkvpcep/v1/model/batch_add_endpoint_service_permissions_request_body.py +143 -0
  12. huaweicloudsdkvpcep/v1/model/batch_add_endpoint_service_permissions_response.py +116 -0
  13. huaweicloudsdkvpcep/v1/model/batch_add_or_remove_resource_instance_request.py +167 -0
  14. huaweicloudsdkvpcep/v1/model/batch_add_or_remove_resource_instance_request_body.py +143 -0
  15. huaweicloudsdkvpcep/v1/model/batch_add_or_remove_resource_instance_response.py +85 -0
  16. huaweicloudsdkvpcep/v1/model/batch_remove_endpoint_service_permissions_request.py +139 -0
  17. huaweicloudsdkvpcep/v1/model/batch_remove_endpoint_service_permissions_request_body.py +114 -0
  18. huaweicloudsdkvpcep/v1/model/batch_remove_endpoint_service_permissions_response.py +116 -0
  19. huaweicloudsdkvpcep/v1/model/connection_endpoints.py +318 -0
  20. huaweicloudsdkvpcep/v1/model/connections_desc.py +142 -0
  21. huaweicloudsdkvpcep/v1/model/create_endpoint_request.py +111 -0
  22. huaweicloudsdkvpcep/v1/model/create_endpoint_request_body.py +490 -0
  23. huaweicloudsdkvpcep/v1/model/create_endpoint_response.py +841 -0
  24. huaweicloudsdkvpcep/v1/model/create_endpoint_service_request.py +111 -0
  25. huaweicloudsdkvpcep/v1/model/create_endpoint_service_request_body.py +459 -0
  26. huaweicloudsdkvpcep/v1/model/create_endpoint_service_response.py +638 -0
  27. huaweicloudsdkvpcep/v1/model/delete_endpoint_policy_request.py +114 -0
  28. huaweicloudsdkvpcep/v1/model/delete_endpoint_policy_response.py +725 -0
  29. huaweicloudsdkvpcep/v1/model/delete_endpoint_request.py +114 -0
  30. huaweicloudsdkvpcep/v1/model/delete_endpoint_response.py +85 -0
  31. huaweicloudsdkvpcep/v1/model/delete_endpoint_service_request.py +114 -0
  32. huaweicloudsdkvpcep/v1/model/delete_endpoint_service_response.py +85 -0
  33. huaweicloudsdkvpcep/v1/model/endpoint_response_body.py +811 -0
  34. huaweicloudsdkvpcep/v1/model/endpoint_service.py +289 -0
  35. huaweicloudsdkvpcep/v1/model/eps_add_permission_request.py +142 -0
  36. huaweicloudsdkvpcep/v1/model/eps_permission.py +231 -0
  37. huaweicloudsdkvpcep/v1/model/eps_remove_permission_request.py +114 -0
  38. huaweicloudsdkvpcep/v1/model/eps_update_permission_desc.py +114 -0
  39. huaweicloudsdkvpcep/v1/model/error.py +144 -0
  40. huaweicloudsdkvpcep/v1/model/link.py +173 -0
  41. huaweicloudsdkvpcep/v1/model/list_endpoint_info_details_request.py +114 -0
  42. huaweicloudsdkvpcep/v1/model/list_endpoint_info_details_response.py +895 -0
  43. huaweicloudsdkvpcep/v1/model/list_endpoint_service_request.py +347 -0
  44. huaweicloudsdkvpcep/v1/model/list_endpoint_service_response.py +145 -0
  45. huaweicloudsdkvpcep/v1/model/list_endpoints_request.py +289 -0
  46. huaweicloudsdkvpcep/v1/model/list_endpoints_response.py +145 -0
  47. huaweicloudsdkvpcep/v1/model/list_query_project_resource_tags_request.py +114 -0
  48. huaweicloudsdkvpcep/v1/model/list_query_project_resource_tags_response.py +116 -0
  49. huaweicloudsdkvpcep/v1/model/list_quota_details_request.py +115 -0
  50. huaweicloudsdkvpcep/v1/model/list_quota_details_response.py +112 -0
  51. huaweicloudsdkvpcep/v1/model/list_resource_instances_request.py +139 -0
  52. huaweicloudsdkvpcep/v1/model/list_resource_instances_response.py +145 -0
  53. huaweicloudsdkvpcep/v1/model/list_service_connections_request.py +317 -0
  54. huaweicloudsdkvpcep/v1/model/list_service_connections_response.py +145 -0
  55. huaweicloudsdkvpcep/v1/model/list_service_describe_details_request.py +144 -0
  56. huaweicloudsdkvpcep/v1/model/list_service_describe_details_response.py +290 -0
  57. huaweicloudsdkvpcep/v1/model/list_service_details_request.py +114 -0
  58. huaweicloudsdkvpcep/v1/model/list_service_details_response.py +667 -0
  59. huaweicloudsdkvpcep/v1/model/list_service_permissions_details_request.py +259 -0
  60. huaweicloudsdkvpcep/v1/model/list_service_permissions_details_response.py +145 -0
  61. huaweicloudsdkvpcep/v1/model/list_service_public_details_request.py +260 -0
  62. huaweicloudsdkvpcep/v1/model/list_service_public_details_response.py +145 -0
  63. huaweicloudsdkvpcep/v1/model/list_specified_version_details_request.py +114 -0
  64. huaweicloudsdkvpcep/v1/model/list_specified_version_details_response.py +112 -0
  65. huaweicloudsdkvpcep/v1/model/list_version_details_request.py +84 -0
  66. huaweicloudsdkvpcep/v1/model/list_version_details_response.py +116 -0
  67. huaweicloudsdkvpcep/v1/model/match.py +142 -0
  68. huaweicloudsdkvpcep/v1/model/permission_object.py +202 -0
  69. huaweicloudsdkvpcep/v1/model/policy_statement.py +199 -0
  70. huaweicloudsdkvpcep/v1/model/port_list.py +173 -0
  71. huaweicloudsdkvpcep/v1/model/query_error.py +144 -0
  72. huaweicloudsdkvpcep/v1/model/query_resource_instance_tags_body.py +375 -0
  73. huaweicloudsdkvpcep/v1/model/quotas.py +173 -0
  74. huaweicloudsdkvpcep/v1/model/resource_instance.py +173 -0
  75. huaweicloudsdkvpcep/v1/model/resource_tag.py +143 -0
  76. huaweicloudsdkvpcep/v1/model/resources_response_body.py +115 -0
  77. huaweicloudsdkvpcep/v1/model/routetable_info_error.py +144 -0
  78. huaweicloudsdkvpcep/v1/model/routetable_info_error_detial.py +144 -0
  79. huaweicloudsdkvpcep/v1/model/service_list.py +724 -0
  80. huaweicloudsdkvpcep/v1/model/tag_list.py +144 -0
  81. huaweicloudsdkvpcep/v1/model/tag_values_list.py +142 -0
  82. huaweicloudsdkvpcep/v1/model/update_endpoint_connections_desc_request.py +139 -0
  83. huaweicloudsdkvpcep/v1/model/update_endpoint_connections_desc_request_body.py +114 -0
  84. huaweicloudsdkvpcep/v1/model/update_endpoint_connections_desc_response.py +116 -0
  85. huaweicloudsdkvpcep/v1/model/update_endpoint_policy_request.py +139 -0
  86. huaweicloudsdkvpcep/v1/model/update_endpoint_policy_request_body.py +144 -0
  87. huaweicloudsdkvpcep/v1/model/update_endpoint_policy_response.py +725 -0
  88. huaweicloudsdkvpcep/v1/model/update_endpoint_routetable_request.py +139 -0
  89. huaweicloudsdkvpcep/v1/model/update_endpoint_routetable_request_body.py +114 -0
  90. huaweicloudsdkvpcep/v1/model/update_endpoint_routetable_response.py +145 -0
  91. huaweicloudsdkvpcep/v1/model/update_endpoint_service_name_request.py +139 -0
  92. huaweicloudsdkvpcep/v1/model/update_endpoint_service_name_request_body.py +115 -0
  93. huaweicloudsdkvpcep/v1/model/update_endpoint_service_name_response.py +116 -0
  94. huaweicloudsdkvpcep/v1/model/update_endpoint_service_permission_desc_request.py +167 -0
  95. huaweicloudsdkvpcep/v1/model/update_endpoint_service_permission_desc_request_body.py +110 -0
  96. huaweicloudsdkvpcep/v1/model/update_endpoint_service_permission_desc_response.py +116 -0
  97. huaweicloudsdkvpcep/v1/model/update_endpoint_service_request.py +139 -0
  98. huaweicloudsdkvpcep/v1/model/update_endpoint_service_request_body.py +289 -0
  99. huaweicloudsdkvpcep/v1/model/update_endpoint_service_response.py +638 -0
  100. huaweicloudsdkvpcep/v1/model/update_endpoint_white_request.py +139 -0
  101. huaweicloudsdkvpcep/v1/model/update_endpoint_white_request_body.py +144 -0
  102. huaweicloudsdkvpcep/v1/model/update_endpoint_white_response.py +667 -0
  103. huaweicloudsdkvpcep/v1/model/upgrade_endpoint_service_request.py +114 -0
  104. huaweicloudsdkvpcep/v1/model/upgrade_endpoint_service_response.py +85 -0
  105. huaweicloudsdkvpcep/v1/model/version_object.py +260 -0
  106. huaweicloudsdkvpcep/v1/region/__init__.py +0 -0
  107. huaweicloudsdkvpcep/v1/region/vpcep_region.py +124 -0
  108. huaweicloudsdkvpcep/v1/vpcep_async_client.py +2211 -0
  109. huaweicloudsdkvpcep/v1/vpcep_client.py +2208 -0
  110. huaweicloudsdkvpcep-3.1.160.dist-info/LICENSE +13 -0
  111. huaweicloudsdkvpcep-3.1.160.dist-info/METADATA +26 -0
  112. huaweicloudsdkvpcep-3.1.160.dist-info/RECORD +114 -0
  113. huaweicloudsdkvpcep-3.1.160.dist-info/WHEEL +5 -0
  114. huaweicloudsdkvpcep-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class EpsRemovePermissionRequest:
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
+ 'id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'id': 'id'
25
+ }
26
+
27
+ def __init__(self, id=None):
28
+ r"""EpsRemovePermissionRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param id: 终端节点服务白名单表主键ID
33
+ :type id: str
34
+ """
35
+
36
+
37
+
38
+ self._id = None
39
+ self.discriminator = None
40
+
41
+ self.id = id
42
+
43
+ @property
44
+ def id(self):
45
+ r"""Gets the id of this EpsRemovePermissionRequest.
46
+
47
+ 终端节点服务白名单表主键ID
48
+
49
+ :return: The id of this EpsRemovePermissionRequest.
50
+ :rtype: str
51
+ """
52
+ return self._id
53
+
54
+ @id.setter
55
+ def id(self, id):
56
+ r"""Sets the id of this EpsRemovePermissionRequest.
57
+
58
+ 终端节点服务白名单表主键ID
59
+
60
+ :param id: The id of this EpsRemovePermissionRequest.
61
+ :type id: str
62
+ """
63
+ self._id = id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, EpsRemovePermissionRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class EpsUpdatePermissionDesc:
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
+ 'description': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'description': 'description'
25
+ }
26
+
27
+ def __init__(self, description=None):
28
+ r"""EpsUpdatePermissionDesc
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param description: 终端节点服务白名单描述
33
+ :type description: str
34
+ """
35
+
36
+
37
+
38
+ self._description = None
39
+ self.discriminator = None
40
+
41
+ self.description = description
42
+
43
+ @property
44
+ def description(self):
45
+ r"""Gets the description of this EpsUpdatePermissionDesc.
46
+
47
+ 终端节点服务白名单描述
48
+
49
+ :return: The description of this EpsUpdatePermissionDesc.
50
+ :rtype: str
51
+ """
52
+ return self._description
53
+
54
+ @description.setter
55
+ def description(self, description):
56
+ r"""Sets the description of this EpsUpdatePermissionDesc.
57
+
58
+ 终端节点服务白名单描述
59
+
60
+ :param description: The description of this EpsUpdatePermissionDesc.
61
+ :type description: str
62
+ """
63
+ self._description = description
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, EpsUpdatePermissionDesc):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class Error:
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
+ 'message': 'str',
21
+ 'code': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'message': 'message',
26
+ 'code': 'code'
27
+ }
28
+
29
+ def __init__(self, message=None, code=None):
30
+ r"""Error
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param message: 任务异常错误信息描述
35
+ :type message: str
36
+ :param code: 任务异常错误信息编码
37
+ :type code: str
38
+ """
39
+
40
+
41
+
42
+ self._message = None
43
+ self._code = None
44
+ self.discriminator = None
45
+
46
+ if message is not None:
47
+ self.message = message
48
+ if code is not None:
49
+ self.code = code
50
+
51
+ @property
52
+ def message(self):
53
+ r"""Gets the message of this Error.
54
+
55
+ 任务异常错误信息描述
56
+
57
+ :return: The message of this Error.
58
+ :rtype: str
59
+ """
60
+ return self._message
61
+
62
+ @message.setter
63
+ def message(self, message):
64
+ r"""Sets the message of this Error.
65
+
66
+ 任务异常错误信息描述
67
+
68
+ :param message: The message of this Error.
69
+ :type message: str
70
+ """
71
+ self._message = message
72
+
73
+ @property
74
+ def code(self):
75
+ r"""Gets the code of this Error.
76
+
77
+ 任务异常错误信息编码
78
+
79
+ :return: The code of this Error.
80
+ :rtype: str
81
+ """
82
+ return self._code
83
+
84
+ @code.setter
85
+ def code(self, code):
86
+ r"""Sets the code of this Error.
87
+
88
+ 任务异常错误信息编码
89
+
90
+ :param code: The code of this Error.
91
+ :type code: str
92
+ """
93
+ self._code = code
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, Error):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class Link:
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
+ 'href': 'str',
21
+ 'type': 'str',
22
+ 'rel': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'href': 'href',
27
+ 'type': 'type',
28
+ 'rel': 'rel'
29
+ }
30
+
31
+ def __init__(self, href=None, type=None, rel=None):
32
+ r"""Link
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param href: 当前API版本的引用地址。
37
+ :type href: str
38
+ :param type: 发送的实体的MIME类型,取值为application/json。
39
+ :type type: str
40
+ :param rel: 当前API版本和被引用地址的关系。
41
+ :type rel: str
42
+ """
43
+
44
+
45
+
46
+ self._href = None
47
+ self._type = None
48
+ self._rel = None
49
+ self.discriminator = None
50
+
51
+ if href is not None:
52
+ self.href = href
53
+ if type is not None:
54
+ self.type = type
55
+ if rel is not None:
56
+ self.rel = rel
57
+
58
+ @property
59
+ def href(self):
60
+ r"""Gets the href of this Link.
61
+
62
+ 当前API版本的引用地址。
63
+
64
+ :return: The href of this Link.
65
+ :rtype: str
66
+ """
67
+ return self._href
68
+
69
+ @href.setter
70
+ def href(self, href):
71
+ r"""Sets the href of this Link.
72
+
73
+ 当前API版本的引用地址。
74
+
75
+ :param href: The href of this Link.
76
+ :type href: str
77
+ """
78
+ self._href = href
79
+
80
+ @property
81
+ def type(self):
82
+ r"""Gets the type of this Link.
83
+
84
+ 发送的实体的MIME类型,取值为application/json。
85
+
86
+ :return: The type of this Link.
87
+ :rtype: str
88
+ """
89
+ return self._type
90
+
91
+ @type.setter
92
+ def type(self, type):
93
+ r"""Sets the type of this Link.
94
+
95
+ 发送的实体的MIME类型,取值为application/json。
96
+
97
+ :param type: The type of this Link.
98
+ :type type: str
99
+ """
100
+ self._type = type
101
+
102
+ @property
103
+ def rel(self):
104
+ r"""Gets the rel of this Link.
105
+
106
+ 当前API版本和被引用地址的关系。
107
+
108
+ :return: The rel of this Link.
109
+ :rtype: str
110
+ """
111
+ return self._rel
112
+
113
+ @rel.setter
114
+ def rel(self, rel):
115
+ r"""Sets the rel of this Link.
116
+
117
+ 当前API版本和被引用地址的关系。
118
+
119
+ :param rel: The rel of this Link.
120
+ :type rel: str
121
+ """
122
+ self._rel = rel
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, Link):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListEndpointInfoDetailsRequest:
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
+ 'vpc_endpoint_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'vpc_endpoint_id': 'vpc_endpoint_id'
25
+ }
26
+
27
+ def __init__(self, vpc_endpoint_id=None):
28
+ r"""ListEndpointInfoDetailsRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param vpc_endpoint_id: 终端节点的ID。
33
+ :type vpc_endpoint_id: str
34
+ """
35
+
36
+
37
+
38
+ self._vpc_endpoint_id = None
39
+ self.discriminator = None
40
+
41
+ self.vpc_endpoint_id = vpc_endpoint_id
42
+
43
+ @property
44
+ def vpc_endpoint_id(self):
45
+ r"""Gets the vpc_endpoint_id of this ListEndpointInfoDetailsRequest.
46
+
47
+ 终端节点的ID。
48
+
49
+ :return: The vpc_endpoint_id of this ListEndpointInfoDetailsRequest.
50
+ :rtype: str
51
+ """
52
+ return self._vpc_endpoint_id
53
+
54
+ @vpc_endpoint_id.setter
55
+ def vpc_endpoint_id(self, vpc_endpoint_id):
56
+ r"""Sets the vpc_endpoint_id of this ListEndpointInfoDetailsRequest.
57
+
58
+ 终端节点的ID。
59
+
60
+ :param vpc_endpoint_id: The vpc_endpoint_id of this ListEndpointInfoDetailsRequest.
61
+ :type vpc_endpoint_id: str
62
+ """
63
+ self._vpc_endpoint_id = vpc_endpoint_id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, ListEndpointInfoDetailsRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other