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