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,116 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowOrganizationShareRequest:
|
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"""ShowOrganizationShareRequest
|
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 ShowOrganizationShareRequest.
|
48
|
+
|
49
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
50
|
+
|
51
|
+
:return: The x_security_token of this ShowOrganizationShareRequest.
|
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 ShowOrganizationShareRequest.
|
59
|
+
|
60
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
61
|
+
|
62
|
+
:param x_security_token: The x_security_token of this ShowOrganizationShareRequest.
|
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, ShowOrganizationShareRequest):
|
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,116 @@
|
|
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 ShowOrganizationShareResponse(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
|
+
'enabled': 'bool'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'enabled': 'enabled'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, enabled=None):
|
29
|
+
r"""ShowOrganizationShareResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param enabled: 如果为\"true\",则表示启用与组织的共享。默认为\"false\"。
|
34
|
+
:type enabled: bool
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ShowOrganizationShareResponse, self).__init__()
|
38
|
+
|
39
|
+
self._enabled = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if enabled is not None:
|
43
|
+
self.enabled = enabled
|
44
|
+
|
45
|
+
@property
|
46
|
+
def enabled(self):
|
47
|
+
r"""Gets the enabled of this ShowOrganizationShareResponse.
|
48
|
+
|
49
|
+
如果为\"true\",则表示启用与组织的共享。默认为\"false\"。
|
50
|
+
|
51
|
+
:return: The enabled of this ShowOrganizationShareResponse.
|
52
|
+
:rtype: bool
|
53
|
+
"""
|
54
|
+
return self._enabled
|
55
|
+
|
56
|
+
@enabled.setter
|
57
|
+
def enabled(self, enabled):
|
58
|
+
r"""Sets the enabled of this ShowOrganizationShareResponse.
|
59
|
+
|
60
|
+
如果为\"true\",则表示启用与组织的共享。默认为\"false\"。
|
61
|
+
|
62
|
+
:param enabled: The enabled of this ShowOrganizationShareResponse.
|
63
|
+
:type enabled: bool
|
64
|
+
"""
|
65
|
+
self._enabled = enabled
|
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, ShowOrganizationShareResponse):
|
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,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowPermissionRequest:
|
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
|
+
'permission_id': 'str',
|
22
|
+
'x_security_token': 'str',
|
23
|
+
'permission_version': 'int'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'permission_id': 'permission_id',
|
28
|
+
'x_security_token': 'X-Security-Token',
|
29
|
+
'permission_version': 'permission_version'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, permission_id=None, x_security_token=None, permission_version=None):
|
33
|
+
r"""ShowPermissionRequest
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param permission_id: 共享资源权限的ID。
|
38
|
+
:type permission_id: str
|
39
|
+
:param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
40
|
+
:type x_security_token: str
|
41
|
+
:param permission_version: 资源权限版本。
|
42
|
+
:type permission_version: int
|
43
|
+
"""
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
self._permission_id = None
|
48
|
+
self._x_security_token = None
|
49
|
+
self._permission_version = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
self.permission_id = permission_id
|
53
|
+
if x_security_token is not None:
|
54
|
+
self.x_security_token = x_security_token
|
55
|
+
if permission_version is not None:
|
56
|
+
self.permission_version = permission_version
|
57
|
+
|
58
|
+
@property
|
59
|
+
def permission_id(self):
|
60
|
+
r"""Gets the permission_id of this ShowPermissionRequest.
|
61
|
+
|
62
|
+
共享资源权限的ID。
|
63
|
+
|
64
|
+
:return: The permission_id of this ShowPermissionRequest.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._permission_id
|
68
|
+
|
69
|
+
@permission_id.setter
|
70
|
+
def permission_id(self, permission_id):
|
71
|
+
r"""Sets the permission_id of this ShowPermissionRequest.
|
72
|
+
|
73
|
+
共享资源权限的ID。
|
74
|
+
|
75
|
+
:param permission_id: The permission_id of this ShowPermissionRequest.
|
76
|
+
:type permission_id: str
|
77
|
+
"""
|
78
|
+
self._permission_id = permission_id
|
79
|
+
|
80
|
+
@property
|
81
|
+
def x_security_token(self):
|
82
|
+
r"""Gets the x_security_token of this ShowPermissionRequest.
|
83
|
+
|
84
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
85
|
+
|
86
|
+
:return: The x_security_token of this ShowPermissionRequest.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._x_security_token
|
90
|
+
|
91
|
+
@x_security_token.setter
|
92
|
+
def x_security_token(self, x_security_token):
|
93
|
+
r"""Sets the x_security_token of this ShowPermissionRequest.
|
94
|
+
|
95
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
96
|
+
|
97
|
+
:param x_security_token: The x_security_token of this ShowPermissionRequest.
|
98
|
+
:type x_security_token: str
|
99
|
+
"""
|
100
|
+
self._x_security_token = x_security_token
|
101
|
+
|
102
|
+
@property
|
103
|
+
def permission_version(self):
|
104
|
+
r"""Gets the permission_version of this ShowPermissionRequest.
|
105
|
+
|
106
|
+
资源权限版本。
|
107
|
+
|
108
|
+
:return: The permission_version of this ShowPermissionRequest.
|
109
|
+
:rtype: int
|
110
|
+
"""
|
111
|
+
return self._permission_version
|
112
|
+
|
113
|
+
@permission_version.setter
|
114
|
+
def permission_version(self, permission_version):
|
115
|
+
r"""Sets the permission_version of this ShowPermissionRequest.
|
116
|
+
|
117
|
+
资源权限版本。
|
118
|
+
|
119
|
+
:param permission_version: The permission_version of this ShowPermissionRequest.
|
120
|
+
:type permission_version: int
|
121
|
+
"""
|
122
|
+
self._permission_version = permission_version
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, ShowPermissionRequest):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
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 ShowPermissionResponse(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
|
+
'permission': 'Permission'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'permission': 'permission'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, permission=None):
|
29
|
+
r"""ShowPermissionResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param permission:
|
34
|
+
:type permission: :class:`huaweicloudsdkram.v1.Permission`
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ShowPermissionResponse, self).__init__()
|
38
|
+
|
39
|
+
self._permission = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if permission is not None:
|
43
|
+
self.permission = permission
|
44
|
+
|
45
|
+
@property
|
46
|
+
def permission(self):
|
47
|
+
r"""Gets the permission of this ShowPermissionResponse.
|
48
|
+
|
49
|
+
:return: The permission of this ShowPermissionResponse.
|
50
|
+
:rtype: :class:`huaweicloudsdkram.v1.Permission`
|
51
|
+
"""
|
52
|
+
return self._permission
|
53
|
+
|
54
|
+
@permission.setter
|
55
|
+
def permission(self, permission):
|
56
|
+
r"""Sets the permission of this ShowPermissionResponse.
|
57
|
+
|
58
|
+
:param permission: The permission of this ShowPermissionResponse.
|
59
|
+
:type permission: :class:`huaweicloudsdkram.v1.Permission`
|
60
|
+
"""
|
61
|
+
self._permission = permission
|
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, ShowPermissionResponse):
|
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,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class Tag:
|
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
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'key': 'str',
|
21
|
+
'value': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'key': 'key',
|
26
|
+
'value': 'value'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, key=None, value=None):
|
30
|
+
r"""Tag
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param key: 标签\"键\"的标识符或名称。
|
35
|
+
:type key: str
|
36
|
+
:param value: 标签\"键\"对应的\"值\"。您可以将标签的值设置为空字符串,但不能设置为null。
|
37
|
+
:type value: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._key = None
|
43
|
+
self._value = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.key = key
|
47
|
+
self.value = value
|
48
|
+
|
49
|
+
@property
|
50
|
+
def key(self):
|
51
|
+
r"""Gets the key of this Tag.
|
52
|
+
|
53
|
+
标签\"键\"的标识符或名称。
|
54
|
+
|
55
|
+
:return: The key of this Tag.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._key
|
59
|
+
|
60
|
+
@key.setter
|
61
|
+
def key(self, key):
|
62
|
+
r"""Sets the key of this Tag.
|
63
|
+
|
64
|
+
标签\"键\"的标识符或名称。
|
65
|
+
|
66
|
+
:param key: The key of this Tag.
|
67
|
+
:type key: str
|
68
|
+
"""
|
69
|
+
self._key = key
|
70
|
+
|
71
|
+
@property
|
72
|
+
def value(self):
|
73
|
+
r"""Gets the value of this Tag.
|
74
|
+
|
75
|
+
标签\"键\"对应的\"值\"。您可以将标签的值设置为空字符串,但不能设置为null。
|
76
|
+
|
77
|
+
:return: The value of this Tag.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._value
|
81
|
+
|
82
|
+
@value.setter
|
83
|
+
def value(self, value):
|
84
|
+
r"""Sets the value of this Tag.
|
85
|
+
|
86
|
+
标签\"键\"对应的\"值\"。您可以将标签的值设置为空字符串,但不能设置为null。
|
87
|
+
|
88
|
+
:param value: The value of this Tag.
|
89
|
+
:type value: str
|
90
|
+
"""
|
91
|
+
self._value = value
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, Tag):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|