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,260 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class AssociatedPermission:
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
+ 'permission_id': 'str',
21
+ 'permission_name': 'str',
22
+ 'resource_type': 'str',
23
+ 'status': 'str',
24
+ 'created_at': 'datetime',
25
+ 'updated_at': 'datetime'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'permission_id': 'permission_id',
30
+ 'permission_name': 'permission_name',
31
+ 'resource_type': 'resource_type',
32
+ 'status': 'status',
33
+ 'created_at': 'created_at',
34
+ 'updated_at': 'updated_at'
35
+ }
36
+
37
+ def __init__(self, permission_id=None, permission_name=None, resource_type=None, status=None, created_at=None, updated_at=None):
38
+ r"""AssociatedPermission
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param permission_id: 权限的ID。
43
+ :type permission_id: str
44
+ :param permission_name: 共享资源权限的名称。
45
+ :type permission_name: str
46
+ :param resource_type: 权限适用的资源类型。
47
+ :type resource_type: str
48
+ :param status: 权限的当前状态。
49
+ :type status: str
50
+ :param created_at: 创建权限的时间。
51
+ :type created_at: datetime
52
+ :param updated_at: 最后一次更新权限的时间。
53
+ :type updated_at: datetime
54
+ """
55
+
56
+
57
+
58
+ self._permission_id = None
59
+ self._permission_name = None
60
+ self._resource_type = None
61
+ self._status = None
62
+ self._created_at = None
63
+ self._updated_at = None
64
+ self.discriminator = None
65
+
66
+ if permission_id is not None:
67
+ self.permission_id = permission_id
68
+ if permission_name is not None:
69
+ self.permission_name = permission_name
70
+ if resource_type is not None:
71
+ self.resource_type = resource_type
72
+ if status is not None:
73
+ self.status = status
74
+ if created_at is not None:
75
+ self.created_at = created_at
76
+ if updated_at is not None:
77
+ self.updated_at = updated_at
78
+
79
+ @property
80
+ def permission_id(self):
81
+ r"""Gets the permission_id of this AssociatedPermission.
82
+
83
+ 权限的ID。
84
+
85
+ :return: The permission_id of this AssociatedPermission.
86
+ :rtype: str
87
+ """
88
+ return self._permission_id
89
+
90
+ @permission_id.setter
91
+ def permission_id(self, permission_id):
92
+ r"""Sets the permission_id of this AssociatedPermission.
93
+
94
+ 权限的ID。
95
+
96
+ :param permission_id: The permission_id of this AssociatedPermission.
97
+ :type permission_id: str
98
+ """
99
+ self._permission_id = permission_id
100
+
101
+ @property
102
+ def permission_name(self):
103
+ r"""Gets the permission_name of this AssociatedPermission.
104
+
105
+ 共享资源权限的名称。
106
+
107
+ :return: The permission_name of this AssociatedPermission.
108
+ :rtype: str
109
+ """
110
+ return self._permission_name
111
+
112
+ @permission_name.setter
113
+ def permission_name(self, permission_name):
114
+ r"""Sets the permission_name of this AssociatedPermission.
115
+
116
+ 共享资源权限的名称。
117
+
118
+ :param permission_name: The permission_name of this AssociatedPermission.
119
+ :type permission_name: str
120
+ """
121
+ self._permission_name = permission_name
122
+
123
+ @property
124
+ def resource_type(self):
125
+ r"""Gets the resource_type of this AssociatedPermission.
126
+
127
+ 权限适用的资源类型。
128
+
129
+ :return: The resource_type of this AssociatedPermission.
130
+ :rtype: str
131
+ """
132
+ return self._resource_type
133
+
134
+ @resource_type.setter
135
+ def resource_type(self, resource_type):
136
+ r"""Sets the resource_type of this AssociatedPermission.
137
+
138
+ 权限适用的资源类型。
139
+
140
+ :param resource_type: The resource_type of this AssociatedPermission.
141
+ :type resource_type: str
142
+ """
143
+ self._resource_type = resource_type
144
+
145
+ @property
146
+ def status(self):
147
+ r"""Gets the status of this AssociatedPermission.
148
+
149
+ 权限的当前状态。
150
+
151
+ :return: The status of this AssociatedPermission.
152
+ :rtype: str
153
+ """
154
+ return self._status
155
+
156
+ @status.setter
157
+ def status(self, status):
158
+ r"""Sets the status of this AssociatedPermission.
159
+
160
+ 权限的当前状态。
161
+
162
+ :param status: The status of this AssociatedPermission.
163
+ :type status: str
164
+ """
165
+ self._status = status
166
+
167
+ @property
168
+ def created_at(self):
169
+ r"""Gets the created_at of this AssociatedPermission.
170
+
171
+ 创建权限的时间。
172
+
173
+ :return: The created_at of this AssociatedPermission.
174
+ :rtype: datetime
175
+ """
176
+ return self._created_at
177
+
178
+ @created_at.setter
179
+ def created_at(self, created_at):
180
+ r"""Sets the created_at of this AssociatedPermission.
181
+
182
+ 创建权限的时间。
183
+
184
+ :param created_at: The created_at of this AssociatedPermission.
185
+ :type created_at: datetime
186
+ """
187
+ self._created_at = created_at
188
+
189
+ @property
190
+ def updated_at(self):
191
+ r"""Gets the updated_at of this AssociatedPermission.
192
+
193
+ 最后一次更新权限的时间。
194
+
195
+ :return: The updated_at of this AssociatedPermission.
196
+ :rtype: datetime
197
+ """
198
+ return self._updated_at
199
+
200
+ @updated_at.setter
201
+ def updated_at(self, updated_at):
202
+ r"""Sets the updated_at of this AssociatedPermission.
203
+
204
+ 最后一次更新权限的时间。
205
+
206
+ :param updated_at: The updated_at of this AssociatedPermission.
207
+ :type updated_at: datetime
208
+ """
209
+ self._updated_at = updated_at
210
+
211
+ def to_dict(self):
212
+ """Returns the model properties as a dict"""
213
+ result = {}
214
+
215
+ for attr, _ in six.iteritems(self.openapi_types):
216
+ value = getattr(self, attr)
217
+ if isinstance(value, list):
218
+ result[attr] = list(map(
219
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
220
+ value
221
+ ))
222
+ elif hasattr(value, "to_dict"):
223
+ result[attr] = value.to_dict()
224
+ elif isinstance(value, dict):
225
+ result[attr] = dict(map(
226
+ lambda item: (item[0], item[1].to_dict())
227
+ if hasattr(item[1], "to_dict") else item,
228
+ value.items()
229
+ ))
230
+ else:
231
+ if attr in self.sensitive_list:
232
+ result[attr] = "****"
233
+ else:
234
+ result[attr] = value
235
+
236
+ return result
237
+
238
+ def to_str(self):
239
+ """Returns the string representation of the model"""
240
+ import simplejson as json
241
+ if six.PY2:
242
+ import sys
243
+ reload(sys)
244
+ sys.setdefaultencoding("utf-8")
245
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
246
+
247
+ def __repr__(self):
248
+ """For `print`"""
249
+ return self.to_str()
250
+
251
+ def __eq__(self, other):
252
+ """Returns true if both objects are equal"""
253
+ if not isinstance(other, AssociatedPermission):
254
+ return False
255
+
256
+ return self.__dict__ == other.__dict__
257
+
258
+ def __ne__(self, other):
259
+ """Returns true if both objects are not equal"""
260
+ return not self == other
@@ -0,0 +1,169 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchCreateResourceShareTagsRequest:
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
+ 'resource_share_id': 'str',
22
+ 'x_security_token': 'str',
23
+ 'body': 'TagResourceReqBody'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'resource_share_id': 'resource_share_id',
28
+ 'x_security_token': 'X-Security-Token',
29
+ 'body': 'body'
30
+ }
31
+
32
+ def __init__(self, resource_share_id=None, x_security_token=None, body=None):
33
+ r"""BatchCreateResourceShareTagsRequest
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param resource_share_id: 资源共享实例的ID。
38
+ :type resource_share_id: str
39
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
40
+ :type x_security_token: str
41
+ :param body: Body of the BatchCreateResourceShareTagsRequest
42
+ :type body: :class:`huaweicloudsdkram.v1.TagResourceReqBody`
43
+ """
44
+
45
+
46
+
47
+ self._resource_share_id = None
48
+ self._x_security_token = None
49
+ self._body = None
50
+ self.discriminator = None
51
+
52
+ self.resource_share_id = resource_share_id
53
+ if x_security_token is not None:
54
+ self.x_security_token = x_security_token
55
+ if body is not None:
56
+ self.body = body
57
+
58
+ @property
59
+ def resource_share_id(self):
60
+ r"""Gets the resource_share_id of this BatchCreateResourceShareTagsRequest.
61
+
62
+ 资源共享实例的ID。
63
+
64
+ :return: The resource_share_id of this BatchCreateResourceShareTagsRequest.
65
+ :rtype: str
66
+ """
67
+ return self._resource_share_id
68
+
69
+ @resource_share_id.setter
70
+ def resource_share_id(self, resource_share_id):
71
+ r"""Sets the resource_share_id of this BatchCreateResourceShareTagsRequest.
72
+
73
+ 资源共享实例的ID。
74
+
75
+ :param resource_share_id: The resource_share_id of this BatchCreateResourceShareTagsRequest.
76
+ :type resource_share_id: str
77
+ """
78
+ self._resource_share_id = resource_share_id
79
+
80
+ @property
81
+ def x_security_token(self):
82
+ r"""Gets the x_security_token of this BatchCreateResourceShareTagsRequest.
83
+
84
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
85
+
86
+ :return: The x_security_token of this BatchCreateResourceShareTagsRequest.
87
+ :rtype: str
88
+ """
89
+ return self._x_security_token
90
+
91
+ @x_security_token.setter
92
+ def x_security_token(self, x_security_token):
93
+ r"""Sets the x_security_token of this BatchCreateResourceShareTagsRequest.
94
+
95
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
96
+
97
+ :param x_security_token: The x_security_token of this BatchCreateResourceShareTagsRequest.
98
+ :type x_security_token: str
99
+ """
100
+ self._x_security_token = x_security_token
101
+
102
+ @property
103
+ def body(self):
104
+ r"""Gets the body of this BatchCreateResourceShareTagsRequest.
105
+
106
+ :return: The body of this BatchCreateResourceShareTagsRequest.
107
+ :rtype: :class:`huaweicloudsdkram.v1.TagResourceReqBody`
108
+ """
109
+ return self._body
110
+
111
+ @body.setter
112
+ def body(self, body):
113
+ r"""Sets the body of this BatchCreateResourceShareTagsRequest.
114
+
115
+ :param body: The body of this BatchCreateResourceShareTagsRequest.
116
+ :type body: :class:`huaweicloudsdkram.v1.TagResourceReqBody`
117
+ """
118
+ self._body = body
119
+
120
+ def to_dict(self):
121
+ """Returns the model properties as a dict"""
122
+ result = {}
123
+
124
+ for attr, _ in six.iteritems(self.openapi_types):
125
+ value = getattr(self, attr)
126
+ if isinstance(value, list):
127
+ result[attr] = list(map(
128
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
129
+ value
130
+ ))
131
+ elif hasattr(value, "to_dict"):
132
+ result[attr] = value.to_dict()
133
+ elif isinstance(value, dict):
134
+ result[attr] = dict(map(
135
+ lambda item: (item[0], item[1].to_dict())
136
+ if hasattr(item[1], "to_dict") else item,
137
+ value.items()
138
+ ))
139
+ else:
140
+ if attr in self.sensitive_list:
141
+ result[attr] = "****"
142
+ else:
143
+ result[attr] = value
144
+
145
+ return result
146
+
147
+ def to_str(self):
148
+ """Returns the string representation of the model"""
149
+ import simplejson as json
150
+ if six.PY2:
151
+ import sys
152
+ reload(sys)
153
+ sys.setdefaultencoding("utf-8")
154
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
155
+
156
+ def __repr__(self):
157
+ """For `print`"""
158
+ return self.to_str()
159
+
160
+ def __eq__(self, other):
161
+ """Returns true if both objects are equal"""
162
+ if not isinstance(other, BatchCreateResourceShareTagsRequest):
163
+ return False
164
+
165
+ return self.__dict__ == other.__dict__
166
+
167
+ def __ne__(self, other):
168
+ """Returns true if both objects are not equal"""
169
+ return not self == other
@@ -0,0 +1,85 @@
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 BatchCreateResourceShareTagsResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ r"""BatchCreateResourceShareTagsResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(BatchCreateResourceShareTagsResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, BatchCreateResourceShareTagsResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -0,0 +1,169 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchDeleteResourceShareTagsRequest:
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
+ 'resource_share_id': 'str',
22
+ 'x_security_token': 'str',
23
+ 'body': 'UntagResourceReqBody'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'resource_share_id': 'resource_share_id',
28
+ 'x_security_token': 'X-Security-Token',
29
+ 'body': 'body'
30
+ }
31
+
32
+ def __init__(self, resource_share_id=None, x_security_token=None, body=None):
33
+ r"""BatchDeleteResourceShareTagsRequest
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param resource_share_id: 资源共享实例的ID。
38
+ :type resource_share_id: str
39
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
40
+ :type x_security_token: str
41
+ :param body: Body of the BatchDeleteResourceShareTagsRequest
42
+ :type body: :class:`huaweicloudsdkram.v1.UntagResourceReqBody`
43
+ """
44
+
45
+
46
+
47
+ self._resource_share_id = None
48
+ self._x_security_token = None
49
+ self._body = None
50
+ self.discriminator = None
51
+
52
+ self.resource_share_id = resource_share_id
53
+ if x_security_token is not None:
54
+ self.x_security_token = x_security_token
55
+ if body is not None:
56
+ self.body = body
57
+
58
+ @property
59
+ def resource_share_id(self):
60
+ r"""Gets the resource_share_id of this BatchDeleteResourceShareTagsRequest.
61
+
62
+ 资源共享实例的ID。
63
+
64
+ :return: The resource_share_id of this BatchDeleteResourceShareTagsRequest.
65
+ :rtype: str
66
+ """
67
+ return self._resource_share_id
68
+
69
+ @resource_share_id.setter
70
+ def resource_share_id(self, resource_share_id):
71
+ r"""Sets the resource_share_id of this BatchDeleteResourceShareTagsRequest.
72
+
73
+ 资源共享实例的ID。
74
+
75
+ :param resource_share_id: The resource_share_id of this BatchDeleteResourceShareTagsRequest.
76
+ :type resource_share_id: str
77
+ """
78
+ self._resource_share_id = resource_share_id
79
+
80
+ @property
81
+ def x_security_token(self):
82
+ r"""Gets the x_security_token of this BatchDeleteResourceShareTagsRequest.
83
+
84
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
85
+
86
+ :return: The x_security_token of this BatchDeleteResourceShareTagsRequest.
87
+ :rtype: str
88
+ """
89
+ return self._x_security_token
90
+
91
+ @x_security_token.setter
92
+ def x_security_token(self, x_security_token):
93
+ r"""Sets the x_security_token of this BatchDeleteResourceShareTagsRequest.
94
+
95
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
96
+
97
+ :param x_security_token: The x_security_token of this BatchDeleteResourceShareTagsRequest.
98
+ :type x_security_token: str
99
+ """
100
+ self._x_security_token = x_security_token
101
+
102
+ @property
103
+ def body(self):
104
+ r"""Gets the body of this BatchDeleteResourceShareTagsRequest.
105
+
106
+ :return: The body of this BatchDeleteResourceShareTagsRequest.
107
+ :rtype: :class:`huaweicloudsdkram.v1.UntagResourceReqBody`
108
+ """
109
+ return self._body
110
+
111
+ @body.setter
112
+ def body(self, body):
113
+ r"""Sets the body of this BatchDeleteResourceShareTagsRequest.
114
+
115
+ :param body: The body of this BatchDeleteResourceShareTagsRequest.
116
+ :type body: :class:`huaweicloudsdkram.v1.UntagResourceReqBody`
117
+ """
118
+ self._body = body
119
+
120
+ def to_dict(self):
121
+ """Returns the model properties as a dict"""
122
+ result = {}
123
+
124
+ for attr, _ in six.iteritems(self.openapi_types):
125
+ value = getattr(self, attr)
126
+ if isinstance(value, list):
127
+ result[attr] = list(map(
128
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
129
+ value
130
+ ))
131
+ elif hasattr(value, "to_dict"):
132
+ result[attr] = value.to_dict()
133
+ elif isinstance(value, dict):
134
+ result[attr] = dict(map(
135
+ lambda item: (item[0], item[1].to_dict())
136
+ if hasattr(item[1], "to_dict") else item,
137
+ value.items()
138
+ ))
139
+ else:
140
+ if attr in self.sensitive_list:
141
+ result[attr] = "****"
142
+ else:
143
+ result[attr] = value
144
+
145
+ return result
146
+
147
+ def to_str(self):
148
+ """Returns the string representation of the model"""
149
+ import simplejson as json
150
+ if six.PY2:
151
+ import sys
152
+ reload(sys)
153
+ sys.setdefaultencoding("utf-8")
154
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
155
+
156
+ def __repr__(self):
157
+ """For `print`"""
158
+ return self.to_str()
159
+
160
+ def __eq__(self, other):
161
+ """Returns true if both objects are equal"""
162
+ if not isinstance(other, BatchDeleteResourceShareTagsRequest):
163
+ return False
164
+
165
+ return self.__dict__ == other.__dict__
166
+
167
+ def __ne__(self, other):
168
+ """Returns true if both objects are not equal"""
169
+ return not self == other