huaweicloudsdksfsturbo 3.1.124__py2.py3-none-any.whl → 3.1.126__py2.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.
- huaweicloudsdksfsturbo/v1/__init__.py +3 -0
- huaweicloudsdksfsturbo/v1/model/__init__.py +3 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request.py +111 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request_body.py +260 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_response.py +112 -0
- huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +65 -0
- huaweicloudsdksfsturbo/v1/sfsturbo_client.py +65 -0
- {huaweicloudsdksfsturbo-3.1.124.dist-info → huaweicloudsdksfsturbo-3.1.126.dist-info}/METADATA +2 -2
- {huaweicloudsdksfsturbo-3.1.124.dist-info → huaweicloudsdksfsturbo-3.1.126.dist-info}/RECORD +12 -9
- {huaweicloudsdksfsturbo-3.1.124.dist-info → huaweicloudsdksfsturbo-3.1.126.dist-info}/LICENSE +0 -0
- {huaweicloudsdksfsturbo-3.1.124.dist-info → huaweicloudsdksfsturbo-3.1.126.dist-info}/WHEEL +0 -0
- {huaweicloudsdksfsturbo-3.1.124.dist-info → huaweicloudsdksfsturbo-3.1.126.dist-info}/top_level.txt +0 -0
@@ -86,6 +86,9 @@ from huaweicloudsdksfsturbo.v1.model.list_perm_rules_request import ListPermRule
|
|
86
86
|
from huaweicloudsdksfsturbo.v1.model.list_perm_rules_response import ListPermRulesResponse
|
87
87
|
from huaweicloudsdksfsturbo.v1.model.list_shared_tags_request import ListSharedTagsRequest
|
88
88
|
from huaweicloudsdksfsturbo.v1.model.list_shared_tags_response import ListSharedTagsResponse
|
89
|
+
from huaweicloudsdksfsturbo.v1.model.list_shares_by_tag_request import ListSharesByTagRequest
|
90
|
+
from huaweicloudsdksfsturbo.v1.model.list_shares_by_tag_request_body import ListSharesByTagRequestBody
|
91
|
+
from huaweicloudsdksfsturbo.v1.model.list_shares_by_tag_response import ListSharesByTagResponse
|
89
92
|
from huaweicloudsdksfsturbo.v1.model.list_shares_request import ListSharesRequest
|
90
93
|
from huaweicloudsdksfsturbo.v1.model.list_shares_response import ListSharesResponse
|
91
94
|
from huaweicloudsdksfsturbo.v1.model.metadata import Metadata
|
@@ -84,6 +84,9 @@ from huaweicloudsdksfsturbo.v1.model.list_perm_rules_request import ListPermRule
|
|
84
84
|
from huaweicloudsdksfsturbo.v1.model.list_perm_rules_response import ListPermRulesResponse
|
85
85
|
from huaweicloudsdksfsturbo.v1.model.list_shared_tags_request import ListSharedTagsRequest
|
86
86
|
from huaweicloudsdksfsturbo.v1.model.list_shared_tags_response import ListSharedTagsResponse
|
87
|
+
from huaweicloudsdksfsturbo.v1.model.list_shares_by_tag_request import ListSharesByTagRequest
|
88
|
+
from huaweicloudsdksfsturbo.v1.model.list_shares_by_tag_request_body import ListSharesByTagRequestBody
|
89
|
+
from huaweicloudsdksfsturbo.v1.model.list_shares_by_tag_response import ListSharesByTagResponse
|
87
90
|
from huaweicloudsdksfsturbo.v1.model.list_shares_request import ListSharesRequest
|
88
91
|
from huaweicloudsdksfsturbo.v1.model.list_shares_response import ListSharesResponse
|
89
92
|
from huaweicloudsdksfsturbo.v1.model.metadata import Metadata
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListSharesByTagRequest:
|
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
|
+
'body': 'ListSharesByTagRequestBody'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
"""ListSharesByTagRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the ListSharesByTagRequest
|
33
|
+
:type body: :class:`huaweicloudsdksfsturbo.v1.ListSharesByTagRequestBody`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
"""Gets the body of this ListSharesByTagRequest.
|
47
|
+
|
48
|
+
:return: The body of this ListSharesByTagRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ListSharesByTagRequestBody`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
"""Sets the body of this ListSharesByTagRequest.
|
56
|
+
|
57
|
+
:param body: The body of this ListSharesByTagRequest.
|
58
|
+
:type body: :class:`huaweicloudsdksfsturbo.v1.ListSharesByTagRequestBody`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, ListSharesByTagRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|
@@ -0,0 +1,260 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListSharesByTagRequestBody:
|
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
|
+
'action': 'str',
|
21
|
+
'limit': 'str',
|
22
|
+
'offset': 'str',
|
23
|
+
'without_any_tag': 'bool',
|
24
|
+
'tags': 'list[Tag]',
|
25
|
+
'matches': 'list[ResourceTag]'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'action': 'action',
|
30
|
+
'limit': 'limit',
|
31
|
+
'offset': 'offset',
|
32
|
+
'without_any_tag': 'without_any_tag',
|
33
|
+
'tags': 'tags',
|
34
|
+
'matches': 'matches'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, action=None, limit=None, offset=None, without_any_tag=None, tags=None, matches=None):
|
38
|
+
"""ListSharesByTagRequestBody
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param action: 通过标签查询文件系统列表的操作类型。仅支持取值为\"filter\" 或 \"count\"。
|
43
|
+
:type action: str
|
44
|
+
:param limit: 设置返回的文件系统个数的最大值。
|
45
|
+
:type limit: str
|
46
|
+
:param offset: 设置返回的文件系统的偏移量
|
47
|
+
:type offset: str
|
48
|
+
:param without_any_tag: 不包含任意一个标签,该字段为true时查询所有不带标签的资源,此时忽略 “tags”字段。该字段为false或者未提供该参数时,该条件不生效,即返回所有资源或按\"tags\",\"matches\"等条件过滤。
|
49
|
+
:type without_any_tag: bool
|
50
|
+
:param tags: 包含标签,最多包含20个key,每个key下面的value最多20个,每个key对应的value可以为空数组但结构体不能缺失。key不能重复,同一个key中values不能重复。结果返回包含所有标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。无tag过滤条件时返回全量数据。
|
51
|
+
:type tags: list[:class:`huaweicloudsdksfsturbo.v1.Tag`]
|
52
|
+
:param matches: 搜索字段,key为要匹配的字段,仅支持取值“resource_name”。value为匹配的值,当value以“\\*”结尾时,为前缀搜索。例如:value值为“sfsturbo\\*”时,返回名称为“sfsturbo”开头的所有资源列表。
|
53
|
+
:type matches: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._action = None
|
59
|
+
self._limit = None
|
60
|
+
self._offset = None
|
61
|
+
self._without_any_tag = None
|
62
|
+
self._tags = None
|
63
|
+
self._matches = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if action is not None:
|
67
|
+
self.action = action
|
68
|
+
if limit is not None:
|
69
|
+
self.limit = limit
|
70
|
+
if offset is not None:
|
71
|
+
self.offset = offset
|
72
|
+
if without_any_tag is not None:
|
73
|
+
self.without_any_tag = without_any_tag
|
74
|
+
if tags is not None:
|
75
|
+
self.tags = tags
|
76
|
+
if matches is not None:
|
77
|
+
self.matches = matches
|
78
|
+
|
79
|
+
@property
|
80
|
+
def action(self):
|
81
|
+
"""Gets the action of this ListSharesByTagRequestBody.
|
82
|
+
|
83
|
+
通过标签查询文件系统列表的操作类型。仅支持取值为\"filter\" 或 \"count\"。
|
84
|
+
|
85
|
+
:return: The action of this ListSharesByTagRequestBody.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._action
|
89
|
+
|
90
|
+
@action.setter
|
91
|
+
def action(self, action):
|
92
|
+
"""Sets the action of this ListSharesByTagRequestBody.
|
93
|
+
|
94
|
+
通过标签查询文件系统列表的操作类型。仅支持取值为\"filter\" 或 \"count\"。
|
95
|
+
|
96
|
+
:param action: The action of this ListSharesByTagRequestBody.
|
97
|
+
:type action: str
|
98
|
+
"""
|
99
|
+
self._action = action
|
100
|
+
|
101
|
+
@property
|
102
|
+
def limit(self):
|
103
|
+
"""Gets the limit of this ListSharesByTagRequestBody.
|
104
|
+
|
105
|
+
设置返回的文件系统个数的最大值。
|
106
|
+
|
107
|
+
:return: The limit of this ListSharesByTagRequestBody.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._limit
|
111
|
+
|
112
|
+
@limit.setter
|
113
|
+
def limit(self, limit):
|
114
|
+
"""Sets the limit of this ListSharesByTagRequestBody.
|
115
|
+
|
116
|
+
设置返回的文件系统个数的最大值。
|
117
|
+
|
118
|
+
:param limit: The limit of this ListSharesByTagRequestBody.
|
119
|
+
:type limit: str
|
120
|
+
"""
|
121
|
+
self._limit = limit
|
122
|
+
|
123
|
+
@property
|
124
|
+
def offset(self):
|
125
|
+
"""Gets the offset of this ListSharesByTagRequestBody.
|
126
|
+
|
127
|
+
设置返回的文件系统的偏移量
|
128
|
+
|
129
|
+
:return: The offset of this ListSharesByTagRequestBody.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._offset
|
133
|
+
|
134
|
+
@offset.setter
|
135
|
+
def offset(self, offset):
|
136
|
+
"""Sets the offset of this ListSharesByTagRequestBody.
|
137
|
+
|
138
|
+
设置返回的文件系统的偏移量
|
139
|
+
|
140
|
+
:param offset: The offset of this ListSharesByTagRequestBody.
|
141
|
+
:type offset: str
|
142
|
+
"""
|
143
|
+
self._offset = offset
|
144
|
+
|
145
|
+
@property
|
146
|
+
def without_any_tag(self):
|
147
|
+
"""Gets the without_any_tag of this ListSharesByTagRequestBody.
|
148
|
+
|
149
|
+
不包含任意一个标签,该字段为true时查询所有不带标签的资源,此时忽略 “tags”字段。该字段为false或者未提供该参数时,该条件不生效,即返回所有资源或按\"tags\",\"matches\"等条件过滤。
|
150
|
+
|
151
|
+
:return: The without_any_tag of this ListSharesByTagRequestBody.
|
152
|
+
:rtype: bool
|
153
|
+
"""
|
154
|
+
return self._without_any_tag
|
155
|
+
|
156
|
+
@without_any_tag.setter
|
157
|
+
def without_any_tag(self, without_any_tag):
|
158
|
+
"""Sets the without_any_tag of this ListSharesByTagRequestBody.
|
159
|
+
|
160
|
+
不包含任意一个标签,该字段为true时查询所有不带标签的资源,此时忽略 “tags”字段。该字段为false或者未提供该参数时,该条件不生效,即返回所有资源或按\"tags\",\"matches\"等条件过滤。
|
161
|
+
|
162
|
+
:param without_any_tag: The without_any_tag of this ListSharesByTagRequestBody.
|
163
|
+
:type without_any_tag: bool
|
164
|
+
"""
|
165
|
+
self._without_any_tag = without_any_tag
|
166
|
+
|
167
|
+
@property
|
168
|
+
def tags(self):
|
169
|
+
"""Gets the tags of this ListSharesByTagRequestBody.
|
170
|
+
|
171
|
+
包含标签,最多包含20个key,每个key下面的value最多20个,每个key对应的value可以为空数组但结构体不能缺失。key不能重复,同一个key中values不能重复。结果返回包含所有标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。无tag过滤条件时返回全量数据。
|
172
|
+
|
173
|
+
:return: The tags of this ListSharesByTagRequestBody.
|
174
|
+
:rtype: list[:class:`huaweicloudsdksfsturbo.v1.Tag`]
|
175
|
+
"""
|
176
|
+
return self._tags
|
177
|
+
|
178
|
+
@tags.setter
|
179
|
+
def tags(self, tags):
|
180
|
+
"""Sets the tags of this ListSharesByTagRequestBody.
|
181
|
+
|
182
|
+
包含标签,最多包含20个key,每个key下面的value最多20个,每个key对应的value可以为空数组但结构体不能缺失。key不能重复,同一个key中values不能重复。结果返回包含所有标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。无tag过滤条件时返回全量数据。
|
183
|
+
|
184
|
+
:param tags: The tags of this ListSharesByTagRequestBody.
|
185
|
+
:type tags: list[:class:`huaweicloudsdksfsturbo.v1.Tag`]
|
186
|
+
"""
|
187
|
+
self._tags = tags
|
188
|
+
|
189
|
+
@property
|
190
|
+
def matches(self):
|
191
|
+
"""Gets the matches of this ListSharesByTagRequestBody.
|
192
|
+
|
193
|
+
搜索字段,key为要匹配的字段,仅支持取值“resource_name”。value为匹配的值,当value以“\\*”结尾时,为前缀搜索。例如:value值为“sfsturbo\\*”时,返回名称为“sfsturbo”开头的所有资源列表。
|
194
|
+
|
195
|
+
:return: The matches of this ListSharesByTagRequestBody.
|
196
|
+
:rtype: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
|
197
|
+
"""
|
198
|
+
return self._matches
|
199
|
+
|
200
|
+
@matches.setter
|
201
|
+
def matches(self, matches):
|
202
|
+
"""Sets the matches of this ListSharesByTagRequestBody.
|
203
|
+
|
204
|
+
搜索字段,key为要匹配的字段,仅支持取值“resource_name”。value为匹配的值,当value以“\\*”结尾时,为前缀搜索。例如:value值为“sfsturbo\\*”时,返回名称为“sfsturbo”开头的所有资源列表。
|
205
|
+
|
206
|
+
:param matches: The matches of this ListSharesByTagRequestBody.
|
207
|
+
:type matches: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
|
208
|
+
"""
|
209
|
+
self._matches = matches
|
210
|
+
|
211
|
+
def to_dict(self):
|
212
|
+
"""Returns the model properties as a dict"""
|
213
|
+
result = {}
|
214
|
+
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
216
|
+
value = getattr(self, attr)
|
217
|
+
if isinstance(value, list):
|
218
|
+
result[attr] = list(map(
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
220
|
+
value
|
221
|
+
))
|
222
|
+
elif hasattr(value, "to_dict"):
|
223
|
+
result[attr] = value.to_dict()
|
224
|
+
elif isinstance(value, dict):
|
225
|
+
result[attr] = dict(map(
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
228
|
+
value.items()
|
229
|
+
))
|
230
|
+
else:
|
231
|
+
if attr in self.sensitive_list:
|
232
|
+
result[attr] = "****"
|
233
|
+
else:
|
234
|
+
result[attr] = value
|
235
|
+
|
236
|
+
return result
|
237
|
+
|
238
|
+
def to_str(self):
|
239
|
+
"""Returns the string representation of the model"""
|
240
|
+
import simplejson as json
|
241
|
+
if six.PY2:
|
242
|
+
import sys
|
243
|
+
reload(sys)
|
244
|
+
sys.setdefaultencoding("utf-8")
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
246
|
+
|
247
|
+
def __repr__(self):
|
248
|
+
"""For `print`"""
|
249
|
+
return self.to_str()
|
250
|
+
|
251
|
+
def __eq__(self, other):
|
252
|
+
"""Returns true if both objects are equal"""
|
253
|
+
if not isinstance(other, ListSharesByTagRequestBody):
|
254
|
+
return False
|
255
|
+
|
256
|
+
return self.__dict__ == other.__dict__
|
257
|
+
|
258
|
+
def __ne__(self, other):
|
259
|
+
"""Returns true if both objects are not equal"""
|
260
|
+
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 ListSharesByTagResponse(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
|
+
'x_request_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_request_id': 'X-request-id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, x_request_id=None):
|
29
|
+
"""ListSharesByTagResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param x_request_id:
|
34
|
+
:type x_request_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ListSharesByTagResponse, self).__init__()
|
38
|
+
|
39
|
+
self._x_request_id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if x_request_id is not None:
|
43
|
+
self.x_request_id = x_request_id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def x_request_id(self):
|
47
|
+
"""Gets the x_request_id of this ListSharesByTagResponse.
|
48
|
+
|
49
|
+
:return: The x_request_id of this ListSharesByTagResponse.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._x_request_id
|
53
|
+
|
54
|
+
@x_request_id.setter
|
55
|
+
def x_request_id(self, x_request_id):
|
56
|
+
"""Sets the x_request_id of this ListSharesByTagResponse.
|
57
|
+
|
58
|
+
:param x_request_id: The x_request_id of this ListSharesByTagResponse.
|
59
|
+
:type x_request_id: str
|
60
|
+
"""
|
61
|
+
self._x_request_id = x_request_id
|
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, ListSharesByTagResponse):
|
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
|
@@ -1941,6 +1941,71 @@ class SFSTurboAsyncClient(Client):
|
|
1941
1941
|
|
1942
1942
|
return http_info
|
1943
1943
|
|
1944
|
+
def list_shares_by_tag_async(self, request):
|
1945
|
+
"""通过标签查询文件系统列表
|
1946
|
+
|
1947
|
+
通过标签查询文件系统列表
|
1948
|
+
|
1949
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1950
|
+
|
1951
|
+
|
1952
|
+
:param request: Request instance for ListSharesByTag
|
1953
|
+
:type request: :class:`huaweicloudsdksfsturbo.v1.ListSharesByTagRequest`
|
1954
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ListSharesByTagResponse`
|
1955
|
+
"""
|
1956
|
+
http_info = self._list_shares_by_tag_http_info(request)
|
1957
|
+
return self._call_api(**http_info)
|
1958
|
+
|
1959
|
+
def list_shares_by_tag_async_invoker(self, request):
|
1960
|
+
http_info = self._list_shares_by_tag_http_info(request)
|
1961
|
+
return AsyncInvoker(self, http_info)
|
1962
|
+
|
1963
|
+
def _list_shares_by_tag_http_info(self, request):
|
1964
|
+
http_info = {
|
1965
|
+
"method": "POST",
|
1966
|
+
"resource_path": "/v1/{project_id}/sfs-turbo/resource_instances/action",
|
1967
|
+
"request_type": request.__class__.__name__,
|
1968
|
+
"response_type": "ListSharesByTagResponse"
|
1969
|
+
}
|
1970
|
+
|
1971
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1972
|
+
|
1973
|
+
cname = None
|
1974
|
+
|
1975
|
+
collection_formats = {}
|
1976
|
+
|
1977
|
+
path_params = {}
|
1978
|
+
|
1979
|
+
query_params = []
|
1980
|
+
|
1981
|
+
header_params = {}
|
1982
|
+
|
1983
|
+
form_params = {}
|
1984
|
+
|
1985
|
+
body = None
|
1986
|
+
if 'body' in local_var_params:
|
1987
|
+
body = local_var_params['body']
|
1988
|
+
if isinstance(request, SdkStreamRequest):
|
1989
|
+
body = request.get_file_stream()
|
1990
|
+
|
1991
|
+
response_headers = ["X-request-id", ]
|
1992
|
+
|
1993
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1994
|
+
['application/json;charset=UTF-8'])
|
1995
|
+
|
1996
|
+
auth_settings = []
|
1997
|
+
|
1998
|
+
http_info["cname"] = cname
|
1999
|
+
http_info["collection_formats"] = collection_formats
|
2000
|
+
http_info["path_params"] = path_params
|
2001
|
+
http_info["query_params"] = query_params
|
2002
|
+
http_info["header_params"] = header_params
|
2003
|
+
http_info["post_params"] = form_params
|
2004
|
+
http_info["body"] = body
|
2005
|
+
http_info["response_headers"] = response_headers
|
2006
|
+
|
2007
|
+
return http_info
|
2008
|
+
|
1944
2009
|
def set_hpc_cache_backend_async(self, request):
|
1945
2010
|
"""配置hpc缓存型后端信息
|
1946
2011
|
|
@@ -1941,6 +1941,71 @@ class SFSTurboClient(Client):
|
|
1941
1941
|
|
1942
1942
|
return http_info
|
1943
1943
|
|
1944
|
+
def list_shares_by_tag(self, request):
|
1945
|
+
"""通过标签查询文件系统列表
|
1946
|
+
|
1947
|
+
通过标签查询文件系统列表
|
1948
|
+
|
1949
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1950
|
+
|
1951
|
+
:param request: Request instance for ListSharesByTag
|
1952
|
+
:type request: :class:`huaweicloudsdksfsturbo.v1.ListSharesByTagRequest`
|
1953
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ListSharesByTagResponse`
|
1954
|
+
"""
|
1955
|
+
http_info = self._list_shares_by_tag_http_info(request)
|
1956
|
+
return self._call_api(**http_info)
|
1957
|
+
|
1958
|
+
def list_shares_by_tag_invoker(self, request):
|
1959
|
+
http_info = self._list_shares_by_tag_http_info(request)
|
1960
|
+
return SyncInvoker(self, http_info)
|
1961
|
+
|
1962
|
+
@classmethod
|
1963
|
+
def _list_shares_by_tag_http_info(cls, request):
|
1964
|
+
http_info = {
|
1965
|
+
"method": "POST",
|
1966
|
+
"resource_path": "/v1/{project_id}/sfs-turbo/resource_instances/action",
|
1967
|
+
"request_type": request.__class__.__name__,
|
1968
|
+
"response_type": "ListSharesByTagResponse"
|
1969
|
+
}
|
1970
|
+
|
1971
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1972
|
+
|
1973
|
+
cname = None
|
1974
|
+
|
1975
|
+
collection_formats = {}
|
1976
|
+
|
1977
|
+
path_params = {}
|
1978
|
+
|
1979
|
+
query_params = []
|
1980
|
+
|
1981
|
+
header_params = {}
|
1982
|
+
|
1983
|
+
form_params = {}
|
1984
|
+
|
1985
|
+
body = None
|
1986
|
+
if 'body' in local_var_params:
|
1987
|
+
body = local_var_params['body']
|
1988
|
+
if isinstance(request, SdkStreamRequest):
|
1989
|
+
body = request.get_file_stream()
|
1990
|
+
|
1991
|
+
response_headers = ["X-request-id", ]
|
1992
|
+
|
1993
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1994
|
+
['application/json;charset=UTF-8'])
|
1995
|
+
|
1996
|
+
auth_settings = []
|
1997
|
+
|
1998
|
+
http_info["cname"] = cname
|
1999
|
+
http_info["collection_formats"] = collection_formats
|
2000
|
+
http_info["path_params"] = path_params
|
2001
|
+
http_info["query_params"] = query_params
|
2002
|
+
http_info["header_params"] = header_params
|
2003
|
+
http_info["post_params"] = form_params
|
2004
|
+
http_info["body"] = body
|
2005
|
+
http_info["response_headers"] = response_headers
|
2006
|
+
|
2007
|
+
return http_info
|
2008
|
+
|
1944
2009
|
def set_hpc_cache_backend(self, request):
|
1945
2010
|
"""配置hpc缓存型后端信息
|
1946
2011
|
|
{huaweicloudsdksfsturbo-3.1.124.dist-info → huaweicloudsdksfsturbo-3.1.126.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdksfsturbo
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.126
|
4
4
|
Summary: SFSTurbo
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
6
6
|
Author: HuaweiCloud SDK
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
23
23
|
Description-Content-Type: text/markdown
|
24
24
|
License-File: LICENSE
|
25
|
-
Requires-Dist: huaweicloudsdkcore>=3.1.
|
25
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.126
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
{huaweicloudsdksfsturbo-3.1.124.dist-info → huaweicloudsdksfsturbo-3.1.126.dist-info}/RECORD
RENAMED
@@ -1,8 +1,8 @@
|
|
1
1
|
huaweicloudsdksfsturbo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
huaweicloudsdksfsturbo/v1/__init__.py,sha256=
|
3
|
-
huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py,sha256=
|
4
|
-
huaweicloudsdksfsturbo/v1/sfsturbo_client.py,sha256=
|
5
|
-
huaweicloudsdksfsturbo/v1/model/__init__.py,sha256=
|
2
|
+
huaweicloudsdksfsturbo/v1/__init__.py,sha256=mpH6QQR6gVXhqnfSVxIpj0Y-JDwpBNj0ogfmXL_ySec,13574
|
3
|
+
huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py,sha256=7osQVIYU69G4q-w52LaEsKoldRJZy76sHGUBArTA3HM,116444
|
4
|
+
huaweicloudsdksfsturbo/v1/sfsturbo_client.py,sha256=2Fgcxa4ko_o4jQJrlZPftAtjR-koE5Blw7EAvy_G6HU,116433
|
5
|
+
huaweicloudsdksfsturbo/v1/model/__init__.py,sha256=qoT4ceuVaQhie5KcNLvRUqJ5x5wlHGZFgZiX-YqT8x0,13458
|
6
6
|
huaweicloudsdksfsturbo/v1/model/action_progress.py,sha256=O8yTtzqDSr9Bm-2tC0LHSYmJFggONk_IqVXEXH0WbEI,3093
|
7
7
|
huaweicloudsdksfsturbo/v1/model/auto_export_policy.py,sha256=PJPVsUyhGMRtyrT-BmgzpFhww5L5B1sPHH6dyNswMME,4759
|
8
8
|
huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_request.py,sha256=8YvD2ia0zJsbVJq46nt_pstBLYdCVgi_uV5F-GqF0x4,3948
|
@@ -84,6 +84,9 @@ huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py,sha256=CTSd5qwaCYDtXP
|
|
84
84
|
huaweicloudsdksfsturbo/v1/model/list_perm_rules_response.py,sha256=aRu_ELqJmfzossjNbv5YqKQJyC06-jh3dHH2ORVtrV8,3342
|
85
85
|
huaweicloudsdksfsturbo/v1/model/list_shared_tags_request.py,sha256=14QBYCeRa9058mKLbQSVgBSVoT4psKzB3-gUEwjWnTw,3821
|
86
86
|
huaweicloudsdksfsturbo/v1/model/list_shared_tags_response.py,sha256=l_s0Y-jhHuwRefhVjho3No_TnAVzv3HQv4ctkc4yHRg,3265
|
87
|
+
huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request.py,sha256=hwYijWLXYUAS8D3I_lpaaAofBPpinTOZTT2Ttak2Yac,3178
|
88
|
+
huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request_body.py,sha256=q760BgAuV-1nOiVnRmdziziZhOI-lANY4LPIU44IMtU,10196
|
89
|
+
huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_response.py,sha256=Mhjv01bBXW0KUfW_jXc8iPvhBUIUCXdiI4NM-0gwfNg,3254
|
87
90
|
huaweicloudsdksfsturbo/v1/model/list_shares_request.py,sha256=nfJwROzsMYBDM4dEPDCmrFUPsUm4d4WbCfMjuSGn2QM,3960
|
88
91
|
huaweicloudsdksfsturbo/v1/model/list_shares_response.py,sha256=MIqqHEP3a0amnRPDZgmwRyMqhGTF-UOqarZwTaAjyY8,4097
|
89
92
|
huaweicloudsdksfsturbo/v1/model/metadata.py,sha256=IRvQx9JpvlXSSfBFbljWJ9FEeqQrVd3C5nGtOdw787Q,9904
|
@@ -148,8 +151,8 @@ huaweicloudsdksfsturbo/v1/model/update_perm_rule_request.py,sha256=Bln3F-2mScnPq
|
|
148
151
|
huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py,sha256=tmVGPM30gKJAMZfkGXsUTlitsLh70tVDIY88cga_yLE,7010
|
149
152
|
huaweicloudsdksfsturbo/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
150
153
|
huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py,sha256=_rqD4_l3GdVA7pd-NAuYv_lbzcsf41cCfWxtML9kzXk,5179
|
151
|
-
huaweicloudsdksfsturbo-3.1.
|
152
|
-
huaweicloudsdksfsturbo-3.1.
|
153
|
-
huaweicloudsdksfsturbo-3.1.
|
154
|
-
huaweicloudsdksfsturbo-3.1.
|
155
|
-
huaweicloudsdksfsturbo-3.1.
|
154
|
+
huaweicloudsdksfsturbo-3.1.126.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
155
|
+
huaweicloudsdksfsturbo-3.1.126.dist-info/METADATA,sha256=dYmKud-2w_v7Su3giVGAbS5kSAUeTX08Lq69lSWkp1M,1150
|
156
|
+
huaweicloudsdksfsturbo-3.1.126.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
|
157
|
+
huaweicloudsdksfsturbo-3.1.126.dist-info/top_level.txt,sha256=8GAVlCHW8DnAPnVGsU7Q686X2E_ol-IuktY2dbI03gQ,23
|
158
|
+
huaweicloudsdksfsturbo-3.1.126.dist-info/RECORD,,
|
{huaweicloudsdksfsturbo-3.1.124.dist-info → huaweicloudsdksfsturbo-3.1.126.dist-info}/LICENSE
RENAMED
File without changes
|
File without changes
|
{huaweicloudsdksfsturbo-3.1.124.dist-info → huaweicloudsdksfsturbo-3.1.126.dist-info}/top_level.txt
RENAMED
File without changes
|