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 SearchResourceShareAssociationsResponse(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_associations': 'list[ResourceShareAssociation]',
|
22
|
+
'page_info': 'PageInfo'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'resource_share_associations': 'resource_share_associations',
|
27
|
+
'page_info': 'page_info'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, resource_share_associations=None, page_info=None):
|
31
|
+
r"""SearchResourceShareAssociationsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param resource_share_associations: 绑定的详细信息列表。
|
36
|
+
:type resource_share_associations: list[:class:`huaweicloudsdkram.v1.ResourceShareAssociation`]
|
37
|
+
:param page_info:
|
38
|
+
:type page_info: :class:`huaweicloudsdkram.v1.PageInfo`
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(SearchResourceShareAssociationsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._resource_share_associations = None
|
44
|
+
self._page_info = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if resource_share_associations is not None:
|
48
|
+
self.resource_share_associations = resource_share_associations
|
49
|
+
if page_info is not None:
|
50
|
+
self.page_info = page_info
|
51
|
+
|
52
|
+
@property
|
53
|
+
def resource_share_associations(self):
|
54
|
+
r"""Gets the resource_share_associations of this SearchResourceShareAssociationsResponse.
|
55
|
+
|
56
|
+
绑定的详细信息列表。
|
57
|
+
|
58
|
+
:return: The resource_share_associations of this SearchResourceShareAssociationsResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkram.v1.ResourceShareAssociation`]
|
60
|
+
"""
|
61
|
+
return self._resource_share_associations
|
62
|
+
|
63
|
+
@resource_share_associations.setter
|
64
|
+
def resource_share_associations(self, resource_share_associations):
|
65
|
+
r"""Sets the resource_share_associations of this SearchResourceShareAssociationsResponse.
|
66
|
+
|
67
|
+
绑定的详细信息列表。
|
68
|
+
|
69
|
+
:param resource_share_associations: The resource_share_associations of this SearchResourceShareAssociationsResponse.
|
70
|
+
:type resource_share_associations: list[:class:`huaweicloudsdkram.v1.ResourceShareAssociation`]
|
71
|
+
"""
|
72
|
+
self._resource_share_associations = resource_share_associations
|
73
|
+
|
74
|
+
@property
|
75
|
+
def page_info(self):
|
76
|
+
r"""Gets the page_info of this SearchResourceShareAssociationsResponse.
|
77
|
+
|
78
|
+
:return: The page_info of this SearchResourceShareAssociationsResponse.
|
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 SearchResourceShareAssociationsResponse.
|
86
|
+
|
87
|
+
:param page_info: The page_info of this SearchResourceShareAssociationsResponse.
|
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, SearchResourceShareAssociationsResponse):
|
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,141 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SearchResourceShareCountByTagsRequest:
|
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': 'ResourceSharesByTagsReqBody'
|
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"""SearchResourceShareCountByTagsRequest
|
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 SearchResourceShareCountByTagsRequest
|
38
|
+
:type body: :class:`huaweicloudsdkram.v1.ResourceSharesByTagsReqBody`
|
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 SearchResourceShareCountByTagsRequest.
|
55
|
+
|
56
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
57
|
+
|
58
|
+
:return: The x_security_token of this SearchResourceShareCountByTagsRequest.
|
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 SearchResourceShareCountByTagsRequest.
|
66
|
+
|
67
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
68
|
+
|
69
|
+
:param x_security_token: The x_security_token of this SearchResourceShareCountByTagsRequest.
|
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 SearchResourceShareCountByTagsRequest.
|
77
|
+
|
78
|
+
:return: The body of this SearchResourceShareCountByTagsRequest.
|
79
|
+
:rtype: :class:`huaweicloudsdkram.v1.ResourceSharesByTagsReqBody`
|
80
|
+
"""
|
81
|
+
return self._body
|
82
|
+
|
83
|
+
@body.setter
|
84
|
+
def body(self, body):
|
85
|
+
r"""Sets the body of this SearchResourceShareCountByTagsRequest.
|
86
|
+
|
87
|
+
:param body: The body of this SearchResourceShareCountByTagsRequest.
|
88
|
+
:type body: :class:`huaweicloudsdkram.v1.ResourceSharesByTagsReqBody`
|
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, SearchResourceShareCountByTagsRequest):
|
135
|
+
return False
|
136
|
+
|
137
|
+
return self.__dict__ == other.__dict__
|
138
|
+
|
139
|
+
def __ne__(self, other):
|
140
|
+
"""Returns true if both objects are not equal"""
|
141
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class SearchResourceShareCountByTagsResponse(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
|
+
'total_count': 'int'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'total_count': 'total_count'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, total_count=None):
|
29
|
+
r"""SearchResourceShareCountByTagsResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param total_count: 总记录数。
|
34
|
+
:type total_count: int
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(SearchResourceShareCountByTagsResponse, self).__init__()
|
38
|
+
|
39
|
+
self._total_count = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if total_count is not None:
|
43
|
+
self.total_count = total_count
|
44
|
+
|
45
|
+
@property
|
46
|
+
def total_count(self):
|
47
|
+
r"""Gets the total_count of this SearchResourceShareCountByTagsResponse.
|
48
|
+
|
49
|
+
总记录数。
|
50
|
+
|
51
|
+
:return: The total_count of this SearchResourceShareCountByTagsResponse.
|
52
|
+
:rtype: int
|
53
|
+
"""
|
54
|
+
return self._total_count
|
55
|
+
|
56
|
+
@total_count.setter
|
57
|
+
def total_count(self, total_count):
|
58
|
+
r"""Sets the total_count of this SearchResourceShareCountByTagsResponse.
|
59
|
+
|
60
|
+
总记录数。
|
61
|
+
|
62
|
+
:param total_count: The total_count of this SearchResourceShareCountByTagsResponse.
|
63
|
+
:type total_count: int
|
64
|
+
"""
|
65
|
+
self._total_count = total_count
|
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, SearchResourceShareCountByTagsResponse):
|
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,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SearchResourceShareInvitationReqBody:
|
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
|
+
'resource_share_ids': 'list[str]',
|
21
|
+
'resource_share_invitation_ids': 'list[str]',
|
22
|
+
'status': 'str',
|
23
|
+
'limit': 'int',
|
24
|
+
'marker': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'resource_share_ids': 'resource_share_ids',
|
29
|
+
'resource_share_invitation_ids': 'resource_share_invitation_ids',
|
30
|
+
'status': 'status',
|
31
|
+
'limit': 'limit',
|
32
|
+
'marker': 'marker'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, resource_share_ids=None, resource_share_invitation_ids=None, status=None, limit=None, marker=None):
|
36
|
+
r"""SearchResourceShareInvitationReqBody
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param resource_share_ids: 资源共享实例的ID列表。
|
41
|
+
:type resource_share_ids: list[str]
|
42
|
+
:param resource_share_invitation_ids: 资源共享邀请的ID列表。
|
43
|
+
:type resource_share_invitation_ids: list[str]
|
44
|
+
:param status: 资源共享邀请的当前状态。
|
45
|
+
:type status: str
|
46
|
+
:param limit: 分页页面的最大值。
|
47
|
+
:type limit: int
|
48
|
+
:param marker: 分页位置标识。从marker指定索引的下一条数据开始查询。查询第一页数据时,不需要传入此参数,查询后续页码数据时,将查询前一页数据响应体中marker值配入此参数。
|
49
|
+
:type marker: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._resource_share_ids = None
|
55
|
+
self._resource_share_invitation_ids = None
|
56
|
+
self._status = None
|
57
|
+
self._limit = None
|
58
|
+
self._marker = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if resource_share_ids is not None:
|
62
|
+
self.resource_share_ids = resource_share_ids
|
63
|
+
if resource_share_invitation_ids is not None:
|
64
|
+
self.resource_share_invitation_ids = resource_share_invitation_ids
|
65
|
+
if status is not None:
|
66
|
+
self.status = status
|
67
|
+
if limit is not None:
|
68
|
+
self.limit = limit
|
69
|
+
if marker is not None:
|
70
|
+
self.marker = marker
|
71
|
+
|
72
|
+
@property
|
73
|
+
def resource_share_ids(self):
|
74
|
+
r"""Gets the resource_share_ids of this SearchResourceShareInvitationReqBody.
|
75
|
+
|
76
|
+
资源共享实例的ID列表。
|
77
|
+
|
78
|
+
:return: The resource_share_ids of this SearchResourceShareInvitationReqBody.
|
79
|
+
:rtype: list[str]
|
80
|
+
"""
|
81
|
+
return self._resource_share_ids
|
82
|
+
|
83
|
+
@resource_share_ids.setter
|
84
|
+
def resource_share_ids(self, resource_share_ids):
|
85
|
+
r"""Sets the resource_share_ids of this SearchResourceShareInvitationReqBody.
|
86
|
+
|
87
|
+
资源共享实例的ID列表。
|
88
|
+
|
89
|
+
:param resource_share_ids: The resource_share_ids of this SearchResourceShareInvitationReqBody.
|
90
|
+
:type resource_share_ids: list[str]
|
91
|
+
"""
|
92
|
+
self._resource_share_ids = resource_share_ids
|
93
|
+
|
94
|
+
@property
|
95
|
+
def resource_share_invitation_ids(self):
|
96
|
+
r"""Gets the resource_share_invitation_ids of this SearchResourceShareInvitationReqBody.
|
97
|
+
|
98
|
+
资源共享邀请的ID列表。
|
99
|
+
|
100
|
+
:return: The resource_share_invitation_ids of this SearchResourceShareInvitationReqBody.
|
101
|
+
:rtype: list[str]
|
102
|
+
"""
|
103
|
+
return self._resource_share_invitation_ids
|
104
|
+
|
105
|
+
@resource_share_invitation_ids.setter
|
106
|
+
def resource_share_invitation_ids(self, resource_share_invitation_ids):
|
107
|
+
r"""Sets the resource_share_invitation_ids of this SearchResourceShareInvitationReqBody.
|
108
|
+
|
109
|
+
资源共享邀请的ID列表。
|
110
|
+
|
111
|
+
:param resource_share_invitation_ids: The resource_share_invitation_ids of this SearchResourceShareInvitationReqBody.
|
112
|
+
:type resource_share_invitation_ids: list[str]
|
113
|
+
"""
|
114
|
+
self._resource_share_invitation_ids = resource_share_invitation_ids
|
115
|
+
|
116
|
+
@property
|
117
|
+
def status(self):
|
118
|
+
r"""Gets the status of this SearchResourceShareInvitationReqBody.
|
119
|
+
|
120
|
+
资源共享邀请的当前状态。
|
121
|
+
|
122
|
+
:return: The status of this SearchResourceShareInvitationReqBody.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._status
|
126
|
+
|
127
|
+
@status.setter
|
128
|
+
def status(self, status):
|
129
|
+
r"""Sets the status of this SearchResourceShareInvitationReqBody.
|
130
|
+
|
131
|
+
资源共享邀请的当前状态。
|
132
|
+
|
133
|
+
:param status: The status of this SearchResourceShareInvitationReqBody.
|
134
|
+
:type status: str
|
135
|
+
"""
|
136
|
+
self._status = status
|
137
|
+
|
138
|
+
@property
|
139
|
+
def limit(self):
|
140
|
+
r"""Gets the limit of this SearchResourceShareInvitationReqBody.
|
141
|
+
|
142
|
+
分页页面的最大值。
|
143
|
+
|
144
|
+
:return: The limit of this SearchResourceShareInvitationReqBody.
|
145
|
+
:rtype: int
|
146
|
+
"""
|
147
|
+
return self._limit
|
148
|
+
|
149
|
+
@limit.setter
|
150
|
+
def limit(self, limit):
|
151
|
+
r"""Sets the limit of this SearchResourceShareInvitationReqBody.
|
152
|
+
|
153
|
+
分页页面的最大值。
|
154
|
+
|
155
|
+
:param limit: The limit of this SearchResourceShareInvitationReqBody.
|
156
|
+
:type limit: int
|
157
|
+
"""
|
158
|
+
self._limit = limit
|
159
|
+
|
160
|
+
@property
|
161
|
+
def marker(self):
|
162
|
+
r"""Gets the marker of this SearchResourceShareInvitationReqBody.
|
163
|
+
|
164
|
+
分页位置标识。从marker指定索引的下一条数据开始查询。查询第一页数据时,不需要传入此参数,查询后续页码数据时,将查询前一页数据响应体中marker值配入此参数。
|
165
|
+
|
166
|
+
:return: The marker of this SearchResourceShareInvitationReqBody.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._marker
|
170
|
+
|
171
|
+
@marker.setter
|
172
|
+
def marker(self, marker):
|
173
|
+
r"""Sets the marker of this SearchResourceShareInvitationReqBody.
|
174
|
+
|
175
|
+
分页位置标识。从marker指定索引的下一条数据开始查询。查询第一页数据时,不需要传入此参数,查询后续页码数据时,将查询前一页数据响应体中marker值配入此参数。
|
176
|
+
|
177
|
+
:param marker: The marker of this SearchResourceShareInvitationReqBody.
|
178
|
+
:type marker: str
|
179
|
+
"""
|
180
|
+
self._marker = marker
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, SearchResourceShareInvitationReqBody):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
return not self == other
|