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,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchAddEndpointServicePermissionsRequestBody:
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[EpsAddPermissionRequest]',
21
+ 'permission_type': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'permissions': 'permissions',
26
+ 'permission_type': 'permission_type'
27
+ }
28
+
29
+ def __init__(self, permissions=None, permission_type=None):
30
+ r"""BatchAddEndpointServicePermissionsRequestBody
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param permissions: 终端节点服务白名单列表
35
+ :type permissions: list[:class:`huaweicloudsdkvpcep.v1.EpsAddPermissionRequest`]
36
+ :param permission_type: 终端节点服务白名单类型。 - domainId:基于账户ID配置终端节点服务白名单。 - orgPath:基于账户所在组织路径配置终端节点服务白名单。
37
+ :type permission_type: str
38
+ """
39
+
40
+
41
+
42
+ self._permissions = None
43
+ self._permission_type = None
44
+ self.discriminator = None
45
+
46
+ self.permissions = permissions
47
+ if permission_type is not None:
48
+ self.permission_type = permission_type
49
+
50
+ @property
51
+ def permissions(self):
52
+ r"""Gets the permissions of this BatchAddEndpointServicePermissionsRequestBody.
53
+
54
+ 终端节点服务白名单列表
55
+
56
+ :return: The permissions of this BatchAddEndpointServicePermissionsRequestBody.
57
+ :rtype: list[:class:`huaweicloudsdkvpcep.v1.EpsAddPermissionRequest`]
58
+ """
59
+ return self._permissions
60
+
61
+ @permissions.setter
62
+ def permissions(self, permissions):
63
+ r"""Sets the permissions of this BatchAddEndpointServicePermissionsRequestBody.
64
+
65
+ 终端节点服务白名单列表
66
+
67
+ :param permissions: The permissions of this BatchAddEndpointServicePermissionsRequestBody.
68
+ :type permissions: list[:class:`huaweicloudsdkvpcep.v1.EpsAddPermissionRequest`]
69
+ """
70
+ self._permissions = permissions
71
+
72
+ @property
73
+ def permission_type(self):
74
+ r"""Gets the permission_type of this BatchAddEndpointServicePermissionsRequestBody.
75
+
76
+ 终端节点服务白名单类型。 - domainId:基于账户ID配置终端节点服务白名单。 - orgPath:基于账户所在组织路径配置终端节点服务白名单。
77
+
78
+ :return: The permission_type of this BatchAddEndpointServicePermissionsRequestBody.
79
+ :rtype: str
80
+ """
81
+ return self._permission_type
82
+
83
+ @permission_type.setter
84
+ def permission_type(self, permission_type):
85
+ r"""Sets the permission_type of this BatchAddEndpointServicePermissionsRequestBody.
86
+
87
+ 终端节点服务白名单类型。 - domainId:基于账户ID配置终端节点服务白名单。 - orgPath:基于账户所在组织路径配置终端节点服务白名单。
88
+
89
+ :param permission_type: The permission_type of this BatchAddEndpointServicePermissionsRequestBody.
90
+ :type permission_type: str
91
+ """
92
+ self._permission_type = permission_type
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, BatchAddEndpointServicePermissionsRequestBody):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ 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 BatchAddEndpointServicePermissionsResponse(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"""BatchAddEndpointServicePermissionsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param permissions: 终端节点服务白名单
34
+ :type permissions: list[:class:`huaweicloudsdkvpcep.v1.EpsPermission`]
35
+ """
36
+
37
+ super(BatchAddEndpointServicePermissionsResponse, 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 BatchAddEndpointServicePermissionsResponse.
48
+
49
+ 终端节点服务白名单
50
+
51
+ :return: The permissions of this BatchAddEndpointServicePermissionsResponse.
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 BatchAddEndpointServicePermissionsResponse.
59
+
60
+ 终端节点服务白名单
61
+
62
+ :param permissions: The permissions of this BatchAddEndpointServicePermissionsResponse.
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, BatchAddEndpointServicePermissionsResponse):
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,167 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchAddOrRemoveResourceInstanceRequest:
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
+ 'resource_type': 'str',
21
+ 'resource_id': 'str',
22
+ 'body': 'BatchAddOrRemoveResourceInstanceRequestBody'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'resource_type': 'resource_type',
27
+ 'resource_id': 'resource_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, resource_type=None, resource_id=None, body=None):
32
+ r"""BatchAddOrRemoveResourceInstanceRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param resource_type: 资源类型。 - endpoint_service:终端节点服务 - endpoint:终端节点
37
+ :type resource_type: str
38
+ :param resource_id: 资源ID,Endpoint Service ID或Endpoint ID。
39
+ :type resource_id: str
40
+ :param body: Body of the BatchAddOrRemoveResourceInstanceRequest
41
+ :type body: :class:`huaweicloudsdkvpcep.v1.BatchAddOrRemoveResourceInstanceRequestBody`
42
+ """
43
+
44
+
45
+
46
+ self._resource_type = None
47
+ self._resource_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ self.resource_type = resource_type
52
+ self.resource_id = resource_id
53
+ if body is not None:
54
+ self.body = body
55
+
56
+ @property
57
+ def resource_type(self):
58
+ r"""Gets the resource_type of this BatchAddOrRemoveResourceInstanceRequest.
59
+
60
+ 资源类型。 - endpoint_service:终端节点服务 - endpoint:终端节点
61
+
62
+ :return: The resource_type of this BatchAddOrRemoveResourceInstanceRequest.
63
+ :rtype: str
64
+ """
65
+ return self._resource_type
66
+
67
+ @resource_type.setter
68
+ def resource_type(self, resource_type):
69
+ r"""Sets the resource_type of this BatchAddOrRemoveResourceInstanceRequest.
70
+
71
+ 资源类型。 - endpoint_service:终端节点服务 - endpoint:终端节点
72
+
73
+ :param resource_type: The resource_type of this BatchAddOrRemoveResourceInstanceRequest.
74
+ :type resource_type: str
75
+ """
76
+ self._resource_type = resource_type
77
+
78
+ @property
79
+ def resource_id(self):
80
+ r"""Gets the resource_id of this BatchAddOrRemoveResourceInstanceRequest.
81
+
82
+ 资源ID,Endpoint Service ID或Endpoint ID。
83
+
84
+ :return: The resource_id of this BatchAddOrRemoveResourceInstanceRequest.
85
+ :rtype: str
86
+ """
87
+ return self._resource_id
88
+
89
+ @resource_id.setter
90
+ def resource_id(self, resource_id):
91
+ r"""Sets the resource_id of this BatchAddOrRemoveResourceInstanceRequest.
92
+
93
+ 资源ID,Endpoint Service ID或Endpoint ID。
94
+
95
+ :param resource_id: The resource_id of this BatchAddOrRemoveResourceInstanceRequest.
96
+ :type resource_id: str
97
+ """
98
+ self._resource_id = resource_id
99
+
100
+ @property
101
+ def body(self):
102
+ r"""Gets the body of this BatchAddOrRemoveResourceInstanceRequest.
103
+
104
+ :return: The body of this BatchAddOrRemoveResourceInstanceRequest.
105
+ :rtype: :class:`huaweicloudsdkvpcep.v1.BatchAddOrRemoveResourceInstanceRequestBody`
106
+ """
107
+ return self._body
108
+
109
+ @body.setter
110
+ def body(self, body):
111
+ r"""Sets the body of this BatchAddOrRemoveResourceInstanceRequest.
112
+
113
+ :param body: The body of this BatchAddOrRemoveResourceInstanceRequest.
114
+ :type body: :class:`huaweicloudsdkvpcep.v1.BatchAddOrRemoveResourceInstanceRequestBody`
115
+ """
116
+ self._body = body
117
+
118
+ def to_dict(self):
119
+ """Returns the model properties as a dict"""
120
+ result = {}
121
+
122
+ for attr, _ in six.iteritems(self.openapi_types):
123
+ value = getattr(self, attr)
124
+ if isinstance(value, list):
125
+ result[attr] = list(map(
126
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
127
+ value
128
+ ))
129
+ elif hasattr(value, "to_dict"):
130
+ result[attr] = value.to_dict()
131
+ elif isinstance(value, dict):
132
+ result[attr] = dict(map(
133
+ lambda item: (item[0], item[1].to_dict())
134
+ if hasattr(item[1], "to_dict") else item,
135
+ value.items()
136
+ ))
137
+ else:
138
+ if attr in self.sensitive_list:
139
+ result[attr] = "****"
140
+ else:
141
+ result[attr] = value
142
+
143
+ return result
144
+
145
+ def to_str(self):
146
+ """Returns the string representation of the model"""
147
+ import simplejson as json
148
+ if six.PY2:
149
+ import sys
150
+ reload(sys)
151
+ sys.setdefaultencoding("utf-8")
152
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
153
+
154
+ def __repr__(self):
155
+ """For `print`"""
156
+ return self.to_str()
157
+
158
+ def __eq__(self, other):
159
+ """Returns true if both objects are equal"""
160
+ if not isinstance(other, BatchAddOrRemoveResourceInstanceRequest):
161
+ return False
162
+
163
+ return self.__dict__ == other.__dict__
164
+
165
+ def __ne__(self, other):
166
+ """Returns true if both objects are not equal"""
167
+ return not self == other
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchAddOrRemoveResourceInstanceRequestBody:
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[ResourceTag]',
21
+ 'action': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'tags': 'tags',
26
+ 'action': 'action'
27
+ }
28
+
29
+ def __init__(self, tags=None, action=None):
30
+ r"""BatchAddOrRemoveResourceInstanceRequestBody
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param tags: 标签列表,没有标签默认为空数组。
35
+ :type tags: list[:class:`huaweicloudsdkvpcep.v1.ResourceTag`]
36
+ :param action: 操作标识:仅限于 create(创建) delete(删除)
37
+ :type action: str
38
+ """
39
+
40
+
41
+
42
+ self._tags = None
43
+ self._action = None
44
+ self.discriminator = None
45
+
46
+ if tags is not None:
47
+ self.tags = tags
48
+ self.action = action
49
+
50
+ @property
51
+ def tags(self):
52
+ r"""Gets the tags of this BatchAddOrRemoveResourceInstanceRequestBody.
53
+
54
+ 标签列表,没有标签默认为空数组。
55
+
56
+ :return: The tags of this BatchAddOrRemoveResourceInstanceRequestBody.
57
+ :rtype: list[:class:`huaweicloudsdkvpcep.v1.ResourceTag`]
58
+ """
59
+ return self._tags
60
+
61
+ @tags.setter
62
+ def tags(self, tags):
63
+ r"""Sets the tags of this BatchAddOrRemoveResourceInstanceRequestBody.
64
+
65
+ 标签列表,没有标签默认为空数组。
66
+
67
+ :param tags: The tags of this BatchAddOrRemoveResourceInstanceRequestBody.
68
+ :type tags: list[:class:`huaweicloudsdkvpcep.v1.ResourceTag`]
69
+ """
70
+ self._tags = tags
71
+
72
+ @property
73
+ def action(self):
74
+ r"""Gets the action of this BatchAddOrRemoveResourceInstanceRequestBody.
75
+
76
+ 操作标识:仅限于 create(创建) delete(删除)
77
+
78
+ :return: The action of this BatchAddOrRemoveResourceInstanceRequestBody.
79
+ :rtype: str
80
+ """
81
+ return self._action
82
+
83
+ @action.setter
84
+ def action(self, action):
85
+ r"""Sets the action of this BatchAddOrRemoveResourceInstanceRequestBody.
86
+
87
+ 操作标识:仅限于 create(创建) delete(删除)
88
+
89
+ :param action: The action of this BatchAddOrRemoveResourceInstanceRequestBody.
90
+ :type action: str
91
+ """
92
+ self._action = action
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, BatchAddOrRemoveResourceInstanceRequestBody):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other
@@ -0,0 +1,85 @@
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 BatchAddOrRemoveResourceInstanceResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ r"""BatchAddOrRemoveResourceInstanceResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(BatchAddOrRemoveResourceInstanceResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, BatchAddOrRemoveResourceInstanceResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other