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 SearchSharedPrincipalsResponse(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
|
+
'shared_principals': 'list[SharedPrincipal]',
|
22
|
+
'page_info': 'PageInfo'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'shared_principals': 'shared_principals',
|
27
|
+
'page_info': 'page_info'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, shared_principals=None, page_info=None):
|
31
|
+
r"""SearchSharedPrincipalsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param shared_principals: 资源使用者的详细信息列表。
|
36
|
+
:type shared_principals: list[:class:`huaweicloudsdkram.v1.SharedPrincipal`]
|
37
|
+
:param page_info:
|
38
|
+
:type page_info: :class:`huaweicloudsdkram.v1.PageInfo`
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(SearchSharedPrincipalsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._shared_principals = None
|
44
|
+
self._page_info = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if shared_principals is not None:
|
48
|
+
self.shared_principals = shared_principals
|
49
|
+
if page_info is not None:
|
50
|
+
self.page_info = page_info
|
51
|
+
|
52
|
+
@property
|
53
|
+
def shared_principals(self):
|
54
|
+
r"""Gets the shared_principals of this SearchSharedPrincipalsResponse.
|
55
|
+
|
56
|
+
资源使用者的详细信息列表。
|
57
|
+
|
58
|
+
:return: The shared_principals of this SearchSharedPrincipalsResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkram.v1.SharedPrincipal`]
|
60
|
+
"""
|
61
|
+
return self._shared_principals
|
62
|
+
|
63
|
+
@shared_principals.setter
|
64
|
+
def shared_principals(self, shared_principals):
|
65
|
+
r"""Sets the shared_principals of this SearchSharedPrincipalsResponse.
|
66
|
+
|
67
|
+
资源使用者的详细信息列表。
|
68
|
+
|
69
|
+
:param shared_principals: The shared_principals of this SearchSharedPrincipalsResponse.
|
70
|
+
:type shared_principals: list[:class:`huaweicloudsdkram.v1.SharedPrincipal`]
|
71
|
+
"""
|
72
|
+
self._shared_principals = shared_principals
|
73
|
+
|
74
|
+
@property
|
75
|
+
def page_info(self):
|
76
|
+
r"""Gets the page_info of this SearchSharedPrincipalsResponse.
|
77
|
+
|
78
|
+
:return: The page_info of this SearchSharedPrincipalsResponse.
|
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 SearchSharedPrincipalsResponse.
|
86
|
+
|
87
|
+
:param page_info: The page_info of this SearchSharedPrincipalsResponse.
|
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, SearchSharedPrincipalsResponse):
|
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,346 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SearchSharedResourcesReqBody:
|
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
|
+
'limit': 'int',
|
21
|
+
'marker': 'str',
|
22
|
+
'principal': 'str',
|
23
|
+
'resource_ids': 'list[str]',
|
24
|
+
'resource_urns': 'list[str]',
|
25
|
+
'resource_owner': 'str',
|
26
|
+
'resource_share_ids': 'list[str]',
|
27
|
+
'resource_region': 'str',
|
28
|
+
'resource_type': 'str'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'limit': 'limit',
|
33
|
+
'marker': 'marker',
|
34
|
+
'principal': 'principal',
|
35
|
+
'resource_ids': 'resource_ids',
|
36
|
+
'resource_urns': 'resource_urns',
|
37
|
+
'resource_owner': 'resource_owner',
|
38
|
+
'resource_share_ids': 'resource_share_ids',
|
39
|
+
'resource_region': 'resource_region',
|
40
|
+
'resource_type': 'resource_type'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, limit=None, marker=None, principal=None, resource_ids=None, resource_urns=None, resource_owner=None, resource_share_ids=None, resource_region=None, resource_type=None):
|
44
|
+
r"""SearchSharedResourcesReqBody
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param limit: 分页页面的最大值。
|
49
|
+
:type limit: int
|
50
|
+
:param marker: 页面标记。
|
51
|
+
:type marker: str
|
52
|
+
:param principal: 指定资源使用者。
|
53
|
+
:type principal: str
|
54
|
+
:param resource_ids: 指定资源ID列表。
|
55
|
+
:type resource_ids: list[str]
|
56
|
+
:param resource_urns: 指定资源URN的列表。
|
57
|
+
:type resource_urns: list[str]
|
58
|
+
:param resource_owner: 指定资源共享实例的所有者(self或者other-accounts)。
|
59
|
+
:type resource_owner: str
|
60
|
+
:param resource_share_ids: 指定资源共享实例的ID列表。
|
61
|
+
:type resource_share_ids: list[str]
|
62
|
+
:param resource_region: 资源所在的区域。
|
63
|
+
:type resource_region: str
|
64
|
+
:param resource_type: 指定资源类型。
|
65
|
+
:type resource_type: str
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._limit = None
|
71
|
+
self._marker = None
|
72
|
+
self._principal = None
|
73
|
+
self._resource_ids = None
|
74
|
+
self._resource_urns = None
|
75
|
+
self._resource_owner = None
|
76
|
+
self._resource_share_ids = None
|
77
|
+
self._resource_region = None
|
78
|
+
self._resource_type = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
if limit is not None:
|
82
|
+
self.limit = limit
|
83
|
+
if marker is not None:
|
84
|
+
self.marker = marker
|
85
|
+
if principal is not None:
|
86
|
+
self.principal = principal
|
87
|
+
if resource_ids is not None:
|
88
|
+
self.resource_ids = resource_ids
|
89
|
+
if resource_urns is not None:
|
90
|
+
self.resource_urns = resource_urns
|
91
|
+
self.resource_owner = resource_owner
|
92
|
+
if resource_share_ids is not None:
|
93
|
+
self.resource_share_ids = resource_share_ids
|
94
|
+
if resource_region is not None:
|
95
|
+
self.resource_region = resource_region
|
96
|
+
if resource_type is not None:
|
97
|
+
self.resource_type = resource_type
|
98
|
+
|
99
|
+
@property
|
100
|
+
def limit(self):
|
101
|
+
r"""Gets the limit of this SearchSharedResourcesReqBody.
|
102
|
+
|
103
|
+
分页页面的最大值。
|
104
|
+
|
105
|
+
:return: The limit of this SearchSharedResourcesReqBody.
|
106
|
+
:rtype: int
|
107
|
+
"""
|
108
|
+
return self._limit
|
109
|
+
|
110
|
+
@limit.setter
|
111
|
+
def limit(self, limit):
|
112
|
+
r"""Sets the limit of this SearchSharedResourcesReqBody.
|
113
|
+
|
114
|
+
分页页面的最大值。
|
115
|
+
|
116
|
+
:param limit: The limit of this SearchSharedResourcesReqBody.
|
117
|
+
:type limit: int
|
118
|
+
"""
|
119
|
+
self._limit = limit
|
120
|
+
|
121
|
+
@property
|
122
|
+
def marker(self):
|
123
|
+
r"""Gets the marker of this SearchSharedResourcesReqBody.
|
124
|
+
|
125
|
+
页面标记。
|
126
|
+
|
127
|
+
:return: The marker of this SearchSharedResourcesReqBody.
|
128
|
+
:rtype: str
|
129
|
+
"""
|
130
|
+
return self._marker
|
131
|
+
|
132
|
+
@marker.setter
|
133
|
+
def marker(self, marker):
|
134
|
+
r"""Sets the marker of this SearchSharedResourcesReqBody.
|
135
|
+
|
136
|
+
页面标记。
|
137
|
+
|
138
|
+
:param marker: The marker of this SearchSharedResourcesReqBody.
|
139
|
+
:type marker: str
|
140
|
+
"""
|
141
|
+
self._marker = marker
|
142
|
+
|
143
|
+
@property
|
144
|
+
def principal(self):
|
145
|
+
r"""Gets the principal of this SearchSharedResourcesReqBody.
|
146
|
+
|
147
|
+
指定资源使用者。
|
148
|
+
|
149
|
+
:return: The principal of this SearchSharedResourcesReqBody.
|
150
|
+
:rtype: str
|
151
|
+
"""
|
152
|
+
return self._principal
|
153
|
+
|
154
|
+
@principal.setter
|
155
|
+
def principal(self, principal):
|
156
|
+
r"""Sets the principal of this SearchSharedResourcesReqBody.
|
157
|
+
|
158
|
+
指定资源使用者。
|
159
|
+
|
160
|
+
:param principal: The principal of this SearchSharedResourcesReqBody.
|
161
|
+
:type principal: str
|
162
|
+
"""
|
163
|
+
self._principal = principal
|
164
|
+
|
165
|
+
@property
|
166
|
+
def resource_ids(self):
|
167
|
+
r"""Gets the resource_ids of this SearchSharedResourcesReqBody.
|
168
|
+
|
169
|
+
指定资源ID列表。
|
170
|
+
|
171
|
+
:return: The resource_ids of this SearchSharedResourcesReqBody.
|
172
|
+
:rtype: list[str]
|
173
|
+
"""
|
174
|
+
return self._resource_ids
|
175
|
+
|
176
|
+
@resource_ids.setter
|
177
|
+
def resource_ids(self, resource_ids):
|
178
|
+
r"""Sets the resource_ids of this SearchSharedResourcesReqBody.
|
179
|
+
|
180
|
+
指定资源ID列表。
|
181
|
+
|
182
|
+
:param resource_ids: The resource_ids of this SearchSharedResourcesReqBody.
|
183
|
+
:type resource_ids: list[str]
|
184
|
+
"""
|
185
|
+
self._resource_ids = resource_ids
|
186
|
+
|
187
|
+
@property
|
188
|
+
def resource_urns(self):
|
189
|
+
r"""Gets the resource_urns of this SearchSharedResourcesReqBody.
|
190
|
+
|
191
|
+
指定资源URN的列表。
|
192
|
+
|
193
|
+
:return: The resource_urns of this SearchSharedResourcesReqBody.
|
194
|
+
:rtype: list[str]
|
195
|
+
"""
|
196
|
+
return self._resource_urns
|
197
|
+
|
198
|
+
@resource_urns.setter
|
199
|
+
def resource_urns(self, resource_urns):
|
200
|
+
r"""Sets the resource_urns of this SearchSharedResourcesReqBody.
|
201
|
+
|
202
|
+
指定资源URN的列表。
|
203
|
+
|
204
|
+
:param resource_urns: The resource_urns of this SearchSharedResourcesReqBody.
|
205
|
+
:type resource_urns: list[str]
|
206
|
+
"""
|
207
|
+
self._resource_urns = resource_urns
|
208
|
+
|
209
|
+
@property
|
210
|
+
def resource_owner(self):
|
211
|
+
r"""Gets the resource_owner of this SearchSharedResourcesReqBody.
|
212
|
+
|
213
|
+
指定资源共享实例的所有者(self或者other-accounts)。
|
214
|
+
|
215
|
+
:return: The resource_owner of this SearchSharedResourcesReqBody.
|
216
|
+
:rtype: str
|
217
|
+
"""
|
218
|
+
return self._resource_owner
|
219
|
+
|
220
|
+
@resource_owner.setter
|
221
|
+
def resource_owner(self, resource_owner):
|
222
|
+
r"""Sets the resource_owner of this SearchSharedResourcesReqBody.
|
223
|
+
|
224
|
+
指定资源共享实例的所有者(self或者other-accounts)。
|
225
|
+
|
226
|
+
:param resource_owner: The resource_owner of this SearchSharedResourcesReqBody.
|
227
|
+
:type resource_owner: str
|
228
|
+
"""
|
229
|
+
self._resource_owner = resource_owner
|
230
|
+
|
231
|
+
@property
|
232
|
+
def resource_share_ids(self):
|
233
|
+
r"""Gets the resource_share_ids of this SearchSharedResourcesReqBody.
|
234
|
+
|
235
|
+
指定资源共享实例的ID列表。
|
236
|
+
|
237
|
+
:return: The resource_share_ids of this SearchSharedResourcesReqBody.
|
238
|
+
:rtype: list[str]
|
239
|
+
"""
|
240
|
+
return self._resource_share_ids
|
241
|
+
|
242
|
+
@resource_share_ids.setter
|
243
|
+
def resource_share_ids(self, resource_share_ids):
|
244
|
+
r"""Sets the resource_share_ids of this SearchSharedResourcesReqBody.
|
245
|
+
|
246
|
+
指定资源共享实例的ID列表。
|
247
|
+
|
248
|
+
:param resource_share_ids: The resource_share_ids of this SearchSharedResourcesReqBody.
|
249
|
+
:type resource_share_ids: list[str]
|
250
|
+
"""
|
251
|
+
self._resource_share_ids = resource_share_ids
|
252
|
+
|
253
|
+
@property
|
254
|
+
def resource_region(self):
|
255
|
+
r"""Gets the resource_region of this SearchSharedResourcesReqBody.
|
256
|
+
|
257
|
+
资源所在的区域。
|
258
|
+
|
259
|
+
:return: The resource_region of this SearchSharedResourcesReqBody.
|
260
|
+
:rtype: str
|
261
|
+
"""
|
262
|
+
return self._resource_region
|
263
|
+
|
264
|
+
@resource_region.setter
|
265
|
+
def resource_region(self, resource_region):
|
266
|
+
r"""Sets the resource_region of this SearchSharedResourcesReqBody.
|
267
|
+
|
268
|
+
资源所在的区域。
|
269
|
+
|
270
|
+
:param resource_region: The resource_region of this SearchSharedResourcesReqBody.
|
271
|
+
:type resource_region: str
|
272
|
+
"""
|
273
|
+
self._resource_region = resource_region
|
274
|
+
|
275
|
+
@property
|
276
|
+
def resource_type(self):
|
277
|
+
r"""Gets the resource_type of this SearchSharedResourcesReqBody.
|
278
|
+
|
279
|
+
指定资源类型。
|
280
|
+
|
281
|
+
:return: The resource_type of this SearchSharedResourcesReqBody.
|
282
|
+
:rtype: str
|
283
|
+
"""
|
284
|
+
return self._resource_type
|
285
|
+
|
286
|
+
@resource_type.setter
|
287
|
+
def resource_type(self, resource_type):
|
288
|
+
r"""Sets the resource_type of this SearchSharedResourcesReqBody.
|
289
|
+
|
290
|
+
指定资源类型。
|
291
|
+
|
292
|
+
:param resource_type: The resource_type of this SearchSharedResourcesReqBody.
|
293
|
+
:type resource_type: str
|
294
|
+
"""
|
295
|
+
self._resource_type = resource_type
|
296
|
+
|
297
|
+
def to_dict(self):
|
298
|
+
"""Returns the model properties as a dict"""
|
299
|
+
result = {}
|
300
|
+
|
301
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
302
|
+
value = getattr(self, attr)
|
303
|
+
if isinstance(value, list):
|
304
|
+
result[attr] = list(map(
|
305
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
306
|
+
value
|
307
|
+
))
|
308
|
+
elif hasattr(value, "to_dict"):
|
309
|
+
result[attr] = value.to_dict()
|
310
|
+
elif isinstance(value, dict):
|
311
|
+
result[attr] = dict(map(
|
312
|
+
lambda item: (item[0], item[1].to_dict())
|
313
|
+
if hasattr(item[1], "to_dict") else item,
|
314
|
+
value.items()
|
315
|
+
))
|
316
|
+
else:
|
317
|
+
if attr in self.sensitive_list:
|
318
|
+
result[attr] = "****"
|
319
|
+
else:
|
320
|
+
result[attr] = value
|
321
|
+
|
322
|
+
return result
|
323
|
+
|
324
|
+
def to_str(self):
|
325
|
+
"""Returns the string representation of the model"""
|
326
|
+
import simplejson as json
|
327
|
+
if six.PY2:
|
328
|
+
import sys
|
329
|
+
reload(sys)
|
330
|
+
sys.setdefaultencoding("utf-8")
|
331
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
332
|
+
|
333
|
+
def __repr__(self):
|
334
|
+
"""For `print`"""
|
335
|
+
return self.to_str()
|
336
|
+
|
337
|
+
def __eq__(self, other):
|
338
|
+
"""Returns true if both objects are equal"""
|
339
|
+
if not isinstance(other, SearchSharedResourcesReqBody):
|
340
|
+
return False
|
341
|
+
|
342
|
+
return self.__dict__ == other.__dict__
|
343
|
+
|
344
|
+
def __ne__(self, other):
|
345
|
+
"""Returns true if both objects are not equal"""
|
346
|
+
return not self == other
|
@@ -0,0 +1,141 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SearchSharedResourcesRequest:
|
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
|
+
'body': 'SearchSharedResourcesReqBody'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_security_token': 'X-Security-Token',
|
27
|
+
'body': 'body'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, x_security_token=None, body=None):
|
31
|
+
r"""SearchSharedResourcesRequest
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
36
|
+
:type x_security_token: str
|
37
|
+
:param body: Body of the SearchSharedResourcesRequest
|
38
|
+
:type body: :class:`huaweicloudsdkram.v1.SearchSharedResourcesReqBody`
|
39
|
+
"""
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
self._x_security_token = None
|
44
|
+
self._body = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if x_security_token is not None:
|
48
|
+
self.x_security_token = x_security_token
|
49
|
+
if body is not None:
|
50
|
+
self.body = body
|
51
|
+
|
52
|
+
@property
|
53
|
+
def x_security_token(self):
|
54
|
+
r"""Gets the x_security_token of this SearchSharedResourcesRequest.
|
55
|
+
|
56
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
57
|
+
|
58
|
+
:return: The x_security_token of this SearchSharedResourcesRequest.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._x_security_token
|
62
|
+
|
63
|
+
@x_security_token.setter
|
64
|
+
def x_security_token(self, x_security_token):
|
65
|
+
r"""Sets the x_security_token of this SearchSharedResourcesRequest.
|
66
|
+
|
67
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
68
|
+
|
69
|
+
:param x_security_token: The x_security_token of this SearchSharedResourcesRequest.
|
70
|
+
:type x_security_token: str
|
71
|
+
"""
|
72
|
+
self._x_security_token = x_security_token
|
73
|
+
|
74
|
+
@property
|
75
|
+
def body(self):
|
76
|
+
r"""Gets the body of this SearchSharedResourcesRequest.
|
77
|
+
|
78
|
+
:return: The body of this SearchSharedResourcesRequest.
|
79
|
+
:rtype: :class:`huaweicloudsdkram.v1.SearchSharedResourcesReqBody`
|
80
|
+
"""
|
81
|
+
return self._body
|
82
|
+
|
83
|
+
@body.setter
|
84
|
+
def body(self, body):
|
85
|
+
r"""Sets the body of this SearchSharedResourcesRequest.
|
86
|
+
|
87
|
+
:param body: The body of this SearchSharedResourcesRequest.
|
88
|
+
:type body: :class:`huaweicloudsdkram.v1.SearchSharedResourcesReqBody`
|
89
|
+
"""
|
90
|
+
self._body = body
|
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, SearchSharedResourcesRequest):
|
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
|