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,289 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class EndpointService:
|
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
|
+
'owner': 'str',
|
22
|
+
'service_name': 'str',
|
23
|
+
'service_type': 'str',
|
24
|
+
'created_at': 'datetime',
|
25
|
+
'is_charge': 'bool',
|
26
|
+
'enable_policy': 'bool'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'id': 'id',
|
31
|
+
'owner': 'owner',
|
32
|
+
'service_name': 'service_name',
|
33
|
+
'service_type': 'service_type',
|
34
|
+
'created_at': 'created_at',
|
35
|
+
'is_charge': 'is_charge',
|
36
|
+
'enable_policy': 'enable_policy'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, id=None, owner=None, service_name=None, service_type=None, created_at=None, is_charge=None, enable_policy=None):
|
40
|
+
r"""EndpointService
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param id: 公共终端节点服务的ID,唯一标识。
|
45
|
+
:type id: str
|
46
|
+
:param owner: 终端节点服务的所有者。
|
47
|
+
:type owner: str
|
48
|
+
:param service_name: 公共终端节点服务的名称。
|
49
|
+
:type service_name: str
|
50
|
+
:param service_type: 终端节点服务类型。 - gateway:由运维人员配置。用户无需创建,可直接使用。 - interface:包括运维人员配置的云服务和用户自己创建的私有服务。 其中,运维人员配置的云服务无需创建, 用户可直接使用。 您可以通过创建终端节点创建访问Gateway和Interface类型终端节点服务的终端节点。
|
51
|
+
:type service_type: str
|
52
|
+
:param created_at: 终端节点服务的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
53
|
+
:type created_at: datetime
|
54
|
+
:param is_charge: 连接该终端节点服务的终端节点是否计费。 - true:计费 - false:不计费
|
55
|
+
:type is_charge: bool
|
56
|
+
:param enable_policy: 是否允许自定义终端节点策略。 - false:不支持设置终端节点策略 - true:支持设置终端节点策略 默认为false
|
57
|
+
:type enable_policy: bool
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._id = None
|
63
|
+
self._owner = None
|
64
|
+
self._service_name = None
|
65
|
+
self._service_type = None
|
66
|
+
self._created_at = None
|
67
|
+
self._is_charge = None
|
68
|
+
self._enable_policy = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
if id is not None:
|
72
|
+
self.id = id
|
73
|
+
if owner is not None:
|
74
|
+
self.owner = owner
|
75
|
+
if service_name is not None:
|
76
|
+
self.service_name = service_name
|
77
|
+
if service_type is not None:
|
78
|
+
self.service_type = service_type
|
79
|
+
if created_at is not None:
|
80
|
+
self.created_at = created_at
|
81
|
+
if is_charge is not None:
|
82
|
+
self.is_charge = is_charge
|
83
|
+
if enable_policy is not None:
|
84
|
+
self.enable_policy = enable_policy
|
85
|
+
|
86
|
+
@property
|
87
|
+
def id(self):
|
88
|
+
r"""Gets the id of this EndpointService.
|
89
|
+
|
90
|
+
公共终端节点服务的ID,唯一标识。
|
91
|
+
|
92
|
+
:return: The id of this EndpointService.
|
93
|
+
:rtype: str
|
94
|
+
"""
|
95
|
+
return self._id
|
96
|
+
|
97
|
+
@id.setter
|
98
|
+
def id(self, id):
|
99
|
+
r"""Sets the id of this EndpointService.
|
100
|
+
|
101
|
+
公共终端节点服务的ID,唯一标识。
|
102
|
+
|
103
|
+
:param id: The id of this EndpointService.
|
104
|
+
:type id: str
|
105
|
+
"""
|
106
|
+
self._id = id
|
107
|
+
|
108
|
+
@property
|
109
|
+
def owner(self):
|
110
|
+
r"""Gets the owner of this EndpointService.
|
111
|
+
|
112
|
+
终端节点服务的所有者。
|
113
|
+
|
114
|
+
:return: The owner of this EndpointService.
|
115
|
+
:rtype: str
|
116
|
+
"""
|
117
|
+
return self._owner
|
118
|
+
|
119
|
+
@owner.setter
|
120
|
+
def owner(self, owner):
|
121
|
+
r"""Sets the owner of this EndpointService.
|
122
|
+
|
123
|
+
终端节点服务的所有者。
|
124
|
+
|
125
|
+
:param owner: The owner of this EndpointService.
|
126
|
+
:type owner: str
|
127
|
+
"""
|
128
|
+
self._owner = owner
|
129
|
+
|
130
|
+
@property
|
131
|
+
def service_name(self):
|
132
|
+
r"""Gets the service_name of this EndpointService.
|
133
|
+
|
134
|
+
公共终端节点服务的名称。
|
135
|
+
|
136
|
+
:return: The service_name of this EndpointService.
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._service_name
|
140
|
+
|
141
|
+
@service_name.setter
|
142
|
+
def service_name(self, service_name):
|
143
|
+
r"""Sets the service_name of this EndpointService.
|
144
|
+
|
145
|
+
公共终端节点服务的名称。
|
146
|
+
|
147
|
+
:param service_name: The service_name of this EndpointService.
|
148
|
+
:type service_name: str
|
149
|
+
"""
|
150
|
+
self._service_name = service_name
|
151
|
+
|
152
|
+
@property
|
153
|
+
def service_type(self):
|
154
|
+
r"""Gets the service_type of this EndpointService.
|
155
|
+
|
156
|
+
终端节点服务类型。 - gateway:由运维人员配置。用户无需创建,可直接使用。 - interface:包括运维人员配置的云服务和用户自己创建的私有服务。 其中,运维人员配置的云服务无需创建, 用户可直接使用。 您可以通过创建终端节点创建访问Gateway和Interface类型终端节点服务的终端节点。
|
157
|
+
|
158
|
+
:return: The service_type of this EndpointService.
|
159
|
+
:rtype: str
|
160
|
+
"""
|
161
|
+
return self._service_type
|
162
|
+
|
163
|
+
@service_type.setter
|
164
|
+
def service_type(self, service_type):
|
165
|
+
r"""Sets the service_type of this EndpointService.
|
166
|
+
|
167
|
+
终端节点服务类型。 - gateway:由运维人员配置。用户无需创建,可直接使用。 - interface:包括运维人员配置的云服务和用户自己创建的私有服务。 其中,运维人员配置的云服务无需创建, 用户可直接使用。 您可以通过创建终端节点创建访问Gateway和Interface类型终端节点服务的终端节点。
|
168
|
+
|
169
|
+
:param service_type: The service_type of this EndpointService.
|
170
|
+
:type service_type: str
|
171
|
+
"""
|
172
|
+
self._service_type = service_type
|
173
|
+
|
174
|
+
@property
|
175
|
+
def created_at(self):
|
176
|
+
r"""Gets the created_at of this EndpointService.
|
177
|
+
|
178
|
+
终端节点服务的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
179
|
+
|
180
|
+
:return: The created_at of this EndpointService.
|
181
|
+
:rtype: datetime
|
182
|
+
"""
|
183
|
+
return self._created_at
|
184
|
+
|
185
|
+
@created_at.setter
|
186
|
+
def created_at(self, created_at):
|
187
|
+
r"""Sets the created_at of this EndpointService.
|
188
|
+
|
189
|
+
终端节点服务的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
190
|
+
|
191
|
+
:param created_at: The created_at of this EndpointService.
|
192
|
+
:type created_at: datetime
|
193
|
+
"""
|
194
|
+
self._created_at = created_at
|
195
|
+
|
196
|
+
@property
|
197
|
+
def is_charge(self):
|
198
|
+
r"""Gets the is_charge of this EndpointService.
|
199
|
+
|
200
|
+
连接该终端节点服务的终端节点是否计费。 - true:计费 - false:不计费
|
201
|
+
|
202
|
+
:return: The is_charge of this EndpointService.
|
203
|
+
:rtype: bool
|
204
|
+
"""
|
205
|
+
return self._is_charge
|
206
|
+
|
207
|
+
@is_charge.setter
|
208
|
+
def is_charge(self, is_charge):
|
209
|
+
r"""Sets the is_charge of this EndpointService.
|
210
|
+
|
211
|
+
连接该终端节点服务的终端节点是否计费。 - true:计费 - false:不计费
|
212
|
+
|
213
|
+
:param is_charge: The is_charge of this EndpointService.
|
214
|
+
:type is_charge: bool
|
215
|
+
"""
|
216
|
+
self._is_charge = is_charge
|
217
|
+
|
218
|
+
@property
|
219
|
+
def enable_policy(self):
|
220
|
+
r"""Gets the enable_policy of this EndpointService.
|
221
|
+
|
222
|
+
是否允许自定义终端节点策略。 - false:不支持设置终端节点策略 - true:支持设置终端节点策略 默认为false
|
223
|
+
|
224
|
+
:return: The enable_policy of this EndpointService.
|
225
|
+
:rtype: bool
|
226
|
+
"""
|
227
|
+
return self._enable_policy
|
228
|
+
|
229
|
+
@enable_policy.setter
|
230
|
+
def enable_policy(self, enable_policy):
|
231
|
+
r"""Sets the enable_policy of this EndpointService.
|
232
|
+
|
233
|
+
是否允许自定义终端节点策略。 - false:不支持设置终端节点策略 - true:支持设置终端节点策略 默认为false
|
234
|
+
|
235
|
+
:param enable_policy: The enable_policy of this EndpointService.
|
236
|
+
:type enable_policy: bool
|
237
|
+
"""
|
238
|
+
self._enable_policy = enable_policy
|
239
|
+
|
240
|
+
def to_dict(self):
|
241
|
+
"""Returns the model properties as a dict"""
|
242
|
+
result = {}
|
243
|
+
|
244
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
245
|
+
value = getattr(self, attr)
|
246
|
+
if isinstance(value, list):
|
247
|
+
result[attr] = list(map(
|
248
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
249
|
+
value
|
250
|
+
))
|
251
|
+
elif hasattr(value, "to_dict"):
|
252
|
+
result[attr] = value.to_dict()
|
253
|
+
elif isinstance(value, dict):
|
254
|
+
result[attr] = dict(map(
|
255
|
+
lambda item: (item[0], item[1].to_dict())
|
256
|
+
if hasattr(item[1], "to_dict") else item,
|
257
|
+
value.items()
|
258
|
+
))
|
259
|
+
else:
|
260
|
+
if attr in self.sensitive_list:
|
261
|
+
result[attr] = "****"
|
262
|
+
else:
|
263
|
+
result[attr] = value
|
264
|
+
|
265
|
+
return result
|
266
|
+
|
267
|
+
def to_str(self):
|
268
|
+
"""Returns the string representation of the model"""
|
269
|
+
import simplejson as json
|
270
|
+
if six.PY2:
|
271
|
+
import sys
|
272
|
+
reload(sys)
|
273
|
+
sys.setdefaultencoding("utf-8")
|
274
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
275
|
+
|
276
|
+
def __repr__(self):
|
277
|
+
"""For `print`"""
|
278
|
+
return self.to_str()
|
279
|
+
|
280
|
+
def __eq__(self, other):
|
281
|
+
"""Returns true if both objects are equal"""
|
282
|
+
if not isinstance(other, EndpointService):
|
283
|
+
return False
|
284
|
+
|
285
|
+
return self.__dict__ == other.__dict__
|
286
|
+
|
287
|
+
def __ne__(self, other):
|
288
|
+
"""Returns true if both objects are not equal"""
|
289
|
+
return not self == other
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class EpsAddPermissionRequest:
|
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
|
+
'permission': 'str',
|
21
|
+
'description': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'permission': 'permission',
|
26
|
+
'description': 'description'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, permission=None, description=None):
|
30
|
+
r"""EpsAddPermissionRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param permission: 权限格式为:iam:domain::domain_id或者organizations:orgPath::org_path其中, - “iam:domain::”和“organizations:orgPath::”为固定格式。 - “domain_id”为可连接用户的账号ID,org_path可连接用户的组织路径 domain_id类型支持输入包括“a~z”、“A~Z”、“0~9”或者“*,最大长度可以传64; org_path类型支持“a~z”、“A~Z”、“0~9”、“/-*?”或者“*”,最大长度可以传1024; 例如:iam:domain::6e9dfd51d1124e8d8498dce894923a0dd或者organizations:orgPath::o-3j59d1231uprgk9yuvlidra7zbzfi578/r-rldbu1vmxdw5ahdkknxnvd5rgag77m2z/ou-7tuddd8nh99rebxltawsm6qct5z7rklv/*
|
35
|
+
:type permission: str
|
36
|
+
:param description: 终端节点服务白名单描述
|
37
|
+
:type description: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._permission = None
|
43
|
+
self._description = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.permission = permission
|
47
|
+
self.description = description
|
48
|
+
|
49
|
+
@property
|
50
|
+
def permission(self):
|
51
|
+
r"""Gets the permission of this EpsAddPermissionRequest.
|
52
|
+
|
53
|
+
权限格式为:iam:domain::domain_id或者organizations:orgPath::org_path其中, - “iam:domain::”和“organizations:orgPath::”为固定格式。 - “domain_id”为可连接用户的账号ID,org_path可连接用户的组织路径 domain_id类型支持输入包括“a~z”、“A~Z”、“0~9”或者“*,最大长度可以传64; org_path类型支持“a~z”、“A~Z”、“0~9”、“/-*?”或者“*”,最大长度可以传1024; 例如:iam:domain::6e9dfd51d1124e8d8498dce894923a0dd或者organizations:orgPath::o-3j59d1231uprgk9yuvlidra7zbzfi578/r-rldbu1vmxdw5ahdkknxnvd5rgag77m2z/ou-7tuddd8nh99rebxltawsm6qct5z7rklv/*
|
54
|
+
|
55
|
+
:return: The permission of this EpsAddPermissionRequest.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._permission
|
59
|
+
|
60
|
+
@permission.setter
|
61
|
+
def permission(self, permission):
|
62
|
+
r"""Sets the permission of this EpsAddPermissionRequest.
|
63
|
+
|
64
|
+
权限格式为:iam:domain::domain_id或者organizations:orgPath::org_path其中, - “iam:domain::”和“organizations:orgPath::”为固定格式。 - “domain_id”为可连接用户的账号ID,org_path可连接用户的组织路径 domain_id类型支持输入包括“a~z”、“A~Z”、“0~9”或者“*,最大长度可以传64; org_path类型支持“a~z”、“A~Z”、“0~9”、“/-*?”或者“*”,最大长度可以传1024; 例如:iam:domain::6e9dfd51d1124e8d8498dce894923a0dd或者organizations:orgPath::o-3j59d1231uprgk9yuvlidra7zbzfi578/r-rldbu1vmxdw5ahdkknxnvd5rgag77m2z/ou-7tuddd8nh99rebxltawsm6qct5z7rklv/*
|
65
|
+
|
66
|
+
:param permission: The permission of this EpsAddPermissionRequest.
|
67
|
+
:type permission: str
|
68
|
+
"""
|
69
|
+
self._permission = permission
|
70
|
+
|
71
|
+
@property
|
72
|
+
def description(self):
|
73
|
+
r"""Gets the description of this EpsAddPermissionRequest.
|
74
|
+
|
75
|
+
终端节点服务白名单描述
|
76
|
+
|
77
|
+
:return: The description of this EpsAddPermissionRequest.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._description
|
81
|
+
|
82
|
+
@description.setter
|
83
|
+
def description(self, description):
|
84
|
+
r"""Sets the description of this EpsAddPermissionRequest.
|
85
|
+
|
86
|
+
终端节点服务白名单描述
|
87
|
+
|
88
|
+
:param description: The description of this EpsAddPermissionRequest.
|
89
|
+
:type description: str
|
90
|
+
"""
|
91
|
+
self._description = description
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, EpsAddPermissionRequest):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|
@@ -0,0 +1,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class EpsPermission:
|
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
|
+
'permission': 'str',
|
22
|
+
'permission_type': 'str',
|
23
|
+
'description': 'str',
|
24
|
+
'created_at': 'datetime'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'id': 'id',
|
29
|
+
'permission': 'permission',
|
30
|
+
'permission_type': 'permission_type',
|
31
|
+
'description': 'description',
|
32
|
+
'created_at': 'created_at'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, id=None, permission=None, permission_type=None, description=None, created_at=None):
|
36
|
+
r"""EpsPermission
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param id: 白名单表主键ID
|
41
|
+
:type id: str
|
42
|
+
:param permission: 权限格式为:iam:domain::domain_id或者organizations:orgPath::org_path其中, - “iam:domain::”和“organizations:orgPath::”为固定格式。 - “domain_id”为可连接用户的账号ID,org_path可连接用户的组织路径 domain_id类型支持输入包括“a~z”、“A~Z”、“0~9”或者“*”,org_path类型支持“a~z”、“A~Z”、“0~9”、“/-*?”或者“*”。 “*”表示所有终端节点可连接。 例如:iam:domain::6e9dfd51d1124e8d8498dce894923a0dd或者organizations:orgPath::o-3j59d1231uprgk9yuvlidra7zbzfi578/r-rldbu1vmxdw5ahdkknxnvd5rgag77m2z/ou-7tuddd8nh99rebxltawsm6qct5z7rklv/*
|
43
|
+
:type permission: str
|
44
|
+
:param permission_type: 终端节点服务白名单类型。 - domainId:基于账户ID配置终端节点服务白名单。 - orgPath:基于账户所在组织路径配置终端节点服务白名单。
|
45
|
+
:type permission_type: str
|
46
|
+
:param description: 终端节点服务白名单描述
|
47
|
+
:type description: str
|
48
|
+
:param created_at: 白名单创建时间
|
49
|
+
:type created_at: datetime
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._id = None
|
55
|
+
self._permission = None
|
56
|
+
self._permission_type = None
|
57
|
+
self._description = None
|
58
|
+
self._created_at = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if id is not None:
|
62
|
+
self.id = id
|
63
|
+
if permission is not None:
|
64
|
+
self.permission = permission
|
65
|
+
if permission_type is not None:
|
66
|
+
self.permission_type = permission_type
|
67
|
+
if description is not None:
|
68
|
+
self.description = description
|
69
|
+
if created_at is not None:
|
70
|
+
self.created_at = created_at
|
71
|
+
|
72
|
+
@property
|
73
|
+
def id(self):
|
74
|
+
r"""Gets the id of this EpsPermission.
|
75
|
+
|
76
|
+
白名单表主键ID
|
77
|
+
|
78
|
+
:return: The id of this EpsPermission.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._id
|
82
|
+
|
83
|
+
@id.setter
|
84
|
+
def id(self, id):
|
85
|
+
r"""Sets the id of this EpsPermission.
|
86
|
+
|
87
|
+
白名单表主键ID
|
88
|
+
|
89
|
+
:param id: The id of this EpsPermission.
|
90
|
+
:type id: str
|
91
|
+
"""
|
92
|
+
self._id = id
|
93
|
+
|
94
|
+
@property
|
95
|
+
def permission(self):
|
96
|
+
r"""Gets the permission of this EpsPermission.
|
97
|
+
|
98
|
+
权限格式为:iam:domain::domain_id或者organizations:orgPath::org_path其中, - “iam:domain::”和“organizations:orgPath::”为固定格式。 - “domain_id”为可连接用户的账号ID,org_path可连接用户的组织路径 domain_id类型支持输入包括“a~z”、“A~Z”、“0~9”或者“*”,org_path类型支持“a~z”、“A~Z”、“0~9”、“/-*?”或者“*”。 “*”表示所有终端节点可连接。 例如:iam:domain::6e9dfd51d1124e8d8498dce894923a0dd或者organizations:orgPath::o-3j59d1231uprgk9yuvlidra7zbzfi578/r-rldbu1vmxdw5ahdkknxnvd5rgag77m2z/ou-7tuddd8nh99rebxltawsm6qct5z7rklv/*
|
99
|
+
|
100
|
+
:return: The permission of this EpsPermission.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._permission
|
104
|
+
|
105
|
+
@permission.setter
|
106
|
+
def permission(self, permission):
|
107
|
+
r"""Sets the permission of this EpsPermission.
|
108
|
+
|
109
|
+
权限格式为:iam:domain::domain_id或者organizations:orgPath::org_path其中, - “iam:domain::”和“organizations:orgPath::”为固定格式。 - “domain_id”为可连接用户的账号ID,org_path可连接用户的组织路径 domain_id类型支持输入包括“a~z”、“A~Z”、“0~9”或者“*”,org_path类型支持“a~z”、“A~Z”、“0~9”、“/-*?”或者“*”。 “*”表示所有终端节点可连接。 例如:iam:domain::6e9dfd51d1124e8d8498dce894923a0dd或者organizations:orgPath::o-3j59d1231uprgk9yuvlidra7zbzfi578/r-rldbu1vmxdw5ahdkknxnvd5rgag77m2z/ou-7tuddd8nh99rebxltawsm6qct5z7rklv/*
|
110
|
+
|
111
|
+
:param permission: The permission of this EpsPermission.
|
112
|
+
:type permission: str
|
113
|
+
"""
|
114
|
+
self._permission = permission
|
115
|
+
|
116
|
+
@property
|
117
|
+
def permission_type(self):
|
118
|
+
r"""Gets the permission_type of this EpsPermission.
|
119
|
+
|
120
|
+
终端节点服务白名单类型。 - domainId:基于账户ID配置终端节点服务白名单。 - orgPath:基于账户所在组织路径配置终端节点服务白名单。
|
121
|
+
|
122
|
+
:return: The permission_type of this EpsPermission.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._permission_type
|
126
|
+
|
127
|
+
@permission_type.setter
|
128
|
+
def permission_type(self, permission_type):
|
129
|
+
r"""Sets the permission_type of this EpsPermission.
|
130
|
+
|
131
|
+
终端节点服务白名单类型。 - domainId:基于账户ID配置终端节点服务白名单。 - orgPath:基于账户所在组织路径配置终端节点服务白名单。
|
132
|
+
|
133
|
+
:param permission_type: The permission_type of this EpsPermission.
|
134
|
+
:type permission_type: str
|
135
|
+
"""
|
136
|
+
self._permission_type = permission_type
|
137
|
+
|
138
|
+
@property
|
139
|
+
def description(self):
|
140
|
+
r"""Gets the description of this EpsPermission.
|
141
|
+
|
142
|
+
终端节点服务白名单描述
|
143
|
+
|
144
|
+
:return: The description of this EpsPermission.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._description
|
148
|
+
|
149
|
+
@description.setter
|
150
|
+
def description(self, description):
|
151
|
+
r"""Sets the description of this EpsPermission.
|
152
|
+
|
153
|
+
终端节点服务白名单描述
|
154
|
+
|
155
|
+
:param description: The description of this EpsPermission.
|
156
|
+
:type description: str
|
157
|
+
"""
|
158
|
+
self._description = description
|
159
|
+
|
160
|
+
@property
|
161
|
+
def created_at(self):
|
162
|
+
r"""Gets the created_at of this EpsPermission.
|
163
|
+
|
164
|
+
白名单创建时间
|
165
|
+
|
166
|
+
:return: The created_at of this EpsPermission.
|
167
|
+
:rtype: datetime
|
168
|
+
"""
|
169
|
+
return self._created_at
|
170
|
+
|
171
|
+
@created_at.setter
|
172
|
+
def created_at(self, created_at):
|
173
|
+
r"""Sets the created_at of this EpsPermission.
|
174
|
+
|
175
|
+
白名单创建时间
|
176
|
+
|
177
|
+
:param created_at: The created_at of this EpsPermission.
|
178
|
+
:type created_at: datetime
|
179
|
+
"""
|
180
|
+
self._created_at = created_at
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, EpsPermission):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
return not self == other
|