huaweicloudsdkram 3.1.173__py3-none-any.whl → 3.1.174__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 (103) hide show
  1. huaweicloudsdkram/v1/model/accept_resource_share_invitation_request.py +1 -8
  2. huaweicloudsdkram/v1/model/accept_resource_share_invitation_response.py +5 -9
  3. huaweicloudsdkram/v1/model/associate_permission_req_body.py +1 -8
  4. huaweicloudsdkram/v1/model/associate_resource_share_permission_request.py +1 -8
  5. huaweicloudsdkram/v1/model/associate_resource_share_permission_response.py +5 -9
  6. huaweicloudsdkram/v1/model/associate_resource_share_request.py +1 -8
  7. huaweicloudsdkram/v1/model/associate_resource_share_response.py +5 -9
  8. huaweicloudsdkram/v1/model/associated_permission.py +1 -8
  9. huaweicloudsdkram/v1/model/batch_create_resource_share_tags_request.py +1 -8
  10. huaweicloudsdkram/v1/model/batch_create_resource_share_tags_response.py +5 -9
  11. huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_request.py +1 -8
  12. huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_response.py +5 -9
  13. huaweicloudsdkram/v1/model/create_resource_share_req_body.py +1 -8
  14. huaweicloudsdkram/v1/model/create_resource_share_request.py +1 -8
  15. huaweicloudsdkram/v1/model/create_resource_share_response.py +5 -9
  16. huaweicloudsdkram/v1/model/delete_resource_share_request.py +1 -8
  17. huaweicloudsdkram/v1/model/delete_resource_share_response.py +5 -9
  18. huaweicloudsdkram/v1/model/disable_organization_share_request.py +1 -8
  19. huaweicloudsdkram/v1/model/disable_organization_share_response.py +5 -9
  20. huaweicloudsdkram/v1/model/disassociate_permission_req_body.py +1 -8
  21. huaweicloudsdkram/v1/model/disassociate_resource_share_permission_request.py +1 -8
  22. huaweicloudsdkram/v1/model/disassociate_resource_share_permission_response.py +5 -9
  23. huaweicloudsdkram/v1/model/disassociate_resource_share_request.py +1 -8
  24. huaweicloudsdkram/v1/model/disassociate_resource_share_response.py +5 -9
  25. huaweicloudsdkram/v1/model/distinct_shared_principal.py +1 -8
  26. huaweicloudsdkram/v1/model/distinct_shared_resource.py +1 -8
  27. huaweicloudsdkram/v1/model/enable_organization_share_request.py +1 -8
  28. huaweicloudsdkram/v1/model/enable_organization_share_response.py +5 -9
  29. huaweicloudsdkram/v1/model/list_permission_versions_request.py +1 -8
  30. huaweicloudsdkram/v1/model/list_permission_versions_response.py +5 -9
  31. huaweicloudsdkram/v1/model/list_permissions_request.py +1 -8
  32. huaweicloudsdkram/v1/model/list_permissions_response.py +5 -9
  33. huaweicloudsdkram/v1/model/list_quota_request.py +1 -8
  34. huaweicloudsdkram/v1/model/list_quota_response.py +5 -9
  35. huaweicloudsdkram/v1/model/list_resource_share_permissions_request.py +1 -8
  36. huaweicloudsdkram/v1/model/list_resource_share_permissions_response.py +5 -9
  37. huaweicloudsdkram/v1/model/list_resource_share_tags_request.py +1 -8
  38. huaweicloudsdkram/v1/model/list_resource_share_tags_response.py +5 -9
  39. huaweicloudsdkram/v1/model/list_resource_shares_by_tags_request.py +1 -8
  40. huaweicloudsdkram/v1/model/list_resource_shares_by_tags_response.py +5 -9
  41. huaweicloudsdkram/v1/model/list_resource_types_request.py +1 -8
  42. huaweicloudsdkram/v1/model/list_resource_types_response.py +5 -9
  43. huaweicloudsdkram/v1/model/match.py +1 -8
  44. huaweicloudsdkram/v1/model/page_info.py +1 -8
  45. huaweicloudsdkram/v1/model/page_info_marker_by_key.py +1 -8
  46. huaweicloudsdkram/v1/model/permission.py +1 -8
  47. huaweicloudsdkram/v1/model/permission_summary.py +1 -8
  48. huaweicloudsdkram/v1/model/quota_resources_dto.py +1 -8
  49. huaweicloudsdkram/v1/model/quotas.py +1 -8
  50. huaweicloudsdkram/v1/model/reject_resource_share_invitation_request.py +1 -8
  51. huaweicloudsdkram/v1/model/reject_resource_share_invitation_response.py +5 -9
  52. huaweicloudsdkram/v1/model/resource_dto.py +1 -8
  53. huaweicloudsdkram/v1/model/resource_share.py +1 -8
  54. huaweicloudsdkram/v1/model/resource_share_association.py +1 -8
  55. huaweicloudsdkram/v1/model/resource_share_association_req_body.py +1 -8
  56. huaweicloudsdkram/v1/model/resource_share_invitation.py +1 -8
  57. huaweicloudsdkram/v1/model/resource_shares_by_tags_req_body.py +1 -8
  58. huaweicloudsdkram/v1/model/resource_types_summary.py +1 -8
  59. huaweicloudsdkram/v1/model/search_distinct_principals_request.py +1 -8
  60. huaweicloudsdkram/v1/model/search_distinct_principals_response.py +5 -9
  61. huaweicloudsdkram/v1/model/search_distinct_shared_principals_req_body.py +1 -8
  62. huaweicloudsdkram/v1/model/search_distinct_shared_resources_req_body.py +1 -8
  63. huaweicloudsdkram/v1/model/search_distinct_shared_resources_request.py +1 -8
  64. huaweicloudsdkram/v1/model/search_distinct_shared_resources_response.py +5 -9
  65. huaweicloudsdkram/v1/model/search_resource_share_associations_req_body.py +1 -8
  66. huaweicloudsdkram/v1/model/search_resource_share_associations_request.py +1 -8
  67. huaweicloudsdkram/v1/model/search_resource_share_associations_response.py +5 -9
  68. huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_request.py +1 -8
  69. huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_response.py +5 -9
  70. huaweicloudsdkram/v1/model/search_resource_share_invitation_req_body.py +1 -8
  71. huaweicloudsdkram/v1/model/search_resource_share_invitation_request.py +1 -8
  72. huaweicloudsdkram/v1/model/search_resource_share_invitation_response.py +5 -9
  73. huaweicloudsdkram/v1/model/search_resource_shares_req_body.py +1 -8
  74. huaweicloudsdkram/v1/model/search_resource_shares_request.py +1 -8
  75. huaweicloudsdkram/v1/model/search_resource_shares_response.py +5 -9
  76. huaweicloudsdkram/v1/model/search_shared_principals_req_body.py +1 -8
  77. huaweicloudsdkram/v1/model/search_shared_principals_request.py +1 -8
  78. huaweicloudsdkram/v1/model/search_shared_principals_response.py +5 -9
  79. huaweicloudsdkram/v1/model/search_shared_resources_req_body.py +1 -8
  80. huaweicloudsdkram/v1/model/search_shared_resources_request.py +1 -8
  81. huaweicloudsdkram/v1/model/search_shared_resources_response.py +5 -9
  82. huaweicloudsdkram/v1/model/shared_principal.py +1 -8
  83. huaweicloudsdkram/v1/model/shared_resource.py +1 -8
  84. huaweicloudsdkram/v1/model/show_organization_share_request.py +1 -8
  85. huaweicloudsdkram/v1/model/show_organization_share_response.py +5 -9
  86. huaweicloudsdkram/v1/model/show_permission_request.py +1 -8
  87. huaweicloudsdkram/v1/model/show_permission_response.py +5 -9
  88. huaweicloudsdkram/v1/model/tag.py +1 -8
  89. huaweicloudsdkram/v1/model/tag_dto.py +1 -8
  90. huaweicloudsdkram/v1/model/tag_filter.py +1 -8
  91. huaweicloudsdkram/v1/model/tag_resource_req_body.py +1 -8
  92. huaweicloudsdkram/v1/model/untag.py +1 -8
  93. huaweicloudsdkram/v1/model/untag_resource_req_body.py +1 -8
  94. huaweicloudsdkram/v1/model/update_resource_share_req_body.py +1 -8
  95. huaweicloudsdkram/v1/model/update_resource_share_request.py +1 -8
  96. huaweicloudsdkram/v1/model/update_resource_share_response.py +5 -9
  97. huaweicloudsdkram/v1/ram_async_client.py +1 -1
  98. huaweicloudsdkram/v1/ram_client.py +1 -1
  99. {huaweicloudsdkram-3.1.173.dist-info → huaweicloudsdkram-3.1.174.dist-info}/METADATA +2 -2
  100. huaweicloudsdkram-3.1.174.dist-info/RECORD +107 -0
  101. huaweicloudsdkram-3.1.173.dist-info/RECORD +0 -107
  102. {huaweicloudsdkram-3.1.173.dist-info → huaweicloudsdkram-3.1.174.dist-info}/WHEEL +0 -0
  103. {huaweicloudsdkram-3.1.173.dist-info → huaweicloudsdkram-3.1.174.dist-info}/licenses/LICENSE +0 -0
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
4
 
7
5
 
@@ -93,10 +91,9 @@ class AcceptResourceShareInvitationRequest:
93
91
  self._resource_share_invitation_id = resource_share_invitation_id
94
92
 
95
93
  def to_dict(self):
96
- """Returns the model properties as a dict"""
97
94
  result = {}
98
95
 
99
- for attr, _ in six.iteritems(self.openapi_types):
96
+ for attr, _ in self.openapi_types.items():
100
97
  value = getattr(self, attr)
101
98
  if isinstance(value, list):
102
99
  result[attr] = list(map(
@@ -122,10 +119,6 @@ class AcceptResourceShareInvitationRequest:
122
119
  def to_str(self):
123
120
  """Returns the string representation of the model"""
124
121
  import simplejson as json
125
- if six.PY2:
126
- import sys
127
- reload(sys)
128
- sys.setdefaultencoding("utf-8")
129
122
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
123
 
131
124
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.sdk_response import SdkResponse
6
4
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
5
 
@@ -34,7 +32,7 @@ class AcceptResourceShareInvitationResponse(SdkResponse):
34
32
  :type resource_share_invitation: :class:`huaweicloudsdkram.v1.ResourceShareInvitation`
35
33
  """
36
34
 
37
- super(AcceptResourceShareInvitationResponse, self).__init__()
35
+ super().__init__()
38
36
 
39
37
  self._resource_share_invitation = None
40
38
  self.discriminator = None
@@ -61,10 +59,12 @@ class AcceptResourceShareInvitationResponse(SdkResponse):
61
59
  self._resource_share_invitation = resource_share_invitation
62
60
 
63
61
  def to_dict(self):
64
- """Returns the model properties as a dict"""
62
+ import warnings
63
+ warnings.warn("AcceptResourceShareInvitationResponse.to_dict() is deprecated and no longer maintained, "
64
+ "use to_json_object() to get the response content.", DeprecationWarning)
65
65
  result = {}
66
66
 
67
- for attr, _ in six.iteritems(self.openapi_types):
67
+ for attr, _ in self.openapi_types.items():
68
68
  value = getattr(self, attr)
69
69
  if isinstance(value, list):
70
70
  result[attr] = list(map(
@@ -90,10 +90,6 @@ class AcceptResourceShareInvitationResponse(SdkResponse):
90
90
  def to_str(self):
91
91
  """Returns the string representation of the model"""
92
92
  import simplejson as json
93
- if six.PY2:
94
- import sys
95
- reload(sys)
96
- sys.setdefaultencoding("utf-8")
97
93
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
94
 
99
95
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
4
 
7
5
 
@@ -92,10 +90,9 @@ class AssociatePermissionReqBody:
92
90
  self._permission_id = permission_id
93
91
 
94
92
  def to_dict(self):
95
- """Returns the model properties as a dict"""
96
93
  result = {}
97
94
 
98
- for attr, _ in six.iteritems(self.openapi_types):
95
+ for attr, _ in self.openapi_types.items():
99
96
  value = getattr(self, attr)
100
97
  if isinstance(value, list):
101
98
  result[attr] = list(map(
@@ -121,10 +118,6 @@ class AssociatePermissionReqBody:
121
118
  def to_str(self):
122
119
  """Returns the string representation of the model"""
123
120
  import simplejson as json
124
- if six.PY2:
125
- import sys
126
- reload(sys)
127
- sys.setdefaultencoding("utf-8")
128
121
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
122
 
130
123
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
4
 
7
5
 
@@ -118,10 +116,9 @@ class AssociateResourceSharePermissionRequest:
118
116
  self._body = body
119
117
 
120
118
  def to_dict(self):
121
- """Returns the model properties as a dict"""
122
119
  result = {}
123
120
 
124
- for attr, _ in six.iteritems(self.openapi_types):
121
+ for attr, _ in self.openapi_types.items():
125
122
  value = getattr(self, attr)
126
123
  if isinstance(value, list):
127
124
  result[attr] = list(map(
@@ -147,10 +144,6 @@ class AssociateResourceSharePermissionRequest:
147
144
  def to_str(self):
148
145
  """Returns the string representation of the model"""
149
146
  import simplejson as json
150
- if six.PY2:
151
- import sys
152
- reload(sys)
153
- sys.setdefaultencoding("utf-8")
154
147
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
155
148
 
156
149
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.sdk_response import SdkResponse
6
4
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
5
 
@@ -30,14 +28,16 @@ class AssociateResourceSharePermissionResponse(SdkResponse):
30
28
 
31
29
  """
32
30
 
33
- super(AssociateResourceSharePermissionResponse, self).__init__()
31
+ super().__init__()
34
32
  self.discriminator = None
35
33
 
36
34
  def to_dict(self):
37
- """Returns the model properties as a dict"""
35
+ import warnings
36
+ warnings.warn("AssociateResourceSharePermissionResponse.to_dict() is deprecated and no longer maintained, "
37
+ "use to_json_object() to get the response content.", DeprecationWarning)
38
38
  result = {}
39
39
 
40
- for attr, _ in six.iteritems(self.openapi_types):
40
+ for attr, _ in self.openapi_types.items():
41
41
  value = getattr(self, attr)
42
42
  if isinstance(value, list):
43
43
  result[attr] = list(map(
@@ -63,10 +63,6 @@ class AssociateResourceSharePermissionResponse(SdkResponse):
63
63
  def to_str(self):
64
64
  """Returns the string representation of the model"""
65
65
  import simplejson as json
66
- if six.PY2:
67
- import sys
68
- reload(sys)
69
- sys.setdefaultencoding("utf-8")
70
66
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
67
 
72
68
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
4
 
7
5
 
@@ -118,10 +116,9 @@ class AssociateResourceShareRequest:
118
116
  self._body = body
119
117
 
120
118
  def to_dict(self):
121
- """Returns the model properties as a dict"""
122
119
  result = {}
123
120
 
124
- for attr, _ in six.iteritems(self.openapi_types):
121
+ for attr, _ in self.openapi_types.items():
125
122
  value = getattr(self, attr)
126
123
  if isinstance(value, list):
127
124
  result[attr] = list(map(
@@ -147,10 +144,6 @@ class AssociateResourceShareRequest:
147
144
  def to_str(self):
148
145
  """Returns the string representation of the model"""
149
146
  import simplejson as json
150
- if six.PY2:
151
- import sys
152
- reload(sys)
153
- sys.setdefaultencoding("utf-8")
154
147
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
155
148
 
156
149
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.sdk_response import SdkResponse
6
4
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
5
 
@@ -34,7 +32,7 @@ class AssociateResourceShareResponse(SdkResponse):
34
32
  :type resource_share_associations: list[:class:`huaweicloudsdkram.v1.ResourceShareAssociation`]
35
33
  """
36
34
 
37
- super(AssociateResourceShareResponse, self).__init__()
35
+ super().__init__()
38
36
 
39
37
  self._resource_share_associations = None
40
38
  self.discriminator = None
@@ -61,10 +59,12 @@ class AssociateResourceShareResponse(SdkResponse):
61
59
  self._resource_share_associations = resource_share_associations
62
60
 
63
61
  def to_dict(self):
64
- """Returns the model properties as a dict"""
62
+ import warnings
63
+ warnings.warn("AssociateResourceShareResponse.to_dict() is deprecated and no longer maintained, "
64
+ "use to_json_object() to get the response content.", DeprecationWarning)
65
65
  result = {}
66
66
 
67
- for attr, _ in six.iteritems(self.openapi_types):
67
+ for attr, _ in self.openapi_types.items():
68
68
  value = getattr(self, attr)
69
69
  if isinstance(value, list):
70
70
  result[attr] = list(map(
@@ -90,10 +90,6 @@ class AssociateResourceShareResponse(SdkResponse):
90
90
  def to_str(self):
91
91
  """Returns the string representation of the model"""
92
92
  import simplejson as json
93
- if six.PY2:
94
- import sys
95
- reload(sys)
96
- sys.setdefaultencoding("utf-8")
97
93
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
94
 
99
95
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
4
 
7
5
 
@@ -209,10 +207,9 @@ class AssociatedPermission:
209
207
  self._updated_at = updated_at
210
208
 
211
209
  def to_dict(self):
212
- """Returns the model properties as a dict"""
213
210
  result = {}
214
211
 
215
- for attr, _ in six.iteritems(self.openapi_types):
212
+ for attr, _ in self.openapi_types.items():
216
213
  value = getattr(self, attr)
217
214
  if isinstance(value, list):
218
215
  result[attr] = list(map(
@@ -238,10 +235,6 @@ class AssociatedPermission:
238
235
  def to_str(self):
239
236
  """Returns the string representation of the model"""
240
237
  import simplejson as json
241
- if six.PY2:
242
- import sys
243
- reload(sys)
244
- sys.setdefaultencoding("utf-8")
245
238
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
246
239
 
247
240
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
4
 
7
5
 
@@ -118,10 +116,9 @@ class BatchCreateResourceShareTagsRequest:
118
116
  self._body = body
119
117
 
120
118
  def to_dict(self):
121
- """Returns the model properties as a dict"""
122
119
  result = {}
123
120
 
124
- for attr, _ in six.iteritems(self.openapi_types):
121
+ for attr, _ in self.openapi_types.items():
125
122
  value = getattr(self, attr)
126
123
  if isinstance(value, list):
127
124
  result[attr] = list(map(
@@ -147,10 +144,6 @@ class BatchCreateResourceShareTagsRequest:
147
144
  def to_str(self):
148
145
  """Returns the string representation of the model"""
149
146
  import simplejson as json
150
- if six.PY2:
151
- import sys
152
- reload(sys)
153
- sys.setdefaultencoding("utf-8")
154
147
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
155
148
 
156
149
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.sdk_response import SdkResponse
6
4
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
5
 
@@ -30,14 +28,16 @@ class BatchCreateResourceShareTagsResponse(SdkResponse):
30
28
 
31
29
  """
32
30
 
33
- super(BatchCreateResourceShareTagsResponse, self).__init__()
31
+ super().__init__()
34
32
  self.discriminator = None
35
33
 
36
34
  def to_dict(self):
37
- """Returns the model properties as a dict"""
35
+ import warnings
36
+ warnings.warn("BatchCreateResourceShareTagsResponse.to_dict() is deprecated and no longer maintained, "
37
+ "use to_json_object() to get the response content.", DeprecationWarning)
38
38
  result = {}
39
39
 
40
- for attr, _ in six.iteritems(self.openapi_types):
40
+ for attr, _ in self.openapi_types.items():
41
41
  value = getattr(self, attr)
42
42
  if isinstance(value, list):
43
43
  result[attr] = list(map(
@@ -63,10 +63,6 @@ class BatchCreateResourceShareTagsResponse(SdkResponse):
63
63
  def to_str(self):
64
64
  """Returns the string representation of the model"""
65
65
  import simplejson as json
66
- if six.PY2:
67
- import sys
68
- reload(sys)
69
- sys.setdefaultencoding("utf-8")
70
66
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
67
 
72
68
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
4
 
7
5
 
@@ -118,10 +116,9 @@ class BatchDeleteResourceShareTagsRequest:
118
116
  self._body = body
119
117
 
120
118
  def to_dict(self):
121
- """Returns the model properties as a dict"""
122
119
  result = {}
123
120
 
124
- for attr, _ in six.iteritems(self.openapi_types):
121
+ for attr, _ in self.openapi_types.items():
125
122
  value = getattr(self, attr)
126
123
  if isinstance(value, list):
127
124
  result[attr] = list(map(
@@ -147,10 +144,6 @@ class BatchDeleteResourceShareTagsRequest:
147
144
  def to_str(self):
148
145
  """Returns the string representation of the model"""
149
146
  import simplejson as json
150
- if six.PY2:
151
- import sys
152
- reload(sys)
153
- sys.setdefaultencoding("utf-8")
154
147
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
155
148
 
156
149
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.sdk_response import SdkResponse
6
4
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
5
 
@@ -30,14 +28,16 @@ class BatchDeleteResourceShareTagsResponse(SdkResponse):
30
28
 
31
29
  """
32
30
 
33
- super(BatchDeleteResourceShareTagsResponse, self).__init__()
31
+ super().__init__()
34
32
  self.discriminator = None
35
33
 
36
34
  def to_dict(self):
37
- """Returns the model properties as a dict"""
35
+ import warnings
36
+ warnings.warn("BatchDeleteResourceShareTagsResponse.to_dict() is deprecated and no longer maintained, "
37
+ "use to_json_object() to get the response content.", DeprecationWarning)
38
38
  result = {}
39
39
 
40
- for attr, _ in six.iteritems(self.openapi_types):
40
+ for attr, _ in self.openapi_types.items():
41
41
  value = getattr(self, attr)
42
42
  if isinstance(value, list):
43
43
  result[attr] = list(map(
@@ -63,10 +63,6 @@ class BatchDeleteResourceShareTagsResponse(SdkResponse):
63
63
  def to_str(self):
64
64
  """Returns the string representation of the model"""
65
65
  import simplejson as json
66
- if six.PY2:
67
- import sys
68
- reload(sys)
69
- sys.setdefaultencoding("utf-8")
70
66
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
67
 
72
68
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
4
 
7
5
 
@@ -237,10 +235,9 @@ class CreateResourceShareReqBody:
237
235
  self._tags = tags
238
236
 
239
237
  def to_dict(self):
240
- """Returns the model properties as a dict"""
241
238
  result = {}
242
239
 
243
- for attr, _ in six.iteritems(self.openapi_types):
240
+ for attr, _ in self.openapi_types.items():
244
241
  value = getattr(self, attr)
245
242
  if isinstance(value, list):
246
243
  result[attr] = list(map(
@@ -266,10 +263,6 @@ class CreateResourceShareReqBody:
266
263
  def to_str(self):
267
264
  """Returns the string representation of the model"""
268
265
  import simplejson as json
269
- if six.PY2:
270
- import sys
271
- reload(sys)
272
- sys.setdefaultencoding("utf-8")
273
266
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
274
267
 
275
268
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
4
 
7
5
 
@@ -90,10 +88,9 @@ class CreateResourceShareRequest:
90
88
  self._body = body
91
89
 
92
90
  def to_dict(self):
93
- """Returns the model properties as a dict"""
94
91
  result = {}
95
92
 
96
- for attr, _ in six.iteritems(self.openapi_types):
93
+ for attr, _ in self.openapi_types.items():
97
94
  value = getattr(self, attr)
98
95
  if isinstance(value, list):
99
96
  result[attr] = list(map(
@@ -119,10 +116,6 @@ class CreateResourceShareRequest:
119
116
  def to_str(self):
120
117
  """Returns the string representation of the model"""
121
118
  import simplejson as json
122
- if six.PY2:
123
- import sys
124
- reload(sys)
125
- sys.setdefaultencoding("utf-8")
126
119
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
127
120
 
128
121
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.sdk_response import SdkResponse
6
4
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
5
 
@@ -34,7 +32,7 @@ class CreateResourceShareResponse(SdkResponse):
34
32
  :type resource_share: :class:`huaweicloudsdkram.v1.ResourceShare`
35
33
  """
36
34
 
37
- super(CreateResourceShareResponse, self).__init__()
35
+ super().__init__()
38
36
 
39
37
  self._resource_share = None
40
38
  self.discriminator = None
@@ -61,10 +59,12 @@ class CreateResourceShareResponse(SdkResponse):
61
59
  self._resource_share = resource_share
62
60
 
63
61
  def to_dict(self):
64
- """Returns the model properties as a dict"""
62
+ import warnings
63
+ warnings.warn("CreateResourceShareResponse.to_dict() is deprecated and no longer maintained, "
64
+ "use to_json_object() to get the response content.", DeprecationWarning)
65
65
  result = {}
66
66
 
67
- for attr, _ in six.iteritems(self.openapi_types):
67
+ for attr, _ in self.openapi_types.items():
68
68
  value = getattr(self, attr)
69
69
  if isinstance(value, list):
70
70
  result[attr] = list(map(
@@ -90,10 +90,6 @@ class CreateResourceShareResponse(SdkResponse):
90
90
  def to_str(self):
91
91
  """Returns the string representation of the model"""
92
92
  import simplejson as json
93
- if six.PY2:
94
- import sys
95
- reload(sys)
96
- sys.setdefaultencoding("utf-8")
97
93
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
94
 
99
95
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
4
 
7
5
 
@@ -93,10 +91,9 @@ class DeleteResourceShareRequest:
93
91
  self._resource_share_id = resource_share_id
94
92
 
95
93
  def to_dict(self):
96
- """Returns the model properties as a dict"""
97
94
  result = {}
98
95
 
99
- for attr, _ in six.iteritems(self.openapi_types):
96
+ for attr, _ in self.openapi_types.items():
100
97
  value = getattr(self, attr)
101
98
  if isinstance(value, list):
102
99
  result[attr] = list(map(
@@ -122,10 +119,6 @@ class DeleteResourceShareRequest:
122
119
  def to_str(self):
123
120
  """Returns the string representation of the model"""
124
121
  import simplejson as json
125
- if six.PY2:
126
- import sys
127
- reload(sys)
128
- sys.setdefaultencoding("utf-8")
129
122
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
123
 
131
124
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.sdk_response import SdkResponse
6
4
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
5
 
@@ -30,14 +28,16 @@ class DeleteResourceShareResponse(SdkResponse):
30
28
 
31
29
  """
32
30
 
33
- super(DeleteResourceShareResponse, self).__init__()
31
+ super().__init__()
34
32
  self.discriminator = None
35
33
 
36
34
  def to_dict(self):
37
- """Returns the model properties as a dict"""
35
+ import warnings
36
+ warnings.warn("DeleteResourceShareResponse.to_dict() is deprecated and no longer maintained, "
37
+ "use to_json_object() to get the response content.", DeprecationWarning)
38
38
  result = {}
39
39
 
40
- for attr, _ in six.iteritems(self.openapi_types):
40
+ for attr, _ in self.openapi_types.items():
41
41
  value = getattr(self, attr)
42
42
  if isinstance(value, list):
43
43
  result[attr] = list(map(
@@ -63,10 +63,6 @@ class DeleteResourceShareResponse(SdkResponse):
63
63
  def to_str(self):
64
64
  """Returns the string representation of the model"""
65
65
  import simplejson as json
66
- if six.PY2:
67
- import sys
68
- reload(sys)
69
- sys.setdefaultencoding("utf-8")
70
66
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
67
 
72
68
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
4
 
7
5
 
@@ -65,10 +63,9 @@ class DisableOrganizationShareRequest:
65
63
  self._x_security_token = x_security_token
66
64
 
67
65
  def to_dict(self):
68
- """Returns the model properties as a dict"""
69
66
  result = {}
70
67
 
71
- for attr, _ in six.iteritems(self.openapi_types):
68
+ for attr, _ in self.openapi_types.items():
72
69
  value = getattr(self, attr)
73
70
  if isinstance(value, list):
74
71
  result[attr] = list(map(
@@ -94,10 +91,6 @@ class DisableOrganizationShareRequest:
94
91
  def to_str(self):
95
92
  """Returns the string representation of the model"""
96
93
  import simplejson as json
97
- if six.PY2:
98
- import sys
99
- reload(sys)
100
- sys.setdefaultencoding("utf-8")
101
94
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
95
 
103
96
  def __repr__(self):
@@ -1,7 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import six
4
-
5
3
  from huaweicloudsdkcore.sdk_response import SdkResponse
6
4
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
5
 
@@ -30,14 +28,16 @@ class DisableOrganizationShareResponse(SdkResponse):
30
28
 
31
29
  """
32
30
 
33
- super(DisableOrganizationShareResponse, self).__init__()
31
+ super().__init__()
34
32
  self.discriminator = None
35
33
 
36
34
  def to_dict(self):
37
- """Returns the model properties as a dict"""
35
+ import warnings
36
+ warnings.warn("DisableOrganizationShareResponse.to_dict() is deprecated and no longer maintained, "
37
+ "use to_json_object() to get the response content.", DeprecationWarning)
38
38
  result = {}
39
39
 
40
- for attr, _ in six.iteritems(self.openapi_types):
40
+ for attr, _ in self.openapi_types.items():
41
41
  value = getattr(self, attr)
42
42
  if isinstance(value, list):
43
43
  result[attr] = list(map(
@@ -63,10 +63,6 @@ class DisableOrganizationShareResponse(SdkResponse):
63
63
  def to_str(self):
64
64
  """Returns the string representation of the model"""
65
65
  import simplejson as json
66
- if six.PY2:
67
- import sys
68
- reload(sys)
69
- sys.setdefaultencoding("utf-8")
70
66
  return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
67
 
72
68
  def __repr__(self):