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 ListResourceSharePermissionsResponse(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
|
+
'associated_permissions': 'list[AssociatedPermission]',
|
22
|
+
'page_info': 'PageInfo'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'associated_permissions': 'associated_permissions',
|
27
|
+
'page_info': 'page_info'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, associated_permissions=None, page_info=None):
|
31
|
+
r"""ListResourceSharePermissionsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param associated_permissions: 资源共享实例关联的共享资源权限信息列表。
|
36
|
+
:type associated_permissions: list[:class:`huaweicloudsdkram.v1.AssociatedPermission`]
|
37
|
+
:param page_info:
|
38
|
+
:type page_info: :class:`huaweicloudsdkram.v1.PageInfo`
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListResourceSharePermissionsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._associated_permissions = None
|
44
|
+
self._page_info = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if associated_permissions is not None:
|
48
|
+
self.associated_permissions = associated_permissions
|
49
|
+
if page_info is not None:
|
50
|
+
self.page_info = page_info
|
51
|
+
|
52
|
+
@property
|
53
|
+
def associated_permissions(self):
|
54
|
+
r"""Gets the associated_permissions of this ListResourceSharePermissionsResponse.
|
55
|
+
|
56
|
+
资源共享实例关联的共享资源权限信息列表。
|
57
|
+
|
58
|
+
:return: The associated_permissions of this ListResourceSharePermissionsResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkram.v1.AssociatedPermission`]
|
60
|
+
"""
|
61
|
+
return self._associated_permissions
|
62
|
+
|
63
|
+
@associated_permissions.setter
|
64
|
+
def associated_permissions(self, associated_permissions):
|
65
|
+
r"""Sets the associated_permissions of this ListResourceSharePermissionsResponse.
|
66
|
+
|
67
|
+
资源共享实例关联的共享资源权限信息列表。
|
68
|
+
|
69
|
+
:param associated_permissions: The associated_permissions of this ListResourceSharePermissionsResponse.
|
70
|
+
:type associated_permissions: list[:class:`huaweicloudsdkram.v1.AssociatedPermission`]
|
71
|
+
"""
|
72
|
+
self._associated_permissions = associated_permissions
|
73
|
+
|
74
|
+
@property
|
75
|
+
def page_info(self):
|
76
|
+
r"""Gets the page_info of this ListResourceSharePermissionsResponse.
|
77
|
+
|
78
|
+
:return: The page_info of this ListResourceSharePermissionsResponse.
|
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 ListResourceSharePermissionsResponse.
|
86
|
+
|
87
|
+
:param page_info: The page_info of this ListResourceSharePermissionsResponse.
|
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, ListResourceSharePermissionsResponse):
|
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,174 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListResourceShareTagsRequest:
|
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
|
+
'limit': 'int',
|
22
|
+
'marker': 'str',
|
23
|
+
'x_security_token': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'limit': 'limit',
|
28
|
+
'marker': 'marker',
|
29
|
+
'x_security_token': 'X-Security-Token'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, limit=None, marker=None, x_security_token=None):
|
33
|
+
r"""ListResourceShareTagsRequest
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param limit: 分页页面的最大值。
|
38
|
+
:type limit: int
|
39
|
+
:param marker: 页面标记。
|
40
|
+
:type marker: str
|
41
|
+
:param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
42
|
+
:type x_security_token: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
self._limit = None
|
48
|
+
self._marker = None
|
49
|
+
self._x_security_token = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if limit is not None:
|
53
|
+
self.limit = limit
|
54
|
+
if marker is not None:
|
55
|
+
self.marker = marker
|
56
|
+
if x_security_token is not None:
|
57
|
+
self.x_security_token = x_security_token
|
58
|
+
|
59
|
+
@property
|
60
|
+
def limit(self):
|
61
|
+
r"""Gets the limit of this ListResourceShareTagsRequest.
|
62
|
+
|
63
|
+
分页页面的最大值。
|
64
|
+
|
65
|
+
:return: The limit of this ListResourceShareTagsRequest.
|
66
|
+
:rtype: int
|
67
|
+
"""
|
68
|
+
return self._limit
|
69
|
+
|
70
|
+
@limit.setter
|
71
|
+
def limit(self, limit):
|
72
|
+
r"""Sets the limit of this ListResourceShareTagsRequest.
|
73
|
+
|
74
|
+
分页页面的最大值。
|
75
|
+
|
76
|
+
:param limit: The limit of this ListResourceShareTagsRequest.
|
77
|
+
:type limit: int
|
78
|
+
"""
|
79
|
+
self._limit = limit
|
80
|
+
|
81
|
+
@property
|
82
|
+
def marker(self):
|
83
|
+
r"""Gets the marker of this ListResourceShareTagsRequest.
|
84
|
+
|
85
|
+
页面标记。
|
86
|
+
|
87
|
+
:return: The marker of this ListResourceShareTagsRequest.
|
88
|
+
:rtype: str
|
89
|
+
"""
|
90
|
+
return self._marker
|
91
|
+
|
92
|
+
@marker.setter
|
93
|
+
def marker(self, marker):
|
94
|
+
r"""Sets the marker of this ListResourceShareTagsRequest.
|
95
|
+
|
96
|
+
页面标记。
|
97
|
+
|
98
|
+
:param marker: The marker of this ListResourceShareTagsRequest.
|
99
|
+
:type marker: str
|
100
|
+
"""
|
101
|
+
self._marker = marker
|
102
|
+
|
103
|
+
@property
|
104
|
+
def x_security_token(self):
|
105
|
+
r"""Gets the x_security_token of this ListResourceShareTagsRequest.
|
106
|
+
|
107
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
108
|
+
|
109
|
+
:return: The x_security_token of this ListResourceShareTagsRequest.
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._x_security_token
|
113
|
+
|
114
|
+
@x_security_token.setter
|
115
|
+
def x_security_token(self, x_security_token):
|
116
|
+
r"""Sets the x_security_token of this ListResourceShareTagsRequest.
|
117
|
+
|
118
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
119
|
+
|
120
|
+
:param x_security_token: The x_security_token of this ListResourceShareTagsRequest.
|
121
|
+
:type x_security_token: str
|
122
|
+
"""
|
123
|
+
self._x_security_token = x_security_token
|
124
|
+
|
125
|
+
def to_dict(self):
|
126
|
+
"""Returns the model properties as a dict"""
|
127
|
+
result = {}
|
128
|
+
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
130
|
+
value = getattr(self, attr)
|
131
|
+
if isinstance(value, list):
|
132
|
+
result[attr] = list(map(
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
134
|
+
value
|
135
|
+
))
|
136
|
+
elif hasattr(value, "to_dict"):
|
137
|
+
result[attr] = value.to_dict()
|
138
|
+
elif isinstance(value, dict):
|
139
|
+
result[attr] = dict(map(
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
142
|
+
value.items()
|
143
|
+
))
|
144
|
+
else:
|
145
|
+
if attr in self.sensitive_list:
|
146
|
+
result[attr] = "****"
|
147
|
+
else:
|
148
|
+
result[attr] = value
|
149
|
+
|
150
|
+
return result
|
151
|
+
|
152
|
+
def to_str(self):
|
153
|
+
"""Returns the string representation of the model"""
|
154
|
+
import simplejson as json
|
155
|
+
if six.PY2:
|
156
|
+
import sys
|
157
|
+
reload(sys)
|
158
|
+
sys.setdefaultencoding("utf-8")
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
160
|
+
|
161
|
+
def __repr__(self):
|
162
|
+
"""For `print`"""
|
163
|
+
return self.to_str()
|
164
|
+
|
165
|
+
def __eq__(self, other):
|
166
|
+
"""Returns true if both objects are equal"""
|
167
|
+
if not isinstance(other, ListResourceShareTagsRequest):
|
168
|
+
return False
|
169
|
+
|
170
|
+
return self.__dict__ == other.__dict__
|
171
|
+
|
172
|
+
def __ne__(self, other):
|
173
|
+
"""Returns true if both objects are not equal"""
|
174
|
+
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 ListResourceShareTagsResponse(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
|
+
'tags': 'list[TagDTO]',
|
22
|
+
'page_info': 'PageInfoMarkerByKey'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'tags': 'tags',
|
27
|
+
'page_info': 'page_info'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, tags=None, page_info=None):
|
31
|
+
r"""ListResourceShareTagsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param tags: 一个或多个标签键值对的列表。标签键必须存在,而不是空字符串。标签值必须存在,但可以是空字符串。
|
36
|
+
:type tags: list[:class:`huaweicloudsdkram.v1.TagDTO`]
|
37
|
+
:param page_info:
|
38
|
+
:type page_info: :class:`huaweicloudsdkram.v1.PageInfoMarkerByKey`
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListResourceShareTagsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._tags = None
|
44
|
+
self._page_info = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if tags is not None:
|
48
|
+
self.tags = tags
|
49
|
+
if page_info is not None:
|
50
|
+
self.page_info = page_info
|
51
|
+
|
52
|
+
@property
|
53
|
+
def tags(self):
|
54
|
+
r"""Gets the tags of this ListResourceShareTagsResponse.
|
55
|
+
|
56
|
+
一个或多个标签键值对的列表。标签键必须存在,而不是空字符串。标签值必须存在,但可以是空字符串。
|
57
|
+
|
58
|
+
:return: The tags of this ListResourceShareTagsResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkram.v1.TagDTO`]
|
60
|
+
"""
|
61
|
+
return self._tags
|
62
|
+
|
63
|
+
@tags.setter
|
64
|
+
def tags(self, tags):
|
65
|
+
r"""Sets the tags of this ListResourceShareTagsResponse.
|
66
|
+
|
67
|
+
一个或多个标签键值对的列表。标签键必须存在,而不是空字符串。标签值必须存在,但可以是空字符串。
|
68
|
+
|
69
|
+
:param tags: The tags of this ListResourceShareTagsResponse.
|
70
|
+
:type tags: list[:class:`huaweicloudsdkram.v1.TagDTO`]
|
71
|
+
"""
|
72
|
+
self._tags = tags
|
73
|
+
|
74
|
+
@property
|
75
|
+
def page_info(self):
|
76
|
+
r"""Gets the page_info of this ListResourceShareTagsResponse.
|
77
|
+
|
78
|
+
:return: The page_info of this ListResourceShareTagsResponse.
|
79
|
+
:rtype: :class:`huaweicloudsdkram.v1.PageInfoMarkerByKey`
|
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 ListResourceShareTagsResponse.
|
86
|
+
|
87
|
+
:param page_info: The page_info of this ListResourceShareTagsResponse.
|
88
|
+
:type page_info: :class:`huaweicloudsdkram.v1.PageInfoMarkerByKey`
|
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, ListResourceShareTagsResponse):
|
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,199 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListResourceSharesByTagsRequest:
|
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
|
+
'limit': 'int',
|
22
|
+
'offset': 'str',
|
23
|
+
'x_security_token': 'str',
|
24
|
+
'body': 'ResourceSharesByTagsReqBody'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'limit': 'limit',
|
29
|
+
'offset': 'offset',
|
30
|
+
'x_security_token': 'X-Security-Token',
|
31
|
+
'body': 'body'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, limit=None, offset=None, x_security_token=None, body=None):
|
35
|
+
r"""ListResourceSharesByTagsRequest
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param limit: 分页页面的最大值。
|
40
|
+
:type limit: int
|
41
|
+
:param offset: 分页标记。
|
42
|
+
:type offset: str
|
43
|
+
:param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
44
|
+
:type x_security_token: str
|
45
|
+
:param body: Body of the ListResourceSharesByTagsRequest
|
46
|
+
:type body: :class:`huaweicloudsdkram.v1.ResourceSharesByTagsReqBody`
|
47
|
+
"""
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
self._limit = None
|
52
|
+
self._offset = None
|
53
|
+
self._x_security_token = None
|
54
|
+
self._body = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if limit is not None:
|
58
|
+
self.limit = limit
|
59
|
+
if offset is not None:
|
60
|
+
self.offset = offset
|
61
|
+
if x_security_token is not None:
|
62
|
+
self.x_security_token = x_security_token
|
63
|
+
if body is not None:
|
64
|
+
self.body = body
|
65
|
+
|
66
|
+
@property
|
67
|
+
def limit(self):
|
68
|
+
r"""Gets the limit of this ListResourceSharesByTagsRequest.
|
69
|
+
|
70
|
+
分页页面的最大值。
|
71
|
+
|
72
|
+
:return: The limit of this ListResourceSharesByTagsRequest.
|
73
|
+
:rtype: int
|
74
|
+
"""
|
75
|
+
return self._limit
|
76
|
+
|
77
|
+
@limit.setter
|
78
|
+
def limit(self, limit):
|
79
|
+
r"""Sets the limit of this ListResourceSharesByTagsRequest.
|
80
|
+
|
81
|
+
分页页面的最大值。
|
82
|
+
|
83
|
+
:param limit: The limit of this ListResourceSharesByTagsRequest.
|
84
|
+
:type limit: int
|
85
|
+
"""
|
86
|
+
self._limit = limit
|
87
|
+
|
88
|
+
@property
|
89
|
+
def offset(self):
|
90
|
+
r"""Gets the offset of this ListResourceSharesByTagsRequest.
|
91
|
+
|
92
|
+
分页标记。
|
93
|
+
|
94
|
+
:return: The offset of this ListResourceSharesByTagsRequest.
|
95
|
+
:rtype: str
|
96
|
+
"""
|
97
|
+
return self._offset
|
98
|
+
|
99
|
+
@offset.setter
|
100
|
+
def offset(self, offset):
|
101
|
+
r"""Sets the offset of this ListResourceSharesByTagsRequest.
|
102
|
+
|
103
|
+
分页标记。
|
104
|
+
|
105
|
+
:param offset: The offset of this ListResourceSharesByTagsRequest.
|
106
|
+
:type offset: str
|
107
|
+
"""
|
108
|
+
self._offset = offset
|
109
|
+
|
110
|
+
@property
|
111
|
+
def x_security_token(self):
|
112
|
+
r"""Gets the x_security_token of this ListResourceSharesByTagsRequest.
|
113
|
+
|
114
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
115
|
+
|
116
|
+
:return: The x_security_token of this ListResourceSharesByTagsRequest.
|
117
|
+
:rtype: str
|
118
|
+
"""
|
119
|
+
return self._x_security_token
|
120
|
+
|
121
|
+
@x_security_token.setter
|
122
|
+
def x_security_token(self, x_security_token):
|
123
|
+
r"""Sets the x_security_token of this ListResourceSharesByTagsRequest.
|
124
|
+
|
125
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
126
|
+
|
127
|
+
:param x_security_token: The x_security_token of this ListResourceSharesByTagsRequest.
|
128
|
+
:type x_security_token: str
|
129
|
+
"""
|
130
|
+
self._x_security_token = x_security_token
|
131
|
+
|
132
|
+
@property
|
133
|
+
def body(self):
|
134
|
+
r"""Gets the body of this ListResourceSharesByTagsRequest.
|
135
|
+
|
136
|
+
:return: The body of this ListResourceSharesByTagsRequest.
|
137
|
+
:rtype: :class:`huaweicloudsdkram.v1.ResourceSharesByTagsReqBody`
|
138
|
+
"""
|
139
|
+
return self._body
|
140
|
+
|
141
|
+
@body.setter
|
142
|
+
def body(self, body):
|
143
|
+
r"""Sets the body of this ListResourceSharesByTagsRequest.
|
144
|
+
|
145
|
+
:param body: The body of this ListResourceSharesByTagsRequest.
|
146
|
+
:type body: :class:`huaweicloudsdkram.v1.ResourceSharesByTagsReqBody`
|
147
|
+
"""
|
148
|
+
self._body = body
|
149
|
+
|
150
|
+
def to_dict(self):
|
151
|
+
"""Returns the model properties as a dict"""
|
152
|
+
result = {}
|
153
|
+
|
154
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
155
|
+
value = getattr(self, attr)
|
156
|
+
if isinstance(value, list):
|
157
|
+
result[attr] = list(map(
|
158
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
159
|
+
value
|
160
|
+
))
|
161
|
+
elif hasattr(value, "to_dict"):
|
162
|
+
result[attr] = value.to_dict()
|
163
|
+
elif isinstance(value, dict):
|
164
|
+
result[attr] = dict(map(
|
165
|
+
lambda item: (item[0], item[1].to_dict())
|
166
|
+
if hasattr(item[1], "to_dict") else item,
|
167
|
+
value.items()
|
168
|
+
))
|
169
|
+
else:
|
170
|
+
if attr in self.sensitive_list:
|
171
|
+
result[attr] = "****"
|
172
|
+
else:
|
173
|
+
result[attr] = value
|
174
|
+
|
175
|
+
return result
|
176
|
+
|
177
|
+
def to_str(self):
|
178
|
+
"""Returns the string representation of the model"""
|
179
|
+
import simplejson as json
|
180
|
+
if six.PY2:
|
181
|
+
import sys
|
182
|
+
reload(sys)
|
183
|
+
sys.setdefaultencoding("utf-8")
|
184
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
185
|
+
|
186
|
+
def __repr__(self):
|
187
|
+
"""For `print`"""
|
188
|
+
return self.to_str()
|
189
|
+
|
190
|
+
def __eq__(self, other):
|
191
|
+
"""Returns true if both objects are equal"""
|
192
|
+
if not isinstance(other, ListResourceSharesByTagsRequest):
|
193
|
+
return False
|
194
|
+
|
195
|
+
return self.__dict__ == other.__dict__
|
196
|
+
|
197
|
+
def __ne__(self, other):
|
198
|
+
"""Returns true if both objects are not equal"""
|
199
|
+
return not self == other
|