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,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BatchRemoveEndpointServicePermissionsRequest:
|
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
|
+
'body': 'BatchRemoveEndpointServicePermissionsRequestBody'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'vpc_endpoint_service_id': 'vpc_endpoint_service_id',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, vpc_endpoint_service_id=None, body=None):
|
30
|
+
r"""BatchRemoveEndpointServicePermissionsRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param vpc_endpoint_service_id: 终端节点服务的ID。
|
35
|
+
:type vpc_endpoint_service_id: str
|
36
|
+
:param body: Body of the BatchRemoveEndpointServicePermissionsRequest
|
37
|
+
:type body: :class:`huaweicloudsdkvpcep.v1.BatchRemoveEndpointServicePermissionsRequestBody`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._vpc_endpoint_service_id = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.vpc_endpoint_service_id = vpc_endpoint_service_id
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def vpc_endpoint_service_id(self):
|
52
|
+
r"""Gets the vpc_endpoint_service_id of this BatchRemoveEndpointServicePermissionsRequest.
|
53
|
+
|
54
|
+
终端节点服务的ID。
|
55
|
+
|
56
|
+
:return: The vpc_endpoint_service_id of this BatchRemoveEndpointServicePermissionsRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._vpc_endpoint_service_id
|
60
|
+
|
61
|
+
@vpc_endpoint_service_id.setter
|
62
|
+
def vpc_endpoint_service_id(self, vpc_endpoint_service_id):
|
63
|
+
r"""Sets the vpc_endpoint_service_id of this BatchRemoveEndpointServicePermissionsRequest.
|
64
|
+
|
65
|
+
终端节点服务的ID。
|
66
|
+
|
67
|
+
:param vpc_endpoint_service_id: The vpc_endpoint_service_id of this BatchRemoveEndpointServicePermissionsRequest.
|
68
|
+
:type vpc_endpoint_service_id: str
|
69
|
+
"""
|
70
|
+
self._vpc_endpoint_service_id = vpc_endpoint_service_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
r"""Gets the body of this BatchRemoveEndpointServicePermissionsRequest.
|
75
|
+
|
76
|
+
:return: The body of this BatchRemoveEndpointServicePermissionsRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.BatchRemoveEndpointServicePermissionsRequestBody`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
r"""Sets the body of this BatchRemoveEndpointServicePermissionsRequest.
|
84
|
+
|
85
|
+
:param body: The body of this BatchRemoveEndpointServicePermissionsRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkvpcep.v1.BatchRemoveEndpointServicePermissionsRequestBody`
|
87
|
+
"""
|
88
|
+
self._body = body
|
89
|
+
|
90
|
+
def to_dict(self):
|
91
|
+
"""Returns the model properties as a dict"""
|
92
|
+
result = {}
|
93
|
+
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
95
|
+
value = getattr(self, attr)
|
96
|
+
if isinstance(value, list):
|
97
|
+
result[attr] = list(map(
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
99
|
+
value
|
100
|
+
))
|
101
|
+
elif hasattr(value, "to_dict"):
|
102
|
+
result[attr] = value.to_dict()
|
103
|
+
elif isinstance(value, dict):
|
104
|
+
result[attr] = dict(map(
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
107
|
+
value.items()
|
108
|
+
))
|
109
|
+
else:
|
110
|
+
if attr in self.sensitive_list:
|
111
|
+
result[attr] = "****"
|
112
|
+
else:
|
113
|
+
result[attr] = value
|
114
|
+
|
115
|
+
return result
|
116
|
+
|
117
|
+
def to_str(self):
|
118
|
+
"""Returns the string representation of the model"""
|
119
|
+
import simplejson as json
|
120
|
+
if six.PY2:
|
121
|
+
import sys
|
122
|
+
reload(sys)
|
123
|
+
sys.setdefaultencoding("utf-8")
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
"""For `print`"""
|
128
|
+
return self.to_str()
|
129
|
+
|
130
|
+
def __eq__(self, other):
|
131
|
+
"""Returns true if both objects are equal"""
|
132
|
+
if not isinstance(other, BatchRemoveEndpointServicePermissionsRequest):
|
133
|
+
return False
|
134
|
+
|
135
|
+
return self.__dict__ == other.__dict__
|
136
|
+
|
137
|
+
def __ne__(self, other):
|
138
|
+
"""Returns true if both objects are not equal"""
|
139
|
+
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 BatchRemoveEndpointServicePermissionsRequestBody:
|
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
|
+
'permissions': 'list[EpsRemovePermissionRequest]'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'permissions': 'permissions'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, permissions=None):
|
28
|
+
r"""BatchRemoveEndpointServicePermissionsRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param permissions: 终端节点服务白名单
|
33
|
+
:type permissions: list[:class:`huaweicloudsdkvpcep.v1.EpsRemovePermissionRequest`]
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._permissions = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.permissions = permissions
|
42
|
+
|
43
|
+
@property
|
44
|
+
def permissions(self):
|
45
|
+
r"""Gets the permissions of this BatchRemoveEndpointServicePermissionsRequestBody.
|
46
|
+
|
47
|
+
终端节点服务白名单
|
48
|
+
|
49
|
+
:return: The permissions of this BatchRemoveEndpointServicePermissionsRequestBody.
|
50
|
+
:rtype: list[:class:`huaweicloudsdkvpcep.v1.EpsRemovePermissionRequest`]
|
51
|
+
"""
|
52
|
+
return self._permissions
|
53
|
+
|
54
|
+
@permissions.setter
|
55
|
+
def permissions(self, permissions):
|
56
|
+
r"""Sets the permissions of this BatchRemoveEndpointServicePermissionsRequestBody.
|
57
|
+
|
58
|
+
终端节点服务白名单
|
59
|
+
|
60
|
+
:param permissions: The permissions of this BatchRemoveEndpointServicePermissionsRequestBody.
|
61
|
+
:type permissions: list[:class:`huaweicloudsdkvpcep.v1.EpsRemovePermissionRequest`]
|
62
|
+
"""
|
63
|
+
self._permissions = permissions
|
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, BatchRemoveEndpointServicePermissionsRequestBody):
|
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,116 @@
|
|
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 BatchRemoveEndpointServicePermissionsResponse(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
|
+
'permissions': 'list[EpsPermission]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'permissions': 'permissions'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, permissions=None):
|
29
|
+
r"""BatchRemoveEndpointServicePermissionsResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param permissions: 终端节点服务白名单
|
34
|
+
:type permissions: list[:class:`huaweicloudsdkvpcep.v1.EpsPermission`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(BatchRemoveEndpointServicePermissionsResponse, self).__init__()
|
38
|
+
|
39
|
+
self._permissions = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if permissions is not None:
|
43
|
+
self.permissions = permissions
|
44
|
+
|
45
|
+
@property
|
46
|
+
def permissions(self):
|
47
|
+
r"""Gets the permissions of this BatchRemoveEndpointServicePermissionsResponse.
|
48
|
+
|
49
|
+
终端节点服务白名单
|
50
|
+
|
51
|
+
:return: The permissions of this BatchRemoveEndpointServicePermissionsResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkvpcep.v1.EpsPermission`]
|
53
|
+
"""
|
54
|
+
return self._permissions
|
55
|
+
|
56
|
+
@permissions.setter
|
57
|
+
def permissions(self, permissions):
|
58
|
+
r"""Sets the permissions of this BatchRemoveEndpointServicePermissionsResponse.
|
59
|
+
|
60
|
+
终端节点服务白名单
|
61
|
+
|
62
|
+
:param permissions: The permissions of this BatchRemoveEndpointServicePermissionsResponse.
|
63
|
+
:type permissions: list[:class:`huaweicloudsdkvpcep.v1.EpsPermission`]
|
64
|
+
"""
|
65
|
+
self._permissions = permissions
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, BatchRemoveEndpointServicePermissionsResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -0,0 +1,318 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ConnectionEndpoints:
|
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
|
+
'marker_id': 'int',
|
22
|
+
'created_at': 'datetime',
|
23
|
+
'updated_at': 'datetime',
|
24
|
+
'domain_id': 'str',
|
25
|
+
'error': 'list[QueryError]',
|
26
|
+
'status': 'str',
|
27
|
+
'description': 'str'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'id': 'id',
|
32
|
+
'marker_id': 'marker_id',
|
33
|
+
'created_at': 'created_at',
|
34
|
+
'updated_at': 'updated_at',
|
35
|
+
'domain_id': 'domain_id',
|
36
|
+
'error': 'error',
|
37
|
+
'status': 'status',
|
38
|
+
'description': 'description'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, id=None, marker_id=None, created_at=None, updated_at=None, domain_id=None, error=None, status=None, description=None):
|
42
|
+
r"""ConnectionEndpoints
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param id: 终端节点的ID,唯一标识。
|
47
|
+
:type id: str
|
48
|
+
:param marker_id: 终端节点的报文标识。
|
49
|
+
:type marker_id: int
|
50
|
+
:param created_at: 终端节点的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
51
|
+
:type created_at: datetime
|
52
|
+
:param updated_at: 终端节点的更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
53
|
+
:type updated_at: datetime
|
54
|
+
:param domain_id: 用户的Domain ID。
|
55
|
+
:type domain_id: str
|
56
|
+
:param error: 错误信息。 当终端节点服务状态异常,即“status”的值为“failed”时,会返回该字段。
|
57
|
+
:type error: list[:class:`huaweicloudsdkvpcep.v1.QueryError`]
|
58
|
+
:param status: 终端节点的连接状态。 - pendingAcceptance:待接受 - creating:创建中 - accepted:已接受 - rejected:已拒绝 - failed:失败 - deleting:删除中
|
59
|
+
:type status: str
|
60
|
+
:param description: 终端节点连接描述。
|
61
|
+
:type description: str
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._id = None
|
67
|
+
self._marker_id = None
|
68
|
+
self._created_at = None
|
69
|
+
self._updated_at = None
|
70
|
+
self._domain_id = None
|
71
|
+
self._error = None
|
72
|
+
self._status = None
|
73
|
+
self._description = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
if id is not None:
|
77
|
+
self.id = id
|
78
|
+
if marker_id is not None:
|
79
|
+
self.marker_id = marker_id
|
80
|
+
if created_at is not None:
|
81
|
+
self.created_at = created_at
|
82
|
+
if updated_at is not None:
|
83
|
+
self.updated_at = updated_at
|
84
|
+
if domain_id is not None:
|
85
|
+
self.domain_id = domain_id
|
86
|
+
if error is not None:
|
87
|
+
self.error = error
|
88
|
+
if status is not None:
|
89
|
+
self.status = status
|
90
|
+
if description is not None:
|
91
|
+
self.description = description
|
92
|
+
|
93
|
+
@property
|
94
|
+
def id(self):
|
95
|
+
r"""Gets the id of this ConnectionEndpoints.
|
96
|
+
|
97
|
+
终端节点的ID,唯一标识。
|
98
|
+
|
99
|
+
:return: The id of this ConnectionEndpoints.
|
100
|
+
:rtype: str
|
101
|
+
"""
|
102
|
+
return self._id
|
103
|
+
|
104
|
+
@id.setter
|
105
|
+
def id(self, id):
|
106
|
+
r"""Sets the id of this ConnectionEndpoints.
|
107
|
+
|
108
|
+
终端节点的ID,唯一标识。
|
109
|
+
|
110
|
+
:param id: The id of this ConnectionEndpoints.
|
111
|
+
:type id: str
|
112
|
+
"""
|
113
|
+
self._id = id
|
114
|
+
|
115
|
+
@property
|
116
|
+
def marker_id(self):
|
117
|
+
r"""Gets the marker_id of this ConnectionEndpoints.
|
118
|
+
|
119
|
+
终端节点的报文标识。
|
120
|
+
|
121
|
+
:return: The marker_id of this ConnectionEndpoints.
|
122
|
+
:rtype: int
|
123
|
+
"""
|
124
|
+
return self._marker_id
|
125
|
+
|
126
|
+
@marker_id.setter
|
127
|
+
def marker_id(self, marker_id):
|
128
|
+
r"""Sets the marker_id of this ConnectionEndpoints.
|
129
|
+
|
130
|
+
终端节点的报文标识。
|
131
|
+
|
132
|
+
:param marker_id: The marker_id of this ConnectionEndpoints.
|
133
|
+
:type marker_id: int
|
134
|
+
"""
|
135
|
+
self._marker_id = marker_id
|
136
|
+
|
137
|
+
@property
|
138
|
+
def created_at(self):
|
139
|
+
r"""Gets the created_at of this ConnectionEndpoints.
|
140
|
+
|
141
|
+
终端节点的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
142
|
+
|
143
|
+
:return: The created_at of this ConnectionEndpoints.
|
144
|
+
:rtype: datetime
|
145
|
+
"""
|
146
|
+
return self._created_at
|
147
|
+
|
148
|
+
@created_at.setter
|
149
|
+
def created_at(self, created_at):
|
150
|
+
r"""Sets the created_at of this ConnectionEndpoints.
|
151
|
+
|
152
|
+
终端节点的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
153
|
+
|
154
|
+
:param created_at: The created_at of this ConnectionEndpoints.
|
155
|
+
:type created_at: datetime
|
156
|
+
"""
|
157
|
+
self._created_at = created_at
|
158
|
+
|
159
|
+
@property
|
160
|
+
def updated_at(self):
|
161
|
+
r"""Gets the updated_at of this ConnectionEndpoints.
|
162
|
+
|
163
|
+
终端节点的更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
164
|
+
|
165
|
+
:return: The updated_at of this ConnectionEndpoints.
|
166
|
+
:rtype: datetime
|
167
|
+
"""
|
168
|
+
return self._updated_at
|
169
|
+
|
170
|
+
@updated_at.setter
|
171
|
+
def updated_at(self, updated_at):
|
172
|
+
r"""Sets the updated_at of this ConnectionEndpoints.
|
173
|
+
|
174
|
+
终端节点的更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
175
|
+
|
176
|
+
:param updated_at: The updated_at of this ConnectionEndpoints.
|
177
|
+
:type updated_at: datetime
|
178
|
+
"""
|
179
|
+
self._updated_at = updated_at
|
180
|
+
|
181
|
+
@property
|
182
|
+
def domain_id(self):
|
183
|
+
r"""Gets the domain_id of this ConnectionEndpoints.
|
184
|
+
|
185
|
+
用户的Domain ID。
|
186
|
+
|
187
|
+
:return: The domain_id of this ConnectionEndpoints.
|
188
|
+
:rtype: str
|
189
|
+
"""
|
190
|
+
return self._domain_id
|
191
|
+
|
192
|
+
@domain_id.setter
|
193
|
+
def domain_id(self, domain_id):
|
194
|
+
r"""Sets the domain_id of this ConnectionEndpoints.
|
195
|
+
|
196
|
+
用户的Domain ID。
|
197
|
+
|
198
|
+
:param domain_id: The domain_id of this ConnectionEndpoints.
|
199
|
+
:type domain_id: str
|
200
|
+
"""
|
201
|
+
self._domain_id = domain_id
|
202
|
+
|
203
|
+
@property
|
204
|
+
def error(self):
|
205
|
+
r"""Gets the error of this ConnectionEndpoints.
|
206
|
+
|
207
|
+
错误信息。 当终端节点服务状态异常,即“status”的值为“failed”时,会返回该字段。
|
208
|
+
|
209
|
+
:return: The error of this ConnectionEndpoints.
|
210
|
+
:rtype: list[:class:`huaweicloudsdkvpcep.v1.QueryError`]
|
211
|
+
"""
|
212
|
+
return self._error
|
213
|
+
|
214
|
+
@error.setter
|
215
|
+
def error(self, error):
|
216
|
+
r"""Sets the error of this ConnectionEndpoints.
|
217
|
+
|
218
|
+
错误信息。 当终端节点服务状态异常,即“status”的值为“failed”时,会返回该字段。
|
219
|
+
|
220
|
+
:param error: The error of this ConnectionEndpoints.
|
221
|
+
:type error: list[:class:`huaweicloudsdkvpcep.v1.QueryError`]
|
222
|
+
"""
|
223
|
+
self._error = error
|
224
|
+
|
225
|
+
@property
|
226
|
+
def status(self):
|
227
|
+
r"""Gets the status of this ConnectionEndpoints.
|
228
|
+
|
229
|
+
终端节点的连接状态。 - pendingAcceptance:待接受 - creating:创建中 - accepted:已接受 - rejected:已拒绝 - failed:失败 - deleting:删除中
|
230
|
+
|
231
|
+
:return: The status of this ConnectionEndpoints.
|
232
|
+
:rtype: str
|
233
|
+
"""
|
234
|
+
return self._status
|
235
|
+
|
236
|
+
@status.setter
|
237
|
+
def status(self, status):
|
238
|
+
r"""Sets the status of this ConnectionEndpoints.
|
239
|
+
|
240
|
+
终端节点的连接状态。 - pendingAcceptance:待接受 - creating:创建中 - accepted:已接受 - rejected:已拒绝 - failed:失败 - deleting:删除中
|
241
|
+
|
242
|
+
:param status: The status of this ConnectionEndpoints.
|
243
|
+
:type status: str
|
244
|
+
"""
|
245
|
+
self._status = status
|
246
|
+
|
247
|
+
@property
|
248
|
+
def description(self):
|
249
|
+
r"""Gets the description of this ConnectionEndpoints.
|
250
|
+
|
251
|
+
终端节点连接描述。
|
252
|
+
|
253
|
+
:return: The description of this ConnectionEndpoints.
|
254
|
+
:rtype: str
|
255
|
+
"""
|
256
|
+
return self._description
|
257
|
+
|
258
|
+
@description.setter
|
259
|
+
def description(self, description):
|
260
|
+
r"""Sets the description of this ConnectionEndpoints.
|
261
|
+
|
262
|
+
终端节点连接描述。
|
263
|
+
|
264
|
+
:param description: The description of this ConnectionEndpoints.
|
265
|
+
:type description: str
|
266
|
+
"""
|
267
|
+
self._description = description
|
268
|
+
|
269
|
+
def to_dict(self):
|
270
|
+
"""Returns the model properties as a dict"""
|
271
|
+
result = {}
|
272
|
+
|
273
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
274
|
+
value = getattr(self, attr)
|
275
|
+
if isinstance(value, list):
|
276
|
+
result[attr] = list(map(
|
277
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
278
|
+
value
|
279
|
+
))
|
280
|
+
elif hasattr(value, "to_dict"):
|
281
|
+
result[attr] = value.to_dict()
|
282
|
+
elif isinstance(value, dict):
|
283
|
+
result[attr] = dict(map(
|
284
|
+
lambda item: (item[0], item[1].to_dict())
|
285
|
+
if hasattr(item[1], "to_dict") else item,
|
286
|
+
value.items()
|
287
|
+
))
|
288
|
+
else:
|
289
|
+
if attr in self.sensitive_list:
|
290
|
+
result[attr] = "****"
|
291
|
+
else:
|
292
|
+
result[attr] = value
|
293
|
+
|
294
|
+
return result
|
295
|
+
|
296
|
+
def to_str(self):
|
297
|
+
"""Returns the string representation of the model"""
|
298
|
+
import simplejson as json
|
299
|
+
if six.PY2:
|
300
|
+
import sys
|
301
|
+
reload(sys)
|
302
|
+
sys.setdefaultencoding("utf-8")
|
303
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
304
|
+
|
305
|
+
def __repr__(self):
|
306
|
+
"""For `print`"""
|
307
|
+
return self.to_str()
|
308
|
+
|
309
|
+
def __eq__(self, other):
|
310
|
+
"""Returns true if both objects are equal"""
|
311
|
+
if not isinstance(other, ConnectionEndpoints):
|
312
|
+
return False
|
313
|
+
|
314
|
+
return self.__dict__ == other.__dict__
|
315
|
+
|
316
|
+
def __ne__(self, other):
|
317
|
+
"""Returns true if both objects are not equal"""
|
318
|
+
return not self == other
|