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,169 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class AssociateResourceSharePermissionRequest:
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_id': 'str',
23
+ 'body': 'AssociatePermissionReqBody'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'x_security_token': 'X-Security-Token',
28
+ 'resource_share_id': 'resource_share_id',
29
+ 'body': 'body'
30
+ }
31
+
32
+ def __init__(self, x_security_token=None, resource_share_id=None, body=None):
33
+ r"""AssociateResourceSharePermissionRequest
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
38
+ :type x_security_token: str
39
+ :param resource_share_id: 资源共享实例的ID。
40
+ :type resource_share_id: str
41
+ :param body: Body of the AssociateResourceSharePermissionRequest
42
+ :type body: :class:`huaweicloudsdkram.v1.AssociatePermissionReqBody`
43
+ """
44
+
45
+
46
+
47
+ self._x_security_token = None
48
+ self._resource_share_id = None
49
+ self._body = None
50
+ self.discriminator = None
51
+
52
+ if x_security_token is not None:
53
+ self.x_security_token = x_security_token
54
+ self.resource_share_id = resource_share_id
55
+ if body is not None:
56
+ self.body = body
57
+
58
+ @property
59
+ def x_security_token(self):
60
+ r"""Gets the x_security_token of this AssociateResourceSharePermissionRequest.
61
+
62
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
63
+
64
+ :return: The x_security_token of this AssociateResourceSharePermissionRequest.
65
+ :rtype: str
66
+ """
67
+ return self._x_security_token
68
+
69
+ @x_security_token.setter
70
+ def x_security_token(self, x_security_token):
71
+ r"""Sets the x_security_token of this AssociateResourceSharePermissionRequest.
72
+
73
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
74
+
75
+ :param x_security_token: The x_security_token of this AssociateResourceSharePermissionRequest.
76
+ :type x_security_token: str
77
+ """
78
+ self._x_security_token = x_security_token
79
+
80
+ @property
81
+ def resource_share_id(self):
82
+ r"""Gets the resource_share_id of this AssociateResourceSharePermissionRequest.
83
+
84
+ 资源共享实例的ID。
85
+
86
+ :return: The resource_share_id of this AssociateResourceSharePermissionRequest.
87
+ :rtype: str
88
+ """
89
+ return self._resource_share_id
90
+
91
+ @resource_share_id.setter
92
+ def resource_share_id(self, resource_share_id):
93
+ r"""Sets the resource_share_id of this AssociateResourceSharePermissionRequest.
94
+
95
+ 资源共享实例的ID。
96
+
97
+ :param resource_share_id: The resource_share_id of this AssociateResourceSharePermissionRequest.
98
+ :type resource_share_id: str
99
+ """
100
+ self._resource_share_id = resource_share_id
101
+
102
+ @property
103
+ def body(self):
104
+ r"""Gets the body of this AssociateResourceSharePermissionRequest.
105
+
106
+ :return: The body of this AssociateResourceSharePermissionRequest.
107
+ :rtype: :class:`huaweicloudsdkram.v1.AssociatePermissionReqBody`
108
+ """
109
+ return self._body
110
+
111
+ @body.setter
112
+ def body(self, body):
113
+ r"""Sets the body of this AssociateResourceSharePermissionRequest.
114
+
115
+ :param body: The body of this AssociateResourceSharePermissionRequest.
116
+ :type body: :class:`huaweicloudsdkram.v1.AssociatePermissionReqBody`
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, AssociateResourceSharePermissionRequest):
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 AssociateResourceSharePermissionResponse(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"""AssociateResourceSharePermissionResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(AssociateResourceSharePermissionResponse, 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, AssociateResourceSharePermissionResponse):
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 AssociateResourceShareRequest:
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_id': 'str',
23
+ 'body': 'ResourceShareAssociationReqBody'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'x_security_token': 'X-Security-Token',
28
+ 'resource_share_id': 'resource_share_id',
29
+ 'body': 'body'
30
+ }
31
+
32
+ def __init__(self, x_security_token=None, resource_share_id=None, body=None):
33
+ r"""AssociateResourceShareRequest
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
38
+ :type x_security_token: str
39
+ :param resource_share_id: 资源共享实例的ID。
40
+ :type resource_share_id: str
41
+ :param body: Body of the AssociateResourceShareRequest
42
+ :type body: :class:`huaweicloudsdkram.v1.ResourceShareAssociationReqBody`
43
+ """
44
+
45
+
46
+
47
+ self._x_security_token = None
48
+ self._resource_share_id = None
49
+ self._body = None
50
+ self.discriminator = None
51
+
52
+ if x_security_token is not None:
53
+ self.x_security_token = x_security_token
54
+ self.resource_share_id = resource_share_id
55
+ if body is not None:
56
+ self.body = body
57
+
58
+ @property
59
+ def x_security_token(self):
60
+ r"""Gets the x_security_token of this AssociateResourceShareRequest.
61
+
62
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
63
+
64
+ :return: The x_security_token of this AssociateResourceShareRequest.
65
+ :rtype: str
66
+ """
67
+ return self._x_security_token
68
+
69
+ @x_security_token.setter
70
+ def x_security_token(self, x_security_token):
71
+ r"""Sets the x_security_token of this AssociateResourceShareRequest.
72
+
73
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
74
+
75
+ :param x_security_token: The x_security_token of this AssociateResourceShareRequest.
76
+ :type x_security_token: str
77
+ """
78
+ self._x_security_token = x_security_token
79
+
80
+ @property
81
+ def resource_share_id(self):
82
+ r"""Gets the resource_share_id of this AssociateResourceShareRequest.
83
+
84
+ 资源共享实例的ID。
85
+
86
+ :return: The resource_share_id of this AssociateResourceShareRequest.
87
+ :rtype: str
88
+ """
89
+ return self._resource_share_id
90
+
91
+ @resource_share_id.setter
92
+ def resource_share_id(self, resource_share_id):
93
+ r"""Sets the resource_share_id of this AssociateResourceShareRequest.
94
+
95
+ 资源共享实例的ID。
96
+
97
+ :param resource_share_id: The resource_share_id of this AssociateResourceShareRequest.
98
+ :type resource_share_id: str
99
+ """
100
+ self._resource_share_id = resource_share_id
101
+
102
+ @property
103
+ def body(self):
104
+ r"""Gets the body of this AssociateResourceShareRequest.
105
+
106
+ :return: The body of this AssociateResourceShareRequest.
107
+ :rtype: :class:`huaweicloudsdkram.v1.ResourceShareAssociationReqBody`
108
+ """
109
+ return self._body
110
+
111
+ @body.setter
112
+ def body(self, body):
113
+ r"""Sets the body of this AssociateResourceShareRequest.
114
+
115
+ :param body: The body of this AssociateResourceShareRequest.
116
+ :type body: :class:`huaweicloudsdkram.v1.ResourceShareAssociationReqBody`
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, AssociateResourceShareRequest):
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,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 AssociateResourceShareResponse(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_associations': 'list[ResourceShareAssociation]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'resource_share_associations': 'resource_share_associations'
26
+ }
27
+
28
+ def __init__(self, resource_share_associations=None):
29
+ r"""AssociateResourceShareResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param resource_share_associations:
34
+ :type resource_share_associations: list[:class:`huaweicloudsdkram.v1.ResourceShareAssociation`]
35
+ """
36
+
37
+ super(AssociateResourceShareResponse, self).__init__()
38
+
39
+ self._resource_share_associations = None
40
+ self.discriminator = None
41
+
42
+ if resource_share_associations is not None:
43
+ self.resource_share_associations = resource_share_associations
44
+
45
+ @property
46
+ def resource_share_associations(self):
47
+ r"""Gets the resource_share_associations of this AssociateResourceShareResponse.
48
+
49
+ :return: The resource_share_associations of this AssociateResourceShareResponse.
50
+ :rtype: list[:class:`huaweicloudsdkram.v1.ResourceShareAssociation`]
51
+ """
52
+ return self._resource_share_associations
53
+
54
+ @resource_share_associations.setter
55
+ def resource_share_associations(self, resource_share_associations):
56
+ r"""Sets the resource_share_associations of this AssociateResourceShareResponse.
57
+
58
+ :param resource_share_associations: The resource_share_associations of this AssociateResourceShareResponse.
59
+ :type resource_share_associations: list[:class:`huaweicloudsdkram.v1.ResourceShareAssociation`]
60
+ """
61
+ self._resource_share_associations = resource_share_associations
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, AssociateResourceShareResponse):
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