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.
- huaweicloudsdkram/__init__.py +0 -0
- huaweicloudsdkram/v1/__init__.py +96 -0
- huaweicloudsdkram/v1/model/__init__.py +93 -0
- huaweicloudsdkram/v1/model/accept_resource_share_invitation_request.py +144 -0
- huaweicloudsdkram/v1/model/accept_resource_share_invitation_response.py +112 -0
- huaweicloudsdkram/v1/model/associate_permission_req_body.py +143 -0
- huaweicloudsdkram/v1/model/associate_resource_share_permission_request.py +169 -0
- huaweicloudsdkram/v1/model/associate_resource_share_permission_response.py +85 -0
- huaweicloudsdkram/v1/model/associate_resource_share_request.py +169 -0
- huaweicloudsdkram/v1/model/associate_resource_share_response.py +112 -0
- huaweicloudsdkram/v1/model/associated_permission.py +260 -0
- huaweicloudsdkram/v1/model/batch_create_resource_share_tags_request.py +169 -0
- huaweicloudsdkram/v1/model/batch_create_resource_share_tags_response.py +85 -0
- huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_request.py +169 -0
- huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_response.py +85 -0
- huaweicloudsdkram/v1/model/create_resource_share_req_body.py +288 -0
- huaweicloudsdkram/v1/model/create_resource_share_request.py +141 -0
- huaweicloudsdkram/v1/model/create_resource_share_response.py +112 -0
- huaweicloudsdkram/v1/model/delete_resource_share_request.py +144 -0
- huaweicloudsdkram/v1/model/delete_resource_share_response.py +85 -0
- huaweicloudsdkram/v1/model/disable_organization_share_request.py +116 -0
- huaweicloudsdkram/v1/model/disable_organization_share_response.py +85 -0
- huaweicloudsdkram/v1/model/disassociate_permission_req_body.py +114 -0
- huaweicloudsdkram/v1/model/disassociate_resource_share_permission_request.py +169 -0
- huaweicloudsdkram/v1/model/disassociate_resource_share_permission_response.py +85 -0
- huaweicloudsdkram/v1/model/disassociate_resource_share_request.py +169 -0
- huaweicloudsdkram/v1/model/disassociate_resource_share_response.py +112 -0
- huaweicloudsdkram/v1/model/enable_organization_share_request.py +116 -0
- huaweicloudsdkram/v1/model/enable_organization_share_response.py +85 -0
- huaweicloudsdkram/v1/model/list_permission_versions_request.py +202 -0
- huaweicloudsdkram/v1/model/list_permission_versions_response.py +141 -0
- huaweicloudsdkram/v1/model/list_permissions_request.py +232 -0
- huaweicloudsdkram/v1/model/list_permissions_response.py +141 -0
- huaweicloudsdkram/v1/model/list_quota_request.py +116 -0
- huaweicloudsdkram/v1/model/list_quota_response.py +112 -0
- huaweicloudsdkram/v1/model/list_resource_share_permissions_request.py +231 -0
- huaweicloudsdkram/v1/model/list_resource_share_permissions_response.py +141 -0
- huaweicloudsdkram/v1/model/list_resource_share_tags_request.py +174 -0
- huaweicloudsdkram/v1/model/list_resource_share_tags_response.py +141 -0
- huaweicloudsdkram/v1/model/list_resource_shares_by_tags_request.py +199 -0
- huaweicloudsdkram/v1/model/list_resource_shares_by_tags_response.py +145 -0
- huaweicloudsdkram/v1/model/list_resource_types_request.py +174 -0
- huaweicloudsdkram/v1/model/list_resource_types_response.py +141 -0
- huaweicloudsdkram/v1/model/match.py +142 -0
- huaweicloudsdkram/v1/model/page_info.py +173 -0
- huaweicloudsdkram/v1/model/page_info_marker_by_key.py +173 -0
- huaweicloudsdkram/v1/model/permission.py +427 -0
- huaweicloudsdkram/v1/model/permission_summary.py +399 -0
- huaweicloudsdkram/v1/model/quota_resources_dto.py +114 -0
- huaweicloudsdkram/v1/model/quotas.py +226 -0
- huaweicloudsdkram/v1/model/reject_resource_share_invitation_request.py +144 -0
- huaweicloudsdkram/v1/model/reject_resource_share_invitation_response.py +112 -0
- huaweicloudsdkram/v1/model/resource_dto.py +198 -0
- huaweicloudsdkram/v1/model/resource_share.py +340 -0
- huaweicloudsdkram/v1/model/resource_share_association.py +340 -0
- huaweicloudsdkram/v1/model/resource_share_association_req_body.py +144 -0
- huaweicloudsdkram/v1/model/resource_share_invitation.py +318 -0
- huaweicloudsdkram/v1/model/resource_shares_by_tags_req_body.py +173 -0
- huaweicloudsdkram/v1/model/resource_types_summary.py +142 -0
- huaweicloudsdkram/v1/model/search_resource_share_associations_req_body.py +317 -0
- huaweicloudsdkram/v1/model/search_resource_share_associations_request.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_share_associations_response.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_request.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_response.py +116 -0
- huaweicloudsdkram/v1/model/search_resource_share_invitation_req_body.py +231 -0
- huaweicloudsdkram/v1/model/search_resource_share_invitation_request.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_share_invitation_response.py +137 -0
- huaweicloudsdkram/v1/model/search_resource_shares_req_body.py +317 -0
- huaweicloudsdkram/v1/model/search_resource_shares_request.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_shares_response.py +141 -0
- huaweicloudsdkram/v1/model/search_shared_principals_req_body.py +259 -0
- huaweicloudsdkram/v1/model/search_shared_principals_request.py +141 -0
- huaweicloudsdkram/v1/model/search_shared_principals_response.py +141 -0
- huaweicloudsdkram/v1/model/search_shared_resources_req_body.py +346 -0
- huaweicloudsdkram/v1/model/search_shared_resources_request.py +141 -0
- huaweicloudsdkram/v1/model/search_shared_resources_response.py +141 -0
- huaweicloudsdkram/v1/model/shared_principal.py +202 -0
- huaweicloudsdkram/v1/model/shared_resource.py +260 -0
- huaweicloudsdkram/v1/model/show_organization_share_request.py +116 -0
- huaweicloudsdkram/v1/model/show_organization_share_response.py +116 -0
- huaweicloudsdkram/v1/model/show_permission_request.py +173 -0
- huaweicloudsdkram/v1/model/show_permission_response.py +112 -0
- huaweicloudsdkram/v1/model/tag.py +142 -0
- huaweicloudsdkram/v1/model/tag_dto.py +142 -0
- huaweicloudsdkram/v1/model/tag_filter.py +143 -0
- huaweicloudsdkram/v1/model/tag_resource_req_body.py +114 -0
- huaweicloudsdkram/v1/model/untag.py +143 -0
- huaweicloudsdkram/v1/model/untag_resource_req_body.py +114 -0
- huaweicloudsdkram/v1/model/update_resource_share_req_body.py +172 -0
- huaweicloudsdkram/v1/model/update_resource_share_request.py +169 -0
- huaweicloudsdkram/v1/model/update_resource_share_response.py +112 -0
- huaweicloudsdkram/v1/ram_async_client.py +1991 -0
- huaweicloudsdkram/v1/ram_client.py +1988 -0
- huaweicloudsdkram/v1/region/__init__.py +0 -0
- huaweicloudsdkram/v1/region/ram_region.py +31 -0
- huaweicloudsdkram-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkram-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkram-3.1.160.dist-info/RECORD +100 -0
- huaweicloudsdkram-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkram-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,226 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class Quotas:
|
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
|
+
'type': 'str',
|
21
|
+
'quota': 'int',
|
22
|
+
'min': 'int',
|
23
|
+
'max': 'int',
|
24
|
+
'used': 'int'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'type': 'type',
|
29
|
+
'quota': 'quota',
|
30
|
+
'min': 'min',
|
31
|
+
'max': 'max',
|
32
|
+
'used': 'used'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, type=None, quota=None, min=None, max=None, used=None):
|
36
|
+
r"""Quotas
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param type: 配额类型。resource_share账号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
|
41
|
+
:type type: str
|
42
|
+
:param quota: 总配额数量。
|
43
|
+
:type quota: int
|
44
|
+
:param min: 最小配额。
|
45
|
+
:type min: int
|
46
|
+
:param max: 最大配额。
|
47
|
+
:type max: int
|
48
|
+
:param used: 已使用的配额数量。
|
49
|
+
:type used: int
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._type = None
|
55
|
+
self._quota = None
|
56
|
+
self._min = None
|
57
|
+
self._max = None
|
58
|
+
self._used = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.type = type
|
62
|
+
self.quota = quota
|
63
|
+
self.min = min
|
64
|
+
self.max = max
|
65
|
+
self.used = used
|
66
|
+
|
67
|
+
@property
|
68
|
+
def type(self):
|
69
|
+
r"""Gets the type of this Quotas.
|
70
|
+
|
71
|
+
配额类型。resource_share账号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
|
72
|
+
|
73
|
+
:return: The type of this Quotas.
|
74
|
+
:rtype: str
|
75
|
+
"""
|
76
|
+
return self._type
|
77
|
+
|
78
|
+
@type.setter
|
79
|
+
def type(self, type):
|
80
|
+
r"""Sets the type of this Quotas.
|
81
|
+
|
82
|
+
配额类型。resource_share账号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
|
83
|
+
|
84
|
+
:param type: The type of this Quotas.
|
85
|
+
:type type: str
|
86
|
+
"""
|
87
|
+
self._type = type
|
88
|
+
|
89
|
+
@property
|
90
|
+
def quota(self):
|
91
|
+
r"""Gets the quota of this Quotas.
|
92
|
+
|
93
|
+
总配额数量。
|
94
|
+
|
95
|
+
:return: The quota of this Quotas.
|
96
|
+
:rtype: int
|
97
|
+
"""
|
98
|
+
return self._quota
|
99
|
+
|
100
|
+
@quota.setter
|
101
|
+
def quota(self, quota):
|
102
|
+
r"""Sets the quota of this Quotas.
|
103
|
+
|
104
|
+
总配额数量。
|
105
|
+
|
106
|
+
:param quota: The quota of this Quotas.
|
107
|
+
:type quota: int
|
108
|
+
"""
|
109
|
+
self._quota = quota
|
110
|
+
|
111
|
+
@property
|
112
|
+
def min(self):
|
113
|
+
r"""Gets the min of this Quotas.
|
114
|
+
|
115
|
+
最小配额。
|
116
|
+
|
117
|
+
:return: The min of this Quotas.
|
118
|
+
:rtype: int
|
119
|
+
"""
|
120
|
+
return self._min
|
121
|
+
|
122
|
+
@min.setter
|
123
|
+
def min(self, min):
|
124
|
+
r"""Sets the min of this Quotas.
|
125
|
+
|
126
|
+
最小配额。
|
127
|
+
|
128
|
+
:param min: The min of this Quotas.
|
129
|
+
:type min: int
|
130
|
+
"""
|
131
|
+
self._min = min
|
132
|
+
|
133
|
+
@property
|
134
|
+
def max(self):
|
135
|
+
r"""Gets the max of this Quotas.
|
136
|
+
|
137
|
+
最大配额。
|
138
|
+
|
139
|
+
:return: The max of this Quotas.
|
140
|
+
:rtype: int
|
141
|
+
"""
|
142
|
+
return self._max
|
143
|
+
|
144
|
+
@max.setter
|
145
|
+
def max(self, max):
|
146
|
+
r"""Sets the max of this Quotas.
|
147
|
+
|
148
|
+
最大配额。
|
149
|
+
|
150
|
+
:param max: The max of this Quotas.
|
151
|
+
:type max: int
|
152
|
+
"""
|
153
|
+
self._max = max
|
154
|
+
|
155
|
+
@property
|
156
|
+
def used(self):
|
157
|
+
r"""Gets the used of this Quotas.
|
158
|
+
|
159
|
+
已使用的配额数量。
|
160
|
+
|
161
|
+
:return: The used of this Quotas.
|
162
|
+
:rtype: int
|
163
|
+
"""
|
164
|
+
return self._used
|
165
|
+
|
166
|
+
@used.setter
|
167
|
+
def used(self, used):
|
168
|
+
r"""Sets the used of this Quotas.
|
169
|
+
|
170
|
+
已使用的配额数量。
|
171
|
+
|
172
|
+
:param used: The used of this Quotas.
|
173
|
+
:type used: int
|
174
|
+
"""
|
175
|
+
self._used = used
|
176
|
+
|
177
|
+
def to_dict(self):
|
178
|
+
"""Returns the model properties as a dict"""
|
179
|
+
result = {}
|
180
|
+
|
181
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
182
|
+
value = getattr(self, attr)
|
183
|
+
if isinstance(value, list):
|
184
|
+
result[attr] = list(map(
|
185
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
186
|
+
value
|
187
|
+
))
|
188
|
+
elif hasattr(value, "to_dict"):
|
189
|
+
result[attr] = value.to_dict()
|
190
|
+
elif isinstance(value, dict):
|
191
|
+
result[attr] = dict(map(
|
192
|
+
lambda item: (item[0], item[1].to_dict())
|
193
|
+
if hasattr(item[1], "to_dict") else item,
|
194
|
+
value.items()
|
195
|
+
))
|
196
|
+
else:
|
197
|
+
if attr in self.sensitive_list:
|
198
|
+
result[attr] = "****"
|
199
|
+
else:
|
200
|
+
result[attr] = value
|
201
|
+
|
202
|
+
return result
|
203
|
+
|
204
|
+
def to_str(self):
|
205
|
+
"""Returns the string representation of the model"""
|
206
|
+
import simplejson as json
|
207
|
+
if six.PY2:
|
208
|
+
import sys
|
209
|
+
reload(sys)
|
210
|
+
sys.setdefaultencoding("utf-8")
|
211
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
212
|
+
|
213
|
+
def __repr__(self):
|
214
|
+
"""For `print`"""
|
215
|
+
return self.to_str()
|
216
|
+
|
217
|
+
def __eq__(self, other):
|
218
|
+
"""Returns true if both objects are equal"""
|
219
|
+
if not isinstance(other, Quotas):
|
220
|
+
return False
|
221
|
+
|
222
|
+
return self.__dict__ == other.__dict__
|
223
|
+
|
224
|
+
def __ne__(self, other):
|
225
|
+
"""Returns true if both objects are not equal"""
|
226
|
+
return not self == other
|
@@ -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 RejectResourceShareInvitationRequest:
|
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
|
+
'resource_share_invitation_id': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_security_token': 'X-Security-Token',
|
27
|
+
'resource_share_invitation_id': 'resource_share_invitation_id'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, x_security_token=None, resource_share_invitation_id=None):
|
31
|
+
r"""RejectResourceShareInvitationRequest
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
36
|
+
:type x_security_token: str
|
37
|
+
:param resource_share_invitation_id: 资源共享邀请的ID。
|
38
|
+
:type resource_share_invitation_id: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
self._x_security_token = None
|
44
|
+
self._resource_share_invitation_id = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if x_security_token is not None:
|
48
|
+
self.x_security_token = x_security_token
|
49
|
+
self.resource_share_invitation_id = resource_share_invitation_id
|
50
|
+
|
51
|
+
@property
|
52
|
+
def x_security_token(self):
|
53
|
+
r"""Gets the x_security_token of this RejectResourceShareInvitationRequest.
|
54
|
+
|
55
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
56
|
+
|
57
|
+
:return: The x_security_token of this RejectResourceShareInvitationRequest.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._x_security_token
|
61
|
+
|
62
|
+
@x_security_token.setter
|
63
|
+
def x_security_token(self, x_security_token):
|
64
|
+
r"""Sets the x_security_token of this RejectResourceShareInvitationRequest.
|
65
|
+
|
66
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
67
|
+
|
68
|
+
:param x_security_token: The x_security_token of this RejectResourceShareInvitationRequest.
|
69
|
+
:type x_security_token: str
|
70
|
+
"""
|
71
|
+
self._x_security_token = x_security_token
|
72
|
+
|
73
|
+
@property
|
74
|
+
def resource_share_invitation_id(self):
|
75
|
+
r"""Gets the resource_share_invitation_id of this RejectResourceShareInvitationRequest.
|
76
|
+
|
77
|
+
资源共享邀请的ID。
|
78
|
+
|
79
|
+
:return: The resource_share_invitation_id of this RejectResourceShareInvitationRequest.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._resource_share_invitation_id
|
83
|
+
|
84
|
+
@resource_share_invitation_id.setter
|
85
|
+
def resource_share_invitation_id(self, resource_share_invitation_id):
|
86
|
+
r"""Sets the resource_share_invitation_id of this RejectResourceShareInvitationRequest.
|
87
|
+
|
88
|
+
资源共享邀请的ID。
|
89
|
+
|
90
|
+
:param resource_share_invitation_id: The resource_share_invitation_id of this RejectResourceShareInvitationRequest.
|
91
|
+
:type resource_share_invitation_id: str
|
92
|
+
"""
|
93
|
+
self._resource_share_invitation_id = resource_share_invitation_id
|
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, RejectResourceShareInvitationRequest):
|
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,112 @@
|
|
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 RejectResourceShareInvitationResponse(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
|
+
'resource_share_invitation': 'ResourceShareInvitation'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'resource_share_invitation': 'resource_share_invitation'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, resource_share_invitation=None):
|
29
|
+
r"""RejectResourceShareInvitationResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param resource_share_invitation:
|
34
|
+
:type resource_share_invitation: :class:`huaweicloudsdkram.v1.ResourceShareInvitation`
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(RejectResourceShareInvitationResponse, self).__init__()
|
38
|
+
|
39
|
+
self._resource_share_invitation = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if resource_share_invitation is not None:
|
43
|
+
self.resource_share_invitation = resource_share_invitation
|
44
|
+
|
45
|
+
@property
|
46
|
+
def resource_share_invitation(self):
|
47
|
+
r"""Gets the resource_share_invitation of this RejectResourceShareInvitationResponse.
|
48
|
+
|
49
|
+
:return: The resource_share_invitation of this RejectResourceShareInvitationResponse.
|
50
|
+
:rtype: :class:`huaweicloudsdkram.v1.ResourceShareInvitation`
|
51
|
+
"""
|
52
|
+
return self._resource_share_invitation
|
53
|
+
|
54
|
+
@resource_share_invitation.setter
|
55
|
+
def resource_share_invitation(self, resource_share_invitation):
|
56
|
+
r"""Sets the resource_share_invitation of this RejectResourceShareInvitationResponse.
|
57
|
+
|
58
|
+
:param resource_share_invitation: The resource_share_invitation of this RejectResourceShareInvitationResponse.
|
59
|
+
:type resource_share_invitation: :class:`huaweicloudsdkram.v1.ResourceShareInvitation`
|
60
|
+
"""
|
61
|
+
self._resource_share_invitation = resource_share_invitation
|
62
|
+
|
63
|
+
def to_dict(self):
|
64
|
+
"""Returns the model properties as a dict"""
|
65
|
+
result = {}
|
66
|
+
|
67
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
68
|
+
value = getattr(self, attr)
|
69
|
+
if isinstance(value, list):
|
70
|
+
result[attr] = list(map(
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
72
|
+
value
|
73
|
+
))
|
74
|
+
elif hasattr(value, "to_dict"):
|
75
|
+
result[attr] = value.to_dict()
|
76
|
+
elif isinstance(value, dict):
|
77
|
+
result[attr] = dict(map(
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
80
|
+
value.items()
|
81
|
+
))
|
82
|
+
else:
|
83
|
+
if attr in self.sensitive_list:
|
84
|
+
result[attr] = "****"
|
85
|
+
else:
|
86
|
+
result[attr] = value
|
87
|
+
|
88
|
+
return result
|
89
|
+
|
90
|
+
def to_str(self):
|
91
|
+
"""Returns the string representation of the model"""
|
92
|
+
import simplejson as json
|
93
|
+
if six.PY2:
|
94
|
+
import sys
|
95
|
+
reload(sys)
|
96
|
+
sys.setdefaultencoding("utf-8")
|
97
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
98
|
+
|
99
|
+
def __repr__(self):
|
100
|
+
"""For `print`"""
|
101
|
+
return self.to_str()
|
102
|
+
|
103
|
+
def __eq__(self, other):
|
104
|
+
"""Returns true if both objects are equal"""
|
105
|
+
if not isinstance(other, RejectResourceShareInvitationResponse):
|
106
|
+
return False
|
107
|
+
|
108
|
+
return self.__dict__ == other.__dict__
|
109
|
+
|
110
|
+
def __ne__(self, other):
|
111
|
+
"""Returns true if both objects are not equal"""
|
112
|
+
return not self == other
|
@@ -0,0 +1,198 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ResourceDTO:
|
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
|
+
'resource_id': 'str',
|
21
|
+
'resource_name': 'str',
|
22
|
+
'tags': 'list[Tag]',
|
23
|
+
'resource_detail': 'object'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'resource_id': 'resource_id',
|
28
|
+
'resource_name': 'resource_name',
|
29
|
+
'tags': 'tags',
|
30
|
+
'resource_detail': 'resource_detail'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, resource_id=None, resource_name=None, tags=None, resource_detail=None):
|
34
|
+
r"""ResourceDTO
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param resource_id: 资源ID。
|
39
|
+
:type resource_id: str
|
40
|
+
:param resource_name: 资源名称。
|
41
|
+
:type resource_name: str
|
42
|
+
:param tags: 资源标签列表。
|
43
|
+
:type tags: list[:class:`huaweicloudsdkram.v1.Tag`]
|
44
|
+
:param resource_detail: 资源详情。
|
45
|
+
:type resource_detail: object
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._resource_id = None
|
51
|
+
self._resource_name = None
|
52
|
+
self._tags = None
|
53
|
+
self._resource_detail = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.resource_id = resource_id
|
57
|
+
self.resource_name = resource_name
|
58
|
+
self.tags = tags
|
59
|
+
self.resource_detail = resource_detail
|
60
|
+
|
61
|
+
@property
|
62
|
+
def resource_id(self):
|
63
|
+
r"""Gets the resource_id of this ResourceDTO.
|
64
|
+
|
65
|
+
资源ID。
|
66
|
+
|
67
|
+
:return: The resource_id of this ResourceDTO.
|
68
|
+
:rtype: str
|
69
|
+
"""
|
70
|
+
return self._resource_id
|
71
|
+
|
72
|
+
@resource_id.setter
|
73
|
+
def resource_id(self, resource_id):
|
74
|
+
r"""Sets the resource_id of this ResourceDTO.
|
75
|
+
|
76
|
+
资源ID。
|
77
|
+
|
78
|
+
:param resource_id: The resource_id of this ResourceDTO.
|
79
|
+
:type resource_id: str
|
80
|
+
"""
|
81
|
+
self._resource_id = resource_id
|
82
|
+
|
83
|
+
@property
|
84
|
+
def resource_name(self):
|
85
|
+
r"""Gets the resource_name of this ResourceDTO.
|
86
|
+
|
87
|
+
资源名称。
|
88
|
+
|
89
|
+
:return: The resource_name of this ResourceDTO.
|
90
|
+
:rtype: str
|
91
|
+
"""
|
92
|
+
return self._resource_name
|
93
|
+
|
94
|
+
@resource_name.setter
|
95
|
+
def resource_name(self, resource_name):
|
96
|
+
r"""Sets the resource_name of this ResourceDTO.
|
97
|
+
|
98
|
+
资源名称。
|
99
|
+
|
100
|
+
:param resource_name: The resource_name of this ResourceDTO.
|
101
|
+
:type resource_name: str
|
102
|
+
"""
|
103
|
+
self._resource_name = resource_name
|
104
|
+
|
105
|
+
@property
|
106
|
+
def tags(self):
|
107
|
+
r"""Gets the tags of this ResourceDTO.
|
108
|
+
|
109
|
+
资源标签列表。
|
110
|
+
|
111
|
+
:return: The tags of this ResourceDTO.
|
112
|
+
:rtype: list[:class:`huaweicloudsdkram.v1.Tag`]
|
113
|
+
"""
|
114
|
+
return self._tags
|
115
|
+
|
116
|
+
@tags.setter
|
117
|
+
def tags(self, tags):
|
118
|
+
r"""Sets the tags of this ResourceDTO.
|
119
|
+
|
120
|
+
资源标签列表。
|
121
|
+
|
122
|
+
:param tags: The tags of this ResourceDTO.
|
123
|
+
:type tags: list[:class:`huaweicloudsdkram.v1.Tag`]
|
124
|
+
"""
|
125
|
+
self._tags = tags
|
126
|
+
|
127
|
+
@property
|
128
|
+
def resource_detail(self):
|
129
|
+
r"""Gets the resource_detail of this ResourceDTO.
|
130
|
+
|
131
|
+
资源详情。
|
132
|
+
|
133
|
+
:return: The resource_detail of this ResourceDTO.
|
134
|
+
:rtype: object
|
135
|
+
"""
|
136
|
+
return self._resource_detail
|
137
|
+
|
138
|
+
@resource_detail.setter
|
139
|
+
def resource_detail(self, resource_detail):
|
140
|
+
r"""Sets the resource_detail of this ResourceDTO.
|
141
|
+
|
142
|
+
资源详情。
|
143
|
+
|
144
|
+
:param resource_detail: The resource_detail of this ResourceDTO.
|
145
|
+
:type resource_detail: object
|
146
|
+
"""
|
147
|
+
self._resource_detail = resource_detail
|
148
|
+
|
149
|
+
def to_dict(self):
|
150
|
+
"""Returns the model properties as a dict"""
|
151
|
+
result = {}
|
152
|
+
|
153
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
154
|
+
value = getattr(self, attr)
|
155
|
+
if isinstance(value, list):
|
156
|
+
result[attr] = list(map(
|
157
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
158
|
+
value
|
159
|
+
))
|
160
|
+
elif hasattr(value, "to_dict"):
|
161
|
+
result[attr] = value.to_dict()
|
162
|
+
elif isinstance(value, dict):
|
163
|
+
result[attr] = dict(map(
|
164
|
+
lambda item: (item[0], item[1].to_dict())
|
165
|
+
if hasattr(item[1], "to_dict") else item,
|
166
|
+
value.items()
|
167
|
+
))
|
168
|
+
else:
|
169
|
+
if attr in self.sensitive_list:
|
170
|
+
result[attr] = "****"
|
171
|
+
else:
|
172
|
+
result[attr] = value
|
173
|
+
|
174
|
+
return result
|
175
|
+
|
176
|
+
def to_str(self):
|
177
|
+
"""Returns the string representation of the model"""
|
178
|
+
import simplejson as json
|
179
|
+
if six.PY2:
|
180
|
+
import sys
|
181
|
+
reload(sys)
|
182
|
+
sys.setdefaultencoding("utf-8")
|
183
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
184
|
+
|
185
|
+
def __repr__(self):
|
186
|
+
"""For `print`"""
|
187
|
+
return self.to_str()
|
188
|
+
|
189
|
+
def __eq__(self, other):
|
190
|
+
"""Returns true if both objects are equal"""
|
191
|
+
if not isinstance(other, ResourceDTO):
|
192
|
+
return False
|
193
|
+
|
194
|
+
return self.__dict__ == other.__dict__
|
195
|
+
|
196
|
+
def __ne__(self, other):
|
197
|
+
"""Returns true if both objects are not equal"""
|
198
|
+
return not self == other
|