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
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListSharesByTagResource:
|
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_id': 'str',
|
21
|
+
'resource_name': 'str',
|
22
|
+
'resource_detail': 'str',
|
23
|
+
'tags': 'list[ResourceTag]'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'resource_id': 'resource_id',
|
28
|
+
'resource_name': 'resource_name',
|
29
|
+
'resource_detail': 'resource_detail',
|
30
|
+
'tags': 'tags'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, resource_id=None, resource_name=None, resource_detail=None, tags=None):
|
34
|
+
"""ListSharesByTagResource
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param resource_id: 资源ID
|
39
|
+
:type resource_id: str
|
40
|
+
:param resource_name: 资源名称
|
41
|
+
:type resource_name: str
|
42
|
+
:param resource_detail: 资源详情
|
43
|
+
:type resource_detail: str
|
44
|
+
:param tags: 资源的标签列表
|
45
|
+
:type tags: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._resource_id = None
|
51
|
+
self._resource_name = None
|
52
|
+
self._resource_detail = None
|
53
|
+
self._tags = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if resource_id is not None:
|
57
|
+
self.resource_id = resource_id
|
58
|
+
if resource_name is not None:
|
59
|
+
self.resource_name = resource_name
|
60
|
+
if resource_detail is not None:
|
61
|
+
self.resource_detail = resource_detail
|
62
|
+
if tags is not None:
|
63
|
+
self.tags = tags
|
64
|
+
|
65
|
+
@property
|
66
|
+
def resource_id(self):
|
67
|
+
"""Gets the resource_id of this ListSharesByTagResource.
|
68
|
+
|
69
|
+
资源ID
|
70
|
+
|
71
|
+
:return: The resource_id of this ListSharesByTagResource.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._resource_id
|
75
|
+
|
76
|
+
@resource_id.setter
|
77
|
+
def resource_id(self, resource_id):
|
78
|
+
"""Sets the resource_id of this ListSharesByTagResource.
|
79
|
+
|
80
|
+
资源ID
|
81
|
+
|
82
|
+
:param resource_id: The resource_id of this ListSharesByTagResource.
|
83
|
+
:type resource_id: str
|
84
|
+
"""
|
85
|
+
self._resource_id = resource_id
|
86
|
+
|
87
|
+
@property
|
88
|
+
def resource_name(self):
|
89
|
+
"""Gets the resource_name of this ListSharesByTagResource.
|
90
|
+
|
91
|
+
资源名称
|
92
|
+
|
93
|
+
:return: The resource_name of this ListSharesByTagResource.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._resource_name
|
97
|
+
|
98
|
+
@resource_name.setter
|
99
|
+
def resource_name(self, resource_name):
|
100
|
+
"""Sets the resource_name of this ListSharesByTagResource.
|
101
|
+
|
102
|
+
资源名称
|
103
|
+
|
104
|
+
:param resource_name: The resource_name of this ListSharesByTagResource.
|
105
|
+
:type resource_name: str
|
106
|
+
"""
|
107
|
+
self._resource_name = resource_name
|
108
|
+
|
109
|
+
@property
|
110
|
+
def resource_detail(self):
|
111
|
+
"""Gets the resource_detail of this ListSharesByTagResource.
|
112
|
+
|
113
|
+
资源详情
|
114
|
+
|
115
|
+
:return: The resource_detail of this ListSharesByTagResource.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._resource_detail
|
119
|
+
|
120
|
+
@resource_detail.setter
|
121
|
+
def resource_detail(self, resource_detail):
|
122
|
+
"""Sets the resource_detail of this ListSharesByTagResource.
|
123
|
+
|
124
|
+
资源详情
|
125
|
+
|
126
|
+
:param resource_detail: The resource_detail of this ListSharesByTagResource.
|
127
|
+
:type resource_detail: str
|
128
|
+
"""
|
129
|
+
self._resource_detail = resource_detail
|
130
|
+
|
131
|
+
@property
|
132
|
+
def tags(self):
|
133
|
+
"""Gets the tags of this ListSharesByTagResource.
|
134
|
+
|
135
|
+
资源的标签列表
|
136
|
+
|
137
|
+
:return: The tags of this ListSharesByTagResource.
|
138
|
+
:rtype: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
|
139
|
+
"""
|
140
|
+
return self._tags
|
141
|
+
|
142
|
+
@tags.setter
|
143
|
+
def tags(self, tags):
|
144
|
+
"""Sets the tags of this ListSharesByTagResource.
|
145
|
+
|
146
|
+
资源的标签列表
|
147
|
+
|
148
|
+
:param tags: The tags of this ListSharesByTagResource.
|
149
|
+
:type tags: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
|
150
|
+
"""
|
151
|
+
self._tags = tags
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, ListSharesByTagResource):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|
@@ -0,0 +1,170 @@
|
|
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
|
+
'resources': 'list[ListSharesByTagResource]',
|
22
|
+
'total_count': 'int',
|
23
|
+
'x_request_id': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'resources': 'resources',
|
28
|
+
'total_count': 'total_count',
|
29
|
+
'x_request_id': 'X-request-id'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, resources=None, total_count=None, x_request_id=None):
|
33
|
+
"""ListSharesByTagResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param resources: 通过标签查询文件系统的资源列表
|
38
|
+
:type resources: list[:class:`huaweicloudsdksfsturbo.v1.ListSharesByTagResource`]
|
39
|
+
:param total_count: 设置返回的文件系统的偏移量
|
40
|
+
:type total_count: int
|
41
|
+
:param x_request_id:
|
42
|
+
:type x_request_id: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(ListSharesByTagResponse, self).__init__()
|
46
|
+
|
47
|
+
self._resources = None
|
48
|
+
self._total_count = None
|
49
|
+
self._x_request_id = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if resources is not None:
|
53
|
+
self.resources = resources
|
54
|
+
if total_count is not None:
|
55
|
+
self.total_count = total_count
|
56
|
+
if x_request_id is not None:
|
57
|
+
self.x_request_id = x_request_id
|
58
|
+
|
59
|
+
@property
|
60
|
+
def resources(self):
|
61
|
+
"""Gets the resources of this ListSharesByTagResponse.
|
62
|
+
|
63
|
+
通过标签查询文件系统的资源列表
|
64
|
+
|
65
|
+
:return: The resources of this ListSharesByTagResponse.
|
66
|
+
:rtype: list[:class:`huaweicloudsdksfsturbo.v1.ListSharesByTagResource`]
|
67
|
+
"""
|
68
|
+
return self._resources
|
69
|
+
|
70
|
+
@resources.setter
|
71
|
+
def resources(self, resources):
|
72
|
+
"""Sets the resources of this ListSharesByTagResponse.
|
73
|
+
|
74
|
+
通过标签查询文件系统的资源列表
|
75
|
+
|
76
|
+
:param resources: The resources of this ListSharesByTagResponse.
|
77
|
+
:type resources: list[:class:`huaweicloudsdksfsturbo.v1.ListSharesByTagResource`]
|
78
|
+
"""
|
79
|
+
self._resources = resources
|
80
|
+
|
81
|
+
@property
|
82
|
+
def total_count(self):
|
83
|
+
"""Gets the total_count of this ListSharesByTagResponse.
|
84
|
+
|
85
|
+
设置返回的文件系统的偏移量
|
86
|
+
|
87
|
+
:return: The total_count of this ListSharesByTagResponse.
|
88
|
+
:rtype: int
|
89
|
+
"""
|
90
|
+
return self._total_count
|
91
|
+
|
92
|
+
@total_count.setter
|
93
|
+
def total_count(self, total_count):
|
94
|
+
"""Sets the total_count of this ListSharesByTagResponse.
|
95
|
+
|
96
|
+
设置返回的文件系统的偏移量
|
97
|
+
|
98
|
+
:param total_count: The total_count of this ListSharesByTagResponse.
|
99
|
+
:type total_count: int
|
100
|
+
"""
|
101
|
+
self._total_count = total_count
|
102
|
+
|
103
|
+
@property
|
104
|
+
def x_request_id(self):
|
105
|
+
"""Gets the x_request_id of this ListSharesByTagResponse.
|
106
|
+
|
107
|
+
:return: The x_request_id of this ListSharesByTagResponse.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._x_request_id
|
111
|
+
|
112
|
+
@x_request_id.setter
|
113
|
+
def x_request_id(self, x_request_id):
|
114
|
+
"""Sets the x_request_id of this ListSharesByTagResponse.
|
115
|
+
|
116
|
+
:param x_request_id: The x_request_id of this ListSharesByTagResponse.
|
117
|
+
:type x_request_id: str
|
118
|
+
"""
|
119
|
+
self._x_request_id = x_request_id
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, ListSharesByTagResponse):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
return not self == other
|
@@ -31,9 +31,9 @@ class ListSharesRequest:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param limit:
|
34
|
+
:param limit: 设置返回的文件系统个数的最大值,不填默认为1000个
|
35
35
|
:type limit: int
|
36
|
-
:param offset:
|
36
|
+
:param offset: 设置返回的文件系统的偏移量。
|
37
37
|
:type offset: int
|
38
38
|
"""
|
39
39
|
|
@@ -52,7 +52,7 @@ class ListSharesRequest:
|
|
52
52
|
def limit(self):
|
53
53
|
"""Gets the limit of this ListSharesRequest.
|
54
54
|
|
55
|
-
|
55
|
+
设置返回的文件系统个数的最大值,不填默认为1000个
|
56
56
|
|
57
57
|
:return: The limit of this ListSharesRequest.
|
58
58
|
:rtype: int
|
@@ -63,7 +63,7 @@ class ListSharesRequest:
|
|
63
63
|
def limit(self, limit):
|
64
64
|
"""Sets the limit of this ListSharesRequest.
|
65
65
|
|
66
|
-
|
66
|
+
设置返回的文件系统个数的最大值,不填默认为1000个
|
67
67
|
|
68
68
|
:param limit: The limit of this ListSharesRequest.
|
69
69
|
:type limit: int
|
@@ -74,7 +74,7 @@ class ListSharesRequest:
|
|
74
74
|
def offset(self):
|
75
75
|
"""Gets the offset of this ListSharesRequest.
|
76
76
|
|
77
|
-
|
77
|
+
设置返回的文件系统的偏移量。
|
78
78
|
|
79
79
|
:return: The offset of this ListSharesRequest.
|
80
80
|
:rtype: int
|
@@ -85,7 +85,7 @@ class ListSharesRequest:
|
|
85
85
|
def offset(self, offset):
|
86
86
|
"""Sets the offset of this ListSharesRequest.
|
87
87
|
|
88
|
-
|
88
|
+
设置返回的文件系统的偏移量。
|
89
89
|
|
90
90
|
:param offset: The offset of this ListSharesRequest.
|
91
91
|
:type offset: int
|
@@ -43,9 +43,9 @@ class Metadata:
|
|
43
43
|
:type dedicated_flavor: str
|
44
44
|
:param dedicated_storage_id: 创专属文件系统,要指定一个专属分布式存储的ID。
|
45
45
|
:type dedicated_storage_id: str
|
46
|
-
:param expand_type:
|
46
|
+
:param expand_type: 扩展类型;当文件系统正在创建时,该字段不返回。 - 创建增强型、20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 - 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 - 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB文件系统,需要填写\"hpc\"。 - 创建HPC缓存型,需要填写\"hpc_cache\"。
|
47
47
|
:type expand_type: str
|
48
|
-
:param hpc_bw:
|
48
|
+
:param hpc_bw: 文件系统的带宽规格。 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 20MB/s/TiB,填写\"20M\"。 40MB/s/TiB,填写\"40M\"。 125MB/s/TiB,填写\"125M\"。 250MB/s/TiB,填写\"250M\"。 500MB/s/TiB,填写\"500M\"。 1000MB/s/TiB,填写\"1000M\"。 HPC缓存型,填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"。
|
49
49
|
:type hpc_bw: str
|
50
50
|
"""
|
51
51
|
|
@@ -139,7 +139,7 @@ class Metadata:
|
|
139
139
|
def expand_type(self):
|
140
140
|
"""Gets the expand_type of this Metadata.
|
141
141
|
|
142
|
-
|
142
|
+
扩展类型;当文件系统正在创建时,该字段不返回。 - 创建增强型、20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 - 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 - 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB文件系统,需要填写\"hpc\"。 - 创建HPC缓存型,需要填写\"hpc_cache\"。
|
143
143
|
|
144
144
|
:return: The expand_type of this Metadata.
|
145
145
|
:rtype: str
|
@@ -150,7 +150,7 @@ class Metadata:
|
|
150
150
|
def expand_type(self, expand_type):
|
151
151
|
"""Sets the expand_type of this Metadata.
|
152
152
|
|
153
|
-
|
153
|
+
扩展类型;当文件系统正在创建时,该字段不返回。 - 创建增强型、20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 - 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 - 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB文件系统,需要填写\"hpc\"。 - 创建HPC缓存型,需要填写\"hpc_cache\"。
|
154
154
|
|
155
155
|
:param expand_type: The expand_type of this Metadata.
|
156
156
|
:type expand_type: str
|
@@ -161,7 +161,7 @@ class Metadata:
|
|
161
161
|
def hpc_bw(self):
|
162
162
|
"""Gets the hpc_bw of this Metadata.
|
163
163
|
|
164
|
-
|
164
|
+
文件系统的带宽规格。 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 20MB/s/TiB,填写\"20M\"。 40MB/s/TiB,填写\"40M\"。 125MB/s/TiB,填写\"125M\"。 250MB/s/TiB,填写\"250M\"。 500MB/s/TiB,填写\"500M\"。 1000MB/s/TiB,填写\"1000M\"。 HPC缓存型,填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"。
|
165
165
|
|
166
166
|
:return: The hpc_bw of this Metadata.
|
167
167
|
:rtype: str
|
@@ -172,7 +172,7 @@ class Metadata:
|
|
172
172
|
def hpc_bw(self, hpc_bw):
|
173
173
|
"""Sets the hpc_bw of this Metadata.
|
174
174
|
|
175
|
-
|
175
|
+
文件系统的带宽规格。 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 20MB/s/TiB,填写\"20M\"。 40MB/s/TiB,填写\"40M\"。 125MB/s/TiB,填写\"125M\"。 250MB/s/TiB,填写\"250M\"。 500MB/s/TiB,填写\"500M\"。 1000MB/s/TiB,填写\"1000M\"。 HPC缓存型,填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"。
|
176
176
|
|
177
177
|
:param hpc_bw: The hpc_bw of this Metadata.
|
178
178
|
:type hpc_bw: str
|
@@ -18,15 +18,19 @@ class ObsDataRepository:
|
|
18
18
|
|
19
19
|
openapi_types = {
|
20
20
|
'bucket': 'str',
|
21
|
-
'endpoint': 'str'
|
21
|
+
'endpoint': 'str',
|
22
|
+
'policy': 'ObsDataRepositoryPolicy',
|
23
|
+
'attributes': 'ObsTargetAttributes'
|
22
24
|
}
|
23
25
|
|
24
26
|
attribute_map = {
|
25
27
|
'bucket': 'bucket',
|
26
|
-
'endpoint': 'endpoint'
|
28
|
+
'endpoint': 'endpoint',
|
29
|
+
'policy': 'policy',
|
30
|
+
'attributes': 'attributes'
|
27
31
|
}
|
28
32
|
|
29
|
-
def __init__(self, bucket=None, endpoint=None):
|
33
|
+
def __init__(self, bucket=None, endpoint=None, policy=None, attributes=None):
|
30
34
|
"""ObsDataRepository
|
31
35
|
|
32
36
|
The model defined in huaweicloud sdk
|
@@ -35,16 +39,26 @@ class ObsDataRepository:
|
|
35
39
|
:type bucket: str
|
36
40
|
:param endpoint: OBS桶所在的区域域名
|
37
41
|
:type endpoint: str
|
42
|
+
:param policy:
|
43
|
+
:type policy: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy`
|
44
|
+
:param attributes:
|
45
|
+
:type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes`
|
38
46
|
"""
|
39
47
|
|
40
48
|
|
41
49
|
|
42
50
|
self._bucket = None
|
43
51
|
self._endpoint = None
|
52
|
+
self._policy = None
|
53
|
+
self._attributes = None
|
44
54
|
self.discriminator = None
|
45
55
|
|
46
56
|
self.bucket = bucket
|
47
57
|
self.endpoint = endpoint
|
58
|
+
if policy is not None:
|
59
|
+
self.policy = policy
|
60
|
+
if attributes is not None:
|
61
|
+
self.attributes = attributes
|
48
62
|
|
49
63
|
@property
|
50
64
|
def bucket(self):
|
@@ -90,6 +104,42 @@ class ObsDataRepository:
|
|
90
104
|
"""
|
91
105
|
self._endpoint = endpoint
|
92
106
|
|
107
|
+
@property
|
108
|
+
def policy(self):
|
109
|
+
"""Gets the policy of this ObsDataRepository.
|
110
|
+
|
111
|
+
:return: The policy of this ObsDataRepository.
|
112
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy`
|
113
|
+
"""
|
114
|
+
return self._policy
|
115
|
+
|
116
|
+
@policy.setter
|
117
|
+
def policy(self, policy):
|
118
|
+
"""Sets the policy of this ObsDataRepository.
|
119
|
+
|
120
|
+
:param policy: The policy of this ObsDataRepository.
|
121
|
+
:type policy: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy`
|
122
|
+
"""
|
123
|
+
self._policy = policy
|
124
|
+
|
125
|
+
@property
|
126
|
+
def attributes(self):
|
127
|
+
"""Gets the attributes of this ObsDataRepository.
|
128
|
+
|
129
|
+
:return: The attributes of this ObsDataRepository.
|
130
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes`
|
131
|
+
"""
|
132
|
+
return self._attributes
|
133
|
+
|
134
|
+
@attributes.setter
|
135
|
+
def attributes(self, attributes):
|
136
|
+
"""Sets the attributes of this ObsDataRepository.
|
137
|
+
|
138
|
+
:param attributes: The attributes of this ObsDataRepository.
|
139
|
+
:type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes`
|
140
|
+
"""
|
141
|
+
self._attributes = attributes
|
142
|
+
|
93
143
|
def to_dict(self):
|
94
144
|
"""Returns the model properties as a dict"""
|
95
145
|
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 ObsDataRepositoryPolicy:
|
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
|
+
'auto_export_policy': 'AutoExportPolicy'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'auto_export_policy': 'auto_export_policy'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, auto_export_policy=None):
|
28
|
+
"""ObsDataRepositoryPolicy
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param auto_export_policy:
|
33
|
+
:type auto_export_policy: :class:`huaweicloudsdksfsturbo.v1.AutoExportPolicy`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._auto_export_policy = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if auto_export_policy is not None:
|
42
|
+
self.auto_export_policy = auto_export_policy
|
43
|
+
|
44
|
+
@property
|
45
|
+
def auto_export_policy(self):
|
46
|
+
"""Gets the auto_export_policy of this ObsDataRepositoryPolicy.
|
47
|
+
|
48
|
+
:return: The auto_export_policy of this ObsDataRepositoryPolicy.
|
49
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.AutoExportPolicy`
|
50
|
+
"""
|
51
|
+
return self._auto_export_policy
|
52
|
+
|
53
|
+
@auto_export_policy.setter
|
54
|
+
def auto_export_policy(self, auto_export_policy):
|
55
|
+
"""Sets the auto_export_policy of this ObsDataRepositoryPolicy.
|
56
|
+
|
57
|
+
:param auto_export_policy: The auto_export_policy of this ObsDataRepositoryPolicy.
|
58
|
+
:type auto_export_policy: :class:`huaweicloudsdksfsturbo.v1.AutoExportPolicy`
|
59
|
+
"""
|
60
|
+
self._auto_export_policy = auto_export_policy
|
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, ObsDataRepositoryPolicy):
|
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
|