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 UpdateEndpointRoutetableRequest:
|
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
|
+
'body': 'UpdateEndpointRoutetableRequestBody'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'vpc_endpoint_id': 'vpc_endpoint_id',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, vpc_endpoint_id=None, body=None):
|
30
|
+
r"""UpdateEndpointRoutetableRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param vpc_endpoint_id: 终端节点的ID。
|
35
|
+
:type vpc_endpoint_id: str
|
36
|
+
:param body: Body of the UpdateEndpointRoutetableRequest
|
37
|
+
:type body: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointRoutetableRequestBody`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._vpc_endpoint_id = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.vpc_endpoint_id = vpc_endpoint_id
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def vpc_endpoint_id(self):
|
52
|
+
r"""Gets the vpc_endpoint_id of this UpdateEndpointRoutetableRequest.
|
53
|
+
|
54
|
+
终端节点的ID。
|
55
|
+
|
56
|
+
:return: The vpc_endpoint_id of this UpdateEndpointRoutetableRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._vpc_endpoint_id
|
60
|
+
|
61
|
+
@vpc_endpoint_id.setter
|
62
|
+
def vpc_endpoint_id(self, vpc_endpoint_id):
|
63
|
+
r"""Sets the vpc_endpoint_id of this UpdateEndpointRoutetableRequest.
|
64
|
+
|
65
|
+
终端节点的ID。
|
66
|
+
|
67
|
+
:param vpc_endpoint_id: The vpc_endpoint_id of this UpdateEndpointRoutetableRequest.
|
68
|
+
:type vpc_endpoint_id: str
|
69
|
+
"""
|
70
|
+
self._vpc_endpoint_id = vpc_endpoint_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
r"""Gets the body of this UpdateEndpointRoutetableRequest.
|
75
|
+
|
76
|
+
:return: The body of this UpdateEndpointRoutetableRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointRoutetableRequestBody`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
r"""Sets the body of this UpdateEndpointRoutetableRequest.
|
84
|
+
|
85
|
+
:param body: The body of this UpdateEndpointRoutetableRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointRoutetableRequestBody`
|
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, UpdateEndpointRoutetableRequest):
|
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 UpdateEndpointRoutetableRequestBody:
|
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
|
+
'routetables': 'list[str]'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'routetables': 'routetables'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, routetables=None):
|
28
|
+
r"""UpdateEndpointRoutetableRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param routetables: 路由表ID列表。
|
33
|
+
:type routetables: list[str]
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._routetables = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.routetables = routetables
|
42
|
+
|
43
|
+
@property
|
44
|
+
def routetables(self):
|
45
|
+
r"""Gets the routetables of this UpdateEndpointRoutetableRequestBody.
|
46
|
+
|
47
|
+
路由表ID列表。
|
48
|
+
|
49
|
+
:return: The routetables of this UpdateEndpointRoutetableRequestBody.
|
50
|
+
:rtype: list[str]
|
51
|
+
"""
|
52
|
+
return self._routetables
|
53
|
+
|
54
|
+
@routetables.setter
|
55
|
+
def routetables(self, routetables):
|
56
|
+
r"""Sets the routetables of this UpdateEndpointRoutetableRequestBody.
|
57
|
+
|
58
|
+
路由表ID列表。
|
59
|
+
|
60
|
+
:param routetables: The routetables of this UpdateEndpointRoutetableRequestBody.
|
61
|
+
:type routetables: list[str]
|
62
|
+
"""
|
63
|
+
self._routetables = routetables
|
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, UpdateEndpointRoutetableRequestBody):
|
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,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 UpdateEndpointRoutetableResponse(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
|
+
'routetables': 'list[str]',
|
22
|
+
'error': 'list[RoutetableInfoError]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'routetables': 'routetables',
|
27
|
+
'error': 'error'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, routetables=None, error=None):
|
31
|
+
r"""UpdateEndpointRoutetableResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param routetables: 路由表ID列表。 若未指定,返回默认VPC下路由表ID。 更新Gateway类型终端节点服务的终端节点时,显示此参数。
|
36
|
+
:type routetables: list[str]
|
37
|
+
:param error: 当修改终端节点子网路由表失败时,返回错误提示信息
|
38
|
+
:type error: list[:class:`huaweicloudsdkvpcep.v1.RoutetableInfoError`]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(UpdateEndpointRoutetableResponse, self).__init__()
|
42
|
+
|
43
|
+
self._routetables = None
|
44
|
+
self._error = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if routetables is not None:
|
48
|
+
self.routetables = routetables
|
49
|
+
if error is not None:
|
50
|
+
self.error = error
|
51
|
+
|
52
|
+
@property
|
53
|
+
def routetables(self):
|
54
|
+
r"""Gets the routetables of this UpdateEndpointRoutetableResponse.
|
55
|
+
|
56
|
+
路由表ID列表。 若未指定,返回默认VPC下路由表ID。 更新Gateway类型终端节点服务的终端节点时,显示此参数。
|
57
|
+
|
58
|
+
:return: The routetables of this UpdateEndpointRoutetableResponse.
|
59
|
+
:rtype: list[str]
|
60
|
+
"""
|
61
|
+
return self._routetables
|
62
|
+
|
63
|
+
@routetables.setter
|
64
|
+
def routetables(self, routetables):
|
65
|
+
r"""Sets the routetables of this UpdateEndpointRoutetableResponse.
|
66
|
+
|
67
|
+
路由表ID列表。 若未指定,返回默认VPC下路由表ID。 更新Gateway类型终端节点服务的终端节点时,显示此参数。
|
68
|
+
|
69
|
+
:param routetables: The routetables of this UpdateEndpointRoutetableResponse.
|
70
|
+
:type routetables: list[str]
|
71
|
+
"""
|
72
|
+
self._routetables = routetables
|
73
|
+
|
74
|
+
@property
|
75
|
+
def error(self):
|
76
|
+
r"""Gets the error of this UpdateEndpointRoutetableResponse.
|
77
|
+
|
78
|
+
当修改终端节点子网路由表失败时,返回错误提示信息
|
79
|
+
|
80
|
+
:return: The error of this UpdateEndpointRoutetableResponse.
|
81
|
+
:rtype: list[:class:`huaweicloudsdkvpcep.v1.RoutetableInfoError`]
|
82
|
+
"""
|
83
|
+
return self._error
|
84
|
+
|
85
|
+
@error.setter
|
86
|
+
def error(self, error):
|
87
|
+
r"""Sets the error of this UpdateEndpointRoutetableResponse.
|
88
|
+
|
89
|
+
当修改终端节点子网路由表失败时,返回错误提示信息
|
90
|
+
|
91
|
+
:param error: The error of this UpdateEndpointRoutetableResponse.
|
92
|
+
:type error: list[:class:`huaweicloudsdkvpcep.v1.RoutetableInfoError`]
|
93
|
+
"""
|
94
|
+
self._error = error
|
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, UpdateEndpointRoutetableResponse):
|
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,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateEndpointServiceNameRequest:
|
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': 'UpdateEndpointServiceNameRequestBody'
|
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"""UpdateEndpointServiceNameRequest
|
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 UpdateEndpointServiceNameRequest
|
37
|
+
:type body: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointServiceNameRequestBody`
|
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 UpdateEndpointServiceNameRequest.
|
53
|
+
|
54
|
+
终端节点服务ID
|
55
|
+
|
56
|
+
:return: The vpc_endpoint_service_id of this UpdateEndpointServiceNameRequest.
|
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 UpdateEndpointServiceNameRequest.
|
64
|
+
|
65
|
+
终端节点服务ID
|
66
|
+
|
67
|
+
:param vpc_endpoint_service_id: The vpc_endpoint_service_id of this UpdateEndpointServiceNameRequest.
|
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 UpdateEndpointServiceNameRequest.
|
75
|
+
|
76
|
+
:return: The body of this UpdateEndpointServiceNameRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointServiceNameRequestBody`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
r"""Sets the body of this UpdateEndpointServiceNameRequest.
|
84
|
+
|
85
|
+
:param body: The body of this UpdateEndpointServiceNameRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointServiceNameRequestBody`
|
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, UpdateEndpointServiceNameRequest):
|
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,115 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateEndpointServiceNameRequestBody:
|
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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'endpoint_service_name': 'endpoint_service_name'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, endpoint_service_name=None):
|
28
|
+
r"""UpdateEndpointServiceNameRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param endpoint_service_name: 终端节点服务名称
|
33
|
+
:type endpoint_service_name: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._endpoint_service_name = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if endpoint_service_name is not None:
|
42
|
+
self.endpoint_service_name = endpoint_service_name
|
43
|
+
|
44
|
+
@property
|
45
|
+
def endpoint_service_name(self):
|
46
|
+
r"""Gets the endpoint_service_name of this UpdateEndpointServiceNameRequestBody.
|
47
|
+
|
48
|
+
终端节点服务名称
|
49
|
+
|
50
|
+
:return: The endpoint_service_name of this UpdateEndpointServiceNameRequestBody.
|
51
|
+
:rtype: str
|
52
|
+
"""
|
53
|
+
return self._endpoint_service_name
|
54
|
+
|
55
|
+
@endpoint_service_name.setter
|
56
|
+
def endpoint_service_name(self, endpoint_service_name):
|
57
|
+
r"""Sets the endpoint_service_name of this UpdateEndpointServiceNameRequestBody.
|
58
|
+
|
59
|
+
终端节点服务名称
|
60
|
+
|
61
|
+
:param endpoint_service_name: The endpoint_service_name of this UpdateEndpointServiceNameRequestBody.
|
62
|
+
:type endpoint_service_name: str
|
63
|
+
"""
|
64
|
+
self._endpoint_service_name = endpoint_service_name
|
65
|
+
|
66
|
+
def to_dict(self):
|
67
|
+
"""Returns the model properties as a dict"""
|
68
|
+
result = {}
|
69
|
+
|
70
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
71
|
+
value = getattr(self, attr)
|
72
|
+
if isinstance(value, list):
|
73
|
+
result[attr] = list(map(
|
74
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
75
|
+
value
|
76
|
+
))
|
77
|
+
elif hasattr(value, "to_dict"):
|
78
|
+
result[attr] = value.to_dict()
|
79
|
+
elif isinstance(value, dict):
|
80
|
+
result[attr] = dict(map(
|
81
|
+
lambda item: (item[0], item[1].to_dict())
|
82
|
+
if hasattr(item[1], "to_dict") else item,
|
83
|
+
value.items()
|
84
|
+
))
|
85
|
+
else:
|
86
|
+
if attr in self.sensitive_list:
|
87
|
+
result[attr] = "****"
|
88
|
+
else:
|
89
|
+
result[attr] = value
|
90
|
+
|
91
|
+
return result
|
92
|
+
|
93
|
+
def to_str(self):
|
94
|
+
"""Returns the string representation of the model"""
|
95
|
+
import simplejson as json
|
96
|
+
if six.PY2:
|
97
|
+
import sys
|
98
|
+
reload(sys)
|
99
|
+
sys.setdefaultencoding("utf-8")
|
100
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
101
|
+
|
102
|
+
def __repr__(self):
|
103
|
+
"""For `print`"""
|
104
|
+
return self.to_str()
|
105
|
+
|
106
|
+
def __eq__(self, other):
|
107
|
+
"""Returns true if both objects are equal"""
|
108
|
+
if not isinstance(other, UpdateEndpointServiceNameRequestBody):
|
109
|
+
return False
|
110
|
+
|
111
|
+
return self.__dict__ == other.__dict__
|
112
|
+
|
113
|
+
def __ne__(self, other):
|
114
|
+
"""Returns true if both objects are not equal"""
|
115
|
+
return not self == other
|