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