huaweicloudsdkram 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 (100) hide show
  1. huaweicloudsdkram/__init__.py +0 -0
  2. huaweicloudsdkram/v1/__init__.py +96 -0
  3. huaweicloudsdkram/v1/model/__init__.py +93 -0
  4. huaweicloudsdkram/v1/model/accept_resource_share_invitation_request.py +144 -0
  5. huaweicloudsdkram/v1/model/accept_resource_share_invitation_response.py +112 -0
  6. huaweicloudsdkram/v1/model/associate_permission_req_body.py +143 -0
  7. huaweicloudsdkram/v1/model/associate_resource_share_permission_request.py +169 -0
  8. huaweicloudsdkram/v1/model/associate_resource_share_permission_response.py +85 -0
  9. huaweicloudsdkram/v1/model/associate_resource_share_request.py +169 -0
  10. huaweicloudsdkram/v1/model/associate_resource_share_response.py +112 -0
  11. huaweicloudsdkram/v1/model/associated_permission.py +260 -0
  12. huaweicloudsdkram/v1/model/batch_create_resource_share_tags_request.py +169 -0
  13. huaweicloudsdkram/v1/model/batch_create_resource_share_tags_response.py +85 -0
  14. huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_request.py +169 -0
  15. huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_response.py +85 -0
  16. huaweicloudsdkram/v1/model/create_resource_share_req_body.py +288 -0
  17. huaweicloudsdkram/v1/model/create_resource_share_request.py +141 -0
  18. huaweicloudsdkram/v1/model/create_resource_share_response.py +112 -0
  19. huaweicloudsdkram/v1/model/delete_resource_share_request.py +144 -0
  20. huaweicloudsdkram/v1/model/delete_resource_share_response.py +85 -0
  21. huaweicloudsdkram/v1/model/disable_organization_share_request.py +116 -0
  22. huaweicloudsdkram/v1/model/disable_organization_share_response.py +85 -0
  23. huaweicloudsdkram/v1/model/disassociate_permission_req_body.py +114 -0
  24. huaweicloudsdkram/v1/model/disassociate_resource_share_permission_request.py +169 -0
  25. huaweicloudsdkram/v1/model/disassociate_resource_share_permission_response.py +85 -0
  26. huaweicloudsdkram/v1/model/disassociate_resource_share_request.py +169 -0
  27. huaweicloudsdkram/v1/model/disassociate_resource_share_response.py +112 -0
  28. huaweicloudsdkram/v1/model/enable_organization_share_request.py +116 -0
  29. huaweicloudsdkram/v1/model/enable_organization_share_response.py +85 -0
  30. huaweicloudsdkram/v1/model/list_permission_versions_request.py +202 -0
  31. huaweicloudsdkram/v1/model/list_permission_versions_response.py +141 -0
  32. huaweicloudsdkram/v1/model/list_permissions_request.py +232 -0
  33. huaweicloudsdkram/v1/model/list_permissions_response.py +141 -0
  34. huaweicloudsdkram/v1/model/list_quota_request.py +116 -0
  35. huaweicloudsdkram/v1/model/list_quota_response.py +112 -0
  36. huaweicloudsdkram/v1/model/list_resource_share_permissions_request.py +231 -0
  37. huaweicloudsdkram/v1/model/list_resource_share_permissions_response.py +141 -0
  38. huaweicloudsdkram/v1/model/list_resource_share_tags_request.py +174 -0
  39. huaweicloudsdkram/v1/model/list_resource_share_tags_response.py +141 -0
  40. huaweicloudsdkram/v1/model/list_resource_shares_by_tags_request.py +199 -0
  41. huaweicloudsdkram/v1/model/list_resource_shares_by_tags_response.py +145 -0
  42. huaweicloudsdkram/v1/model/list_resource_types_request.py +174 -0
  43. huaweicloudsdkram/v1/model/list_resource_types_response.py +141 -0
  44. huaweicloudsdkram/v1/model/match.py +142 -0
  45. huaweicloudsdkram/v1/model/page_info.py +173 -0
  46. huaweicloudsdkram/v1/model/page_info_marker_by_key.py +173 -0
  47. huaweicloudsdkram/v1/model/permission.py +427 -0
  48. huaweicloudsdkram/v1/model/permission_summary.py +399 -0
  49. huaweicloudsdkram/v1/model/quota_resources_dto.py +114 -0
  50. huaweicloudsdkram/v1/model/quotas.py +226 -0
  51. huaweicloudsdkram/v1/model/reject_resource_share_invitation_request.py +144 -0
  52. huaweicloudsdkram/v1/model/reject_resource_share_invitation_response.py +112 -0
  53. huaweicloudsdkram/v1/model/resource_dto.py +198 -0
  54. huaweicloudsdkram/v1/model/resource_share.py +340 -0
  55. huaweicloudsdkram/v1/model/resource_share_association.py +340 -0
  56. huaweicloudsdkram/v1/model/resource_share_association_req_body.py +144 -0
  57. huaweicloudsdkram/v1/model/resource_share_invitation.py +318 -0
  58. huaweicloudsdkram/v1/model/resource_shares_by_tags_req_body.py +173 -0
  59. huaweicloudsdkram/v1/model/resource_types_summary.py +142 -0
  60. huaweicloudsdkram/v1/model/search_resource_share_associations_req_body.py +317 -0
  61. huaweicloudsdkram/v1/model/search_resource_share_associations_request.py +141 -0
  62. huaweicloudsdkram/v1/model/search_resource_share_associations_response.py +141 -0
  63. huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_request.py +141 -0
  64. huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_response.py +116 -0
  65. huaweicloudsdkram/v1/model/search_resource_share_invitation_req_body.py +231 -0
  66. huaweicloudsdkram/v1/model/search_resource_share_invitation_request.py +141 -0
  67. huaweicloudsdkram/v1/model/search_resource_share_invitation_response.py +137 -0
  68. huaweicloudsdkram/v1/model/search_resource_shares_req_body.py +317 -0
  69. huaweicloudsdkram/v1/model/search_resource_shares_request.py +141 -0
  70. huaweicloudsdkram/v1/model/search_resource_shares_response.py +141 -0
  71. huaweicloudsdkram/v1/model/search_shared_principals_req_body.py +259 -0
  72. huaweicloudsdkram/v1/model/search_shared_principals_request.py +141 -0
  73. huaweicloudsdkram/v1/model/search_shared_principals_response.py +141 -0
  74. huaweicloudsdkram/v1/model/search_shared_resources_req_body.py +346 -0
  75. huaweicloudsdkram/v1/model/search_shared_resources_request.py +141 -0
  76. huaweicloudsdkram/v1/model/search_shared_resources_response.py +141 -0
  77. huaweicloudsdkram/v1/model/shared_principal.py +202 -0
  78. huaweicloudsdkram/v1/model/shared_resource.py +260 -0
  79. huaweicloudsdkram/v1/model/show_organization_share_request.py +116 -0
  80. huaweicloudsdkram/v1/model/show_organization_share_response.py +116 -0
  81. huaweicloudsdkram/v1/model/show_permission_request.py +173 -0
  82. huaweicloudsdkram/v1/model/show_permission_response.py +112 -0
  83. huaweicloudsdkram/v1/model/tag.py +142 -0
  84. huaweicloudsdkram/v1/model/tag_dto.py +142 -0
  85. huaweicloudsdkram/v1/model/tag_filter.py +143 -0
  86. huaweicloudsdkram/v1/model/tag_resource_req_body.py +114 -0
  87. huaweicloudsdkram/v1/model/untag.py +143 -0
  88. huaweicloudsdkram/v1/model/untag_resource_req_body.py +114 -0
  89. huaweicloudsdkram/v1/model/update_resource_share_req_body.py +172 -0
  90. huaweicloudsdkram/v1/model/update_resource_share_request.py +169 -0
  91. huaweicloudsdkram/v1/model/update_resource_share_response.py +112 -0
  92. huaweicloudsdkram/v1/ram_async_client.py +1991 -0
  93. huaweicloudsdkram/v1/ram_client.py +1988 -0
  94. huaweicloudsdkram/v1/region/__init__.py +0 -0
  95. huaweicloudsdkram/v1/region/ram_region.py +31 -0
  96. huaweicloudsdkram-3.1.160.dist-info/LICENSE +13 -0
  97. huaweicloudsdkram-3.1.160.dist-info/METADATA +26 -0
  98. huaweicloudsdkram-3.1.160.dist-info/RECORD +100 -0
  99. huaweicloudsdkram-3.1.160.dist-info/WHEEL +5 -0
  100. huaweicloudsdkram-3.1.160.dist-info/top_level.txt +1 -0
@@ -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 ResourceShareAssociationReqBody:
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
+ 'principals': 'list[str]',
21
+ 'resource_urns': 'list[str]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'principals': 'principals',
26
+ 'resource_urns': 'resource_urns'
27
+ }
28
+
29
+ def __init__(self, principals=None, resource_urns=None):
30
+ r"""ResourceShareAssociationReqBody
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param principals: 指定与资源共享实例关联的一个或多个资源使用者的列表。
35
+ :type principals: list[str]
36
+ :param resource_urns: 指定与资源共享实例关联的一个或多个共享资源URN的列表。
37
+ :type resource_urns: list[str]
38
+ """
39
+
40
+
41
+
42
+ self._principals = None
43
+ self._resource_urns = None
44
+ self.discriminator = None
45
+
46
+ if principals is not None:
47
+ self.principals = principals
48
+ if resource_urns is not None:
49
+ self.resource_urns = resource_urns
50
+
51
+ @property
52
+ def principals(self):
53
+ r"""Gets the principals of this ResourceShareAssociationReqBody.
54
+
55
+ 指定与资源共享实例关联的一个或多个资源使用者的列表。
56
+
57
+ :return: The principals of this ResourceShareAssociationReqBody.
58
+ :rtype: list[str]
59
+ """
60
+ return self._principals
61
+
62
+ @principals.setter
63
+ def principals(self, principals):
64
+ r"""Sets the principals of this ResourceShareAssociationReqBody.
65
+
66
+ 指定与资源共享实例关联的一个或多个资源使用者的列表。
67
+
68
+ :param principals: The principals of this ResourceShareAssociationReqBody.
69
+ :type principals: list[str]
70
+ """
71
+ self._principals = principals
72
+
73
+ @property
74
+ def resource_urns(self):
75
+ r"""Gets the resource_urns of this ResourceShareAssociationReqBody.
76
+
77
+ 指定与资源共享实例关联的一个或多个共享资源URN的列表。
78
+
79
+ :return: The resource_urns of this ResourceShareAssociationReqBody.
80
+ :rtype: list[str]
81
+ """
82
+ return self._resource_urns
83
+
84
+ @resource_urns.setter
85
+ def resource_urns(self, resource_urns):
86
+ r"""Sets the resource_urns of this ResourceShareAssociationReqBody.
87
+
88
+ 指定与资源共享实例关联的一个或多个共享资源URN的列表。
89
+
90
+ :param resource_urns: The resource_urns of this ResourceShareAssociationReqBody.
91
+ :type resource_urns: list[str]
92
+ """
93
+ self._resource_urns = resource_urns
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, ResourceShareAssociationReqBody):
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,318 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ResourceShareInvitation:
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
+ 'receiver_account_id': 'str',
21
+ 'resource_share_id': 'str',
22
+ 'resource_share_name': 'str',
23
+ 'resource_share_invitation_id': 'str',
24
+ 'sender_account_id': 'str',
25
+ 'status': 'str',
26
+ 'created_at': 'datetime',
27
+ 'updated_at': 'datetime'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'receiver_account_id': 'receiver_account_id',
32
+ 'resource_share_id': 'resource_share_id',
33
+ 'resource_share_name': 'resource_share_name',
34
+ 'resource_share_invitation_id': 'resource_share_invitation_id',
35
+ 'sender_account_id': 'sender_account_id',
36
+ 'status': 'status',
37
+ 'created_at': 'created_at',
38
+ 'updated_at': 'updated_at'
39
+ }
40
+
41
+ def __init__(self, receiver_account_id=None, resource_share_id=None, resource_share_name=None, resource_share_invitation_id=None, sender_account_id=None, status=None, created_at=None, updated_at=None):
42
+ r"""ResourceShareInvitation
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param receiver_account_id: 接收资源共享邀请的账号ID。
47
+ :type receiver_account_id: str
48
+ :param resource_share_id: 资源共享实例的ID。
49
+ :type resource_share_id: str
50
+ :param resource_share_name: 资源共享实例的名称。
51
+ :type resource_share_name: str
52
+ :param resource_share_invitation_id: 资源共享邀请的ID。
53
+ :type resource_share_invitation_id: str
54
+ :param sender_account_id: 发送资源共享邀请的账号ID。
55
+ :type sender_account_id: str
56
+ :param status: 资源共享邀请的当前状态。
57
+ :type status: str
58
+ :param created_at: 创建邀请的时间。
59
+ :type created_at: datetime
60
+ :param updated_at: 最后一次更新邀请的时间。
61
+ :type updated_at: datetime
62
+ """
63
+
64
+
65
+
66
+ self._receiver_account_id = None
67
+ self._resource_share_id = None
68
+ self._resource_share_name = None
69
+ self._resource_share_invitation_id = None
70
+ self._sender_account_id = None
71
+ self._status = None
72
+ self._created_at = None
73
+ self._updated_at = None
74
+ self.discriminator = None
75
+
76
+ if receiver_account_id is not None:
77
+ self.receiver_account_id = receiver_account_id
78
+ if resource_share_id is not None:
79
+ self.resource_share_id = resource_share_id
80
+ if resource_share_name is not None:
81
+ self.resource_share_name = resource_share_name
82
+ if resource_share_invitation_id is not None:
83
+ self.resource_share_invitation_id = resource_share_invitation_id
84
+ if sender_account_id is not None:
85
+ self.sender_account_id = sender_account_id
86
+ if status is not None:
87
+ self.status = status
88
+ if created_at is not None:
89
+ self.created_at = created_at
90
+ if updated_at is not None:
91
+ self.updated_at = updated_at
92
+
93
+ @property
94
+ def receiver_account_id(self):
95
+ r"""Gets the receiver_account_id of this ResourceShareInvitation.
96
+
97
+ 接收资源共享邀请的账号ID。
98
+
99
+ :return: The receiver_account_id of this ResourceShareInvitation.
100
+ :rtype: str
101
+ """
102
+ return self._receiver_account_id
103
+
104
+ @receiver_account_id.setter
105
+ def receiver_account_id(self, receiver_account_id):
106
+ r"""Sets the receiver_account_id of this ResourceShareInvitation.
107
+
108
+ 接收资源共享邀请的账号ID。
109
+
110
+ :param receiver_account_id: The receiver_account_id of this ResourceShareInvitation.
111
+ :type receiver_account_id: str
112
+ """
113
+ self._receiver_account_id = receiver_account_id
114
+
115
+ @property
116
+ def resource_share_id(self):
117
+ r"""Gets the resource_share_id of this ResourceShareInvitation.
118
+
119
+ 资源共享实例的ID。
120
+
121
+ :return: The resource_share_id of this ResourceShareInvitation.
122
+ :rtype: str
123
+ """
124
+ return self._resource_share_id
125
+
126
+ @resource_share_id.setter
127
+ def resource_share_id(self, resource_share_id):
128
+ r"""Sets the resource_share_id of this ResourceShareInvitation.
129
+
130
+ 资源共享实例的ID。
131
+
132
+ :param resource_share_id: The resource_share_id of this ResourceShareInvitation.
133
+ :type resource_share_id: str
134
+ """
135
+ self._resource_share_id = resource_share_id
136
+
137
+ @property
138
+ def resource_share_name(self):
139
+ r"""Gets the resource_share_name of this ResourceShareInvitation.
140
+
141
+ 资源共享实例的名称。
142
+
143
+ :return: The resource_share_name of this ResourceShareInvitation.
144
+ :rtype: str
145
+ """
146
+ return self._resource_share_name
147
+
148
+ @resource_share_name.setter
149
+ def resource_share_name(self, resource_share_name):
150
+ r"""Sets the resource_share_name of this ResourceShareInvitation.
151
+
152
+ 资源共享实例的名称。
153
+
154
+ :param resource_share_name: The resource_share_name of this ResourceShareInvitation.
155
+ :type resource_share_name: str
156
+ """
157
+ self._resource_share_name = resource_share_name
158
+
159
+ @property
160
+ def resource_share_invitation_id(self):
161
+ r"""Gets the resource_share_invitation_id of this ResourceShareInvitation.
162
+
163
+ 资源共享邀请的ID。
164
+
165
+ :return: The resource_share_invitation_id of this ResourceShareInvitation.
166
+ :rtype: str
167
+ """
168
+ return self._resource_share_invitation_id
169
+
170
+ @resource_share_invitation_id.setter
171
+ def resource_share_invitation_id(self, resource_share_invitation_id):
172
+ r"""Sets the resource_share_invitation_id of this ResourceShareInvitation.
173
+
174
+ 资源共享邀请的ID。
175
+
176
+ :param resource_share_invitation_id: The resource_share_invitation_id of this ResourceShareInvitation.
177
+ :type resource_share_invitation_id: str
178
+ """
179
+ self._resource_share_invitation_id = resource_share_invitation_id
180
+
181
+ @property
182
+ def sender_account_id(self):
183
+ r"""Gets the sender_account_id of this ResourceShareInvitation.
184
+
185
+ 发送资源共享邀请的账号ID。
186
+
187
+ :return: The sender_account_id of this ResourceShareInvitation.
188
+ :rtype: str
189
+ """
190
+ return self._sender_account_id
191
+
192
+ @sender_account_id.setter
193
+ def sender_account_id(self, sender_account_id):
194
+ r"""Sets the sender_account_id of this ResourceShareInvitation.
195
+
196
+ 发送资源共享邀请的账号ID。
197
+
198
+ :param sender_account_id: The sender_account_id of this ResourceShareInvitation.
199
+ :type sender_account_id: str
200
+ """
201
+ self._sender_account_id = sender_account_id
202
+
203
+ @property
204
+ def status(self):
205
+ r"""Gets the status of this ResourceShareInvitation.
206
+
207
+ 资源共享邀请的当前状态。
208
+
209
+ :return: The status of this ResourceShareInvitation.
210
+ :rtype: str
211
+ """
212
+ return self._status
213
+
214
+ @status.setter
215
+ def status(self, status):
216
+ r"""Sets the status of this ResourceShareInvitation.
217
+
218
+ 资源共享邀请的当前状态。
219
+
220
+ :param status: The status of this ResourceShareInvitation.
221
+ :type status: str
222
+ """
223
+ self._status = status
224
+
225
+ @property
226
+ def created_at(self):
227
+ r"""Gets the created_at of this ResourceShareInvitation.
228
+
229
+ 创建邀请的时间。
230
+
231
+ :return: The created_at of this ResourceShareInvitation.
232
+ :rtype: datetime
233
+ """
234
+ return self._created_at
235
+
236
+ @created_at.setter
237
+ def created_at(self, created_at):
238
+ r"""Sets the created_at of this ResourceShareInvitation.
239
+
240
+ 创建邀请的时间。
241
+
242
+ :param created_at: The created_at of this ResourceShareInvitation.
243
+ :type created_at: datetime
244
+ """
245
+ self._created_at = created_at
246
+
247
+ @property
248
+ def updated_at(self):
249
+ r"""Gets the updated_at of this ResourceShareInvitation.
250
+
251
+ 最后一次更新邀请的时间。
252
+
253
+ :return: The updated_at of this ResourceShareInvitation.
254
+ :rtype: datetime
255
+ """
256
+ return self._updated_at
257
+
258
+ @updated_at.setter
259
+ def updated_at(self, updated_at):
260
+ r"""Sets the updated_at of this ResourceShareInvitation.
261
+
262
+ 最后一次更新邀请的时间。
263
+
264
+ :param updated_at: The updated_at of this ResourceShareInvitation.
265
+ :type updated_at: datetime
266
+ """
267
+ self._updated_at = updated_at
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, ResourceShareInvitation):
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
@@ -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 ResourceSharesByTagsReqBody:
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
+ 'without_any_tag': 'bool',
21
+ 'tags': 'list[TagFilter]',
22
+ 'matches': 'list[Match]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'without_any_tag': 'without_any_tag',
27
+ 'tags': 'tags',
28
+ 'matches': 'matches'
29
+ }
30
+
31
+ def __init__(self, without_any_tag=None, tags=None, matches=None):
32
+ r"""ResourceSharesByTagsReqBody
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param without_any_tag: 不包含任意一个标签,该字段为true时查询所有不带标签的资源。
37
+ :type without_any_tag: bool
38
+ :param tags: 包含标签,最多包含20个key,每个key下面的value最多20个,结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复。返回包含所有标签的资源列表,key之间是\"与\"的关系,key-value结构中value是\"或\"的关系。无tag过滤条件时返回全量数据。
39
+ :type tags: list[:class:`huaweicloudsdkram.v1.TagFilter`]
40
+ :param matches: 资源共享实例绑定标签列表的匹配字段。
41
+ :type matches: list[:class:`huaweicloudsdkram.v1.Match`]
42
+ """
43
+
44
+
45
+
46
+ self._without_any_tag = None
47
+ self._tags = None
48
+ self._matches = None
49
+ self.discriminator = None
50
+
51
+ if without_any_tag is not None:
52
+ self.without_any_tag = without_any_tag
53
+ if tags is not None:
54
+ self.tags = tags
55
+ if matches is not None:
56
+ self.matches = matches
57
+
58
+ @property
59
+ def without_any_tag(self):
60
+ r"""Gets the without_any_tag of this ResourceSharesByTagsReqBody.
61
+
62
+ 不包含任意一个标签,该字段为true时查询所有不带标签的资源。
63
+
64
+ :return: The without_any_tag of this ResourceSharesByTagsReqBody.
65
+ :rtype: bool
66
+ """
67
+ return self._without_any_tag
68
+
69
+ @without_any_tag.setter
70
+ def without_any_tag(self, without_any_tag):
71
+ r"""Sets the without_any_tag of this ResourceSharesByTagsReqBody.
72
+
73
+ 不包含任意一个标签,该字段为true时查询所有不带标签的资源。
74
+
75
+ :param without_any_tag: The without_any_tag of this ResourceSharesByTagsReqBody.
76
+ :type without_any_tag: bool
77
+ """
78
+ self._without_any_tag = without_any_tag
79
+
80
+ @property
81
+ def tags(self):
82
+ r"""Gets the tags of this ResourceSharesByTagsReqBody.
83
+
84
+ 包含标签,最多包含20个key,每个key下面的value最多20个,结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复。返回包含所有标签的资源列表,key之间是\"与\"的关系,key-value结构中value是\"或\"的关系。无tag过滤条件时返回全量数据。
85
+
86
+ :return: The tags of this ResourceSharesByTagsReqBody.
87
+ :rtype: list[:class:`huaweicloudsdkram.v1.TagFilter`]
88
+ """
89
+ return self._tags
90
+
91
+ @tags.setter
92
+ def tags(self, tags):
93
+ r"""Sets the tags of this ResourceSharesByTagsReqBody.
94
+
95
+ 包含标签,最多包含20个key,每个key下面的value最多20个,结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复。返回包含所有标签的资源列表,key之间是\"与\"的关系,key-value结构中value是\"或\"的关系。无tag过滤条件时返回全量数据。
96
+
97
+ :param tags: The tags of this ResourceSharesByTagsReqBody.
98
+ :type tags: list[:class:`huaweicloudsdkram.v1.TagFilter`]
99
+ """
100
+ self._tags = tags
101
+
102
+ @property
103
+ def matches(self):
104
+ r"""Gets the matches of this ResourceSharesByTagsReqBody.
105
+
106
+ 资源共享实例绑定标签列表的匹配字段。
107
+
108
+ :return: The matches of this ResourceSharesByTagsReqBody.
109
+ :rtype: list[:class:`huaweicloudsdkram.v1.Match`]
110
+ """
111
+ return self._matches
112
+
113
+ @matches.setter
114
+ def matches(self, matches):
115
+ r"""Sets the matches of this ResourceSharesByTagsReqBody.
116
+
117
+ 资源共享实例绑定标签列表的匹配字段。
118
+
119
+ :param matches: The matches of this ResourceSharesByTagsReqBody.
120
+ :type matches: list[:class:`huaweicloudsdkram.v1.Match`]
121
+ """
122
+ self._matches = matches
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, ResourceSharesByTagsReqBody):
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