huaweicloudsdksfsturbo 3.1.86__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- huaweicloudsdksfsturbo/v1/__init__.py +17 -1
- huaweicloudsdksfsturbo/v1/model/__init__.py +17 -1
- huaweicloudsdksfsturbo/v1/model/auto_export_policy.py +115 -0
- huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py +6 -6
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_response.py +6 -6
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_request_body.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_fs_task_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py +34 -9
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py +122 -6
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_response.py +112 -0
- huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/extend.py +3 -3
- huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py +61 -3
- huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py +61 -3
- huaweicloudsdksfsturbo/v1/model/list_shared_tags_request.py +61 -1
- 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_resource.py +202 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_response.py +170 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_request.py +6 -6
- huaweicloudsdksfsturbo/v1/model/metadata.py +6 -6
- huaweicloudsdksfsturbo/v1/model/obs_data_repository.py +53 -3
- huaweicloudsdksfsturbo/v1/model/obs_data_repository_policy.py +111 -0
- huaweicloudsdksfsturbo/v1/model/obs_target_attributes.py +202 -0
- huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py +6 -6
- huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py +6 -6
- huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_data.py +6 -35
- huaweicloudsdksfsturbo/v1/model/resource_tag.py +6 -6
- huaweicloudsdksfsturbo/v1/model/share.py +18 -18
- huaweicloudsdksfsturbo/v1/model/share_info.py +185 -15
- huaweicloudsdksfsturbo/v1/model/share_info_feature.py +173 -0
- huaweicloudsdksfsturbo/v1/model/share_info_features.py +111 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_response.py +6 -6
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_response.py +9 -9
- huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py +119 -3
- huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py +6 -6
- huaweicloudsdksfsturbo/v1/model/show_share_response.py +185 -15
- huaweicloudsdksfsturbo/v1/model/tag.py +3 -3
- huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py +6 -6
- huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_response.py +6 -6
- huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py +3 -3
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py +122 -6
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py +167 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_response.py +166 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py +167 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py +166 -0
- huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py +6 -6
- huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +21 -0
- huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +311 -13
- huaweicloudsdksfsturbo/v1/sfsturbo_client.py +311 -13
- {huaweicloudsdksfsturbo-3.1.86.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdksfsturbo-3.1.86.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/RECORD +63 -47
- {huaweicloudsdksfsturbo-3.1.86.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/WHEEL +1 -1
- huaweicloudsdksfsturbo/v1/model/config_obs_target.py +0 -198
- {huaweicloudsdksfsturbo-3.1.86.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdksfsturbo-3.1.86.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/top_level.txt +0 -0
@@ -17,28 +17,42 @@ class ListPermRulesRequest:
|
|
17
17
|
sensitive_list = []
|
18
18
|
|
19
19
|
openapi_types = {
|
20
|
-
'share_id': 'str'
|
20
|
+
'share_id': 'str',
|
21
|
+
'limit': 'int',
|
22
|
+
'offset': 'int'
|
21
23
|
}
|
22
24
|
|
23
25
|
attribute_map = {
|
24
|
-
'share_id': 'share_id'
|
26
|
+
'share_id': 'share_id',
|
27
|
+
'limit': 'limit',
|
28
|
+
'offset': 'offset'
|
25
29
|
}
|
26
30
|
|
27
|
-
def __init__(self, share_id=None):
|
31
|
+
def __init__(self, share_id=None, limit=None, offset=None):
|
28
32
|
"""ListPermRulesRequest
|
29
33
|
|
30
34
|
The model defined in huaweicloud sdk
|
31
35
|
|
32
36
|
:param share_id: 文件系统id
|
33
37
|
:type share_id: str
|
38
|
+
:param limit: 返回的权限规则个数
|
39
|
+
:type limit: int
|
40
|
+
:param offset: 返回的权限规则的偏移量
|
41
|
+
:type offset: int
|
34
42
|
"""
|
35
43
|
|
36
44
|
|
37
45
|
|
38
46
|
self._share_id = None
|
47
|
+
self._limit = None
|
48
|
+
self._offset = None
|
39
49
|
self.discriminator = None
|
40
50
|
|
41
51
|
self.share_id = share_id
|
52
|
+
if limit is not None:
|
53
|
+
self.limit = limit
|
54
|
+
if offset is not None:
|
55
|
+
self.offset = offset
|
42
56
|
|
43
57
|
@property
|
44
58
|
def share_id(self):
|
@@ -62,6 +76,50 @@ class ListPermRulesRequest:
|
|
62
76
|
"""
|
63
77
|
self._share_id = share_id
|
64
78
|
|
79
|
+
@property
|
80
|
+
def limit(self):
|
81
|
+
"""Gets the limit of this ListPermRulesRequest.
|
82
|
+
|
83
|
+
返回的权限规则个数
|
84
|
+
|
85
|
+
:return: The limit of this ListPermRulesRequest.
|
86
|
+
:rtype: int
|
87
|
+
"""
|
88
|
+
return self._limit
|
89
|
+
|
90
|
+
@limit.setter
|
91
|
+
def limit(self, limit):
|
92
|
+
"""Sets the limit of this ListPermRulesRequest.
|
93
|
+
|
94
|
+
返回的权限规则个数
|
95
|
+
|
96
|
+
:param limit: The limit of this ListPermRulesRequest.
|
97
|
+
:type limit: int
|
98
|
+
"""
|
99
|
+
self._limit = limit
|
100
|
+
|
101
|
+
@property
|
102
|
+
def offset(self):
|
103
|
+
"""Gets the offset of this ListPermRulesRequest.
|
104
|
+
|
105
|
+
返回的权限规则的偏移量
|
106
|
+
|
107
|
+
:return: The offset of this ListPermRulesRequest.
|
108
|
+
:rtype: int
|
109
|
+
"""
|
110
|
+
return self._offset
|
111
|
+
|
112
|
+
@offset.setter
|
113
|
+
def offset(self, offset):
|
114
|
+
"""Sets the offset of this ListPermRulesRequest.
|
115
|
+
|
116
|
+
返回的权限规则的偏移量
|
117
|
+
|
118
|
+
:param offset: The offset of this ListPermRulesRequest.
|
119
|
+
:type offset: int
|
120
|
+
"""
|
121
|
+
self._offset = offset
|
122
|
+
|
65
123
|
def to_dict(self):
|
66
124
|
"""Returns the model properties as a dict"""
|
67
125
|
result = {}
|
@@ -17,21 +17,81 @@ class ListSharedTagsRequest:
|
|
17
17
|
sensitive_list = []
|
18
18
|
|
19
19
|
openapi_types = {
|
20
|
+
'limit': 'int',
|
21
|
+
'offset': 'int'
|
20
22
|
}
|
21
23
|
|
22
24
|
attribute_map = {
|
25
|
+
'limit': 'limit',
|
26
|
+
'offset': 'offset'
|
23
27
|
}
|
24
28
|
|
25
|
-
def __init__(self):
|
29
|
+
def __init__(self, limit=None, offset=None):
|
26
30
|
"""ListSharedTagsRequest
|
27
31
|
|
28
32
|
The model defined in huaweicloud sdk
|
29
33
|
|
34
|
+
:param limit: 返回的标签个数
|
35
|
+
:type limit: int
|
36
|
+
:param offset: 标签查询个数的偏移量
|
37
|
+
:type offset: int
|
30
38
|
"""
|
31
39
|
|
32
40
|
|
41
|
+
|
42
|
+
self._limit = None
|
43
|
+
self._offset = None
|
33
44
|
self.discriminator = None
|
34
45
|
|
46
|
+
if limit is not None:
|
47
|
+
self.limit = limit
|
48
|
+
if offset is not None:
|
49
|
+
self.offset = offset
|
50
|
+
|
51
|
+
@property
|
52
|
+
def limit(self):
|
53
|
+
"""Gets the limit of this ListSharedTagsRequest.
|
54
|
+
|
55
|
+
返回的标签个数
|
56
|
+
|
57
|
+
:return: The limit of this ListSharedTagsRequest.
|
58
|
+
:rtype: int
|
59
|
+
"""
|
60
|
+
return self._limit
|
61
|
+
|
62
|
+
@limit.setter
|
63
|
+
def limit(self, limit):
|
64
|
+
"""Sets the limit of this ListSharedTagsRequest.
|
65
|
+
|
66
|
+
返回的标签个数
|
67
|
+
|
68
|
+
:param limit: The limit of this ListSharedTagsRequest.
|
69
|
+
:type limit: int
|
70
|
+
"""
|
71
|
+
self._limit = limit
|
72
|
+
|
73
|
+
@property
|
74
|
+
def offset(self):
|
75
|
+
"""Gets the offset of this ListSharedTagsRequest.
|
76
|
+
|
77
|
+
标签查询个数的偏移量
|
78
|
+
|
79
|
+
:return: The offset of this ListSharedTagsRequest.
|
80
|
+
:rtype: int
|
81
|
+
"""
|
82
|
+
return self._offset
|
83
|
+
|
84
|
+
@offset.setter
|
85
|
+
def offset(self, offset):
|
86
|
+
"""Sets the offset of this ListSharedTagsRequest.
|
87
|
+
|
88
|
+
标签查询个数的偏移量
|
89
|
+
|
90
|
+
:param offset: The offset of this ListSharedTagsRequest.
|
91
|
+
:type offset: int
|
92
|
+
"""
|
93
|
+
self._offset = offset
|
94
|
+
|
35
95
|
def to_dict(self):
|
36
96
|
"""Returns the model properties as a dict"""
|
37
97
|
result = {}
|
@@ -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
|