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,169 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DisassociateResourceSharePermissionRequest:
|
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
|
+
'resource_share_id': 'str',
|
23
|
+
'body': 'DisassociatePermissionReqBody'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'x_security_token': 'X-Security-Token',
|
28
|
+
'resource_share_id': 'resource_share_id',
|
29
|
+
'body': 'body'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, x_security_token=None, resource_share_id=None, body=None):
|
33
|
+
r"""DisassociateResourceSharePermissionRequest
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
38
|
+
:type x_security_token: str
|
39
|
+
:param resource_share_id: 资源共享实例的ID。
|
40
|
+
:type resource_share_id: str
|
41
|
+
:param body: Body of the DisassociateResourceSharePermissionRequest
|
42
|
+
:type body: :class:`huaweicloudsdkram.v1.DisassociatePermissionReqBody`
|
43
|
+
"""
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
self._x_security_token = None
|
48
|
+
self._resource_share_id = None
|
49
|
+
self._body = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if x_security_token is not None:
|
53
|
+
self.x_security_token = x_security_token
|
54
|
+
self.resource_share_id = resource_share_id
|
55
|
+
if body is not None:
|
56
|
+
self.body = body
|
57
|
+
|
58
|
+
@property
|
59
|
+
def x_security_token(self):
|
60
|
+
r"""Gets the x_security_token of this DisassociateResourceSharePermissionRequest.
|
61
|
+
|
62
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
63
|
+
|
64
|
+
:return: The x_security_token of this DisassociateResourceSharePermissionRequest.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._x_security_token
|
68
|
+
|
69
|
+
@x_security_token.setter
|
70
|
+
def x_security_token(self, x_security_token):
|
71
|
+
r"""Sets the x_security_token of this DisassociateResourceSharePermissionRequest.
|
72
|
+
|
73
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
74
|
+
|
75
|
+
:param x_security_token: The x_security_token of this DisassociateResourceSharePermissionRequest.
|
76
|
+
:type x_security_token: str
|
77
|
+
"""
|
78
|
+
self._x_security_token = x_security_token
|
79
|
+
|
80
|
+
@property
|
81
|
+
def resource_share_id(self):
|
82
|
+
r"""Gets the resource_share_id of this DisassociateResourceSharePermissionRequest.
|
83
|
+
|
84
|
+
资源共享实例的ID。
|
85
|
+
|
86
|
+
:return: The resource_share_id of this DisassociateResourceSharePermissionRequest.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._resource_share_id
|
90
|
+
|
91
|
+
@resource_share_id.setter
|
92
|
+
def resource_share_id(self, resource_share_id):
|
93
|
+
r"""Sets the resource_share_id of this DisassociateResourceSharePermissionRequest.
|
94
|
+
|
95
|
+
资源共享实例的ID。
|
96
|
+
|
97
|
+
:param resource_share_id: The resource_share_id of this DisassociateResourceSharePermissionRequest.
|
98
|
+
:type resource_share_id: str
|
99
|
+
"""
|
100
|
+
self._resource_share_id = resource_share_id
|
101
|
+
|
102
|
+
@property
|
103
|
+
def body(self):
|
104
|
+
r"""Gets the body of this DisassociateResourceSharePermissionRequest.
|
105
|
+
|
106
|
+
:return: The body of this DisassociateResourceSharePermissionRequest.
|
107
|
+
:rtype: :class:`huaweicloudsdkram.v1.DisassociatePermissionReqBody`
|
108
|
+
"""
|
109
|
+
return self._body
|
110
|
+
|
111
|
+
@body.setter
|
112
|
+
def body(self, body):
|
113
|
+
r"""Sets the body of this DisassociateResourceSharePermissionRequest.
|
114
|
+
|
115
|
+
:param body: The body of this DisassociateResourceSharePermissionRequest.
|
116
|
+
:type body: :class:`huaweicloudsdkram.v1.DisassociatePermissionReqBody`
|
117
|
+
"""
|
118
|
+
self._body = body
|
119
|
+
|
120
|
+
def to_dict(self):
|
121
|
+
"""Returns the model properties as a dict"""
|
122
|
+
result = {}
|
123
|
+
|
124
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
125
|
+
value = getattr(self, attr)
|
126
|
+
if isinstance(value, list):
|
127
|
+
result[attr] = list(map(
|
128
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
129
|
+
value
|
130
|
+
))
|
131
|
+
elif hasattr(value, "to_dict"):
|
132
|
+
result[attr] = value.to_dict()
|
133
|
+
elif isinstance(value, dict):
|
134
|
+
result[attr] = dict(map(
|
135
|
+
lambda item: (item[0], item[1].to_dict())
|
136
|
+
if hasattr(item[1], "to_dict") else item,
|
137
|
+
value.items()
|
138
|
+
))
|
139
|
+
else:
|
140
|
+
if attr in self.sensitive_list:
|
141
|
+
result[attr] = "****"
|
142
|
+
else:
|
143
|
+
result[attr] = value
|
144
|
+
|
145
|
+
return result
|
146
|
+
|
147
|
+
def to_str(self):
|
148
|
+
"""Returns the string representation of the model"""
|
149
|
+
import simplejson as json
|
150
|
+
if six.PY2:
|
151
|
+
import sys
|
152
|
+
reload(sys)
|
153
|
+
sys.setdefaultencoding("utf-8")
|
154
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
155
|
+
|
156
|
+
def __repr__(self):
|
157
|
+
"""For `print`"""
|
158
|
+
return self.to_str()
|
159
|
+
|
160
|
+
def __eq__(self, other):
|
161
|
+
"""Returns true if both objects are equal"""
|
162
|
+
if not isinstance(other, DisassociateResourceSharePermissionRequest):
|
163
|
+
return False
|
164
|
+
|
165
|
+
return self.__dict__ == other.__dict__
|
166
|
+
|
167
|
+
def __ne__(self, other):
|
168
|
+
"""Returns true if both objects are not equal"""
|
169
|
+
return not self == other
|
@@ -0,0 +1,85 @@
|
|
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 DisassociateResourceSharePermissionResponse(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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""DisassociateResourceSharePermissionResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(DisassociateResourceSharePermissionResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, DisassociateResourceSharePermissionResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|
@@ -0,0 +1,169 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DisassociateResourceShareRequest:
|
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
|
+
'resource_share_id': 'str',
|
23
|
+
'body': 'ResourceShareAssociationReqBody'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'x_security_token': 'X-Security-Token',
|
28
|
+
'resource_share_id': 'resource_share_id',
|
29
|
+
'body': 'body'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, x_security_token=None, resource_share_id=None, body=None):
|
33
|
+
r"""DisassociateResourceShareRequest
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
38
|
+
:type x_security_token: str
|
39
|
+
:param resource_share_id: 资源共享实例的ID。
|
40
|
+
:type resource_share_id: str
|
41
|
+
:param body: Body of the DisassociateResourceShareRequest
|
42
|
+
:type body: :class:`huaweicloudsdkram.v1.ResourceShareAssociationReqBody`
|
43
|
+
"""
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
self._x_security_token = None
|
48
|
+
self._resource_share_id = None
|
49
|
+
self._body = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if x_security_token is not None:
|
53
|
+
self.x_security_token = x_security_token
|
54
|
+
self.resource_share_id = resource_share_id
|
55
|
+
if body is not None:
|
56
|
+
self.body = body
|
57
|
+
|
58
|
+
@property
|
59
|
+
def x_security_token(self):
|
60
|
+
r"""Gets the x_security_token of this DisassociateResourceShareRequest.
|
61
|
+
|
62
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
63
|
+
|
64
|
+
:return: The x_security_token of this DisassociateResourceShareRequest.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._x_security_token
|
68
|
+
|
69
|
+
@x_security_token.setter
|
70
|
+
def x_security_token(self, x_security_token):
|
71
|
+
r"""Sets the x_security_token of this DisassociateResourceShareRequest.
|
72
|
+
|
73
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
74
|
+
|
75
|
+
:param x_security_token: The x_security_token of this DisassociateResourceShareRequest.
|
76
|
+
:type x_security_token: str
|
77
|
+
"""
|
78
|
+
self._x_security_token = x_security_token
|
79
|
+
|
80
|
+
@property
|
81
|
+
def resource_share_id(self):
|
82
|
+
r"""Gets the resource_share_id of this DisassociateResourceShareRequest.
|
83
|
+
|
84
|
+
资源共享实例的ID。
|
85
|
+
|
86
|
+
:return: The resource_share_id of this DisassociateResourceShareRequest.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._resource_share_id
|
90
|
+
|
91
|
+
@resource_share_id.setter
|
92
|
+
def resource_share_id(self, resource_share_id):
|
93
|
+
r"""Sets the resource_share_id of this DisassociateResourceShareRequest.
|
94
|
+
|
95
|
+
资源共享实例的ID。
|
96
|
+
|
97
|
+
:param resource_share_id: The resource_share_id of this DisassociateResourceShareRequest.
|
98
|
+
:type resource_share_id: str
|
99
|
+
"""
|
100
|
+
self._resource_share_id = resource_share_id
|
101
|
+
|
102
|
+
@property
|
103
|
+
def body(self):
|
104
|
+
r"""Gets the body of this DisassociateResourceShareRequest.
|
105
|
+
|
106
|
+
:return: The body of this DisassociateResourceShareRequest.
|
107
|
+
:rtype: :class:`huaweicloudsdkram.v1.ResourceShareAssociationReqBody`
|
108
|
+
"""
|
109
|
+
return self._body
|
110
|
+
|
111
|
+
@body.setter
|
112
|
+
def body(self, body):
|
113
|
+
r"""Sets the body of this DisassociateResourceShareRequest.
|
114
|
+
|
115
|
+
:param body: The body of this DisassociateResourceShareRequest.
|
116
|
+
:type body: :class:`huaweicloudsdkram.v1.ResourceShareAssociationReqBody`
|
117
|
+
"""
|
118
|
+
self._body = body
|
119
|
+
|
120
|
+
def to_dict(self):
|
121
|
+
"""Returns the model properties as a dict"""
|
122
|
+
result = {}
|
123
|
+
|
124
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
125
|
+
value = getattr(self, attr)
|
126
|
+
if isinstance(value, list):
|
127
|
+
result[attr] = list(map(
|
128
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
129
|
+
value
|
130
|
+
))
|
131
|
+
elif hasattr(value, "to_dict"):
|
132
|
+
result[attr] = value.to_dict()
|
133
|
+
elif isinstance(value, dict):
|
134
|
+
result[attr] = dict(map(
|
135
|
+
lambda item: (item[0], item[1].to_dict())
|
136
|
+
if hasattr(item[1], "to_dict") else item,
|
137
|
+
value.items()
|
138
|
+
))
|
139
|
+
else:
|
140
|
+
if attr in self.sensitive_list:
|
141
|
+
result[attr] = "****"
|
142
|
+
else:
|
143
|
+
result[attr] = value
|
144
|
+
|
145
|
+
return result
|
146
|
+
|
147
|
+
def to_str(self):
|
148
|
+
"""Returns the string representation of the model"""
|
149
|
+
import simplejson as json
|
150
|
+
if six.PY2:
|
151
|
+
import sys
|
152
|
+
reload(sys)
|
153
|
+
sys.setdefaultencoding("utf-8")
|
154
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
155
|
+
|
156
|
+
def __repr__(self):
|
157
|
+
"""For `print`"""
|
158
|
+
return self.to_str()
|
159
|
+
|
160
|
+
def __eq__(self, other):
|
161
|
+
"""Returns true if both objects are equal"""
|
162
|
+
if not isinstance(other, DisassociateResourceShareRequest):
|
163
|
+
return False
|
164
|
+
|
165
|
+
return self.__dict__ == other.__dict__
|
166
|
+
|
167
|
+
def __ne__(self, other):
|
168
|
+
"""Returns true if both objects are not equal"""
|
169
|
+
return not self == other
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class DisassociateResourceShareResponse(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
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'resource_share_associations': 'resource_share_associations'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, resource_share_associations=None):
|
29
|
+
r"""DisassociateResourceShareResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param resource_share_associations:
|
34
|
+
:type resource_share_associations: list[:class:`huaweicloudsdkram.v1.ResourceShareAssociation`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(DisassociateResourceShareResponse, self).__init__()
|
38
|
+
|
39
|
+
self._resource_share_associations = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if resource_share_associations is not None:
|
43
|
+
self.resource_share_associations = resource_share_associations
|
44
|
+
|
45
|
+
@property
|
46
|
+
def resource_share_associations(self):
|
47
|
+
r"""Gets the resource_share_associations of this DisassociateResourceShareResponse.
|
48
|
+
|
49
|
+
:return: The resource_share_associations of this DisassociateResourceShareResponse.
|
50
|
+
:rtype: list[:class:`huaweicloudsdkram.v1.ResourceShareAssociation`]
|
51
|
+
"""
|
52
|
+
return self._resource_share_associations
|
53
|
+
|
54
|
+
@resource_share_associations.setter
|
55
|
+
def resource_share_associations(self, resource_share_associations):
|
56
|
+
r"""Sets the resource_share_associations of this DisassociateResourceShareResponse.
|
57
|
+
|
58
|
+
:param resource_share_associations: The resource_share_associations of this DisassociateResourceShareResponse.
|
59
|
+
:type resource_share_associations: list[:class:`huaweicloudsdkram.v1.ResourceShareAssociation`]
|
60
|
+
"""
|
61
|
+
self._resource_share_associations = resource_share_associations
|
62
|
+
|
63
|
+
def to_dict(self):
|
64
|
+
"""Returns the model properties as a dict"""
|
65
|
+
result = {}
|
66
|
+
|
67
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
68
|
+
value = getattr(self, attr)
|
69
|
+
if isinstance(value, list):
|
70
|
+
result[attr] = list(map(
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
72
|
+
value
|
73
|
+
))
|
74
|
+
elif hasattr(value, "to_dict"):
|
75
|
+
result[attr] = value.to_dict()
|
76
|
+
elif isinstance(value, dict):
|
77
|
+
result[attr] = dict(map(
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
80
|
+
value.items()
|
81
|
+
))
|
82
|
+
else:
|
83
|
+
if attr in self.sensitive_list:
|
84
|
+
result[attr] = "****"
|
85
|
+
else:
|
86
|
+
result[attr] = value
|
87
|
+
|
88
|
+
return result
|
89
|
+
|
90
|
+
def to_str(self):
|
91
|
+
"""Returns the string representation of the model"""
|
92
|
+
import simplejson as json
|
93
|
+
if six.PY2:
|
94
|
+
import sys
|
95
|
+
reload(sys)
|
96
|
+
sys.setdefaultencoding("utf-8")
|
97
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
98
|
+
|
99
|
+
def __repr__(self):
|
100
|
+
"""For `print`"""
|
101
|
+
return self.to_str()
|
102
|
+
|
103
|
+
def __eq__(self, other):
|
104
|
+
"""Returns true if both objects are equal"""
|
105
|
+
if not isinstance(other, DisassociateResourceShareResponse):
|
106
|
+
return False
|
107
|
+
|
108
|
+
return self.__dict__ == other.__dict__
|
109
|
+
|
110
|
+
def __ne__(self, other):
|
111
|
+
"""Returns true if both objects are not equal"""
|
112
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class EnableOrganizationShareRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
sensitive_list.append('x_security_token')
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'x_security_token': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_security_token': 'X-Security-Token'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, x_security_token=None):
|
29
|
+
r"""EnableOrganizationShareRequest
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
34
|
+
:type x_security_token: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
self._x_security_token = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if x_security_token is not None:
|
43
|
+
self.x_security_token = x_security_token
|
44
|
+
|
45
|
+
@property
|
46
|
+
def x_security_token(self):
|
47
|
+
r"""Gets the x_security_token of this EnableOrganizationShareRequest.
|
48
|
+
|
49
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
50
|
+
|
51
|
+
:return: The x_security_token of this EnableOrganizationShareRequest.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._x_security_token
|
55
|
+
|
56
|
+
@x_security_token.setter
|
57
|
+
def x_security_token(self, x_security_token):
|
58
|
+
r"""Sets the x_security_token of this EnableOrganizationShareRequest.
|
59
|
+
|
60
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
61
|
+
|
62
|
+
:param x_security_token: The x_security_token of this EnableOrganizationShareRequest.
|
63
|
+
:type x_security_token: str
|
64
|
+
"""
|
65
|
+
self._x_security_token = x_security_token
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, EnableOrganizationShareRequest):
|
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
|