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.
- huaweicloudsdkram/__init__.py +0 -0
- huaweicloudsdkram/v1/__init__.py +96 -0
- huaweicloudsdkram/v1/model/__init__.py +93 -0
- huaweicloudsdkram/v1/model/accept_resource_share_invitation_request.py +144 -0
- huaweicloudsdkram/v1/model/accept_resource_share_invitation_response.py +112 -0
- huaweicloudsdkram/v1/model/associate_permission_req_body.py +143 -0
- huaweicloudsdkram/v1/model/associate_resource_share_permission_request.py +169 -0
- huaweicloudsdkram/v1/model/associate_resource_share_permission_response.py +85 -0
- huaweicloudsdkram/v1/model/associate_resource_share_request.py +169 -0
- huaweicloudsdkram/v1/model/associate_resource_share_response.py +112 -0
- huaweicloudsdkram/v1/model/associated_permission.py +260 -0
- huaweicloudsdkram/v1/model/batch_create_resource_share_tags_request.py +169 -0
- huaweicloudsdkram/v1/model/batch_create_resource_share_tags_response.py +85 -0
- huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_request.py +169 -0
- huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_response.py +85 -0
- huaweicloudsdkram/v1/model/create_resource_share_req_body.py +288 -0
- huaweicloudsdkram/v1/model/create_resource_share_request.py +141 -0
- huaweicloudsdkram/v1/model/create_resource_share_response.py +112 -0
- huaweicloudsdkram/v1/model/delete_resource_share_request.py +144 -0
- huaweicloudsdkram/v1/model/delete_resource_share_response.py +85 -0
- huaweicloudsdkram/v1/model/disable_organization_share_request.py +116 -0
- huaweicloudsdkram/v1/model/disable_organization_share_response.py +85 -0
- huaweicloudsdkram/v1/model/disassociate_permission_req_body.py +114 -0
- huaweicloudsdkram/v1/model/disassociate_resource_share_permission_request.py +169 -0
- huaweicloudsdkram/v1/model/disassociate_resource_share_permission_response.py +85 -0
- huaweicloudsdkram/v1/model/disassociate_resource_share_request.py +169 -0
- huaweicloudsdkram/v1/model/disassociate_resource_share_response.py +112 -0
- huaweicloudsdkram/v1/model/enable_organization_share_request.py +116 -0
- huaweicloudsdkram/v1/model/enable_organization_share_response.py +85 -0
- huaweicloudsdkram/v1/model/list_permission_versions_request.py +202 -0
- huaweicloudsdkram/v1/model/list_permission_versions_response.py +141 -0
- huaweicloudsdkram/v1/model/list_permissions_request.py +232 -0
- huaweicloudsdkram/v1/model/list_permissions_response.py +141 -0
- huaweicloudsdkram/v1/model/list_quota_request.py +116 -0
- huaweicloudsdkram/v1/model/list_quota_response.py +112 -0
- huaweicloudsdkram/v1/model/list_resource_share_permissions_request.py +231 -0
- huaweicloudsdkram/v1/model/list_resource_share_permissions_response.py +141 -0
- huaweicloudsdkram/v1/model/list_resource_share_tags_request.py +174 -0
- huaweicloudsdkram/v1/model/list_resource_share_tags_response.py +141 -0
- huaweicloudsdkram/v1/model/list_resource_shares_by_tags_request.py +199 -0
- huaweicloudsdkram/v1/model/list_resource_shares_by_tags_response.py +145 -0
- huaweicloudsdkram/v1/model/list_resource_types_request.py +174 -0
- huaweicloudsdkram/v1/model/list_resource_types_response.py +141 -0
- huaweicloudsdkram/v1/model/match.py +142 -0
- huaweicloudsdkram/v1/model/page_info.py +173 -0
- huaweicloudsdkram/v1/model/page_info_marker_by_key.py +173 -0
- huaweicloudsdkram/v1/model/permission.py +427 -0
- huaweicloudsdkram/v1/model/permission_summary.py +399 -0
- huaweicloudsdkram/v1/model/quota_resources_dto.py +114 -0
- huaweicloudsdkram/v1/model/quotas.py +226 -0
- huaweicloudsdkram/v1/model/reject_resource_share_invitation_request.py +144 -0
- huaweicloudsdkram/v1/model/reject_resource_share_invitation_response.py +112 -0
- huaweicloudsdkram/v1/model/resource_dto.py +198 -0
- huaweicloudsdkram/v1/model/resource_share.py +340 -0
- huaweicloudsdkram/v1/model/resource_share_association.py +340 -0
- huaweicloudsdkram/v1/model/resource_share_association_req_body.py +144 -0
- huaweicloudsdkram/v1/model/resource_share_invitation.py +318 -0
- huaweicloudsdkram/v1/model/resource_shares_by_tags_req_body.py +173 -0
- huaweicloudsdkram/v1/model/resource_types_summary.py +142 -0
- huaweicloudsdkram/v1/model/search_resource_share_associations_req_body.py +317 -0
- huaweicloudsdkram/v1/model/search_resource_share_associations_request.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_share_associations_response.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_request.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_response.py +116 -0
- huaweicloudsdkram/v1/model/search_resource_share_invitation_req_body.py +231 -0
- huaweicloudsdkram/v1/model/search_resource_share_invitation_request.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_share_invitation_response.py +137 -0
- huaweicloudsdkram/v1/model/search_resource_shares_req_body.py +317 -0
- huaweicloudsdkram/v1/model/search_resource_shares_request.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_shares_response.py +141 -0
- huaweicloudsdkram/v1/model/search_shared_principals_req_body.py +259 -0
- huaweicloudsdkram/v1/model/search_shared_principals_request.py +141 -0
- huaweicloudsdkram/v1/model/search_shared_principals_response.py +141 -0
- huaweicloudsdkram/v1/model/search_shared_resources_req_body.py +346 -0
- huaweicloudsdkram/v1/model/search_shared_resources_request.py +141 -0
- huaweicloudsdkram/v1/model/search_shared_resources_response.py +141 -0
- huaweicloudsdkram/v1/model/shared_principal.py +202 -0
- huaweicloudsdkram/v1/model/shared_resource.py +260 -0
- huaweicloudsdkram/v1/model/show_organization_share_request.py +116 -0
- huaweicloudsdkram/v1/model/show_organization_share_response.py +116 -0
- huaweicloudsdkram/v1/model/show_permission_request.py +173 -0
- huaweicloudsdkram/v1/model/show_permission_response.py +112 -0
- huaweicloudsdkram/v1/model/tag.py +142 -0
- huaweicloudsdkram/v1/model/tag_dto.py +142 -0
- huaweicloudsdkram/v1/model/tag_filter.py +143 -0
- huaweicloudsdkram/v1/model/tag_resource_req_body.py +114 -0
- huaweicloudsdkram/v1/model/untag.py +143 -0
- huaweicloudsdkram/v1/model/untag_resource_req_body.py +114 -0
- huaweicloudsdkram/v1/model/update_resource_share_req_body.py +172 -0
- huaweicloudsdkram/v1/model/update_resource_share_request.py +169 -0
- huaweicloudsdkram/v1/model/update_resource_share_response.py +112 -0
- huaweicloudsdkram/v1/ram_async_client.py +1991 -0
- huaweicloudsdkram/v1/ram_client.py +1988 -0
- huaweicloudsdkram/v1/region/__init__.py +0 -0
- huaweicloudsdkram/v1/region/ram_region.py +31 -0
- huaweicloudsdkram-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkram-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkram-3.1.160.dist-info/RECORD +100 -0
- huaweicloudsdkram-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkram-3.1.160.dist-info/top_level.txt +1 -0
@@ -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 ListPermissionsResponse(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"""ListPermissionsResponse
|
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(ListPermissionsResponse, 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 ListPermissionsResponse.
|
55
|
+
|
56
|
+
共享资源权限的详细信息列表。
|
57
|
+
|
58
|
+
:return: The permissions of this ListPermissionsResponse.
|
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 ListPermissionsResponse.
|
66
|
+
|
67
|
+
共享资源权限的详细信息列表。
|
68
|
+
|
69
|
+
:param permissions: The permissions of this ListPermissionsResponse.
|
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 ListPermissionsResponse.
|
77
|
+
|
78
|
+
:return: The page_info of this ListPermissionsResponse.
|
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 ListPermissionsResponse.
|
86
|
+
|
87
|
+
:param page_info: The page_info of this ListPermissionsResponse.
|
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, ListPermissionsResponse):
|
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,116 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListQuotaRequest:
|
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
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_security_token': 'X-Security-Token'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, x_security_token=None):
|
29
|
+
r"""ListQuotaRequest
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
34
|
+
:type x_security_token: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
self._x_security_token = None
|
40
|
+
self.discriminator = None
|
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
|
+
r"""Gets the x_security_token of this ListQuotaRequest.
|
48
|
+
|
49
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
50
|
+
|
51
|
+
:return: The x_security_token of this ListQuotaRequest.
|
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
|
+
r"""Sets the x_security_token of this ListQuotaRequest.
|
59
|
+
|
60
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
61
|
+
|
62
|
+
:param x_security_token: The x_security_token of this ListQuotaRequest.
|
63
|
+
:type x_security_token: str
|
64
|
+
"""
|
65
|
+
self._x_security_token = x_security_token
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, ListQuotaRequest):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
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 ListQuotaResponse(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
|
+
'quotas': 'QuotaResourcesDto'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'quotas': 'quotas'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, quotas=None):
|
29
|
+
r"""ListQuotaResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param quotas:
|
34
|
+
:type quotas: :class:`huaweicloudsdkram.v1.QuotaResourcesDto`
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ListQuotaResponse, self).__init__()
|
38
|
+
|
39
|
+
self._quotas = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if quotas is not None:
|
43
|
+
self.quotas = quotas
|
44
|
+
|
45
|
+
@property
|
46
|
+
def quotas(self):
|
47
|
+
r"""Gets the quotas of this ListQuotaResponse.
|
48
|
+
|
49
|
+
:return: The quotas of this ListQuotaResponse.
|
50
|
+
:rtype: :class:`huaweicloudsdkram.v1.QuotaResourcesDto`
|
51
|
+
"""
|
52
|
+
return self._quotas
|
53
|
+
|
54
|
+
@quotas.setter
|
55
|
+
def quotas(self, quotas):
|
56
|
+
r"""Sets the quotas of this ListQuotaResponse.
|
57
|
+
|
58
|
+
:param quotas: The quotas of this ListQuotaResponse.
|
59
|
+
:type quotas: :class:`huaweicloudsdkram.v1.QuotaResourcesDto`
|
60
|
+
"""
|
61
|
+
self._quotas = quotas
|
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, ListQuotaResponse):
|
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
|
@@ -0,0 +1,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListResourceSharePermissionsRequest:
|
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
|
+
'permission_name': 'str',
|
24
|
+
'limit': 'int',
|
25
|
+
'marker': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'x_security_token': 'X-Security-Token',
|
30
|
+
'resource_share_id': 'resource_share_id',
|
31
|
+
'permission_name': 'permission_name',
|
32
|
+
'limit': 'limit',
|
33
|
+
'marker': 'marker'
|
34
|
+
}
|
35
|
+
|
36
|
+
def __init__(self, x_security_token=None, resource_share_id=None, permission_name=None, limit=None, marker=None):
|
37
|
+
r"""ListResourceSharePermissionsRequest
|
38
|
+
|
39
|
+
The model defined in huaweicloud sdk
|
40
|
+
|
41
|
+
:param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
42
|
+
:type x_security_token: str
|
43
|
+
:param resource_share_id: 资源共享实例的ID。
|
44
|
+
:type resource_share_id: str
|
45
|
+
:param permission_name: 共享资源权限的名称。
|
46
|
+
:type permission_name: str
|
47
|
+
:param limit: 分页页面的最大值。
|
48
|
+
:type limit: int
|
49
|
+
:param marker: 页面标记。
|
50
|
+
:type marker: str
|
51
|
+
"""
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
self._x_security_token = None
|
56
|
+
self._resource_share_id = None
|
57
|
+
self._permission_name = None
|
58
|
+
self._limit = None
|
59
|
+
self._marker = None
|
60
|
+
self.discriminator = None
|
61
|
+
|
62
|
+
if x_security_token is not None:
|
63
|
+
self.x_security_token = x_security_token
|
64
|
+
self.resource_share_id = resource_share_id
|
65
|
+
if permission_name is not None:
|
66
|
+
self.permission_name = permission_name
|
67
|
+
if limit is not None:
|
68
|
+
self.limit = limit
|
69
|
+
if marker is not None:
|
70
|
+
self.marker = marker
|
71
|
+
|
72
|
+
@property
|
73
|
+
def x_security_token(self):
|
74
|
+
r"""Gets the x_security_token of this ListResourceSharePermissionsRequest.
|
75
|
+
|
76
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
77
|
+
|
78
|
+
:return: The x_security_token of this ListResourceSharePermissionsRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._x_security_token
|
82
|
+
|
83
|
+
@x_security_token.setter
|
84
|
+
def x_security_token(self, x_security_token):
|
85
|
+
r"""Sets the x_security_token of this ListResourceSharePermissionsRequest.
|
86
|
+
|
87
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
88
|
+
|
89
|
+
:param x_security_token: The x_security_token of this ListResourceSharePermissionsRequest.
|
90
|
+
:type x_security_token: str
|
91
|
+
"""
|
92
|
+
self._x_security_token = x_security_token
|
93
|
+
|
94
|
+
@property
|
95
|
+
def resource_share_id(self):
|
96
|
+
r"""Gets the resource_share_id of this ListResourceSharePermissionsRequest.
|
97
|
+
|
98
|
+
资源共享实例的ID。
|
99
|
+
|
100
|
+
:return: The resource_share_id of this ListResourceSharePermissionsRequest.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._resource_share_id
|
104
|
+
|
105
|
+
@resource_share_id.setter
|
106
|
+
def resource_share_id(self, resource_share_id):
|
107
|
+
r"""Sets the resource_share_id of this ListResourceSharePermissionsRequest.
|
108
|
+
|
109
|
+
资源共享实例的ID。
|
110
|
+
|
111
|
+
:param resource_share_id: The resource_share_id of this ListResourceSharePermissionsRequest.
|
112
|
+
:type resource_share_id: str
|
113
|
+
"""
|
114
|
+
self._resource_share_id = resource_share_id
|
115
|
+
|
116
|
+
@property
|
117
|
+
def permission_name(self):
|
118
|
+
r"""Gets the permission_name of this ListResourceSharePermissionsRequest.
|
119
|
+
|
120
|
+
共享资源权限的名称。
|
121
|
+
|
122
|
+
:return: The permission_name of this ListResourceSharePermissionsRequest.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._permission_name
|
126
|
+
|
127
|
+
@permission_name.setter
|
128
|
+
def permission_name(self, permission_name):
|
129
|
+
r"""Sets the permission_name of this ListResourceSharePermissionsRequest.
|
130
|
+
|
131
|
+
共享资源权限的名称。
|
132
|
+
|
133
|
+
:param permission_name: The permission_name of this ListResourceSharePermissionsRequest.
|
134
|
+
:type permission_name: str
|
135
|
+
"""
|
136
|
+
self._permission_name = permission_name
|
137
|
+
|
138
|
+
@property
|
139
|
+
def limit(self):
|
140
|
+
r"""Gets the limit of this ListResourceSharePermissionsRequest.
|
141
|
+
|
142
|
+
分页页面的最大值。
|
143
|
+
|
144
|
+
:return: The limit of this ListResourceSharePermissionsRequest.
|
145
|
+
:rtype: int
|
146
|
+
"""
|
147
|
+
return self._limit
|
148
|
+
|
149
|
+
@limit.setter
|
150
|
+
def limit(self, limit):
|
151
|
+
r"""Sets the limit of this ListResourceSharePermissionsRequest.
|
152
|
+
|
153
|
+
分页页面的最大值。
|
154
|
+
|
155
|
+
:param limit: The limit of this ListResourceSharePermissionsRequest.
|
156
|
+
:type limit: int
|
157
|
+
"""
|
158
|
+
self._limit = limit
|
159
|
+
|
160
|
+
@property
|
161
|
+
def marker(self):
|
162
|
+
r"""Gets the marker of this ListResourceSharePermissionsRequest.
|
163
|
+
|
164
|
+
页面标记。
|
165
|
+
|
166
|
+
:return: The marker of this ListResourceSharePermissionsRequest.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._marker
|
170
|
+
|
171
|
+
@marker.setter
|
172
|
+
def marker(self, marker):
|
173
|
+
r"""Sets the marker of this ListResourceSharePermissionsRequest.
|
174
|
+
|
175
|
+
页面标记。
|
176
|
+
|
177
|
+
:param marker: The marker of this ListResourceSharePermissionsRequest.
|
178
|
+
:type marker: str
|
179
|
+
"""
|
180
|
+
self._marker = marker
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, ListResourceSharePermissionsRequest):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
return not self == other
|