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,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ResourceTypesSummary:
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
+ 'region_id': 'str',
21
+ 'resource_type': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'region_id': 'region_id',
26
+ 'resource_type': 'resource_type'
27
+ }
28
+
29
+ def __init__(self, region_id=None, resource_type=None):
30
+ r"""ResourceTypesSummary
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param region_id: 资源所在区域名称。
35
+ :type region_id: str
36
+ :param resource_type: 资源类型名称。
37
+ :type resource_type: str
38
+ """
39
+
40
+
41
+
42
+ self._region_id = None
43
+ self._resource_type = None
44
+ self.discriminator = None
45
+
46
+ self.region_id = region_id
47
+ self.resource_type = resource_type
48
+
49
+ @property
50
+ def region_id(self):
51
+ r"""Gets the region_id of this ResourceTypesSummary.
52
+
53
+ 资源所在区域名称。
54
+
55
+ :return: The region_id of this ResourceTypesSummary.
56
+ :rtype: str
57
+ """
58
+ return self._region_id
59
+
60
+ @region_id.setter
61
+ def region_id(self, region_id):
62
+ r"""Sets the region_id of this ResourceTypesSummary.
63
+
64
+ 资源所在区域名称。
65
+
66
+ :param region_id: The region_id of this ResourceTypesSummary.
67
+ :type region_id: str
68
+ """
69
+ self._region_id = region_id
70
+
71
+ @property
72
+ def resource_type(self):
73
+ r"""Gets the resource_type of this ResourceTypesSummary.
74
+
75
+ 资源类型名称。
76
+
77
+ :return: The resource_type of this ResourceTypesSummary.
78
+ :rtype: str
79
+ """
80
+ return self._resource_type
81
+
82
+ @resource_type.setter
83
+ def resource_type(self, resource_type):
84
+ r"""Sets the resource_type of this ResourceTypesSummary.
85
+
86
+ 资源类型名称。
87
+
88
+ :param resource_type: The resource_type of this ResourceTypesSummary.
89
+ :type resource_type: str
90
+ """
91
+ self._resource_type = resource_type
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, ResourceTypesSummary):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,317 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SearchResourceShareAssociationsReqBody:
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
+ 'association_status': 'str',
21
+ 'association_type': 'str',
22
+ 'limit': 'int',
23
+ 'marker': 'str',
24
+ 'principal': 'str',
25
+ 'resource_urn': 'str',
26
+ 'resource_share_ids': 'list[str]',
27
+ 'resource_ids': 'list[str]'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'association_status': 'association_status',
32
+ 'association_type': 'association_type',
33
+ 'limit': 'limit',
34
+ 'marker': 'marker',
35
+ 'principal': 'principal',
36
+ 'resource_urn': 'resource_urn',
37
+ 'resource_share_ids': 'resource_share_ids',
38
+ 'resource_ids': 'resource_ids'
39
+ }
40
+
41
+ def __init__(self, association_status=None, association_type=None, limit=None, marker=None, principal=None, resource_urn=None, resource_share_ids=None, resource_ids=None):
42
+ r"""SearchResourceShareAssociationsReqBody
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param association_status: 指定绑定的状态。
47
+ :type association_status: str
48
+ :param association_type: 指定绑定的类型(principal或resource)。
49
+ :type association_type: str
50
+ :param limit: 分页页面的最大值。
51
+ :type limit: int
52
+ :param marker: 页面标记。
53
+ :type marker: str
54
+ :param principal: 指定绑定的资源使用者。
55
+ :type principal: str
56
+ :param resource_urn: 指定绑定的共享资源URN。
57
+ :type resource_urn: str
58
+ :param resource_share_ids: 指定资源共享实例的ID列表。
59
+ :type resource_share_ids: list[str]
60
+ :param resource_ids: 指定共享资源ID列表。
61
+ :type resource_ids: list[str]
62
+ """
63
+
64
+
65
+
66
+ self._association_status = None
67
+ self._association_type = None
68
+ self._limit = None
69
+ self._marker = None
70
+ self._principal = None
71
+ self._resource_urn = None
72
+ self._resource_share_ids = None
73
+ self._resource_ids = None
74
+ self.discriminator = None
75
+
76
+ if association_status is not None:
77
+ self.association_status = association_status
78
+ self.association_type = association_type
79
+ if limit is not None:
80
+ self.limit = limit
81
+ if marker is not None:
82
+ self.marker = marker
83
+ if principal is not None:
84
+ self.principal = principal
85
+ if resource_urn is not None:
86
+ self.resource_urn = resource_urn
87
+ if resource_share_ids is not None:
88
+ self.resource_share_ids = resource_share_ids
89
+ if resource_ids is not None:
90
+ self.resource_ids = resource_ids
91
+
92
+ @property
93
+ def association_status(self):
94
+ r"""Gets the association_status of this SearchResourceShareAssociationsReqBody.
95
+
96
+ 指定绑定的状态。
97
+
98
+ :return: The association_status of this SearchResourceShareAssociationsReqBody.
99
+ :rtype: str
100
+ """
101
+ return self._association_status
102
+
103
+ @association_status.setter
104
+ def association_status(self, association_status):
105
+ r"""Sets the association_status of this SearchResourceShareAssociationsReqBody.
106
+
107
+ 指定绑定的状态。
108
+
109
+ :param association_status: The association_status of this SearchResourceShareAssociationsReqBody.
110
+ :type association_status: str
111
+ """
112
+ self._association_status = association_status
113
+
114
+ @property
115
+ def association_type(self):
116
+ r"""Gets the association_type of this SearchResourceShareAssociationsReqBody.
117
+
118
+ 指定绑定的类型(principal或resource)。
119
+
120
+ :return: The association_type of this SearchResourceShareAssociationsReqBody.
121
+ :rtype: str
122
+ """
123
+ return self._association_type
124
+
125
+ @association_type.setter
126
+ def association_type(self, association_type):
127
+ r"""Sets the association_type of this SearchResourceShareAssociationsReqBody.
128
+
129
+ 指定绑定的类型(principal或resource)。
130
+
131
+ :param association_type: The association_type of this SearchResourceShareAssociationsReqBody.
132
+ :type association_type: str
133
+ """
134
+ self._association_type = association_type
135
+
136
+ @property
137
+ def limit(self):
138
+ r"""Gets the limit of this SearchResourceShareAssociationsReqBody.
139
+
140
+ 分页页面的最大值。
141
+
142
+ :return: The limit of this SearchResourceShareAssociationsReqBody.
143
+ :rtype: int
144
+ """
145
+ return self._limit
146
+
147
+ @limit.setter
148
+ def limit(self, limit):
149
+ r"""Sets the limit of this SearchResourceShareAssociationsReqBody.
150
+
151
+ 分页页面的最大值。
152
+
153
+ :param limit: The limit of this SearchResourceShareAssociationsReqBody.
154
+ :type limit: int
155
+ """
156
+ self._limit = limit
157
+
158
+ @property
159
+ def marker(self):
160
+ r"""Gets the marker of this SearchResourceShareAssociationsReqBody.
161
+
162
+ 页面标记。
163
+
164
+ :return: The marker of this SearchResourceShareAssociationsReqBody.
165
+ :rtype: str
166
+ """
167
+ return self._marker
168
+
169
+ @marker.setter
170
+ def marker(self, marker):
171
+ r"""Sets the marker of this SearchResourceShareAssociationsReqBody.
172
+
173
+ 页面标记。
174
+
175
+ :param marker: The marker of this SearchResourceShareAssociationsReqBody.
176
+ :type marker: str
177
+ """
178
+ self._marker = marker
179
+
180
+ @property
181
+ def principal(self):
182
+ r"""Gets the principal of this SearchResourceShareAssociationsReqBody.
183
+
184
+ 指定绑定的资源使用者。
185
+
186
+ :return: The principal of this SearchResourceShareAssociationsReqBody.
187
+ :rtype: str
188
+ """
189
+ return self._principal
190
+
191
+ @principal.setter
192
+ def principal(self, principal):
193
+ r"""Sets the principal of this SearchResourceShareAssociationsReqBody.
194
+
195
+ 指定绑定的资源使用者。
196
+
197
+ :param principal: The principal of this SearchResourceShareAssociationsReqBody.
198
+ :type principal: str
199
+ """
200
+ self._principal = principal
201
+
202
+ @property
203
+ def resource_urn(self):
204
+ r"""Gets the resource_urn of this SearchResourceShareAssociationsReqBody.
205
+
206
+ 指定绑定的共享资源URN。
207
+
208
+ :return: The resource_urn of this SearchResourceShareAssociationsReqBody.
209
+ :rtype: str
210
+ """
211
+ return self._resource_urn
212
+
213
+ @resource_urn.setter
214
+ def resource_urn(self, resource_urn):
215
+ r"""Sets the resource_urn of this SearchResourceShareAssociationsReqBody.
216
+
217
+ 指定绑定的共享资源URN。
218
+
219
+ :param resource_urn: The resource_urn of this SearchResourceShareAssociationsReqBody.
220
+ :type resource_urn: str
221
+ """
222
+ self._resource_urn = resource_urn
223
+
224
+ @property
225
+ def resource_share_ids(self):
226
+ r"""Gets the resource_share_ids of this SearchResourceShareAssociationsReqBody.
227
+
228
+ 指定资源共享实例的ID列表。
229
+
230
+ :return: The resource_share_ids of this SearchResourceShareAssociationsReqBody.
231
+ :rtype: list[str]
232
+ """
233
+ return self._resource_share_ids
234
+
235
+ @resource_share_ids.setter
236
+ def resource_share_ids(self, resource_share_ids):
237
+ r"""Sets the resource_share_ids of this SearchResourceShareAssociationsReqBody.
238
+
239
+ 指定资源共享实例的ID列表。
240
+
241
+ :param resource_share_ids: The resource_share_ids of this SearchResourceShareAssociationsReqBody.
242
+ :type resource_share_ids: list[str]
243
+ """
244
+ self._resource_share_ids = resource_share_ids
245
+
246
+ @property
247
+ def resource_ids(self):
248
+ r"""Gets the resource_ids of this SearchResourceShareAssociationsReqBody.
249
+
250
+ 指定共享资源ID列表。
251
+
252
+ :return: The resource_ids of this SearchResourceShareAssociationsReqBody.
253
+ :rtype: list[str]
254
+ """
255
+ return self._resource_ids
256
+
257
+ @resource_ids.setter
258
+ def resource_ids(self, resource_ids):
259
+ r"""Sets the resource_ids of this SearchResourceShareAssociationsReqBody.
260
+
261
+ 指定共享资源ID列表。
262
+
263
+ :param resource_ids: The resource_ids of this SearchResourceShareAssociationsReqBody.
264
+ :type resource_ids: list[str]
265
+ """
266
+ self._resource_ids = resource_ids
267
+
268
+ def to_dict(self):
269
+ """Returns the model properties as a dict"""
270
+ result = {}
271
+
272
+ for attr, _ in six.iteritems(self.openapi_types):
273
+ value = getattr(self, attr)
274
+ if isinstance(value, list):
275
+ result[attr] = list(map(
276
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
277
+ value
278
+ ))
279
+ elif hasattr(value, "to_dict"):
280
+ result[attr] = value.to_dict()
281
+ elif isinstance(value, dict):
282
+ result[attr] = dict(map(
283
+ lambda item: (item[0], item[1].to_dict())
284
+ if hasattr(item[1], "to_dict") else item,
285
+ value.items()
286
+ ))
287
+ else:
288
+ if attr in self.sensitive_list:
289
+ result[attr] = "****"
290
+ else:
291
+ result[attr] = value
292
+
293
+ return result
294
+
295
+ def to_str(self):
296
+ """Returns the string representation of the model"""
297
+ import simplejson as json
298
+ if six.PY2:
299
+ import sys
300
+ reload(sys)
301
+ sys.setdefaultencoding("utf-8")
302
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
303
+
304
+ def __repr__(self):
305
+ """For `print`"""
306
+ return self.to_str()
307
+
308
+ def __eq__(self, other):
309
+ """Returns true if both objects are equal"""
310
+ if not isinstance(other, SearchResourceShareAssociationsReqBody):
311
+ return False
312
+
313
+ return self.__dict__ == other.__dict__
314
+
315
+ def __ne__(self, other):
316
+ """Returns true if both objects are not equal"""
317
+ return not self == other
@@ -0,0 +1,141 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SearchResourceShareAssociationsRequest:
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
+ sensitive_list.append('x_security_token')
19
+
20
+ openapi_types = {
21
+ 'x_security_token': 'str',
22
+ 'body': 'SearchResourceShareAssociationsReqBody'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_security_token': 'X-Security-Token',
27
+ 'body': 'body'
28
+ }
29
+
30
+ def __init__(self, x_security_token=None, body=None):
31
+ r"""SearchResourceShareAssociationsRequest
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
36
+ :type x_security_token: str
37
+ :param body: Body of the SearchResourceShareAssociationsRequest
38
+ :type body: :class:`huaweicloudsdkram.v1.SearchResourceShareAssociationsReqBody`
39
+ """
40
+
41
+
42
+
43
+ self._x_security_token = None
44
+ self._body = None
45
+ self.discriminator = None
46
+
47
+ if x_security_token is not None:
48
+ self.x_security_token = x_security_token
49
+ if body is not None:
50
+ self.body = body
51
+
52
+ @property
53
+ def x_security_token(self):
54
+ r"""Gets the x_security_token of this SearchResourceShareAssociationsRequest.
55
+
56
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
57
+
58
+ :return: The x_security_token of this SearchResourceShareAssociationsRequest.
59
+ :rtype: str
60
+ """
61
+ return self._x_security_token
62
+
63
+ @x_security_token.setter
64
+ def x_security_token(self, x_security_token):
65
+ r"""Sets the x_security_token of this SearchResourceShareAssociationsRequest.
66
+
67
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
68
+
69
+ :param x_security_token: The x_security_token of this SearchResourceShareAssociationsRequest.
70
+ :type x_security_token: str
71
+ """
72
+ self._x_security_token = x_security_token
73
+
74
+ @property
75
+ def body(self):
76
+ r"""Gets the body of this SearchResourceShareAssociationsRequest.
77
+
78
+ :return: The body of this SearchResourceShareAssociationsRequest.
79
+ :rtype: :class:`huaweicloudsdkram.v1.SearchResourceShareAssociationsReqBody`
80
+ """
81
+ return self._body
82
+
83
+ @body.setter
84
+ def body(self, body):
85
+ r"""Sets the body of this SearchResourceShareAssociationsRequest.
86
+
87
+ :param body: The body of this SearchResourceShareAssociationsRequest.
88
+ :type body: :class:`huaweicloudsdkram.v1.SearchResourceShareAssociationsReqBody`
89
+ """
90
+ self._body = body
91
+
92
+ def to_dict(self):
93
+ """Returns the model properties as a dict"""
94
+ result = {}
95
+
96
+ for attr, _ in six.iteritems(self.openapi_types):
97
+ value = getattr(self, attr)
98
+ if isinstance(value, list):
99
+ result[attr] = list(map(
100
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101
+ value
102
+ ))
103
+ elif hasattr(value, "to_dict"):
104
+ result[attr] = value.to_dict()
105
+ elif isinstance(value, dict):
106
+ result[attr] = dict(map(
107
+ lambda item: (item[0], item[1].to_dict())
108
+ if hasattr(item[1], "to_dict") else item,
109
+ value.items()
110
+ ))
111
+ else:
112
+ if attr in self.sensitive_list:
113
+ result[attr] = "****"
114
+ else:
115
+ result[attr] = value
116
+
117
+ return result
118
+
119
+ def to_str(self):
120
+ """Returns the string representation of the model"""
121
+ import simplejson as json
122
+ if six.PY2:
123
+ import sys
124
+ reload(sys)
125
+ sys.setdefaultencoding("utf-8")
126
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
127
+
128
+ def __repr__(self):
129
+ """For `print`"""
130
+ return self.to_str()
131
+
132
+ def __eq__(self, other):
133
+ """Returns true if both objects are equal"""
134
+ if not isinstance(other, SearchResourceShareAssociationsRequest):
135
+ return False
136
+
137
+ return self.__dict__ == other.__dict__
138
+
139
+ def __ne__(self, other):
140
+ """Returns true if both objects are not equal"""
141
+ return not self == other