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,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 EnableOrganizationShareResponse(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"""EnableOrganizationShareResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(EnableOrganizationShareResponse, 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, EnableOrganizationShareResponse):
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,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListPermissionVersionsRequest:
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
+ 'limit': 'int',
23
+ 'marker': 'str',
24
+ 'permission_id': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'x_security_token': 'X-Security-Token',
29
+ 'limit': 'limit',
30
+ 'marker': 'marker',
31
+ 'permission_id': 'permission_id'
32
+ }
33
+
34
+ def __init__(self, x_security_token=None, limit=None, marker=None, permission_id=None):
35
+ r"""ListPermissionVersionsRequest
36
+
37
+ The model defined in huaweicloud sdk
38
+
39
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
40
+ :type x_security_token: str
41
+ :param limit: 分页页面的最大值。
42
+ :type limit: int
43
+ :param marker: 页面标记。
44
+ :type marker: str
45
+ :param permission_id: 共享资源权限的ID。
46
+ :type permission_id: str
47
+ """
48
+
49
+
50
+
51
+ self._x_security_token = None
52
+ self._limit = None
53
+ self._marker = None
54
+ self._permission_id = None
55
+ self.discriminator = None
56
+
57
+ if x_security_token is not None:
58
+ self.x_security_token = x_security_token
59
+ if limit is not None:
60
+ self.limit = limit
61
+ if marker is not None:
62
+ self.marker = marker
63
+ self.permission_id = permission_id
64
+
65
+ @property
66
+ def x_security_token(self):
67
+ r"""Gets the x_security_token of this ListPermissionVersionsRequest.
68
+
69
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
70
+
71
+ :return: The x_security_token of this ListPermissionVersionsRequest.
72
+ :rtype: str
73
+ """
74
+ return self._x_security_token
75
+
76
+ @x_security_token.setter
77
+ def x_security_token(self, x_security_token):
78
+ r"""Sets the x_security_token of this ListPermissionVersionsRequest.
79
+
80
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
81
+
82
+ :param x_security_token: The x_security_token of this ListPermissionVersionsRequest.
83
+ :type x_security_token: str
84
+ """
85
+ self._x_security_token = x_security_token
86
+
87
+ @property
88
+ def limit(self):
89
+ r"""Gets the limit of this ListPermissionVersionsRequest.
90
+
91
+ 分页页面的最大值。
92
+
93
+ :return: The limit of this ListPermissionVersionsRequest.
94
+ :rtype: int
95
+ """
96
+ return self._limit
97
+
98
+ @limit.setter
99
+ def limit(self, limit):
100
+ r"""Sets the limit of this ListPermissionVersionsRequest.
101
+
102
+ 分页页面的最大值。
103
+
104
+ :param limit: The limit of this ListPermissionVersionsRequest.
105
+ :type limit: int
106
+ """
107
+ self._limit = limit
108
+
109
+ @property
110
+ def marker(self):
111
+ r"""Gets the marker of this ListPermissionVersionsRequest.
112
+
113
+ 页面标记。
114
+
115
+ :return: The marker of this ListPermissionVersionsRequest.
116
+ :rtype: str
117
+ """
118
+ return self._marker
119
+
120
+ @marker.setter
121
+ def marker(self, marker):
122
+ r"""Sets the marker of this ListPermissionVersionsRequest.
123
+
124
+ 页面标记。
125
+
126
+ :param marker: The marker of this ListPermissionVersionsRequest.
127
+ :type marker: str
128
+ """
129
+ self._marker = marker
130
+
131
+ @property
132
+ def permission_id(self):
133
+ r"""Gets the permission_id of this ListPermissionVersionsRequest.
134
+
135
+ 共享资源权限的ID。
136
+
137
+ :return: The permission_id of this ListPermissionVersionsRequest.
138
+ :rtype: str
139
+ """
140
+ return self._permission_id
141
+
142
+ @permission_id.setter
143
+ def permission_id(self, permission_id):
144
+ r"""Sets the permission_id of this ListPermissionVersionsRequest.
145
+
146
+ 共享资源权限的ID。
147
+
148
+ :param permission_id: The permission_id of this ListPermissionVersionsRequest.
149
+ :type permission_id: str
150
+ """
151
+ self._permission_id = permission_id
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, ListPermissionVersionsRequest):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ return not self == other
@@ -0,0 +1,141 @@
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 ListPermissionVersionsResponse(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
+ 'permissions': 'list[PermissionSummary]',
22
+ 'page_info': 'PageInfo'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'permissions': 'permissions',
27
+ 'page_info': 'page_info'
28
+ }
29
+
30
+ def __init__(self, permissions=None, page_info=None):
31
+ r"""ListPermissionVersionsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param permissions: 共享资源权限的详细信息列表。
36
+ :type permissions: list[:class:`huaweicloudsdkram.v1.PermissionSummary`]
37
+ :param page_info:
38
+ :type page_info: :class:`huaweicloudsdkram.v1.PageInfo`
39
+ """
40
+
41
+ super(ListPermissionVersionsResponse, self).__init__()
42
+
43
+ self._permissions = None
44
+ self._page_info = None
45
+ self.discriminator = None
46
+
47
+ if permissions is not None:
48
+ self.permissions = permissions
49
+ if page_info is not None:
50
+ self.page_info = page_info
51
+
52
+ @property
53
+ def permissions(self):
54
+ r"""Gets the permissions of this ListPermissionVersionsResponse.
55
+
56
+ 共享资源权限的详细信息列表。
57
+
58
+ :return: The permissions of this ListPermissionVersionsResponse.
59
+ :rtype: list[:class:`huaweicloudsdkram.v1.PermissionSummary`]
60
+ """
61
+ return self._permissions
62
+
63
+ @permissions.setter
64
+ def permissions(self, permissions):
65
+ r"""Sets the permissions of this ListPermissionVersionsResponse.
66
+
67
+ 共享资源权限的详细信息列表。
68
+
69
+ :param permissions: The permissions of this ListPermissionVersionsResponse.
70
+ :type permissions: list[:class:`huaweicloudsdkram.v1.PermissionSummary`]
71
+ """
72
+ self._permissions = permissions
73
+
74
+ @property
75
+ def page_info(self):
76
+ r"""Gets the page_info of this ListPermissionVersionsResponse.
77
+
78
+ :return: The page_info of this ListPermissionVersionsResponse.
79
+ :rtype: :class:`huaweicloudsdkram.v1.PageInfo`
80
+ """
81
+ return self._page_info
82
+
83
+ @page_info.setter
84
+ def page_info(self, page_info):
85
+ r"""Sets the page_info of this ListPermissionVersionsResponse.
86
+
87
+ :param page_info: The page_info of this ListPermissionVersionsResponse.
88
+ :type page_info: :class:`huaweicloudsdkram.v1.PageInfo`
89
+ """
90
+ self._page_info = page_info
91
+
92
+ def to_dict(self):
93
+ """Returns the model properties as a dict"""
94
+ result = {}
95
+
96
+ for attr, _ in six.iteritems(self.openapi_types):
97
+ value = getattr(self, attr)
98
+ if isinstance(value, list):
99
+ result[attr] = list(map(
100
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101
+ value
102
+ ))
103
+ elif hasattr(value, "to_dict"):
104
+ result[attr] = value.to_dict()
105
+ elif isinstance(value, dict):
106
+ result[attr] = dict(map(
107
+ lambda item: (item[0], item[1].to_dict())
108
+ if hasattr(item[1], "to_dict") else item,
109
+ value.items()
110
+ ))
111
+ else:
112
+ if attr in self.sensitive_list:
113
+ result[attr] = "****"
114
+ else:
115
+ result[attr] = value
116
+
117
+ return result
118
+
119
+ def to_str(self):
120
+ """Returns the string representation of the model"""
121
+ import simplejson as json
122
+ if six.PY2:
123
+ import sys
124
+ reload(sys)
125
+ sys.setdefaultencoding("utf-8")
126
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
127
+
128
+ def __repr__(self):
129
+ """For `print`"""
130
+ return self.to_str()
131
+
132
+ def __eq__(self, other):
133
+ """Returns true if both objects are equal"""
134
+ if not isinstance(other, ListPermissionVersionsResponse):
135
+ return False
136
+
137
+ return self.__dict__ == other.__dict__
138
+
139
+ def __ne__(self, other):
140
+ """Returns true if both objects are not equal"""
141
+ return not self == other
@@ -0,0 +1,232 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListPermissionsRequest:
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
+ 'limit': 'int',
23
+ 'marker': 'str',
24
+ 'resource_type': 'str',
25
+ 'permission_type': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'x_security_token': 'X-Security-Token',
30
+ 'limit': 'limit',
31
+ 'marker': 'marker',
32
+ 'resource_type': 'resource_type',
33
+ 'permission_type': 'permission_type'
34
+ }
35
+
36
+ def __init__(self, x_security_token=None, limit=None, marker=None, resource_type=None, permission_type=None):
37
+ r"""ListPermissionsRequest
38
+
39
+ The model defined in huaweicloud sdk
40
+
41
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
42
+ :type x_security_token: str
43
+ :param limit: 分页页面的最大值。
44
+ :type limit: int
45
+ :param marker: 页面标记。
46
+ :type marker: str
47
+ :param resource_type: 资源类型的名称。
48
+ :type resource_type: str
49
+ :param permission_type: 权限类型。RAM_MANAGED表示RAM托管的权限,CUSTOMER_MANAGED表示租户创建的自定义的权限,ALL表示所有的权限。
50
+ :type permission_type: str
51
+ """
52
+
53
+
54
+
55
+ self._x_security_token = None
56
+ self._limit = None
57
+ self._marker = None
58
+ self._resource_type = None
59
+ self._permission_type = None
60
+ self.discriminator = None
61
+
62
+ if x_security_token is not None:
63
+ self.x_security_token = x_security_token
64
+ if limit is not None:
65
+ self.limit = limit
66
+ if marker is not None:
67
+ self.marker = marker
68
+ if resource_type is not None:
69
+ self.resource_type = resource_type
70
+ if permission_type is not None:
71
+ self.permission_type = permission_type
72
+
73
+ @property
74
+ def x_security_token(self):
75
+ r"""Gets the x_security_token of this ListPermissionsRequest.
76
+
77
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
78
+
79
+ :return: The x_security_token of this ListPermissionsRequest.
80
+ :rtype: str
81
+ """
82
+ return self._x_security_token
83
+
84
+ @x_security_token.setter
85
+ def x_security_token(self, x_security_token):
86
+ r"""Sets the x_security_token of this ListPermissionsRequest.
87
+
88
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
89
+
90
+ :param x_security_token: The x_security_token of this ListPermissionsRequest.
91
+ :type x_security_token: str
92
+ """
93
+ self._x_security_token = x_security_token
94
+
95
+ @property
96
+ def limit(self):
97
+ r"""Gets the limit of this ListPermissionsRequest.
98
+
99
+ 分页页面的最大值。
100
+
101
+ :return: The limit of this ListPermissionsRequest.
102
+ :rtype: int
103
+ """
104
+ return self._limit
105
+
106
+ @limit.setter
107
+ def limit(self, limit):
108
+ r"""Sets the limit of this ListPermissionsRequest.
109
+
110
+ 分页页面的最大值。
111
+
112
+ :param limit: The limit of this ListPermissionsRequest.
113
+ :type limit: int
114
+ """
115
+ self._limit = limit
116
+
117
+ @property
118
+ def marker(self):
119
+ r"""Gets the marker of this ListPermissionsRequest.
120
+
121
+ 页面标记。
122
+
123
+ :return: The marker of this ListPermissionsRequest.
124
+ :rtype: str
125
+ """
126
+ return self._marker
127
+
128
+ @marker.setter
129
+ def marker(self, marker):
130
+ r"""Sets the marker of this ListPermissionsRequest.
131
+
132
+ 页面标记。
133
+
134
+ :param marker: The marker of this ListPermissionsRequest.
135
+ :type marker: str
136
+ """
137
+ self._marker = marker
138
+
139
+ @property
140
+ def resource_type(self):
141
+ r"""Gets the resource_type of this ListPermissionsRequest.
142
+
143
+ 资源类型的名称。
144
+
145
+ :return: The resource_type of this ListPermissionsRequest.
146
+ :rtype: str
147
+ """
148
+ return self._resource_type
149
+
150
+ @resource_type.setter
151
+ def resource_type(self, resource_type):
152
+ r"""Sets the resource_type of this ListPermissionsRequest.
153
+
154
+ 资源类型的名称。
155
+
156
+ :param resource_type: The resource_type of this ListPermissionsRequest.
157
+ :type resource_type: str
158
+ """
159
+ self._resource_type = resource_type
160
+
161
+ @property
162
+ def permission_type(self):
163
+ r"""Gets the permission_type of this ListPermissionsRequest.
164
+
165
+ 权限类型。RAM_MANAGED表示RAM托管的权限,CUSTOMER_MANAGED表示租户创建的自定义的权限,ALL表示所有的权限。
166
+
167
+ :return: The permission_type of this ListPermissionsRequest.
168
+ :rtype: str
169
+ """
170
+ return self._permission_type
171
+
172
+ @permission_type.setter
173
+ def permission_type(self, permission_type):
174
+ r"""Sets the permission_type of this ListPermissionsRequest.
175
+
176
+ 权限类型。RAM_MANAGED表示RAM托管的权限,CUSTOMER_MANAGED表示租户创建的自定义的权限,ALL表示所有的权限。
177
+
178
+ :param permission_type: The permission_type of this ListPermissionsRequest.
179
+ :type permission_type: str
180
+ """
181
+ self._permission_type = permission_type
182
+
183
+ def to_dict(self):
184
+ """Returns the model properties as a dict"""
185
+ result = {}
186
+
187
+ for attr, _ in six.iteritems(self.openapi_types):
188
+ value = getattr(self, attr)
189
+ if isinstance(value, list):
190
+ result[attr] = list(map(
191
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
192
+ value
193
+ ))
194
+ elif hasattr(value, "to_dict"):
195
+ result[attr] = value.to_dict()
196
+ elif isinstance(value, dict):
197
+ result[attr] = dict(map(
198
+ lambda item: (item[0], item[1].to_dict())
199
+ if hasattr(item[1], "to_dict") else item,
200
+ value.items()
201
+ ))
202
+ else:
203
+ if attr in self.sensitive_list:
204
+ result[attr] = "****"
205
+ else:
206
+ result[attr] = value
207
+
208
+ return result
209
+
210
+ def to_str(self):
211
+ """Returns the string representation of the model"""
212
+ import simplejson as json
213
+ if six.PY2:
214
+ import sys
215
+ reload(sys)
216
+ sys.setdefaultencoding("utf-8")
217
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
218
+
219
+ def __repr__(self):
220
+ """For `print`"""
221
+ return self.to_str()
222
+
223
+ def __eq__(self, other):
224
+ """Returns true if both objects are equal"""
225
+ if not isinstance(other, ListPermissionsRequest):
226
+ return False
227
+
228
+ return self.__dict__ == other.__dict__
229
+
230
+ def __ne__(self, other):
231
+ """Returns true if both objects are not equal"""
232
+ return not self == other