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.
- huaweicloudsdkvpcep/__init__.py +0 -0
- huaweicloudsdkvpcep/v1/__init__.py +110 -0
- huaweicloudsdkvpcep/v1/model/__init__.py +107 -0
- huaweicloudsdkvpcep/v1/model/accept_or_reject_endpoint_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/accept_or_reject_endpoint_request_body.py +142 -0
- huaweicloudsdkvpcep/v1/model/accept_or_reject_endpoint_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/add_or_remove_service_permissions_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/add_or_remove_service_permissions_request_body.py +171 -0
- huaweicloudsdkvpcep/v1/model/add_or_remove_service_permissions_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/batch_add_endpoint_service_permissions_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/batch_add_endpoint_service_permissions_request_body.py +143 -0
- huaweicloudsdkvpcep/v1/model/batch_add_endpoint_service_permissions_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/batch_add_or_remove_resource_instance_request.py +167 -0
- huaweicloudsdkvpcep/v1/model/batch_add_or_remove_resource_instance_request_body.py +143 -0
- huaweicloudsdkvpcep/v1/model/batch_add_or_remove_resource_instance_response.py +85 -0
- huaweicloudsdkvpcep/v1/model/batch_remove_endpoint_service_permissions_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/batch_remove_endpoint_service_permissions_request_body.py +114 -0
- huaweicloudsdkvpcep/v1/model/batch_remove_endpoint_service_permissions_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/connection_endpoints.py +318 -0
- huaweicloudsdkvpcep/v1/model/connections_desc.py +142 -0
- huaweicloudsdkvpcep/v1/model/create_endpoint_request.py +111 -0
- huaweicloudsdkvpcep/v1/model/create_endpoint_request_body.py +490 -0
- huaweicloudsdkvpcep/v1/model/create_endpoint_response.py +841 -0
- huaweicloudsdkvpcep/v1/model/create_endpoint_service_request.py +111 -0
- huaweicloudsdkvpcep/v1/model/create_endpoint_service_request_body.py +459 -0
- huaweicloudsdkvpcep/v1/model/create_endpoint_service_response.py +638 -0
- huaweicloudsdkvpcep/v1/model/delete_endpoint_policy_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/delete_endpoint_policy_response.py +725 -0
- huaweicloudsdkvpcep/v1/model/delete_endpoint_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/delete_endpoint_response.py +85 -0
- huaweicloudsdkvpcep/v1/model/delete_endpoint_service_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/delete_endpoint_service_response.py +85 -0
- huaweicloudsdkvpcep/v1/model/endpoint_response_body.py +811 -0
- huaweicloudsdkvpcep/v1/model/endpoint_service.py +289 -0
- huaweicloudsdkvpcep/v1/model/eps_add_permission_request.py +142 -0
- huaweicloudsdkvpcep/v1/model/eps_permission.py +231 -0
- huaweicloudsdkvpcep/v1/model/eps_remove_permission_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/eps_update_permission_desc.py +114 -0
- huaweicloudsdkvpcep/v1/model/error.py +144 -0
- huaweicloudsdkvpcep/v1/model/link.py +173 -0
- huaweicloudsdkvpcep/v1/model/list_endpoint_info_details_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/list_endpoint_info_details_response.py +895 -0
- huaweicloudsdkvpcep/v1/model/list_endpoint_service_request.py +347 -0
- huaweicloudsdkvpcep/v1/model/list_endpoint_service_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/list_endpoints_request.py +289 -0
- huaweicloudsdkvpcep/v1/model/list_endpoints_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/list_query_project_resource_tags_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/list_query_project_resource_tags_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/list_quota_details_request.py +115 -0
- huaweicloudsdkvpcep/v1/model/list_quota_details_response.py +112 -0
- huaweicloudsdkvpcep/v1/model/list_resource_instances_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/list_resource_instances_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/list_service_connections_request.py +317 -0
- huaweicloudsdkvpcep/v1/model/list_service_connections_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/list_service_describe_details_request.py +144 -0
- huaweicloudsdkvpcep/v1/model/list_service_describe_details_response.py +290 -0
- huaweicloudsdkvpcep/v1/model/list_service_details_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/list_service_details_response.py +667 -0
- huaweicloudsdkvpcep/v1/model/list_service_permissions_details_request.py +259 -0
- huaweicloudsdkvpcep/v1/model/list_service_permissions_details_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/list_service_public_details_request.py +260 -0
- huaweicloudsdkvpcep/v1/model/list_service_public_details_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/list_specified_version_details_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/list_specified_version_details_response.py +112 -0
- huaweicloudsdkvpcep/v1/model/list_version_details_request.py +84 -0
- huaweicloudsdkvpcep/v1/model/list_version_details_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/match.py +142 -0
- huaweicloudsdkvpcep/v1/model/permission_object.py +202 -0
- huaweicloudsdkvpcep/v1/model/policy_statement.py +199 -0
- huaweicloudsdkvpcep/v1/model/port_list.py +173 -0
- huaweicloudsdkvpcep/v1/model/query_error.py +144 -0
- huaweicloudsdkvpcep/v1/model/query_resource_instance_tags_body.py +375 -0
- huaweicloudsdkvpcep/v1/model/quotas.py +173 -0
- huaweicloudsdkvpcep/v1/model/resource_instance.py +173 -0
- huaweicloudsdkvpcep/v1/model/resource_tag.py +143 -0
- huaweicloudsdkvpcep/v1/model/resources_response_body.py +115 -0
- huaweicloudsdkvpcep/v1/model/routetable_info_error.py +144 -0
- huaweicloudsdkvpcep/v1/model/routetable_info_error_detial.py +144 -0
- huaweicloudsdkvpcep/v1/model/service_list.py +724 -0
- huaweicloudsdkvpcep/v1/model/tag_list.py +144 -0
- huaweicloudsdkvpcep/v1/model/tag_values_list.py +142 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_connections_desc_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_connections_desc_request_body.py +114 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_connections_desc_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_policy_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_policy_request_body.py +144 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_policy_response.py +725 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_routetable_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_routetable_request_body.py +114 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_routetable_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_name_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_name_request_body.py +115 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_name_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_permission_desc_request.py +167 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_permission_desc_request_body.py +110 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_permission_desc_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_request_body.py +289 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_response.py +638 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_white_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_white_request_body.py +144 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_white_response.py +667 -0
- huaweicloudsdkvpcep/v1/model/upgrade_endpoint_service_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/upgrade_endpoint_service_response.py +85 -0
- huaweicloudsdkvpcep/v1/model/version_object.py +260 -0
- huaweicloudsdkvpcep/v1/region/__init__.py +0 -0
- huaweicloudsdkvpcep/v1/region/vpcep_region.py +124 -0
- huaweicloudsdkvpcep/v1/vpcep_async_client.py +2211 -0
- huaweicloudsdkvpcep/v1/vpcep_client.py +2208 -0
- huaweicloudsdkvpcep-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkvpcep-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkvpcep-3.1.160.dist-info/RECORD +114 -0
- huaweicloudsdkvpcep-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkvpcep-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,317 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListServiceConnectionsRequest:
|
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_service_id': 'str',
|
21
|
+
'id': 'str',
|
22
|
+
'marker_id': 'str',
|
23
|
+
'status': 'str',
|
24
|
+
'sort_key': 'str',
|
25
|
+
'sort_dir': 'str',
|
26
|
+
'limit': 'int',
|
27
|
+
'offset': 'int'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'vpc_endpoint_service_id': 'vpc_endpoint_service_id',
|
32
|
+
'id': 'id',
|
33
|
+
'marker_id': 'marker_id',
|
34
|
+
'status': 'status',
|
35
|
+
'sort_key': 'sort_key',
|
36
|
+
'sort_dir': 'sort_dir',
|
37
|
+
'limit': 'limit',
|
38
|
+
'offset': 'offset'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, vpc_endpoint_service_id=None, id=None, marker_id=None, status=None, sort_key=None, sort_dir=None, limit=None, offset=None):
|
42
|
+
r"""ListServiceConnectionsRequest
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param vpc_endpoint_service_id: 终端节点服务的ID。
|
47
|
+
:type vpc_endpoint_service_id: str
|
48
|
+
:param id: 终端节点的ID,唯一标识。
|
49
|
+
:type id: str
|
50
|
+
:param marker_id: 终端节点的报文标识。
|
51
|
+
:type marker_id: str
|
52
|
+
:param status: 终端节点的连接状态。 - pendingAcceptance:待接受 - accepted:已接受 - rejected:已拒绝 - failed:失败
|
53
|
+
:type status: str
|
54
|
+
:param sort_key: 查询结果中终端节点列表的排序字段,取值为: - create_at:终端节点的创建时间 - update_at:终端节点的更新时间 默认值为create_at。
|
55
|
+
:type sort_key: str
|
56
|
+
:param sort_dir: 查询结果中终端节点列表的排序方式,取值为: - desc:降序排序 - asc:升序排序 默认值为desc。
|
57
|
+
:type sort_dir: str
|
58
|
+
:param limit: 查询返回终端节点服务的连接列表限制每页个数,即每页返回的个数。 取值范围:0~1000,取值一般为10,20或者50,默认为10。
|
59
|
+
:type limit: int
|
60
|
+
:param offset: 偏移量。 偏移量为一个大于0小于终端节点服务总个数的整数, 表示从偏移量后面的终端节点服务开始查询。
|
61
|
+
:type offset: int
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._vpc_endpoint_service_id = None
|
67
|
+
self._id = None
|
68
|
+
self._marker_id = None
|
69
|
+
self._status = None
|
70
|
+
self._sort_key = None
|
71
|
+
self._sort_dir = None
|
72
|
+
self._limit = None
|
73
|
+
self._offset = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
self.vpc_endpoint_service_id = vpc_endpoint_service_id
|
77
|
+
if id is not None:
|
78
|
+
self.id = id
|
79
|
+
if marker_id is not None:
|
80
|
+
self.marker_id = marker_id
|
81
|
+
if status is not None:
|
82
|
+
self.status = status
|
83
|
+
if sort_key is not None:
|
84
|
+
self.sort_key = sort_key
|
85
|
+
if sort_dir is not None:
|
86
|
+
self.sort_dir = sort_dir
|
87
|
+
if limit is not None:
|
88
|
+
self.limit = limit
|
89
|
+
if offset is not None:
|
90
|
+
self.offset = offset
|
91
|
+
|
92
|
+
@property
|
93
|
+
def vpc_endpoint_service_id(self):
|
94
|
+
r"""Gets the vpc_endpoint_service_id of this ListServiceConnectionsRequest.
|
95
|
+
|
96
|
+
终端节点服务的ID。
|
97
|
+
|
98
|
+
:return: The vpc_endpoint_service_id of this ListServiceConnectionsRequest.
|
99
|
+
:rtype: str
|
100
|
+
"""
|
101
|
+
return self._vpc_endpoint_service_id
|
102
|
+
|
103
|
+
@vpc_endpoint_service_id.setter
|
104
|
+
def vpc_endpoint_service_id(self, vpc_endpoint_service_id):
|
105
|
+
r"""Sets the vpc_endpoint_service_id of this ListServiceConnectionsRequest.
|
106
|
+
|
107
|
+
终端节点服务的ID。
|
108
|
+
|
109
|
+
:param vpc_endpoint_service_id: The vpc_endpoint_service_id of this ListServiceConnectionsRequest.
|
110
|
+
:type vpc_endpoint_service_id: str
|
111
|
+
"""
|
112
|
+
self._vpc_endpoint_service_id = vpc_endpoint_service_id
|
113
|
+
|
114
|
+
@property
|
115
|
+
def id(self):
|
116
|
+
r"""Gets the id of this ListServiceConnectionsRequest.
|
117
|
+
|
118
|
+
终端节点的ID,唯一标识。
|
119
|
+
|
120
|
+
:return: The id of this ListServiceConnectionsRequest.
|
121
|
+
:rtype: str
|
122
|
+
"""
|
123
|
+
return self._id
|
124
|
+
|
125
|
+
@id.setter
|
126
|
+
def id(self, id):
|
127
|
+
r"""Sets the id of this ListServiceConnectionsRequest.
|
128
|
+
|
129
|
+
终端节点的ID,唯一标识。
|
130
|
+
|
131
|
+
:param id: The id of this ListServiceConnectionsRequest.
|
132
|
+
:type id: str
|
133
|
+
"""
|
134
|
+
self._id = id
|
135
|
+
|
136
|
+
@property
|
137
|
+
def marker_id(self):
|
138
|
+
r"""Gets the marker_id of this ListServiceConnectionsRequest.
|
139
|
+
|
140
|
+
终端节点的报文标识。
|
141
|
+
|
142
|
+
:return: The marker_id of this ListServiceConnectionsRequest.
|
143
|
+
:rtype: str
|
144
|
+
"""
|
145
|
+
return self._marker_id
|
146
|
+
|
147
|
+
@marker_id.setter
|
148
|
+
def marker_id(self, marker_id):
|
149
|
+
r"""Sets the marker_id of this ListServiceConnectionsRequest.
|
150
|
+
|
151
|
+
终端节点的报文标识。
|
152
|
+
|
153
|
+
:param marker_id: The marker_id of this ListServiceConnectionsRequest.
|
154
|
+
:type marker_id: str
|
155
|
+
"""
|
156
|
+
self._marker_id = marker_id
|
157
|
+
|
158
|
+
@property
|
159
|
+
def status(self):
|
160
|
+
r"""Gets the status of this ListServiceConnectionsRequest.
|
161
|
+
|
162
|
+
终端节点的连接状态。 - pendingAcceptance:待接受 - accepted:已接受 - rejected:已拒绝 - failed:失败
|
163
|
+
|
164
|
+
:return: The status of this ListServiceConnectionsRequest.
|
165
|
+
:rtype: str
|
166
|
+
"""
|
167
|
+
return self._status
|
168
|
+
|
169
|
+
@status.setter
|
170
|
+
def status(self, status):
|
171
|
+
r"""Sets the status of this ListServiceConnectionsRequest.
|
172
|
+
|
173
|
+
终端节点的连接状态。 - pendingAcceptance:待接受 - accepted:已接受 - rejected:已拒绝 - failed:失败
|
174
|
+
|
175
|
+
:param status: The status of this ListServiceConnectionsRequest.
|
176
|
+
:type status: str
|
177
|
+
"""
|
178
|
+
self._status = status
|
179
|
+
|
180
|
+
@property
|
181
|
+
def sort_key(self):
|
182
|
+
r"""Gets the sort_key of this ListServiceConnectionsRequest.
|
183
|
+
|
184
|
+
查询结果中终端节点列表的排序字段,取值为: - create_at:终端节点的创建时间 - update_at:终端节点的更新时间 默认值为create_at。
|
185
|
+
|
186
|
+
:return: The sort_key of this ListServiceConnectionsRequest.
|
187
|
+
:rtype: str
|
188
|
+
"""
|
189
|
+
return self._sort_key
|
190
|
+
|
191
|
+
@sort_key.setter
|
192
|
+
def sort_key(self, sort_key):
|
193
|
+
r"""Sets the sort_key of this ListServiceConnectionsRequest.
|
194
|
+
|
195
|
+
查询结果中终端节点列表的排序字段,取值为: - create_at:终端节点的创建时间 - update_at:终端节点的更新时间 默认值为create_at。
|
196
|
+
|
197
|
+
:param sort_key: The sort_key of this ListServiceConnectionsRequest.
|
198
|
+
:type sort_key: str
|
199
|
+
"""
|
200
|
+
self._sort_key = sort_key
|
201
|
+
|
202
|
+
@property
|
203
|
+
def sort_dir(self):
|
204
|
+
r"""Gets the sort_dir of this ListServiceConnectionsRequest.
|
205
|
+
|
206
|
+
查询结果中终端节点列表的排序方式,取值为: - desc:降序排序 - asc:升序排序 默认值为desc。
|
207
|
+
|
208
|
+
:return: The sort_dir of this ListServiceConnectionsRequest.
|
209
|
+
:rtype: str
|
210
|
+
"""
|
211
|
+
return self._sort_dir
|
212
|
+
|
213
|
+
@sort_dir.setter
|
214
|
+
def sort_dir(self, sort_dir):
|
215
|
+
r"""Sets the sort_dir of this ListServiceConnectionsRequest.
|
216
|
+
|
217
|
+
查询结果中终端节点列表的排序方式,取值为: - desc:降序排序 - asc:升序排序 默认值为desc。
|
218
|
+
|
219
|
+
:param sort_dir: The sort_dir of this ListServiceConnectionsRequest.
|
220
|
+
:type sort_dir: str
|
221
|
+
"""
|
222
|
+
self._sort_dir = sort_dir
|
223
|
+
|
224
|
+
@property
|
225
|
+
def limit(self):
|
226
|
+
r"""Gets the limit of this ListServiceConnectionsRequest.
|
227
|
+
|
228
|
+
查询返回终端节点服务的连接列表限制每页个数,即每页返回的个数。 取值范围:0~1000,取值一般为10,20或者50,默认为10。
|
229
|
+
|
230
|
+
:return: The limit of this ListServiceConnectionsRequest.
|
231
|
+
:rtype: int
|
232
|
+
"""
|
233
|
+
return self._limit
|
234
|
+
|
235
|
+
@limit.setter
|
236
|
+
def limit(self, limit):
|
237
|
+
r"""Sets the limit of this ListServiceConnectionsRequest.
|
238
|
+
|
239
|
+
查询返回终端节点服务的连接列表限制每页个数,即每页返回的个数。 取值范围:0~1000,取值一般为10,20或者50,默认为10。
|
240
|
+
|
241
|
+
:param limit: The limit of this ListServiceConnectionsRequest.
|
242
|
+
:type limit: int
|
243
|
+
"""
|
244
|
+
self._limit = limit
|
245
|
+
|
246
|
+
@property
|
247
|
+
def offset(self):
|
248
|
+
r"""Gets the offset of this ListServiceConnectionsRequest.
|
249
|
+
|
250
|
+
偏移量。 偏移量为一个大于0小于终端节点服务总个数的整数, 表示从偏移量后面的终端节点服务开始查询。
|
251
|
+
|
252
|
+
:return: The offset of this ListServiceConnectionsRequest.
|
253
|
+
:rtype: int
|
254
|
+
"""
|
255
|
+
return self._offset
|
256
|
+
|
257
|
+
@offset.setter
|
258
|
+
def offset(self, offset):
|
259
|
+
r"""Sets the offset of this ListServiceConnectionsRequest.
|
260
|
+
|
261
|
+
偏移量。 偏移量为一个大于0小于终端节点服务总个数的整数, 表示从偏移量后面的终端节点服务开始查询。
|
262
|
+
|
263
|
+
:param offset: The offset of this ListServiceConnectionsRequest.
|
264
|
+
:type offset: int
|
265
|
+
"""
|
266
|
+
self._offset = offset
|
267
|
+
|
268
|
+
def to_dict(self):
|
269
|
+
"""Returns the model properties as a dict"""
|
270
|
+
result = {}
|
271
|
+
|
272
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
273
|
+
value = getattr(self, attr)
|
274
|
+
if isinstance(value, list):
|
275
|
+
result[attr] = list(map(
|
276
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
277
|
+
value
|
278
|
+
))
|
279
|
+
elif hasattr(value, "to_dict"):
|
280
|
+
result[attr] = value.to_dict()
|
281
|
+
elif isinstance(value, dict):
|
282
|
+
result[attr] = dict(map(
|
283
|
+
lambda item: (item[0], item[1].to_dict())
|
284
|
+
if hasattr(item[1], "to_dict") else item,
|
285
|
+
value.items()
|
286
|
+
))
|
287
|
+
else:
|
288
|
+
if attr in self.sensitive_list:
|
289
|
+
result[attr] = "****"
|
290
|
+
else:
|
291
|
+
result[attr] = value
|
292
|
+
|
293
|
+
return result
|
294
|
+
|
295
|
+
def to_str(self):
|
296
|
+
"""Returns the string representation of the model"""
|
297
|
+
import simplejson as json
|
298
|
+
if six.PY2:
|
299
|
+
import sys
|
300
|
+
reload(sys)
|
301
|
+
sys.setdefaultencoding("utf-8")
|
302
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
303
|
+
|
304
|
+
def __repr__(self):
|
305
|
+
"""For `print`"""
|
306
|
+
return self.to_str()
|
307
|
+
|
308
|
+
def __eq__(self, other):
|
309
|
+
"""Returns true if both objects are equal"""
|
310
|
+
if not isinstance(other, ListServiceConnectionsRequest):
|
311
|
+
return False
|
312
|
+
|
313
|
+
return self.__dict__ == other.__dict__
|
314
|
+
|
315
|
+
def __ne__(self, other):
|
316
|
+
"""Returns true if both objects are not equal"""
|
317
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
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 ListServiceConnectionsResponse(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
|
+
'connections': 'list[ConnectionEndpoints]',
|
22
|
+
'total_count': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'connections': 'connections',
|
27
|
+
'total_count': 'total_count'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, connections=None, total_count=None):
|
31
|
+
r"""ListServiceConnectionsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param connections: 连接列表。
|
36
|
+
:type connections: list[:class:`huaweicloudsdkvpcep.v1.ConnectionEndpoints`]
|
37
|
+
:param total_count: 满足查询条件的终端节点总条数,不受分页(即limit、offset参数)影响。
|
38
|
+
:type total_count: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListServiceConnectionsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._connections = None
|
44
|
+
self._total_count = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if connections is not None:
|
48
|
+
self.connections = connections
|
49
|
+
if total_count is not None:
|
50
|
+
self.total_count = total_count
|
51
|
+
|
52
|
+
@property
|
53
|
+
def connections(self):
|
54
|
+
r"""Gets the connections of this ListServiceConnectionsResponse.
|
55
|
+
|
56
|
+
连接列表。
|
57
|
+
|
58
|
+
:return: The connections of this ListServiceConnectionsResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkvpcep.v1.ConnectionEndpoints`]
|
60
|
+
"""
|
61
|
+
return self._connections
|
62
|
+
|
63
|
+
@connections.setter
|
64
|
+
def connections(self, connections):
|
65
|
+
r"""Sets the connections of this ListServiceConnectionsResponse.
|
66
|
+
|
67
|
+
连接列表。
|
68
|
+
|
69
|
+
:param connections: The connections of this ListServiceConnectionsResponse.
|
70
|
+
:type connections: list[:class:`huaweicloudsdkvpcep.v1.ConnectionEndpoints`]
|
71
|
+
"""
|
72
|
+
self._connections = connections
|
73
|
+
|
74
|
+
@property
|
75
|
+
def total_count(self):
|
76
|
+
r"""Gets the total_count of this ListServiceConnectionsResponse.
|
77
|
+
|
78
|
+
满足查询条件的终端节点总条数,不受分页(即limit、offset参数)影响。
|
79
|
+
|
80
|
+
:return: The total_count of this ListServiceConnectionsResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._total_count
|
84
|
+
|
85
|
+
@total_count.setter
|
86
|
+
def total_count(self, total_count):
|
87
|
+
r"""Sets the total_count of this ListServiceConnectionsResponse.
|
88
|
+
|
89
|
+
满足查询条件的终端节点总条数,不受分页(即limit、offset参数)影响。
|
90
|
+
|
91
|
+
:param total_count: The total_count of this ListServiceConnectionsResponse.
|
92
|
+
:type total_count: int
|
93
|
+
"""
|
94
|
+
self._total_count = total_count
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ListServiceConnectionsResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
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 ListServiceDescribeDetailsRequest:
|
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
|
+
'endpoint_service_name': 'str',
|
21
|
+
'id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'endpoint_service_name': 'endpoint_service_name',
|
26
|
+
'id': 'id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, endpoint_service_name=None, id=None):
|
30
|
+
r"""ListServiceDescribeDetailsRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param endpoint_service_name: 终端节点服务的名称。说明:该字段和id字段必须二选一,否则会出现错误。
|
35
|
+
:type endpoint_service_name: str
|
36
|
+
:param id: 终端节点服务的ID,唯一标识。 说明:该字段必须和endpoint_service_name字段二选一,否则会出现错误。
|
37
|
+
:type id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._endpoint_service_name = None
|
43
|
+
self._id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if endpoint_service_name is not None:
|
47
|
+
self.endpoint_service_name = endpoint_service_name
|
48
|
+
if id is not None:
|
49
|
+
self.id = id
|
50
|
+
|
51
|
+
@property
|
52
|
+
def endpoint_service_name(self):
|
53
|
+
r"""Gets the endpoint_service_name of this ListServiceDescribeDetailsRequest.
|
54
|
+
|
55
|
+
终端节点服务的名称。说明:该字段和id字段必须二选一,否则会出现错误。
|
56
|
+
|
57
|
+
:return: The endpoint_service_name of this ListServiceDescribeDetailsRequest.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._endpoint_service_name
|
61
|
+
|
62
|
+
@endpoint_service_name.setter
|
63
|
+
def endpoint_service_name(self, endpoint_service_name):
|
64
|
+
r"""Sets the endpoint_service_name of this ListServiceDescribeDetailsRequest.
|
65
|
+
|
66
|
+
终端节点服务的名称。说明:该字段和id字段必须二选一,否则会出现错误。
|
67
|
+
|
68
|
+
:param endpoint_service_name: The endpoint_service_name of this ListServiceDescribeDetailsRequest.
|
69
|
+
:type endpoint_service_name: str
|
70
|
+
"""
|
71
|
+
self._endpoint_service_name = endpoint_service_name
|
72
|
+
|
73
|
+
@property
|
74
|
+
def id(self):
|
75
|
+
r"""Gets the id of this ListServiceDescribeDetailsRequest.
|
76
|
+
|
77
|
+
终端节点服务的ID,唯一标识。 说明:该字段必须和endpoint_service_name字段二选一,否则会出现错误。
|
78
|
+
|
79
|
+
:return: The id of this ListServiceDescribeDetailsRequest.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._id
|
83
|
+
|
84
|
+
@id.setter
|
85
|
+
def id(self, id):
|
86
|
+
r"""Sets the id of this ListServiceDescribeDetailsRequest.
|
87
|
+
|
88
|
+
终端节点服务的ID,唯一标识。 说明:该字段必须和endpoint_service_name字段二选一,否则会出现错误。
|
89
|
+
|
90
|
+
:param id: The id of this ListServiceDescribeDetailsRequest.
|
91
|
+
:type id: str
|
92
|
+
"""
|
93
|
+
self._id = id
|
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, ListServiceDescribeDetailsRequest):
|
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
|