huaweicloudsdkram 3.1.85__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. huaweicloudsdkram/v1/__init__.py +2 -0
  2. huaweicloudsdkram/v1/model/__init__.py +2 -0
  3. huaweicloudsdkram/v1/model/accept_resource_share_invitation_request.py +31 -1
  4. huaweicloudsdkram/v1/model/associate_permission_req_body.py +31 -31
  5. huaweicloudsdkram/v1/model/associate_resource_share_permission_request.py +31 -1
  6. huaweicloudsdkram/v1/model/associate_resource_share_request.py +31 -1
  7. huaweicloudsdkram/v1/model/batch_create_resource_share_tags_request.py +31 -1
  8. huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_request.py +31 -1
  9. huaweicloudsdkram/v1/model/create_resource_share_request.py +31 -1
  10. huaweicloudsdkram/v1/model/delete_resource_share_request.py +31 -1
  11. huaweicloudsdkram/v1/model/disable_organization_share_request.py +33 -1
  12. huaweicloudsdkram/v1/model/disassociate_resource_share_permission_request.py +31 -1
  13. huaweicloudsdkram/v1/model/disassociate_resource_share_request.py +31 -1
  14. huaweicloudsdkram/v1/model/enable_organization_share_request.py +33 -1
  15. huaweicloudsdkram/v1/model/list_permission_versions_request.py +202 -0
  16. huaweicloudsdkram/v1/model/list_permission_versions_response.py +141 -0
  17. huaweicloudsdkram/v1/model/list_permissions_request.py +62 -3
  18. huaweicloudsdkram/v1/model/list_quota_request.py +33 -1
  19. huaweicloudsdkram/v1/model/list_resource_share_permissions_request.py +31 -1
  20. huaweicloudsdkram/v1/model/list_resource_share_tags_request.py +33 -3
  21. huaweicloudsdkram/v1/model/list_resource_shares_by_tags_request.py +31 -1
  22. huaweicloudsdkram/v1/model/list_resource_types_request.py +31 -1
  23. huaweicloudsdkram/v1/model/permission.py +148 -3
  24. huaweicloudsdkram/v1/model/permission_summary.py +148 -3
  25. huaweicloudsdkram/v1/model/quotas.py +3 -3
  26. huaweicloudsdkram/v1/model/reject_resource_share_invitation_request.py +31 -1
  27. huaweicloudsdkram/v1/model/resource_share_association.py +3 -3
  28. huaweicloudsdkram/v1/model/resource_share_invitation.py +6 -6
  29. huaweicloudsdkram/v1/model/search_resource_share_associations_request.py +31 -1
  30. huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_request.py +31 -1
  31. huaweicloudsdkram/v1/model/search_resource_share_invitation_request.py +31 -1
  32. huaweicloudsdkram/v1/model/search_resource_shares_request.py +31 -1
  33. huaweicloudsdkram/v1/model/search_shared_principals_request.py +31 -1
  34. huaweicloudsdkram/v1/model/search_shared_resources_request.py +31 -1
  35. huaweicloudsdkram/v1/model/shared_principal.py +3 -3
  36. huaweicloudsdkram/v1/model/show_organization_share_request.py +33 -1
  37. huaweicloudsdkram/v1/model/show_permission_request.py +62 -3
  38. huaweicloudsdkram/v1/model/update_resource_share_request.py +31 -1
  39. huaweicloudsdkram/v1/ram_async_client.py +136 -7
  40. huaweicloudsdkram/v1/ram_client.py +136 -7
  41. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/METADATA +2 -2
  42. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/RECORD +45 -43
  43. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/WHEEL +1 -1
  44. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/LICENSE +0 -0
  45. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/top_level.txt +0 -0
@@ -15,22 +15,27 @@ class DisassociateResourceSharePermissionRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str',
20
22
  'resource_share_id': 'str',
21
23
  'body': 'DisassociatePermissionReqBody'
22
24
  }
23
25
 
24
26
  attribute_map = {
27
+ 'x_security_token': 'X-Security-Token',
25
28
  'resource_share_id': 'resource_share_id',
26
29
  'body': 'body'
27
30
  }
28
31
 
29
- def __init__(self, resource_share_id=None, body=None):
32
+ def __init__(self, x_security_token=None, resource_share_id=None, body=None):
30
33
  """DisassociateResourceSharePermissionRequest
31
34
 
32
35
  The model defined in huaweicloud sdk
33
36
 
37
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
38
+ :type x_security_token: str
34
39
  :param resource_share_id: 资源共享实例的ID。
35
40
  :type resource_share_id: str
36
41
  :param body: Body of the DisassociateResourceSharePermissionRequest
@@ -39,14 +44,39 @@ class DisassociateResourceSharePermissionRequest:
39
44
 
40
45
 
41
46
 
47
+ self._x_security_token = None
42
48
  self._resource_share_id = None
43
49
  self._body = None
44
50
  self.discriminator = None
45
51
 
52
+ if x_security_token is not None:
53
+ self.x_security_token = x_security_token
46
54
  self.resource_share_id = resource_share_id
47
55
  if body is not None:
48
56
  self.body = body
49
57
 
58
+ @property
59
+ def x_security_token(self):
60
+ """Gets the x_security_token of this DisassociateResourceSharePermissionRequest.
61
+
62
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
63
+
64
+ :return: The x_security_token of this DisassociateResourceSharePermissionRequest.
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
+ """Sets the x_security_token of this DisassociateResourceSharePermissionRequest.
72
+
73
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
74
+
75
+ :param x_security_token: The x_security_token of this DisassociateResourceSharePermissionRequest.
76
+ :type x_security_token: str
77
+ """
78
+ self._x_security_token = x_security_token
79
+
50
80
  @property
51
81
  def resource_share_id(self):
52
82
  """Gets the resource_share_id of this DisassociateResourceSharePermissionRequest.
@@ -15,22 +15,27 @@ class DisassociateResourceShareRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str',
20
22
  'resource_share_id': 'str',
21
23
  'body': 'ResourceShareAssociationReqBody'
22
24
  }
23
25
 
24
26
  attribute_map = {
27
+ 'x_security_token': 'X-Security-Token',
25
28
  'resource_share_id': 'resource_share_id',
26
29
  'body': 'body'
27
30
  }
28
31
 
29
- def __init__(self, resource_share_id=None, body=None):
32
+ def __init__(self, x_security_token=None, resource_share_id=None, body=None):
30
33
  """DisassociateResourceShareRequest
31
34
 
32
35
  The model defined in huaweicloud sdk
33
36
 
37
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
38
+ :type x_security_token: str
34
39
  :param resource_share_id: 资源共享实例的ID。
35
40
  :type resource_share_id: str
36
41
  :param body: Body of the DisassociateResourceShareRequest
@@ -39,14 +44,39 @@ class DisassociateResourceShareRequest:
39
44
 
40
45
 
41
46
 
47
+ self._x_security_token = None
42
48
  self._resource_share_id = None
43
49
  self._body = None
44
50
  self.discriminator = None
45
51
 
52
+ if x_security_token is not None:
53
+ self.x_security_token = x_security_token
46
54
  self.resource_share_id = resource_share_id
47
55
  if body is not None:
48
56
  self.body = body
49
57
 
58
+ @property
59
+ def x_security_token(self):
60
+ """Gets the x_security_token of this DisassociateResourceShareRequest.
61
+
62
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
63
+
64
+ :return: The x_security_token of this DisassociateResourceShareRequest.
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
+ """Sets the x_security_token of this DisassociateResourceShareRequest.
72
+
73
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
74
+
75
+ :param x_security_token: The x_security_token of this DisassociateResourceShareRequest.
76
+ :type x_security_token: str
77
+ """
78
+ self._x_security_token = x_security_token
79
+
50
80
  @property
51
81
  def resource_share_id(self):
52
82
  """Gets the resource_share_id of this DisassociateResourceShareRequest.
@@ -15,23 +15,55 @@ class EnableOrganizationShareRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str'
20
22
  }
21
23
 
22
24
  attribute_map = {
25
+ 'x_security_token': 'X-Security-Token'
23
26
  }
24
27
 
25
- def __init__(self):
28
+ def __init__(self, x_security_token=None):
26
29
  """EnableOrganizationShareRequest
27
30
 
28
31
  The model defined in huaweicloud sdk
29
32
 
33
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
34
+ :type x_security_token: str
30
35
  """
31
36
 
32
37
 
38
+
39
+ self._x_security_token = None
33
40
  self.discriminator = None
34
41
 
42
+ if x_security_token is not None:
43
+ self.x_security_token = x_security_token
44
+
45
+ @property
46
+ def x_security_token(self):
47
+ """Gets the x_security_token of this EnableOrganizationShareRequest.
48
+
49
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
50
+
51
+ :return: The x_security_token of this EnableOrganizationShareRequest.
52
+ :rtype: str
53
+ """
54
+ return self._x_security_token
55
+
56
+ @x_security_token.setter
57
+ def x_security_token(self, x_security_token):
58
+ """Sets the x_security_token of this EnableOrganizationShareRequest.
59
+
60
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
61
+
62
+ :param x_security_token: The x_security_token of this EnableOrganizationShareRequest.
63
+ :type x_security_token: str
64
+ """
65
+ self._x_security_token = x_security_token
66
+
35
67
  def to_dict(self):
36
68
  """Returns the model properties as a dict"""
37
69
  result = {}
@@ -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
+ """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
+ """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
+ """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
+ """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
+ """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
+ """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
+ """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
+ """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
+ """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
+ """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
+ """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
+ """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
+ """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
+ """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
@@ -15,45 +15,82 @@ class ListPermissionsRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str',
20
22
  'limit': 'int',
21
23
  'marker': 'str',
22
- 'resource_type': 'str'
24
+ 'resource_type': 'str',
25
+ 'permission_type': 'str'
23
26
  }
24
27
 
25
28
  attribute_map = {
29
+ 'x_security_token': 'X-Security-Token',
26
30
  'limit': 'limit',
27
31
  'marker': 'marker',
28
- 'resource_type': 'resource_type'
32
+ 'resource_type': 'resource_type',
33
+ 'permission_type': 'permission_type'
29
34
  }
30
35
 
31
- def __init__(self, limit=None, marker=None, resource_type=None):
36
+ def __init__(self, x_security_token=None, limit=None, marker=None, resource_type=None, permission_type=None):
32
37
  """ListPermissionsRequest
33
38
 
34
39
  The model defined in huaweicloud sdk
35
40
 
41
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
42
+ :type x_security_token: str
36
43
  :param limit: 分页页面的最大值。
37
44
  :type limit: int
38
45
  :param marker: 页面标记。
39
46
  :type marker: str
40
47
  :param resource_type: 资源类型的名称。
41
48
  :type resource_type: str
49
+ :param permission_type: 权限类型。RAM_MANAGED表示RAM托管的权限,CUSTOMER_MANAGED表示租户创建的自定义的权限,ALL表示所有的权限。
50
+ :type permission_type: str
42
51
  """
43
52
 
44
53
 
45
54
 
55
+ self._x_security_token = None
46
56
  self._limit = None
47
57
  self._marker = None
48
58
  self._resource_type = None
59
+ self._permission_type = None
49
60
  self.discriminator = None
50
61
 
62
+ if x_security_token is not None:
63
+ self.x_security_token = x_security_token
51
64
  if limit is not None:
52
65
  self.limit = limit
53
66
  if marker is not None:
54
67
  self.marker = marker
55
68
  if resource_type is not None:
56
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
+ """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
+ """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
57
94
 
58
95
  @property
59
96
  def limit(self):
@@ -121,6 +158,28 @@ class ListPermissionsRequest:
121
158
  """
122
159
  self._resource_type = resource_type
123
160
 
161
+ @property
162
+ def permission_type(self):
163
+ """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
+ """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
+
124
183
  def to_dict(self):
125
184
  """Returns the model properties as a dict"""
126
185
  result = {}