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,340 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ResourceShare:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'id': 'str',
21
+ 'name': 'str',
22
+ 'description': 'str',
23
+ 'allow_external_principals': 'bool',
24
+ 'owning_account_id': 'str',
25
+ 'status': 'str',
26
+ 'tags': 'list[Tag]',
27
+ 'created_at': 'datetime',
28
+ 'updated_at': 'datetime'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'id': 'id',
33
+ 'name': 'name',
34
+ 'description': 'description',
35
+ 'allow_external_principals': 'allow_external_principals',
36
+ 'owning_account_id': 'owning_account_id',
37
+ 'status': 'status',
38
+ 'tags': 'tags',
39
+ 'created_at': 'created_at',
40
+ 'updated_at': 'updated_at'
41
+ }
42
+
43
+ def __init__(self, id=None, name=None, description=None, allow_external_principals=None, owning_account_id=None, status=None, tags=None, created_at=None, updated_at=None):
44
+ r"""ResourceShare
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param id: 资源共享实例的ID。
49
+ :type id: str
50
+ :param name: 资源共享实例的名称。
51
+ :type name: str
52
+ :param description: 资源共享实例的描述。
53
+ :type description: str
54
+ :param allow_external_principals: 资源共享实例是否支持共享给组织外账号。
55
+ :type allow_external_principals: bool
56
+ :param owning_account_id: 资源共享实例的所有者ID。
57
+ :type owning_account_id: str
58
+ :param status: 资源共享实例的状态。
59
+ :type status: str
60
+ :param tags: 资源共享实例的标签列表。
61
+ :type tags: list[:class:`huaweicloudsdkram.v1.Tag`]
62
+ :param created_at: 创建资源共享实例的时间。
63
+ :type created_at: datetime
64
+ :param updated_at: 最后一次更新资源共享实例的时间。
65
+ :type updated_at: datetime
66
+ """
67
+
68
+
69
+
70
+ self._id = None
71
+ self._name = None
72
+ self._description = None
73
+ self._allow_external_principals = None
74
+ self._owning_account_id = None
75
+ self._status = None
76
+ self._tags = None
77
+ self._created_at = None
78
+ self._updated_at = None
79
+ self.discriminator = None
80
+
81
+ self.id = id
82
+ self.name = name
83
+ self.description = description
84
+ if allow_external_principals is not None:
85
+ self.allow_external_principals = allow_external_principals
86
+ self.owning_account_id = owning_account_id
87
+ self.status = status
88
+ if tags is not None:
89
+ self.tags = tags
90
+ self.created_at = created_at
91
+ self.updated_at = updated_at
92
+
93
+ @property
94
+ def id(self):
95
+ r"""Gets the id of this ResourceShare.
96
+
97
+ 资源共享实例的ID。
98
+
99
+ :return: The id of this ResourceShare.
100
+ :rtype: str
101
+ """
102
+ return self._id
103
+
104
+ @id.setter
105
+ def id(self, id):
106
+ r"""Sets the id of this ResourceShare.
107
+
108
+ 资源共享实例的ID。
109
+
110
+ :param id: The id of this ResourceShare.
111
+ :type id: str
112
+ """
113
+ self._id = id
114
+
115
+ @property
116
+ def name(self):
117
+ r"""Gets the name of this ResourceShare.
118
+
119
+ 资源共享实例的名称。
120
+
121
+ :return: The name of this ResourceShare.
122
+ :rtype: str
123
+ """
124
+ return self._name
125
+
126
+ @name.setter
127
+ def name(self, name):
128
+ r"""Sets the name of this ResourceShare.
129
+
130
+ 资源共享实例的名称。
131
+
132
+ :param name: The name of this ResourceShare.
133
+ :type name: str
134
+ """
135
+ self._name = name
136
+
137
+ @property
138
+ def description(self):
139
+ r"""Gets the description of this ResourceShare.
140
+
141
+ 资源共享实例的描述。
142
+
143
+ :return: The description of this ResourceShare.
144
+ :rtype: str
145
+ """
146
+ return self._description
147
+
148
+ @description.setter
149
+ def description(self, description):
150
+ r"""Sets the description of this ResourceShare.
151
+
152
+ 资源共享实例的描述。
153
+
154
+ :param description: The description of this ResourceShare.
155
+ :type description: str
156
+ """
157
+ self._description = description
158
+
159
+ @property
160
+ def allow_external_principals(self):
161
+ r"""Gets the allow_external_principals of this ResourceShare.
162
+
163
+ 资源共享实例是否支持共享给组织外账号。
164
+
165
+ :return: The allow_external_principals of this ResourceShare.
166
+ :rtype: bool
167
+ """
168
+ return self._allow_external_principals
169
+
170
+ @allow_external_principals.setter
171
+ def allow_external_principals(self, allow_external_principals):
172
+ r"""Sets the allow_external_principals of this ResourceShare.
173
+
174
+ 资源共享实例是否支持共享给组织外账号。
175
+
176
+ :param allow_external_principals: The allow_external_principals of this ResourceShare.
177
+ :type allow_external_principals: bool
178
+ """
179
+ self._allow_external_principals = allow_external_principals
180
+
181
+ @property
182
+ def owning_account_id(self):
183
+ r"""Gets the owning_account_id of this ResourceShare.
184
+
185
+ 资源共享实例的所有者ID。
186
+
187
+ :return: The owning_account_id of this ResourceShare.
188
+ :rtype: str
189
+ """
190
+ return self._owning_account_id
191
+
192
+ @owning_account_id.setter
193
+ def owning_account_id(self, owning_account_id):
194
+ r"""Sets the owning_account_id of this ResourceShare.
195
+
196
+ 资源共享实例的所有者ID。
197
+
198
+ :param owning_account_id: The owning_account_id of this ResourceShare.
199
+ :type owning_account_id: str
200
+ """
201
+ self._owning_account_id = owning_account_id
202
+
203
+ @property
204
+ def status(self):
205
+ r"""Gets the status of this ResourceShare.
206
+
207
+ 资源共享实例的状态。
208
+
209
+ :return: The status of this ResourceShare.
210
+ :rtype: str
211
+ """
212
+ return self._status
213
+
214
+ @status.setter
215
+ def status(self, status):
216
+ r"""Sets the status of this ResourceShare.
217
+
218
+ 资源共享实例的状态。
219
+
220
+ :param status: The status of this ResourceShare.
221
+ :type status: str
222
+ """
223
+ self._status = status
224
+
225
+ @property
226
+ def tags(self):
227
+ r"""Gets the tags of this ResourceShare.
228
+
229
+ 资源共享实例的标签列表。
230
+
231
+ :return: The tags of this ResourceShare.
232
+ :rtype: list[:class:`huaweicloudsdkram.v1.Tag`]
233
+ """
234
+ return self._tags
235
+
236
+ @tags.setter
237
+ def tags(self, tags):
238
+ r"""Sets the tags of this ResourceShare.
239
+
240
+ 资源共享实例的标签列表。
241
+
242
+ :param tags: The tags of this ResourceShare.
243
+ :type tags: list[:class:`huaweicloudsdkram.v1.Tag`]
244
+ """
245
+ self._tags = tags
246
+
247
+ @property
248
+ def created_at(self):
249
+ r"""Gets the created_at of this ResourceShare.
250
+
251
+ 创建资源共享实例的时间。
252
+
253
+ :return: The created_at of this ResourceShare.
254
+ :rtype: datetime
255
+ """
256
+ return self._created_at
257
+
258
+ @created_at.setter
259
+ def created_at(self, created_at):
260
+ r"""Sets the created_at of this ResourceShare.
261
+
262
+ 创建资源共享实例的时间。
263
+
264
+ :param created_at: The created_at of this ResourceShare.
265
+ :type created_at: datetime
266
+ """
267
+ self._created_at = created_at
268
+
269
+ @property
270
+ def updated_at(self):
271
+ r"""Gets the updated_at of this ResourceShare.
272
+
273
+ 最后一次更新资源共享实例的时间。
274
+
275
+ :return: The updated_at of this ResourceShare.
276
+ :rtype: datetime
277
+ """
278
+ return self._updated_at
279
+
280
+ @updated_at.setter
281
+ def updated_at(self, updated_at):
282
+ r"""Sets the updated_at of this ResourceShare.
283
+
284
+ 最后一次更新资源共享实例的时间。
285
+
286
+ :param updated_at: The updated_at of this ResourceShare.
287
+ :type updated_at: datetime
288
+ """
289
+ self._updated_at = updated_at
290
+
291
+ def to_dict(self):
292
+ """Returns the model properties as a dict"""
293
+ result = {}
294
+
295
+ for attr, _ in six.iteritems(self.openapi_types):
296
+ value = getattr(self, attr)
297
+ if isinstance(value, list):
298
+ result[attr] = list(map(
299
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
300
+ value
301
+ ))
302
+ elif hasattr(value, "to_dict"):
303
+ result[attr] = value.to_dict()
304
+ elif isinstance(value, dict):
305
+ result[attr] = dict(map(
306
+ lambda item: (item[0], item[1].to_dict())
307
+ if hasattr(item[1], "to_dict") else item,
308
+ value.items()
309
+ ))
310
+ else:
311
+ if attr in self.sensitive_list:
312
+ result[attr] = "****"
313
+ else:
314
+ result[attr] = value
315
+
316
+ return result
317
+
318
+ def to_str(self):
319
+ """Returns the string representation of the model"""
320
+ import simplejson as json
321
+ if six.PY2:
322
+ import sys
323
+ reload(sys)
324
+ sys.setdefaultencoding("utf-8")
325
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
326
+
327
+ def __repr__(self):
328
+ """For `print`"""
329
+ return self.to_str()
330
+
331
+ def __eq__(self, other):
332
+ """Returns true if both objects are equal"""
333
+ if not isinstance(other, ResourceShare):
334
+ return False
335
+
336
+ return self.__dict__ == other.__dict__
337
+
338
+ def __ne__(self, other):
339
+ """Returns true if both objects are not equal"""
340
+ return not self == other
@@ -0,0 +1,340 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ResourceShareAssociation:
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
+ 'associated_entity': 'str',
21
+ 'association_type': 'str',
22
+ 'created_at': 'datetime',
23
+ 'updated_at': 'datetime',
24
+ 'external': 'bool',
25
+ 'resource_share_id': 'str',
26
+ 'resource_share_name': 'str',
27
+ 'status': 'str',
28
+ 'status_message': 'str'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'associated_entity': 'associated_entity',
33
+ 'association_type': 'association_type',
34
+ 'created_at': 'created_at',
35
+ 'updated_at': 'updated_at',
36
+ 'external': 'external',
37
+ 'resource_share_id': 'resource_share_id',
38
+ 'resource_share_name': 'resource_share_name',
39
+ 'status': 'status',
40
+ 'status_message': 'status_message'
41
+ }
42
+
43
+ def __init__(self, associated_entity=None, association_type=None, created_at=None, updated_at=None, external=None, resource_share_id=None, resource_share_name=None, status=None, status_message=None):
44
+ r"""ResourceShareAssociation
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param associated_entity: 绑定的实体。这可以是共享资源的URN、账号ID、组织根的URN或OU的URN之一。
49
+ :type associated_entity: str
50
+ :param association_type: 绑定中包含的实体类型。
51
+ :type association_type: str
52
+ :param created_at: 绑定被创建的时间。
53
+ :type created_at: datetime
54
+ :param updated_at: 最后一次更新绑定的时间。
55
+ :type updated_at: datetime
56
+ :param external: 标识资源使用者是否和共享的拥有者属于同一个组织
57
+ :type external: bool
58
+ :param resource_share_id: 资源共享实例的ID。
59
+ :type resource_share_id: str
60
+ :param resource_share_name: 资源共享实例的名称。
61
+ :type resource_share_name: str
62
+ :param status: 绑定的当前状态。
63
+ :type status: str
64
+ :param status_message: 绑定的当前状态的描述。
65
+ :type status_message: str
66
+ """
67
+
68
+
69
+
70
+ self._associated_entity = None
71
+ self._association_type = None
72
+ self._created_at = None
73
+ self._updated_at = None
74
+ self._external = None
75
+ self._resource_share_id = None
76
+ self._resource_share_name = None
77
+ self._status = None
78
+ self._status_message = None
79
+ self.discriminator = None
80
+
81
+ self.associated_entity = associated_entity
82
+ self.association_type = association_type
83
+ self.created_at = created_at
84
+ self.updated_at = updated_at
85
+ if external is not None:
86
+ self.external = external
87
+ self.resource_share_id = resource_share_id
88
+ self.resource_share_name = resource_share_name
89
+ self.status = status
90
+ if status_message is not None:
91
+ self.status_message = status_message
92
+
93
+ @property
94
+ def associated_entity(self):
95
+ r"""Gets the associated_entity of this ResourceShareAssociation.
96
+
97
+ 绑定的实体。这可以是共享资源的URN、账号ID、组织根的URN或OU的URN之一。
98
+
99
+ :return: The associated_entity of this ResourceShareAssociation.
100
+ :rtype: str
101
+ """
102
+ return self._associated_entity
103
+
104
+ @associated_entity.setter
105
+ def associated_entity(self, associated_entity):
106
+ r"""Sets the associated_entity of this ResourceShareAssociation.
107
+
108
+ 绑定的实体。这可以是共享资源的URN、账号ID、组织根的URN或OU的URN之一。
109
+
110
+ :param associated_entity: The associated_entity of this ResourceShareAssociation.
111
+ :type associated_entity: str
112
+ """
113
+ self._associated_entity = associated_entity
114
+
115
+ @property
116
+ def association_type(self):
117
+ r"""Gets the association_type of this ResourceShareAssociation.
118
+
119
+ 绑定中包含的实体类型。
120
+
121
+ :return: The association_type of this ResourceShareAssociation.
122
+ :rtype: str
123
+ """
124
+ return self._association_type
125
+
126
+ @association_type.setter
127
+ def association_type(self, association_type):
128
+ r"""Sets the association_type of this ResourceShareAssociation.
129
+
130
+ 绑定中包含的实体类型。
131
+
132
+ :param association_type: The association_type of this ResourceShareAssociation.
133
+ :type association_type: str
134
+ """
135
+ self._association_type = association_type
136
+
137
+ @property
138
+ def created_at(self):
139
+ r"""Gets the created_at of this ResourceShareAssociation.
140
+
141
+ 绑定被创建的时间。
142
+
143
+ :return: The created_at of this ResourceShareAssociation.
144
+ :rtype: datetime
145
+ """
146
+ return self._created_at
147
+
148
+ @created_at.setter
149
+ def created_at(self, created_at):
150
+ r"""Sets the created_at of this ResourceShareAssociation.
151
+
152
+ 绑定被创建的时间。
153
+
154
+ :param created_at: The created_at of this ResourceShareAssociation.
155
+ :type created_at: datetime
156
+ """
157
+ self._created_at = created_at
158
+
159
+ @property
160
+ def updated_at(self):
161
+ r"""Gets the updated_at of this ResourceShareAssociation.
162
+
163
+ 最后一次更新绑定的时间。
164
+
165
+ :return: The updated_at of this ResourceShareAssociation.
166
+ :rtype: datetime
167
+ """
168
+ return self._updated_at
169
+
170
+ @updated_at.setter
171
+ def updated_at(self, updated_at):
172
+ r"""Sets the updated_at of this ResourceShareAssociation.
173
+
174
+ 最后一次更新绑定的时间。
175
+
176
+ :param updated_at: The updated_at of this ResourceShareAssociation.
177
+ :type updated_at: datetime
178
+ """
179
+ self._updated_at = updated_at
180
+
181
+ @property
182
+ def external(self):
183
+ r"""Gets the external of this ResourceShareAssociation.
184
+
185
+ 标识资源使用者是否和共享的拥有者属于同一个组织
186
+
187
+ :return: The external of this ResourceShareAssociation.
188
+ :rtype: bool
189
+ """
190
+ return self._external
191
+
192
+ @external.setter
193
+ def external(self, external):
194
+ r"""Sets the external of this ResourceShareAssociation.
195
+
196
+ 标识资源使用者是否和共享的拥有者属于同一个组织
197
+
198
+ :param external: The external of this ResourceShareAssociation.
199
+ :type external: bool
200
+ """
201
+ self._external = external
202
+
203
+ @property
204
+ def resource_share_id(self):
205
+ r"""Gets the resource_share_id of this ResourceShareAssociation.
206
+
207
+ 资源共享实例的ID。
208
+
209
+ :return: The resource_share_id of this ResourceShareAssociation.
210
+ :rtype: str
211
+ """
212
+ return self._resource_share_id
213
+
214
+ @resource_share_id.setter
215
+ def resource_share_id(self, resource_share_id):
216
+ r"""Sets the resource_share_id of this ResourceShareAssociation.
217
+
218
+ 资源共享实例的ID。
219
+
220
+ :param resource_share_id: The resource_share_id of this ResourceShareAssociation.
221
+ :type resource_share_id: str
222
+ """
223
+ self._resource_share_id = resource_share_id
224
+
225
+ @property
226
+ def resource_share_name(self):
227
+ r"""Gets the resource_share_name of this ResourceShareAssociation.
228
+
229
+ 资源共享实例的名称。
230
+
231
+ :return: The resource_share_name of this ResourceShareAssociation.
232
+ :rtype: str
233
+ """
234
+ return self._resource_share_name
235
+
236
+ @resource_share_name.setter
237
+ def resource_share_name(self, resource_share_name):
238
+ r"""Sets the resource_share_name of this ResourceShareAssociation.
239
+
240
+ 资源共享实例的名称。
241
+
242
+ :param resource_share_name: The resource_share_name of this ResourceShareAssociation.
243
+ :type resource_share_name: str
244
+ """
245
+ self._resource_share_name = resource_share_name
246
+
247
+ @property
248
+ def status(self):
249
+ r"""Gets the status of this ResourceShareAssociation.
250
+
251
+ 绑定的当前状态。
252
+
253
+ :return: The status of this ResourceShareAssociation.
254
+ :rtype: str
255
+ """
256
+ return self._status
257
+
258
+ @status.setter
259
+ def status(self, status):
260
+ r"""Sets the status of this ResourceShareAssociation.
261
+
262
+ 绑定的当前状态。
263
+
264
+ :param status: The status of this ResourceShareAssociation.
265
+ :type status: str
266
+ """
267
+ self._status = status
268
+
269
+ @property
270
+ def status_message(self):
271
+ r"""Gets the status_message of this ResourceShareAssociation.
272
+
273
+ 绑定的当前状态的描述。
274
+
275
+ :return: The status_message of this ResourceShareAssociation.
276
+ :rtype: str
277
+ """
278
+ return self._status_message
279
+
280
+ @status_message.setter
281
+ def status_message(self, status_message):
282
+ r"""Sets the status_message of this ResourceShareAssociation.
283
+
284
+ 绑定的当前状态的描述。
285
+
286
+ :param status_message: The status_message of this ResourceShareAssociation.
287
+ :type status_message: str
288
+ """
289
+ self._status_message = status_message
290
+
291
+ def to_dict(self):
292
+ """Returns the model properties as a dict"""
293
+ result = {}
294
+
295
+ for attr, _ in six.iteritems(self.openapi_types):
296
+ value = getattr(self, attr)
297
+ if isinstance(value, list):
298
+ result[attr] = list(map(
299
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
300
+ value
301
+ ))
302
+ elif hasattr(value, "to_dict"):
303
+ result[attr] = value.to_dict()
304
+ elif isinstance(value, dict):
305
+ result[attr] = dict(map(
306
+ lambda item: (item[0], item[1].to_dict())
307
+ if hasattr(item[1], "to_dict") else item,
308
+ value.items()
309
+ ))
310
+ else:
311
+ if attr in self.sensitive_list:
312
+ result[attr] = "****"
313
+ else:
314
+ result[attr] = value
315
+
316
+ return result
317
+
318
+ def to_str(self):
319
+ """Returns the string representation of the model"""
320
+ import simplejson as json
321
+ if six.PY2:
322
+ import sys
323
+ reload(sys)
324
+ sys.setdefaultencoding("utf-8")
325
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
326
+
327
+ def __repr__(self):
328
+ """For `print`"""
329
+ return self.to_str()
330
+
331
+ def __eq__(self, other):
332
+ """Returns true if both objects are equal"""
333
+ if not isinstance(other, ResourceShareAssociation):
334
+ return False
335
+
336
+ return self.__dict__ == other.__dict__
337
+
338
+ def __ne__(self, other):
339
+ """Returns true if both objects are not equal"""
340
+ return not self == other