huaweicloudsdkvpcep 3.1.160__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. huaweicloudsdkvpcep/__init__.py +0 -0
  2. huaweicloudsdkvpcep/v1/__init__.py +110 -0
  3. huaweicloudsdkvpcep/v1/model/__init__.py +107 -0
  4. huaweicloudsdkvpcep/v1/model/accept_or_reject_endpoint_request.py +139 -0
  5. huaweicloudsdkvpcep/v1/model/accept_or_reject_endpoint_request_body.py +142 -0
  6. huaweicloudsdkvpcep/v1/model/accept_or_reject_endpoint_response.py +116 -0
  7. huaweicloudsdkvpcep/v1/model/add_or_remove_service_permissions_request.py +139 -0
  8. huaweicloudsdkvpcep/v1/model/add_or_remove_service_permissions_request_body.py +171 -0
  9. huaweicloudsdkvpcep/v1/model/add_or_remove_service_permissions_response.py +145 -0
  10. huaweicloudsdkvpcep/v1/model/batch_add_endpoint_service_permissions_request.py +139 -0
  11. huaweicloudsdkvpcep/v1/model/batch_add_endpoint_service_permissions_request_body.py +143 -0
  12. huaweicloudsdkvpcep/v1/model/batch_add_endpoint_service_permissions_response.py +116 -0
  13. huaweicloudsdkvpcep/v1/model/batch_add_or_remove_resource_instance_request.py +167 -0
  14. huaweicloudsdkvpcep/v1/model/batch_add_or_remove_resource_instance_request_body.py +143 -0
  15. huaweicloudsdkvpcep/v1/model/batch_add_or_remove_resource_instance_response.py +85 -0
  16. huaweicloudsdkvpcep/v1/model/batch_remove_endpoint_service_permissions_request.py +139 -0
  17. huaweicloudsdkvpcep/v1/model/batch_remove_endpoint_service_permissions_request_body.py +114 -0
  18. huaweicloudsdkvpcep/v1/model/batch_remove_endpoint_service_permissions_response.py +116 -0
  19. huaweicloudsdkvpcep/v1/model/connection_endpoints.py +318 -0
  20. huaweicloudsdkvpcep/v1/model/connections_desc.py +142 -0
  21. huaweicloudsdkvpcep/v1/model/create_endpoint_request.py +111 -0
  22. huaweicloudsdkvpcep/v1/model/create_endpoint_request_body.py +490 -0
  23. huaweicloudsdkvpcep/v1/model/create_endpoint_response.py +841 -0
  24. huaweicloudsdkvpcep/v1/model/create_endpoint_service_request.py +111 -0
  25. huaweicloudsdkvpcep/v1/model/create_endpoint_service_request_body.py +459 -0
  26. huaweicloudsdkvpcep/v1/model/create_endpoint_service_response.py +638 -0
  27. huaweicloudsdkvpcep/v1/model/delete_endpoint_policy_request.py +114 -0
  28. huaweicloudsdkvpcep/v1/model/delete_endpoint_policy_response.py +725 -0
  29. huaweicloudsdkvpcep/v1/model/delete_endpoint_request.py +114 -0
  30. huaweicloudsdkvpcep/v1/model/delete_endpoint_response.py +85 -0
  31. huaweicloudsdkvpcep/v1/model/delete_endpoint_service_request.py +114 -0
  32. huaweicloudsdkvpcep/v1/model/delete_endpoint_service_response.py +85 -0
  33. huaweicloudsdkvpcep/v1/model/endpoint_response_body.py +811 -0
  34. huaweicloudsdkvpcep/v1/model/endpoint_service.py +289 -0
  35. huaweicloudsdkvpcep/v1/model/eps_add_permission_request.py +142 -0
  36. huaweicloudsdkvpcep/v1/model/eps_permission.py +231 -0
  37. huaweicloudsdkvpcep/v1/model/eps_remove_permission_request.py +114 -0
  38. huaweicloudsdkvpcep/v1/model/eps_update_permission_desc.py +114 -0
  39. huaweicloudsdkvpcep/v1/model/error.py +144 -0
  40. huaweicloudsdkvpcep/v1/model/link.py +173 -0
  41. huaweicloudsdkvpcep/v1/model/list_endpoint_info_details_request.py +114 -0
  42. huaweicloudsdkvpcep/v1/model/list_endpoint_info_details_response.py +895 -0
  43. huaweicloudsdkvpcep/v1/model/list_endpoint_service_request.py +347 -0
  44. huaweicloudsdkvpcep/v1/model/list_endpoint_service_response.py +145 -0
  45. huaweicloudsdkvpcep/v1/model/list_endpoints_request.py +289 -0
  46. huaweicloudsdkvpcep/v1/model/list_endpoints_response.py +145 -0
  47. huaweicloudsdkvpcep/v1/model/list_query_project_resource_tags_request.py +114 -0
  48. huaweicloudsdkvpcep/v1/model/list_query_project_resource_tags_response.py +116 -0
  49. huaweicloudsdkvpcep/v1/model/list_quota_details_request.py +115 -0
  50. huaweicloudsdkvpcep/v1/model/list_quota_details_response.py +112 -0
  51. huaweicloudsdkvpcep/v1/model/list_resource_instances_request.py +139 -0
  52. huaweicloudsdkvpcep/v1/model/list_resource_instances_response.py +145 -0
  53. huaweicloudsdkvpcep/v1/model/list_service_connections_request.py +317 -0
  54. huaweicloudsdkvpcep/v1/model/list_service_connections_response.py +145 -0
  55. huaweicloudsdkvpcep/v1/model/list_service_describe_details_request.py +144 -0
  56. huaweicloudsdkvpcep/v1/model/list_service_describe_details_response.py +290 -0
  57. huaweicloudsdkvpcep/v1/model/list_service_details_request.py +114 -0
  58. huaweicloudsdkvpcep/v1/model/list_service_details_response.py +667 -0
  59. huaweicloudsdkvpcep/v1/model/list_service_permissions_details_request.py +259 -0
  60. huaweicloudsdkvpcep/v1/model/list_service_permissions_details_response.py +145 -0
  61. huaweicloudsdkvpcep/v1/model/list_service_public_details_request.py +260 -0
  62. huaweicloudsdkvpcep/v1/model/list_service_public_details_response.py +145 -0
  63. huaweicloudsdkvpcep/v1/model/list_specified_version_details_request.py +114 -0
  64. huaweicloudsdkvpcep/v1/model/list_specified_version_details_response.py +112 -0
  65. huaweicloudsdkvpcep/v1/model/list_version_details_request.py +84 -0
  66. huaweicloudsdkvpcep/v1/model/list_version_details_response.py +116 -0
  67. huaweicloudsdkvpcep/v1/model/match.py +142 -0
  68. huaweicloudsdkvpcep/v1/model/permission_object.py +202 -0
  69. huaweicloudsdkvpcep/v1/model/policy_statement.py +199 -0
  70. huaweicloudsdkvpcep/v1/model/port_list.py +173 -0
  71. huaweicloudsdkvpcep/v1/model/query_error.py +144 -0
  72. huaweicloudsdkvpcep/v1/model/query_resource_instance_tags_body.py +375 -0
  73. huaweicloudsdkvpcep/v1/model/quotas.py +173 -0
  74. huaweicloudsdkvpcep/v1/model/resource_instance.py +173 -0
  75. huaweicloudsdkvpcep/v1/model/resource_tag.py +143 -0
  76. huaweicloudsdkvpcep/v1/model/resources_response_body.py +115 -0
  77. huaweicloudsdkvpcep/v1/model/routetable_info_error.py +144 -0
  78. huaweicloudsdkvpcep/v1/model/routetable_info_error_detial.py +144 -0
  79. huaweicloudsdkvpcep/v1/model/service_list.py +724 -0
  80. huaweicloudsdkvpcep/v1/model/tag_list.py +144 -0
  81. huaweicloudsdkvpcep/v1/model/tag_values_list.py +142 -0
  82. huaweicloudsdkvpcep/v1/model/update_endpoint_connections_desc_request.py +139 -0
  83. huaweicloudsdkvpcep/v1/model/update_endpoint_connections_desc_request_body.py +114 -0
  84. huaweicloudsdkvpcep/v1/model/update_endpoint_connections_desc_response.py +116 -0
  85. huaweicloudsdkvpcep/v1/model/update_endpoint_policy_request.py +139 -0
  86. huaweicloudsdkvpcep/v1/model/update_endpoint_policy_request_body.py +144 -0
  87. huaweicloudsdkvpcep/v1/model/update_endpoint_policy_response.py +725 -0
  88. huaweicloudsdkvpcep/v1/model/update_endpoint_routetable_request.py +139 -0
  89. huaweicloudsdkvpcep/v1/model/update_endpoint_routetable_request_body.py +114 -0
  90. huaweicloudsdkvpcep/v1/model/update_endpoint_routetable_response.py +145 -0
  91. huaweicloudsdkvpcep/v1/model/update_endpoint_service_name_request.py +139 -0
  92. huaweicloudsdkvpcep/v1/model/update_endpoint_service_name_request_body.py +115 -0
  93. huaweicloudsdkvpcep/v1/model/update_endpoint_service_name_response.py +116 -0
  94. huaweicloudsdkvpcep/v1/model/update_endpoint_service_permission_desc_request.py +167 -0
  95. huaweicloudsdkvpcep/v1/model/update_endpoint_service_permission_desc_request_body.py +110 -0
  96. huaweicloudsdkvpcep/v1/model/update_endpoint_service_permission_desc_response.py +116 -0
  97. huaweicloudsdkvpcep/v1/model/update_endpoint_service_request.py +139 -0
  98. huaweicloudsdkvpcep/v1/model/update_endpoint_service_request_body.py +289 -0
  99. huaweicloudsdkvpcep/v1/model/update_endpoint_service_response.py +638 -0
  100. huaweicloudsdkvpcep/v1/model/update_endpoint_white_request.py +139 -0
  101. huaweicloudsdkvpcep/v1/model/update_endpoint_white_request_body.py +144 -0
  102. huaweicloudsdkvpcep/v1/model/update_endpoint_white_response.py +667 -0
  103. huaweicloudsdkvpcep/v1/model/upgrade_endpoint_service_request.py +114 -0
  104. huaweicloudsdkvpcep/v1/model/upgrade_endpoint_service_response.py +85 -0
  105. huaweicloudsdkvpcep/v1/model/version_object.py +260 -0
  106. huaweicloudsdkvpcep/v1/region/__init__.py +0 -0
  107. huaweicloudsdkvpcep/v1/region/vpcep_region.py +124 -0
  108. huaweicloudsdkvpcep/v1/vpcep_async_client.py +2211 -0
  109. huaweicloudsdkvpcep/v1/vpcep_client.py +2208 -0
  110. huaweicloudsdkvpcep-3.1.160.dist-info/LICENSE +13 -0
  111. huaweicloudsdkvpcep-3.1.160.dist-info/METADATA +26 -0
  112. huaweicloudsdkvpcep-3.1.160.dist-info/RECORD +114 -0
  113. huaweicloudsdkvpcep-3.1.160.dist-info/WHEEL +5 -0
  114. huaweicloudsdkvpcep-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class PortList:
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
+ 'client_port': 'int',
21
+ 'server_port': 'int',
22
+ 'protocol': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'client_port': 'client_port',
27
+ 'server_port': 'server_port',
28
+ 'protocol': 'protocol'
29
+ }
30
+
31
+ def __init__(self, client_port=None, server_port=None, protocol=None):
32
+ r"""PortList
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param client_port: 终端节点访问的端口。 终端节点提供给用户,作为访问终端节点服务的端口,范围1-65535。
37
+ :type client_port: int
38
+ :param server_port: 终端节点服务的端口。 终端节点服务绑定了后端资源,作为提供服务的端口,范围1-65535。
39
+ :type server_port: int
40
+ :param protocol: 端口映射协议,支持TCP。
41
+ :type protocol: str
42
+ """
43
+
44
+
45
+
46
+ self._client_port = None
47
+ self._server_port = None
48
+ self._protocol = None
49
+ self.discriminator = None
50
+
51
+ if client_port is not None:
52
+ self.client_port = client_port
53
+ if server_port is not None:
54
+ self.server_port = server_port
55
+ if protocol is not None:
56
+ self.protocol = protocol
57
+
58
+ @property
59
+ def client_port(self):
60
+ r"""Gets the client_port of this PortList.
61
+
62
+ 终端节点访问的端口。 终端节点提供给用户,作为访问终端节点服务的端口,范围1-65535。
63
+
64
+ :return: The client_port of this PortList.
65
+ :rtype: int
66
+ """
67
+ return self._client_port
68
+
69
+ @client_port.setter
70
+ def client_port(self, client_port):
71
+ r"""Sets the client_port of this PortList.
72
+
73
+ 终端节点访问的端口。 终端节点提供给用户,作为访问终端节点服务的端口,范围1-65535。
74
+
75
+ :param client_port: The client_port of this PortList.
76
+ :type client_port: int
77
+ """
78
+ self._client_port = client_port
79
+
80
+ @property
81
+ def server_port(self):
82
+ r"""Gets the server_port of this PortList.
83
+
84
+ 终端节点服务的端口。 终端节点服务绑定了后端资源,作为提供服务的端口,范围1-65535。
85
+
86
+ :return: The server_port of this PortList.
87
+ :rtype: int
88
+ """
89
+ return self._server_port
90
+
91
+ @server_port.setter
92
+ def server_port(self, server_port):
93
+ r"""Sets the server_port of this PortList.
94
+
95
+ 终端节点服务的端口。 终端节点服务绑定了后端资源,作为提供服务的端口,范围1-65535。
96
+
97
+ :param server_port: The server_port of this PortList.
98
+ :type server_port: int
99
+ """
100
+ self._server_port = server_port
101
+
102
+ @property
103
+ def protocol(self):
104
+ r"""Gets the protocol of this PortList.
105
+
106
+ 端口映射协议,支持TCP。
107
+
108
+ :return: The protocol of this PortList.
109
+ :rtype: str
110
+ """
111
+ return self._protocol
112
+
113
+ @protocol.setter
114
+ def protocol(self, protocol):
115
+ r"""Sets the protocol of this PortList.
116
+
117
+ 端口映射协议,支持TCP。
118
+
119
+ :param protocol: The protocol of this PortList.
120
+ :type protocol: str
121
+ """
122
+ self._protocol = protocol
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, PortList):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class QueryError:
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
+ 'error_code': 'str',
21
+ 'error_message': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'error_code': 'error_code',
26
+ 'error_message': 'error_message'
27
+ }
28
+
29
+ def __init__(self, error_code=None, error_message=None):
30
+ r"""QueryError
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param error_code: 错误编码。
35
+ :type error_code: str
36
+ :param error_message: 错误信息。
37
+ :type error_message: str
38
+ """
39
+
40
+
41
+
42
+ self._error_code = None
43
+ self._error_message = None
44
+ self.discriminator = None
45
+
46
+ if error_code is not None:
47
+ self.error_code = error_code
48
+ if error_message is not None:
49
+ self.error_message = error_message
50
+
51
+ @property
52
+ def error_code(self):
53
+ r"""Gets the error_code of this QueryError.
54
+
55
+ 错误编码。
56
+
57
+ :return: The error_code of this QueryError.
58
+ :rtype: str
59
+ """
60
+ return self._error_code
61
+
62
+ @error_code.setter
63
+ def error_code(self, error_code):
64
+ r"""Sets the error_code of this QueryError.
65
+
66
+ 错误编码。
67
+
68
+ :param error_code: The error_code of this QueryError.
69
+ :type error_code: str
70
+ """
71
+ self._error_code = error_code
72
+
73
+ @property
74
+ def error_message(self):
75
+ r"""Gets the error_message of this QueryError.
76
+
77
+ 错误信息。
78
+
79
+ :return: The error_message of this QueryError.
80
+ :rtype: str
81
+ """
82
+ return self._error_message
83
+
84
+ @error_message.setter
85
+ def error_message(self, error_message):
86
+ r"""Sets the error_message of this QueryError.
87
+
88
+ 错误信息。
89
+
90
+ :param error_message: The error_message of this QueryError.
91
+ :type error_message: str
92
+ """
93
+ self._error_message = error_message
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, QueryError):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,375 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class QueryResourceInstanceTagsBody:
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
+ 'tags': 'list[TagValuesList]',
21
+ 'tags_any': 'list[TagValuesList]',
22
+ 'not_tags': 'list[TagValuesList]',
23
+ 'not_tags_any': 'list[TagValuesList]',
24
+ 'sys_tags': 'list[TagValuesList]',
25
+ 'limit': 'str',
26
+ 'offset': 'str',
27
+ 'action': 'str',
28
+ 'matches': 'list[Match]',
29
+ 'without_any_tag': 'bool'
30
+ }
31
+
32
+ attribute_map = {
33
+ 'tags': 'tags',
34
+ 'tags_any': 'tags_any',
35
+ 'not_tags': 'not_tags',
36
+ 'not_tags_any': 'not_tags_any',
37
+ 'sys_tags': 'sys_tags',
38
+ 'limit': 'limit',
39
+ 'offset': 'offset',
40
+ 'action': 'action',
41
+ 'matches': 'matches',
42
+ 'without_any_tag': 'without_any_tag'
43
+ }
44
+
45
+ def __init__(self, tags=None, tags_any=None, not_tags=None, not_tags_any=None, sys_tags=None, limit=None, offset=None, action=None, matches=None, without_any_tag=None):
46
+ r"""QueryResourceInstanceTagsBody
47
+
48
+ The model defined in huaweicloud sdk
49
+
50
+ :param tags: 包含标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复, 同一个key中values不能重复。结果返回包含所有标签的资源列表, key之间是与的关系,key-value结构中value是或的关系。 无tag过滤条件时返回全量数据。
51
+ :type tags: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
52
+ :param tags_any: 包含任意标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。 Key不能重复,同一个key中values不能重复。 结果返回包含标签的资源列表,key之间是或的关系,key、value结构中value是或的关系。 无过滤条件时返回全量数据。
53
+ :type tags_any: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
54
+ :param not_tags: 不包含标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复, 同一个key中values不能重复。结果返回不包含标签的资源列表,key之间是与的关系, key、value结构中value是或的关系。 无过滤条件时返回全量数据。
55
+ :type not_tags: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
56
+ :param not_tags_any: 不包含任意标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复, 同一个key中values不能重复。结果返回不包含标签的资源列表, key之间是与的关系,key、value结构中value是或的关系。 无过滤条件时返回全量数据。
57
+ :type not_tags_any: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
58
+ :param sys_tags: 系统标签,
59
+ :type sys_tags: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
60
+ :param limit: 查询记录数(action为count时无此参数)如果action为filter默认为1000, limit最多为1000,不能为负数,最小值为1。
61
+ :type limit: str
62
+ :param offset: 索引位置,偏移量(action为count时无此参数)从第一条数据偏移offset条数据后开始查询, 如果action为filter默认为0(偏移0条数据,表示从第一条数据开始查询), 必须为数字,不能为负数。
63
+ :type offset: str
64
+ :param action: 操作标识(仅限于filter,count):filter(过滤), count(查询总条数)如果是filter就按照过滤条件查询, 如果是count,只需要返回总条数,禁止返回其他字段。
65
+ :type action: str
66
+ :param matches: 搜索字段,key为要匹配的字段,如resource_name等。value为匹配的值。 key为固定字典值,不能包含重复的key或不支持的key。 根据key的值确认是否需要模糊匹配,如resource_name默认为模糊搜索(不区分大小写), 如果value为空字符串精确匹配(多数服务不存在资源名称为空的情况, 因此此类情况返回空列表)。resource_id为精确匹配。 第一期只做resource_name,后续再扩展。
67
+ :type matches: list[:class:`huaweicloudsdkvpcep.v1.Match`]
68
+ :param without_any_tag: 默认为false,取值【true/false】,当withoutAnyTag=true, 忽略tags、tagsAny、notTags、notTagsAny参数校验。
69
+ :type without_any_tag: bool
70
+ """
71
+
72
+
73
+
74
+ self._tags = None
75
+ self._tags_any = None
76
+ self._not_tags = None
77
+ self._not_tags_any = None
78
+ self._sys_tags = None
79
+ self._limit = None
80
+ self._offset = None
81
+ self._action = None
82
+ self._matches = None
83
+ self._without_any_tag = None
84
+ self.discriminator = None
85
+
86
+ if tags is not None:
87
+ self.tags = tags
88
+ if tags_any is not None:
89
+ self.tags_any = tags_any
90
+ if not_tags is not None:
91
+ self.not_tags = not_tags
92
+ if not_tags_any is not None:
93
+ self.not_tags_any = not_tags_any
94
+ if sys_tags is not None:
95
+ self.sys_tags = sys_tags
96
+ if limit is not None:
97
+ self.limit = limit
98
+ if offset is not None:
99
+ self.offset = offset
100
+ self.action = action
101
+ if matches is not None:
102
+ self.matches = matches
103
+ if without_any_tag is not None:
104
+ self.without_any_tag = without_any_tag
105
+
106
+ @property
107
+ def tags(self):
108
+ r"""Gets the tags of this QueryResourceInstanceTagsBody.
109
+
110
+ 包含标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复, 同一个key中values不能重复。结果返回包含所有标签的资源列表, key之间是与的关系,key-value结构中value是或的关系。 无tag过滤条件时返回全量数据。
111
+
112
+ :return: The tags of this QueryResourceInstanceTagsBody.
113
+ :rtype: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
114
+ """
115
+ return self._tags
116
+
117
+ @tags.setter
118
+ def tags(self, tags):
119
+ r"""Sets the tags of this QueryResourceInstanceTagsBody.
120
+
121
+ 包含标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复, 同一个key中values不能重复。结果返回包含所有标签的资源列表, key之间是与的关系,key-value结构中value是或的关系。 无tag过滤条件时返回全量数据。
122
+
123
+ :param tags: The tags of this QueryResourceInstanceTagsBody.
124
+ :type tags: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
125
+ """
126
+ self._tags = tags
127
+
128
+ @property
129
+ def tags_any(self):
130
+ r"""Gets the tags_any of this QueryResourceInstanceTagsBody.
131
+
132
+ 包含任意标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。 Key不能重复,同一个key中values不能重复。 结果返回包含标签的资源列表,key之间是或的关系,key、value结构中value是或的关系。 无过滤条件时返回全量数据。
133
+
134
+ :return: The tags_any of this QueryResourceInstanceTagsBody.
135
+ :rtype: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
136
+ """
137
+ return self._tags_any
138
+
139
+ @tags_any.setter
140
+ def tags_any(self, tags_any):
141
+ r"""Sets the tags_any of this QueryResourceInstanceTagsBody.
142
+
143
+ 包含任意标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。 Key不能重复,同一个key中values不能重复。 结果返回包含标签的资源列表,key之间是或的关系,key、value结构中value是或的关系。 无过滤条件时返回全量数据。
144
+
145
+ :param tags_any: The tags_any of this QueryResourceInstanceTagsBody.
146
+ :type tags_any: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
147
+ """
148
+ self._tags_any = tags_any
149
+
150
+ @property
151
+ def not_tags(self):
152
+ r"""Gets the not_tags of this QueryResourceInstanceTagsBody.
153
+
154
+ 不包含标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复, 同一个key中values不能重复。结果返回不包含标签的资源列表,key之间是与的关系, key、value结构中value是或的关系。 无过滤条件时返回全量数据。
155
+
156
+ :return: The not_tags of this QueryResourceInstanceTagsBody.
157
+ :rtype: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
158
+ """
159
+ return self._not_tags
160
+
161
+ @not_tags.setter
162
+ def not_tags(self, not_tags):
163
+ r"""Sets the not_tags of this QueryResourceInstanceTagsBody.
164
+
165
+ 不包含标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复, 同一个key中values不能重复。结果返回不包含标签的资源列表,key之间是与的关系, key、value结构中value是或的关系。 无过滤条件时返回全量数据。
166
+
167
+ :param not_tags: The not_tags of this QueryResourceInstanceTagsBody.
168
+ :type not_tags: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
169
+ """
170
+ self._not_tags = not_tags
171
+
172
+ @property
173
+ def not_tags_any(self):
174
+ r"""Gets the not_tags_any of this QueryResourceInstanceTagsBody.
175
+
176
+ 不包含任意标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复, 同一个key中values不能重复。结果返回不包含标签的资源列表, key之间是与的关系,key、value结构中value是或的关系。 无过滤条件时返回全量数据。
177
+
178
+ :return: The not_tags_any of this QueryResourceInstanceTagsBody.
179
+ :rtype: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
180
+ """
181
+ return self._not_tags_any
182
+
183
+ @not_tags_any.setter
184
+ def not_tags_any(self, not_tags_any):
185
+ r"""Sets the not_tags_any of this QueryResourceInstanceTagsBody.
186
+
187
+ 不包含任意标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复, 同一个key中values不能重复。结果返回不包含标签的资源列表, key之间是与的关系,key、value结构中value是或的关系。 无过滤条件时返回全量数据。
188
+
189
+ :param not_tags_any: The not_tags_any of this QueryResourceInstanceTagsBody.
190
+ :type not_tags_any: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
191
+ """
192
+ self._not_tags_any = not_tags_any
193
+
194
+ @property
195
+ def sys_tags(self):
196
+ r"""Gets the sys_tags of this QueryResourceInstanceTagsBody.
197
+
198
+ 系统标签,
199
+
200
+ :return: The sys_tags of this QueryResourceInstanceTagsBody.
201
+ :rtype: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
202
+ """
203
+ return self._sys_tags
204
+
205
+ @sys_tags.setter
206
+ def sys_tags(self, sys_tags):
207
+ r"""Sets the sys_tags of this QueryResourceInstanceTagsBody.
208
+
209
+ 系统标签,
210
+
211
+ :param sys_tags: The sys_tags of this QueryResourceInstanceTagsBody.
212
+ :type sys_tags: list[:class:`huaweicloudsdkvpcep.v1.TagValuesList`]
213
+ """
214
+ self._sys_tags = sys_tags
215
+
216
+ @property
217
+ def limit(self):
218
+ r"""Gets the limit of this QueryResourceInstanceTagsBody.
219
+
220
+ 查询记录数(action为count时无此参数)如果action为filter默认为1000, limit最多为1000,不能为负数,最小值为1。
221
+
222
+ :return: The limit of this QueryResourceInstanceTagsBody.
223
+ :rtype: str
224
+ """
225
+ return self._limit
226
+
227
+ @limit.setter
228
+ def limit(self, limit):
229
+ r"""Sets the limit of this QueryResourceInstanceTagsBody.
230
+
231
+ 查询记录数(action为count时无此参数)如果action为filter默认为1000, limit最多为1000,不能为负数,最小值为1。
232
+
233
+ :param limit: The limit of this QueryResourceInstanceTagsBody.
234
+ :type limit: str
235
+ """
236
+ self._limit = limit
237
+
238
+ @property
239
+ def offset(self):
240
+ r"""Gets the offset of this QueryResourceInstanceTagsBody.
241
+
242
+ 索引位置,偏移量(action为count时无此参数)从第一条数据偏移offset条数据后开始查询, 如果action为filter默认为0(偏移0条数据,表示从第一条数据开始查询), 必须为数字,不能为负数。
243
+
244
+ :return: The offset of this QueryResourceInstanceTagsBody.
245
+ :rtype: str
246
+ """
247
+ return self._offset
248
+
249
+ @offset.setter
250
+ def offset(self, offset):
251
+ r"""Sets the offset of this QueryResourceInstanceTagsBody.
252
+
253
+ 索引位置,偏移量(action为count时无此参数)从第一条数据偏移offset条数据后开始查询, 如果action为filter默认为0(偏移0条数据,表示从第一条数据开始查询), 必须为数字,不能为负数。
254
+
255
+ :param offset: The offset of this QueryResourceInstanceTagsBody.
256
+ :type offset: str
257
+ """
258
+ self._offset = offset
259
+
260
+ @property
261
+ def action(self):
262
+ r"""Gets the action of this QueryResourceInstanceTagsBody.
263
+
264
+ 操作标识(仅限于filter,count):filter(过滤), count(查询总条数)如果是filter就按照过滤条件查询, 如果是count,只需要返回总条数,禁止返回其他字段。
265
+
266
+ :return: The action of this QueryResourceInstanceTagsBody.
267
+ :rtype: str
268
+ """
269
+ return self._action
270
+
271
+ @action.setter
272
+ def action(self, action):
273
+ r"""Sets the action of this QueryResourceInstanceTagsBody.
274
+
275
+ 操作标识(仅限于filter,count):filter(过滤), count(查询总条数)如果是filter就按照过滤条件查询, 如果是count,只需要返回总条数,禁止返回其他字段。
276
+
277
+ :param action: The action of this QueryResourceInstanceTagsBody.
278
+ :type action: str
279
+ """
280
+ self._action = action
281
+
282
+ @property
283
+ def matches(self):
284
+ r"""Gets the matches of this QueryResourceInstanceTagsBody.
285
+
286
+ 搜索字段,key为要匹配的字段,如resource_name等。value为匹配的值。 key为固定字典值,不能包含重复的key或不支持的key。 根据key的值确认是否需要模糊匹配,如resource_name默认为模糊搜索(不区分大小写), 如果value为空字符串精确匹配(多数服务不存在资源名称为空的情况, 因此此类情况返回空列表)。resource_id为精确匹配。 第一期只做resource_name,后续再扩展。
287
+
288
+ :return: The matches of this QueryResourceInstanceTagsBody.
289
+ :rtype: list[:class:`huaweicloudsdkvpcep.v1.Match`]
290
+ """
291
+ return self._matches
292
+
293
+ @matches.setter
294
+ def matches(self, matches):
295
+ r"""Sets the matches of this QueryResourceInstanceTagsBody.
296
+
297
+ 搜索字段,key为要匹配的字段,如resource_name等。value为匹配的值。 key为固定字典值,不能包含重复的key或不支持的key。 根据key的值确认是否需要模糊匹配,如resource_name默认为模糊搜索(不区分大小写), 如果value为空字符串精确匹配(多数服务不存在资源名称为空的情况, 因此此类情况返回空列表)。resource_id为精确匹配。 第一期只做resource_name,后续再扩展。
298
+
299
+ :param matches: The matches of this QueryResourceInstanceTagsBody.
300
+ :type matches: list[:class:`huaweicloudsdkvpcep.v1.Match`]
301
+ """
302
+ self._matches = matches
303
+
304
+ @property
305
+ def without_any_tag(self):
306
+ r"""Gets the without_any_tag of this QueryResourceInstanceTagsBody.
307
+
308
+ 默认为false,取值【true/false】,当withoutAnyTag=true, 忽略tags、tagsAny、notTags、notTagsAny参数校验。
309
+
310
+ :return: The without_any_tag of this QueryResourceInstanceTagsBody.
311
+ :rtype: bool
312
+ """
313
+ return self._without_any_tag
314
+
315
+ @without_any_tag.setter
316
+ def without_any_tag(self, without_any_tag):
317
+ r"""Sets the without_any_tag of this QueryResourceInstanceTagsBody.
318
+
319
+ 默认为false,取值【true/false】,当withoutAnyTag=true, 忽略tags、tagsAny、notTags、notTagsAny参数校验。
320
+
321
+ :param without_any_tag: The without_any_tag of this QueryResourceInstanceTagsBody.
322
+ :type without_any_tag: bool
323
+ """
324
+ self._without_any_tag = without_any_tag
325
+
326
+ def to_dict(self):
327
+ """Returns the model properties as a dict"""
328
+ result = {}
329
+
330
+ for attr, _ in six.iteritems(self.openapi_types):
331
+ value = getattr(self, attr)
332
+ if isinstance(value, list):
333
+ result[attr] = list(map(
334
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
335
+ value
336
+ ))
337
+ elif hasattr(value, "to_dict"):
338
+ result[attr] = value.to_dict()
339
+ elif isinstance(value, dict):
340
+ result[attr] = dict(map(
341
+ lambda item: (item[0], item[1].to_dict())
342
+ if hasattr(item[1], "to_dict") else item,
343
+ value.items()
344
+ ))
345
+ else:
346
+ if attr in self.sensitive_list:
347
+ result[attr] = "****"
348
+ else:
349
+ result[attr] = value
350
+
351
+ return result
352
+
353
+ def to_str(self):
354
+ """Returns the string representation of the model"""
355
+ import simplejson as json
356
+ if six.PY2:
357
+ import sys
358
+ reload(sys)
359
+ sys.setdefaultencoding("utf-8")
360
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
361
+
362
+ def __repr__(self):
363
+ """For `print`"""
364
+ return self.to_str()
365
+
366
+ def __eq__(self, other):
367
+ """Returns true if both objects are equal"""
368
+ if not isinstance(other, QueryResourceInstanceTagsBody):
369
+ return False
370
+
371
+ return self.__dict__ == other.__dict__
372
+
373
+ def __ne__(self, other):
374
+ """Returns true if both objects are not equal"""
375
+ return not self == other