huaweicloudsdkram 3.1.51__py2.py3-none-any.whl → 3.1.53__py2.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.
- huaweicloudsdkram/v1/__init__.py +0 -8
- huaweicloudsdkram/v1/model/__init__.py +0 -8
- huaweicloudsdkram/v1/ram_async_client.py +0 -114
- huaweicloudsdkram/v1/ram_client.py +0 -112
- {huaweicloudsdkram-3.1.51.dist-info → huaweicloudsdkram-3.1.53.dist-info}/METADATA +2 -2
- {huaweicloudsdkram-3.1.51.dist-info → huaweicloudsdkram-3.1.53.dist-info}/RECORD +9 -17
- {huaweicloudsdkram-3.1.51.dist-info → huaweicloudsdkram-3.1.53.dist-info}/WHEEL +1 -1
- huaweicloudsdkram/v1/model/distinct_shared_principal.py +0 -144
- huaweicloudsdkram/v1/model/distinct_shared_resource.py +0 -173
- huaweicloudsdkram/v1/model/search_distinct_principals_request.py +0 -111
- huaweicloudsdkram/v1/model/search_distinct_principals_response.py +0 -141
- huaweicloudsdkram/v1/model/search_distinct_shared_principals_req_body.py +0 -230
- huaweicloudsdkram/v1/model/search_distinct_shared_resources_req_body.py +0 -317
- huaweicloudsdkram/v1/model/search_distinct_shared_resources_request.py +0 -111
- huaweicloudsdkram/v1/model/search_distinct_shared_resources_response.py +0 -141
- {huaweicloudsdkram-3.1.51.dist-info → huaweicloudsdkram-3.1.53.dist-info}/LICENSE +0 -0
- {huaweicloudsdkram-3.1.51.dist-info → huaweicloudsdkram-3.1.53.dist-info}/top_level.txt +0 -0
@@ -1,317 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
import six
|
4
|
-
|
5
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
-
|
7
|
-
|
8
|
-
class SearchDistinctSharedResourcesReqBody:
|
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
|
-
'limit': 'int',
|
21
|
-
'marker': 'str',
|
22
|
-
'resource_ids': 'list[str]',
|
23
|
-
'principal': 'str',
|
24
|
-
'resource_region': 'str',
|
25
|
-
'resource_urns': 'list[str]',
|
26
|
-
'status': 'str',
|
27
|
-
'resource_owner': 'str'
|
28
|
-
}
|
29
|
-
|
30
|
-
attribute_map = {
|
31
|
-
'limit': 'limit',
|
32
|
-
'marker': 'marker',
|
33
|
-
'resource_ids': 'resource_ids',
|
34
|
-
'principal': 'principal',
|
35
|
-
'resource_region': 'resource_region',
|
36
|
-
'resource_urns': 'resource_urns',
|
37
|
-
'status': 'status',
|
38
|
-
'resource_owner': 'resource_owner'
|
39
|
-
}
|
40
|
-
|
41
|
-
def __init__(self, limit=None, marker=None, resource_ids=None, principal=None, resource_region=None, resource_urns=None, status=None, resource_owner=None):
|
42
|
-
"""SearchDistinctSharedResourcesReqBody
|
43
|
-
|
44
|
-
The model defined in huaweicloud sdk
|
45
|
-
|
46
|
-
:param limit: 分页页面的最大值。
|
47
|
-
:type limit: int
|
48
|
-
:param marker: 页面标记。
|
49
|
-
:type marker: str
|
50
|
-
:param resource_ids: 指定资源ID。
|
51
|
-
:type resource_ids: list[str]
|
52
|
-
:param principal: 指定资源使用者。
|
53
|
-
:type principal: str
|
54
|
-
:param resource_region: 资源所在的区域。
|
55
|
-
:type resource_region: str
|
56
|
-
:param resource_urns: 指定资源URN的列表。
|
57
|
-
:type resource_urns: list[str]
|
58
|
-
:param status: 资源关联的状态。
|
59
|
-
:type status: str
|
60
|
-
:param resource_owner: 指定资源共享实例的所有者(self或者other-accounts)。
|
61
|
-
:type resource_owner: str
|
62
|
-
"""
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
self._limit = None
|
67
|
-
self._marker = None
|
68
|
-
self._resource_ids = None
|
69
|
-
self._principal = None
|
70
|
-
self._resource_region = None
|
71
|
-
self._resource_urns = None
|
72
|
-
self._status = None
|
73
|
-
self._resource_owner = None
|
74
|
-
self.discriminator = None
|
75
|
-
|
76
|
-
if limit is not None:
|
77
|
-
self.limit = limit
|
78
|
-
if marker is not None:
|
79
|
-
self.marker = marker
|
80
|
-
if resource_ids is not None:
|
81
|
-
self.resource_ids = resource_ids
|
82
|
-
if principal is not None:
|
83
|
-
self.principal = principal
|
84
|
-
if resource_region is not None:
|
85
|
-
self.resource_region = resource_region
|
86
|
-
if resource_urns is not None:
|
87
|
-
self.resource_urns = resource_urns
|
88
|
-
if status is not None:
|
89
|
-
self.status = status
|
90
|
-
self.resource_owner = resource_owner
|
91
|
-
|
92
|
-
@property
|
93
|
-
def limit(self):
|
94
|
-
"""Gets the limit of this SearchDistinctSharedResourcesReqBody.
|
95
|
-
|
96
|
-
分页页面的最大值。
|
97
|
-
|
98
|
-
:return: The limit of this SearchDistinctSharedResourcesReqBody.
|
99
|
-
:rtype: int
|
100
|
-
"""
|
101
|
-
return self._limit
|
102
|
-
|
103
|
-
@limit.setter
|
104
|
-
def limit(self, limit):
|
105
|
-
"""Sets the limit of this SearchDistinctSharedResourcesReqBody.
|
106
|
-
|
107
|
-
分页页面的最大值。
|
108
|
-
|
109
|
-
:param limit: The limit of this SearchDistinctSharedResourcesReqBody.
|
110
|
-
:type limit: int
|
111
|
-
"""
|
112
|
-
self._limit = limit
|
113
|
-
|
114
|
-
@property
|
115
|
-
def marker(self):
|
116
|
-
"""Gets the marker of this SearchDistinctSharedResourcesReqBody.
|
117
|
-
|
118
|
-
页面标记。
|
119
|
-
|
120
|
-
:return: The marker of this SearchDistinctSharedResourcesReqBody.
|
121
|
-
:rtype: str
|
122
|
-
"""
|
123
|
-
return self._marker
|
124
|
-
|
125
|
-
@marker.setter
|
126
|
-
def marker(self, marker):
|
127
|
-
"""Sets the marker of this SearchDistinctSharedResourcesReqBody.
|
128
|
-
|
129
|
-
页面标记。
|
130
|
-
|
131
|
-
:param marker: The marker of this SearchDistinctSharedResourcesReqBody.
|
132
|
-
:type marker: str
|
133
|
-
"""
|
134
|
-
self._marker = marker
|
135
|
-
|
136
|
-
@property
|
137
|
-
def resource_ids(self):
|
138
|
-
"""Gets the resource_ids of this SearchDistinctSharedResourcesReqBody.
|
139
|
-
|
140
|
-
指定资源ID。
|
141
|
-
|
142
|
-
:return: The resource_ids of this SearchDistinctSharedResourcesReqBody.
|
143
|
-
:rtype: list[str]
|
144
|
-
"""
|
145
|
-
return self._resource_ids
|
146
|
-
|
147
|
-
@resource_ids.setter
|
148
|
-
def resource_ids(self, resource_ids):
|
149
|
-
"""Sets the resource_ids of this SearchDistinctSharedResourcesReqBody.
|
150
|
-
|
151
|
-
指定资源ID。
|
152
|
-
|
153
|
-
:param resource_ids: The resource_ids of this SearchDistinctSharedResourcesReqBody.
|
154
|
-
:type resource_ids: list[str]
|
155
|
-
"""
|
156
|
-
self._resource_ids = resource_ids
|
157
|
-
|
158
|
-
@property
|
159
|
-
def principal(self):
|
160
|
-
"""Gets the principal of this SearchDistinctSharedResourcesReqBody.
|
161
|
-
|
162
|
-
指定资源使用者。
|
163
|
-
|
164
|
-
:return: The principal of this SearchDistinctSharedResourcesReqBody.
|
165
|
-
:rtype: str
|
166
|
-
"""
|
167
|
-
return self._principal
|
168
|
-
|
169
|
-
@principal.setter
|
170
|
-
def principal(self, principal):
|
171
|
-
"""Sets the principal of this SearchDistinctSharedResourcesReqBody.
|
172
|
-
|
173
|
-
指定资源使用者。
|
174
|
-
|
175
|
-
:param principal: The principal of this SearchDistinctSharedResourcesReqBody.
|
176
|
-
:type principal: str
|
177
|
-
"""
|
178
|
-
self._principal = principal
|
179
|
-
|
180
|
-
@property
|
181
|
-
def resource_region(self):
|
182
|
-
"""Gets the resource_region of this SearchDistinctSharedResourcesReqBody.
|
183
|
-
|
184
|
-
资源所在的区域。
|
185
|
-
|
186
|
-
:return: The resource_region of this SearchDistinctSharedResourcesReqBody.
|
187
|
-
:rtype: str
|
188
|
-
"""
|
189
|
-
return self._resource_region
|
190
|
-
|
191
|
-
@resource_region.setter
|
192
|
-
def resource_region(self, resource_region):
|
193
|
-
"""Sets the resource_region of this SearchDistinctSharedResourcesReqBody.
|
194
|
-
|
195
|
-
资源所在的区域。
|
196
|
-
|
197
|
-
:param resource_region: The resource_region of this SearchDistinctSharedResourcesReqBody.
|
198
|
-
:type resource_region: str
|
199
|
-
"""
|
200
|
-
self._resource_region = resource_region
|
201
|
-
|
202
|
-
@property
|
203
|
-
def resource_urns(self):
|
204
|
-
"""Gets the resource_urns of this SearchDistinctSharedResourcesReqBody.
|
205
|
-
|
206
|
-
指定资源URN的列表。
|
207
|
-
|
208
|
-
:return: The resource_urns of this SearchDistinctSharedResourcesReqBody.
|
209
|
-
:rtype: list[str]
|
210
|
-
"""
|
211
|
-
return self._resource_urns
|
212
|
-
|
213
|
-
@resource_urns.setter
|
214
|
-
def resource_urns(self, resource_urns):
|
215
|
-
"""Sets the resource_urns of this SearchDistinctSharedResourcesReqBody.
|
216
|
-
|
217
|
-
指定资源URN的列表。
|
218
|
-
|
219
|
-
:param resource_urns: The resource_urns of this SearchDistinctSharedResourcesReqBody.
|
220
|
-
:type resource_urns: list[str]
|
221
|
-
"""
|
222
|
-
self._resource_urns = resource_urns
|
223
|
-
|
224
|
-
@property
|
225
|
-
def status(self):
|
226
|
-
"""Gets the status of this SearchDistinctSharedResourcesReqBody.
|
227
|
-
|
228
|
-
资源关联的状态。
|
229
|
-
|
230
|
-
:return: The status of this SearchDistinctSharedResourcesReqBody.
|
231
|
-
:rtype: str
|
232
|
-
"""
|
233
|
-
return self._status
|
234
|
-
|
235
|
-
@status.setter
|
236
|
-
def status(self, status):
|
237
|
-
"""Sets the status of this SearchDistinctSharedResourcesReqBody.
|
238
|
-
|
239
|
-
资源关联的状态。
|
240
|
-
|
241
|
-
:param status: The status of this SearchDistinctSharedResourcesReqBody.
|
242
|
-
:type status: str
|
243
|
-
"""
|
244
|
-
self._status = status
|
245
|
-
|
246
|
-
@property
|
247
|
-
def resource_owner(self):
|
248
|
-
"""Gets the resource_owner of this SearchDistinctSharedResourcesReqBody.
|
249
|
-
|
250
|
-
指定资源共享实例的所有者(self或者other-accounts)。
|
251
|
-
|
252
|
-
:return: The resource_owner of this SearchDistinctSharedResourcesReqBody.
|
253
|
-
:rtype: str
|
254
|
-
"""
|
255
|
-
return self._resource_owner
|
256
|
-
|
257
|
-
@resource_owner.setter
|
258
|
-
def resource_owner(self, resource_owner):
|
259
|
-
"""Sets the resource_owner of this SearchDistinctSharedResourcesReqBody.
|
260
|
-
|
261
|
-
指定资源共享实例的所有者(self或者other-accounts)。
|
262
|
-
|
263
|
-
:param resource_owner: The resource_owner of this SearchDistinctSharedResourcesReqBody.
|
264
|
-
:type resource_owner: str
|
265
|
-
"""
|
266
|
-
self._resource_owner = resource_owner
|
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, SearchDistinctSharedResourcesReqBody):
|
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
|
@@ -1,111 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
import six
|
4
|
-
|
5
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
-
|
7
|
-
|
8
|
-
class SearchDistinctSharedResourcesRequest:
|
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
|
-
'body': 'SearchDistinctSharedResourcesReqBody'
|
21
|
-
}
|
22
|
-
|
23
|
-
attribute_map = {
|
24
|
-
'body': 'body'
|
25
|
-
}
|
26
|
-
|
27
|
-
def __init__(self, body=None):
|
28
|
-
"""SearchDistinctSharedResourcesRequest
|
29
|
-
|
30
|
-
The model defined in huaweicloud sdk
|
31
|
-
|
32
|
-
:param body: Body of the SearchDistinctSharedResourcesRequest
|
33
|
-
:type body: :class:`huaweicloudsdkram.v1.SearchDistinctSharedResourcesReqBody`
|
34
|
-
"""
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
self._body = None
|
39
|
-
self.discriminator = None
|
40
|
-
|
41
|
-
if body is not None:
|
42
|
-
self.body = body
|
43
|
-
|
44
|
-
@property
|
45
|
-
def body(self):
|
46
|
-
"""Gets the body of this SearchDistinctSharedResourcesRequest.
|
47
|
-
|
48
|
-
:return: The body of this SearchDistinctSharedResourcesRequest.
|
49
|
-
:rtype: :class:`huaweicloudsdkram.v1.SearchDistinctSharedResourcesReqBody`
|
50
|
-
"""
|
51
|
-
return self._body
|
52
|
-
|
53
|
-
@body.setter
|
54
|
-
def body(self, body):
|
55
|
-
"""Sets the body of this SearchDistinctSharedResourcesRequest.
|
56
|
-
|
57
|
-
:param body: The body of this SearchDistinctSharedResourcesRequest.
|
58
|
-
:type body: :class:`huaweicloudsdkram.v1.SearchDistinctSharedResourcesReqBody`
|
59
|
-
"""
|
60
|
-
self._body = body
|
61
|
-
|
62
|
-
def to_dict(self):
|
63
|
-
"""Returns the model properties as a dict"""
|
64
|
-
result = {}
|
65
|
-
|
66
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
-
value = getattr(self, attr)
|
68
|
-
if isinstance(value, list):
|
69
|
-
result[attr] = list(map(
|
70
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
-
value
|
72
|
-
))
|
73
|
-
elif hasattr(value, "to_dict"):
|
74
|
-
result[attr] = value.to_dict()
|
75
|
-
elif isinstance(value, dict):
|
76
|
-
result[attr] = dict(map(
|
77
|
-
lambda item: (item[0], item[1].to_dict())
|
78
|
-
if hasattr(item[1], "to_dict") else item,
|
79
|
-
value.items()
|
80
|
-
))
|
81
|
-
else:
|
82
|
-
if attr in self.sensitive_list:
|
83
|
-
result[attr] = "****"
|
84
|
-
else:
|
85
|
-
result[attr] = value
|
86
|
-
|
87
|
-
return result
|
88
|
-
|
89
|
-
def to_str(self):
|
90
|
-
"""Returns the string representation of the model"""
|
91
|
-
import simplejson as json
|
92
|
-
if six.PY2:
|
93
|
-
import sys
|
94
|
-
reload(sys)
|
95
|
-
sys.setdefaultencoding("utf-8")
|
96
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
-
|
98
|
-
def __repr__(self):
|
99
|
-
"""For `print`"""
|
100
|
-
return self.to_str()
|
101
|
-
|
102
|
-
def __eq__(self, other):
|
103
|
-
"""Returns true if both objects are equal"""
|
104
|
-
if not isinstance(other, SearchDistinctSharedResourcesRequest):
|
105
|
-
return False
|
106
|
-
|
107
|
-
return self.__dict__ == other.__dict__
|
108
|
-
|
109
|
-
def __ne__(self, other):
|
110
|
-
"""Returns true if both objects are not equal"""
|
111
|
-
return not self == other
|
@@ -1,141 +0,0 @@
|
|
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 SearchDistinctSharedResourcesResponse(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
|
-
'distinct_shared_resources': 'list[DistinctSharedResource]',
|
22
|
-
'page_info': 'PageInfo'
|
23
|
-
}
|
24
|
-
|
25
|
-
attribute_map = {
|
26
|
-
'distinct_shared_resources': 'distinct_shared_resources',
|
27
|
-
'page_info': 'page_info'
|
28
|
-
}
|
29
|
-
|
30
|
-
def __init__(self, distinct_shared_resources=None, page_info=None):
|
31
|
-
"""SearchDistinctSharedResourcesResponse
|
32
|
-
|
33
|
-
The model defined in huaweicloud sdk
|
34
|
-
|
35
|
-
:param distinct_shared_resources: 不同资源的信息列表。
|
36
|
-
:type distinct_shared_resources: list[:class:`huaweicloudsdkram.v1.DistinctSharedResource`]
|
37
|
-
:param page_info:
|
38
|
-
:type page_info: :class:`huaweicloudsdkram.v1.PageInfo`
|
39
|
-
"""
|
40
|
-
|
41
|
-
super(SearchDistinctSharedResourcesResponse, self).__init__()
|
42
|
-
|
43
|
-
self._distinct_shared_resources = None
|
44
|
-
self._page_info = None
|
45
|
-
self.discriminator = None
|
46
|
-
|
47
|
-
if distinct_shared_resources is not None:
|
48
|
-
self.distinct_shared_resources = distinct_shared_resources
|
49
|
-
if page_info is not None:
|
50
|
-
self.page_info = page_info
|
51
|
-
|
52
|
-
@property
|
53
|
-
def distinct_shared_resources(self):
|
54
|
-
"""Gets the distinct_shared_resources of this SearchDistinctSharedResourcesResponse.
|
55
|
-
|
56
|
-
不同资源的信息列表。
|
57
|
-
|
58
|
-
:return: The distinct_shared_resources of this SearchDistinctSharedResourcesResponse.
|
59
|
-
:rtype: list[:class:`huaweicloudsdkram.v1.DistinctSharedResource`]
|
60
|
-
"""
|
61
|
-
return self._distinct_shared_resources
|
62
|
-
|
63
|
-
@distinct_shared_resources.setter
|
64
|
-
def distinct_shared_resources(self, distinct_shared_resources):
|
65
|
-
"""Sets the distinct_shared_resources of this SearchDistinctSharedResourcesResponse.
|
66
|
-
|
67
|
-
不同资源的信息列表。
|
68
|
-
|
69
|
-
:param distinct_shared_resources: The distinct_shared_resources of this SearchDistinctSharedResourcesResponse.
|
70
|
-
:type distinct_shared_resources: list[:class:`huaweicloudsdkram.v1.DistinctSharedResource`]
|
71
|
-
"""
|
72
|
-
self._distinct_shared_resources = distinct_shared_resources
|
73
|
-
|
74
|
-
@property
|
75
|
-
def page_info(self):
|
76
|
-
"""Gets the page_info of this SearchDistinctSharedResourcesResponse.
|
77
|
-
|
78
|
-
:return: The page_info of this SearchDistinctSharedResourcesResponse.
|
79
|
-
:rtype: :class:`huaweicloudsdkram.v1.PageInfo`
|
80
|
-
"""
|
81
|
-
return self._page_info
|
82
|
-
|
83
|
-
@page_info.setter
|
84
|
-
def page_info(self, page_info):
|
85
|
-
"""Sets the page_info of this SearchDistinctSharedResourcesResponse.
|
86
|
-
|
87
|
-
:param page_info: The page_info of this SearchDistinctSharedResourcesResponse.
|
88
|
-
:type page_info: :class:`huaweicloudsdkram.v1.PageInfo`
|
89
|
-
"""
|
90
|
-
self._page_info = page_info
|
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, SearchDistinctSharedResourcesResponse):
|
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
|
File without changes
|
File without changes
|