huaweicloudsdksfsturbo 3.1.85__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.85.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdksfsturbo-3.1.85.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/RECORD +63 -47
- {huaweicloudsdksfsturbo-3.1.85.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/WHEEL +1 -1
- huaweicloudsdksfsturbo/v1/model/config_obs_target.py +0 -198
- {huaweicloudsdksfsturbo-3.1.85.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdksfsturbo-3.1.85.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,166 @@
|
|
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 UpdateObsTargetAttributesResponse(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
|
+
'target_id': 'str',
|
22
|
+
'attributes': 'ObsTargetAttributes',
|
23
|
+
'x_request_id': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'target_id': 'target_id',
|
28
|
+
'attributes': 'attributes',
|
29
|
+
'x_request_id': 'X-request-id'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, target_id=None, attributes=None, x_request_id=None):
|
33
|
+
"""UpdateObsTargetAttributesResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param target_id: 绑定关系Id
|
38
|
+
:type target_id: str
|
39
|
+
:param attributes:
|
40
|
+
:type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes`
|
41
|
+
:param x_request_id:
|
42
|
+
:type x_request_id: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(UpdateObsTargetAttributesResponse, self).__init__()
|
46
|
+
|
47
|
+
self._target_id = None
|
48
|
+
self._attributes = None
|
49
|
+
self._x_request_id = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if target_id is not None:
|
53
|
+
self.target_id = target_id
|
54
|
+
if attributes is not None:
|
55
|
+
self.attributes = attributes
|
56
|
+
if x_request_id is not None:
|
57
|
+
self.x_request_id = x_request_id
|
58
|
+
|
59
|
+
@property
|
60
|
+
def target_id(self):
|
61
|
+
"""Gets the target_id of this UpdateObsTargetAttributesResponse.
|
62
|
+
|
63
|
+
绑定关系Id
|
64
|
+
|
65
|
+
:return: The target_id of this UpdateObsTargetAttributesResponse.
|
66
|
+
:rtype: str
|
67
|
+
"""
|
68
|
+
return self._target_id
|
69
|
+
|
70
|
+
@target_id.setter
|
71
|
+
def target_id(self, target_id):
|
72
|
+
"""Sets the target_id of this UpdateObsTargetAttributesResponse.
|
73
|
+
|
74
|
+
绑定关系Id
|
75
|
+
|
76
|
+
:param target_id: The target_id of this UpdateObsTargetAttributesResponse.
|
77
|
+
:type target_id: str
|
78
|
+
"""
|
79
|
+
self._target_id = target_id
|
80
|
+
|
81
|
+
@property
|
82
|
+
def attributes(self):
|
83
|
+
"""Gets the attributes of this UpdateObsTargetAttributesResponse.
|
84
|
+
|
85
|
+
:return: The attributes of this UpdateObsTargetAttributesResponse.
|
86
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes`
|
87
|
+
"""
|
88
|
+
return self._attributes
|
89
|
+
|
90
|
+
@attributes.setter
|
91
|
+
def attributes(self, attributes):
|
92
|
+
"""Sets the attributes of this UpdateObsTargetAttributesResponse.
|
93
|
+
|
94
|
+
:param attributes: The attributes of this UpdateObsTargetAttributesResponse.
|
95
|
+
:type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes`
|
96
|
+
"""
|
97
|
+
self._attributes = attributes
|
98
|
+
|
99
|
+
@property
|
100
|
+
def x_request_id(self):
|
101
|
+
"""Gets the x_request_id of this UpdateObsTargetAttributesResponse.
|
102
|
+
|
103
|
+
:return: The x_request_id of this UpdateObsTargetAttributesResponse.
|
104
|
+
:rtype: str
|
105
|
+
"""
|
106
|
+
return self._x_request_id
|
107
|
+
|
108
|
+
@x_request_id.setter
|
109
|
+
def x_request_id(self, x_request_id):
|
110
|
+
"""Sets the x_request_id of this UpdateObsTargetAttributesResponse.
|
111
|
+
|
112
|
+
:param x_request_id: The x_request_id of this UpdateObsTargetAttributesResponse.
|
113
|
+
:type x_request_id: str
|
114
|
+
"""
|
115
|
+
self._x_request_id = x_request_id
|
116
|
+
|
117
|
+
def to_dict(self):
|
118
|
+
"""Returns the model properties as a dict"""
|
119
|
+
result = {}
|
120
|
+
|
121
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
122
|
+
value = getattr(self, attr)
|
123
|
+
if isinstance(value, list):
|
124
|
+
result[attr] = list(map(
|
125
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
126
|
+
value
|
127
|
+
))
|
128
|
+
elif hasattr(value, "to_dict"):
|
129
|
+
result[attr] = value.to_dict()
|
130
|
+
elif isinstance(value, dict):
|
131
|
+
result[attr] = dict(map(
|
132
|
+
lambda item: (item[0], item[1].to_dict())
|
133
|
+
if hasattr(item[1], "to_dict") else item,
|
134
|
+
value.items()
|
135
|
+
))
|
136
|
+
else:
|
137
|
+
if attr in self.sensitive_list:
|
138
|
+
result[attr] = "****"
|
139
|
+
else:
|
140
|
+
result[attr] = value
|
141
|
+
|
142
|
+
return result
|
143
|
+
|
144
|
+
def to_str(self):
|
145
|
+
"""Returns the string representation of the model"""
|
146
|
+
import simplejson as json
|
147
|
+
if six.PY2:
|
148
|
+
import sys
|
149
|
+
reload(sys)
|
150
|
+
sys.setdefaultencoding("utf-8")
|
151
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
152
|
+
|
153
|
+
def __repr__(self):
|
154
|
+
"""For `print`"""
|
155
|
+
return self.to_str()
|
156
|
+
|
157
|
+
def __eq__(self, other):
|
158
|
+
"""Returns true if both objects are equal"""
|
159
|
+
if not isinstance(other, UpdateObsTargetAttributesResponse):
|
160
|
+
return False
|
161
|
+
|
162
|
+
return self.__dict__ == other.__dict__
|
163
|
+
|
164
|
+
def __ne__(self, other):
|
165
|
+
"""Returns true if both objects are not equal"""
|
166
|
+
return not self == other
|
@@ -0,0 +1,167 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateObsTargetPolicyRequest:
|
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
|
+
'share_id': 'str',
|
21
|
+
'target_id': 'str',
|
22
|
+
'body': 'UpdateObsTargetPolicyRequestBody'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'share_id': 'share_id',
|
27
|
+
'target_id': 'target_id',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, share_id=None, target_id=None, body=None):
|
32
|
+
"""UpdateObsTargetPolicyRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param share_id: 文件系统id
|
37
|
+
:type share_id: str
|
38
|
+
:param target_id: 绑定关系id
|
39
|
+
:type target_id: str
|
40
|
+
:param body: Body of the UpdateObsTargetPolicyRequest
|
41
|
+
:type body: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyRequestBody`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._share_id = None
|
47
|
+
self._target_id = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.share_id = share_id
|
52
|
+
self.target_id = target_id
|
53
|
+
if body is not None:
|
54
|
+
self.body = body
|
55
|
+
|
56
|
+
@property
|
57
|
+
def share_id(self):
|
58
|
+
"""Gets the share_id of this UpdateObsTargetPolicyRequest.
|
59
|
+
|
60
|
+
文件系统id
|
61
|
+
|
62
|
+
:return: The share_id of this UpdateObsTargetPolicyRequest.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._share_id
|
66
|
+
|
67
|
+
@share_id.setter
|
68
|
+
def share_id(self, share_id):
|
69
|
+
"""Sets the share_id of this UpdateObsTargetPolicyRequest.
|
70
|
+
|
71
|
+
文件系统id
|
72
|
+
|
73
|
+
:param share_id: The share_id of this UpdateObsTargetPolicyRequest.
|
74
|
+
:type share_id: str
|
75
|
+
"""
|
76
|
+
self._share_id = share_id
|
77
|
+
|
78
|
+
@property
|
79
|
+
def target_id(self):
|
80
|
+
"""Gets the target_id of this UpdateObsTargetPolicyRequest.
|
81
|
+
|
82
|
+
绑定关系id
|
83
|
+
|
84
|
+
:return: The target_id of this UpdateObsTargetPolicyRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._target_id
|
88
|
+
|
89
|
+
@target_id.setter
|
90
|
+
def target_id(self, target_id):
|
91
|
+
"""Sets the target_id of this UpdateObsTargetPolicyRequest.
|
92
|
+
|
93
|
+
绑定关系id
|
94
|
+
|
95
|
+
:param target_id: The target_id of this UpdateObsTargetPolicyRequest.
|
96
|
+
:type target_id: str
|
97
|
+
"""
|
98
|
+
self._target_id = target_id
|
99
|
+
|
100
|
+
@property
|
101
|
+
def body(self):
|
102
|
+
"""Gets the body of this UpdateObsTargetPolicyRequest.
|
103
|
+
|
104
|
+
:return: The body of this UpdateObsTargetPolicyRequest.
|
105
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyRequestBody`
|
106
|
+
"""
|
107
|
+
return self._body
|
108
|
+
|
109
|
+
@body.setter
|
110
|
+
def body(self, body):
|
111
|
+
"""Sets the body of this UpdateObsTargetPolicyRequest.
|
112
|
+
|
113
|
+
:param body: The body of this UpdateObsTargetPolicyRequest.
|
114
|
+
:type body: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyRequestBody`
|
115
|
+
"""
|
116
|
+
self._body = body
|
117
|
+
|
118
|
+
def to_dict(self):
|
119
|
+
"""Returns the model properties as a dict"""
|
120
|
+
result = {}
|
121
|
+
|
122
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
123
|
+
value = getattr(self, attr)
|
124
|
+
if isinstance(value, list):
|
125
|
+
result[attr] = list(map(
|
126
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
127
|
+
value
|
128
|
+
))
|
129
|
+
elif hasattr(value, "to_dict"):
|
130
|
+
result[attr] = value.to_dict()
|
131
|
+
elif isinstance(value, dict):
|
132
|
+
result[attr] = dict(map(
|
133
|
+
lambda item: (item[0], item[1].to_dict())
|
134
|
+
if hasattr(item[1], "to_dict") else item,
|
135
|
+
value.items()
|
136
|
+
))
|
137
|
+
else:
|
138
|
+
if attr in self.sensitive_list:
|
139
|
+
result[attr] = "****"
|
140
|
+
else:
|
141
|
+
result[attr] = value
|
142
|
+
|
143
|
+
return result
|
144
|
+
|
145
|
+
def to_str(self):
|
146
|
+
"""Returns the string representation of the model"""
|
147
|
+
import simplejson as json
|
148
|
+
if six.PY2:
|
149
|
+
import sys
|
150
|
+
reload(sys)
|
151
|
+
sys.setdefaultencoding("utf-8")
|
152
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
153
|
+
|
154
|
+
def __repr__(self):
|
155
|
+
"""For `print`"""
|
156
|
+
return self.to_str()
|
157
|
+
|
158
|
+
def __eq__(self, other):
|
159
|
+
"""Returns true if both objects are equal"""
|
160
|
+
if not isinstance(other, UpdateObsTargetPolicyRequest):
|
161
|
+
return False
|
162
|
+
|
163
|
+
return self.__dict__ == other.__dict__
|
164
|
+
|
165
|
+
def __ne__(self, other):
|
166
|
+
"""Returns true if both objects are not equal"""
|
167
|
+
return not self == other
|
@@ -0,0 +1,110 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateObsTargetPolicyRequestBody:
|
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
|
+
'policy': 'ObsDataRepositoryPolicy'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'policy': 'policy'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, policy=None):
|
28
|
+
"""UpdateObsTargetPolicyRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param policy:
|
33
|
+
:type policy: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._policy = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.policy = policy
|
42
|
+
|
43
|
+
@property
|
44
|
+
def policy(self):
|
45
|
+
"""Gets the policy of this UpdateObsTargetPolicyRequestBody.
|
46
|
+
|
47
|
+
:return: The policy of this UpdateObsTargetPolicyRequestBody.
|
48
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy`
|
49
|
+
"""
|
50
|
+
return self._policy
|
51
|
+
|
52
|
+
@policy.setter
|
53
|
+
def policy(self, policy):
|
54
|
+
"""Sets the policy of this UpdateObsTargetPolicyRequestBody.
|
55
|
+
|
56
|
+
:param policy: The policy of this UpdateObsTargetPolicyRequestBody.
|
57
|
+
:type policy: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy`
|
58
|
+
"""
|
59
|
+
self._policy = policy
|
60
|
+
|
61
|
+
def to_dict(self):
|
62
|
+
"""Returns the model properties as a dict"""
|
63
|
+
result = {}
|
64
|
+
|
65
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
66
|
+
value = getattr(self, attr)
|
67
|
+
if isinstance(value, list):
|
68
|
+
result[attr] = list(map(
|
69
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
70
|
+
value
|
71
|
+
))
|
72
|
+
elif hasattr(value, "to_dict"):
|
73
|
+
result[attr] = value.to_dict()
|
74
|
+
elif isinstance(value, dict):
|
75
|
+
result[attr] = dict(map(
|
76
|
+
lambda item: (item[0], item[1].to_dict())
|
77
|
+
if hasattr(item[1], "to_dict") else item,
|
78
|
+
value.items()
|
79
|
+
))
|
80
|
+
else:
|
81
|
+
if attr in self.sensitive_list:
|
82
|
+
result[attr] = "****"
|
83
|
+
else:
|
84
|
+
result[attr] = value
|
85
|
+
|
86
|
+
return result
|
87
|
+
|
88
|
+
def to_str(self):
|
89
|
+
"""Returns the string representation of the model"""
|
90
|
+
import simplejson as json
|
91
|
+
if six.PY2:
|
92
|
+
import sys
|
93
|
+
reload(sys)
|
94
|
+
sys.setdefaultencoding("utf-8")
|
95
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
96
|
+
|
97
|
+
def __repr__(self):
|
98
|
+
"""For `print`"""
|
99
|
+
return self.to_str()
|
100
|
+
|
101
|
+
def __eq__(self, other):
|
102
|
+
"""Returns true if both objects are equal"""
|
103
|
+
if not isinstance(other, UpdateObsTargetPolicyRequestBody):
|
104
|
+
return False
|
105
|
+
|
106
|
+
return self.__dict__ == other.__dict__
|
107
|
+
|
108
|
+
def __ne__(self, other):
|
109
|
+
"""Returns true if both objects are not equal"""
|
110
|
+
return not self == other
|
@@ -0,0 +1,166 @@
|
|
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 UpdateObsTargetPolicyResponse(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
|
+
'target_id': 'str',
|
22
|
+
'policy': 'ObsDataRepositoryPolicy',
|
23
|
+
'x_request_id': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'target_id': 'target_id',
|
28
|
+
'policy': 'policy',
|
29
|
+
'x_request_id': 'X-request-id'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, target_id=None, policy=None, x_request_id=None):
|
33
|
+
"""UpdateObsTargetPolicyResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param target_id: 绑定关系id
|
38
|
+
:type target_id: str
|
39
|
+
:param policy:
|
40
|
+
:type policy: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy`
|
41
|
+
:param x_request_id:
|
42
|
+
:type x_request_id: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(UpdateObsTargetPolicyResponse, self).__init__()
|
46
|
+
|
47
|
+
self._target_id = None
|
48
|
+
self._policy = None
|
49
|
+
self._x_request_id = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if target_id is not None:
|
53
|
+
self.target_id = target_id
|
54
|
+
if policy is not None:
|
55
|
+
self.policy = policy
|
56
|
+
if x_request_id is not None:
|
57
|
+
self.x_request_id = x_request_id
|
58
|
+
|
59
|
+
@property
|
60
|
+
def target_id(self):
|
61
|
+
"""Gets the target_id of this UpdateObsTargetPolicyResponse.
|
62
|
+
|
63
|
+
绑定关系id
|
64
|
+
|
65
|
+
:return: The target_id of this UpdateObsTargetPolicyResponse.
|
66
|
+
:rtype: str
|
67
|
+
"""
|
68
|
+
return self._target_id
|
69
|
+
|
70
|
+
@target_id.setter
|
71
|
+
def target_id(self, target_id):
|
72
|
+
"""Sets the target_id of this UpdateObsTargetPolicyResponse.
|
73
|
+
|
74
|
+
绑定关系id
|
75
|
+
|
76
|
+
:param target_id: The target_id of this UpdateObsTargetPolicyResponse.
|
77
|
+
:type target_id: str
|
78
|
+
"""
|
79
|
+
self._target_id = target_id
|
80
|
+
|
81
|
+
@property
|
82
|
+
def policy(self):
|
83
|
+
"""Gets the policy of this UpdateObsTargetPolicyResponse.
|
84
|
+
|
85
|
+
:return: The policy of this UpdateObsTargetPolicyResponse.
|
86
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy`
|
87
|
+
"""
|
88
|
+
return self._policy
|
89
|
+
|
90
|
+
@policy.setter
|
91
|
+
def policy(self, policy):
|
92
|
+
"""Sets the policy of this UpdateObsTargetPolicyResponse.
|
93
|
+
|
94
|
+
:param policy: The policy of this UpdateObsTargetPolicyResponse.
|
95
|
+
:type policy: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy`
|
96
|
+
"""
|
97
|
+
self._policy = policy
|
98
|
+
|
99
|
+
@property
|
100
|
+
def x_request_id(self):
|
101
|
+
"""Gets the x_request_id of this UpdateObsTargetPolicyResponse.
|
102
|
+
|
103
|
+
:return: The x_request_id of this UpdateObsTargetPolicyResponse.
|
104
|
+
:rtype: str
|
105
|
+
"""
|
106
|
+
return self._x_request_id
|
107
|
+
|
108
|
+
@x_request_id.setter
|
109
|
+
def x_request_id(self, x_request_id):
|
110
|
+
"""Sets the x_request_id of this UpdateObsTargetPolicyResponse.
|
111
|
+
|
112
|
+
:param x_request_id: The x_request_id of this UpdateObsTargetPolicyResponse.
|
113
|
+
:type x_request_id: str
|
114
|
+
"""
|
115
|
+
self._x_request_id = x_request_id
|
116
|
+
|
117
|
+
def to_dict(self):
|
118
|
+
"""Returns the model properties as a dict"""
|
119
|
+
result = {}
|
120
|
+
|
121
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
122
|
+
value = getattr(self, attr)
|
123
|
+
if isinstance(value, list):
|
124
|
+
result[attr] = list(map(
|
125
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
126
|
+
value
|
127
|
+
))
|
128
|
+
elif hasattr(value, "to_dict"):
|
129
|
+
result[attr] = value.to_dict()
|
130
|
+
elif isinstance(value, dict):
|
131
|
+
result[attr] = dict(map(
|
132
|
+
lambda item: (item[0], item[1].to_dict())
|
133
|
+
if hasattr(item[1], "to_dict") else item,
|
134
|
+
value.items()
|
135
|
+
))
|
136
|
+
else:
|
137
|
+
if attr in self.sensitive_list:
|
138
|
+
result[attr] = "****"
|
139
|
+
else:
|
140
|
+
result[attr] = value
|
141
|
+
|
142
|
+
return result
|
143
|
+
|
144
|
+
def to_str(self):
|
145
|
+
"""Returns the string representation of the model"""
|
146
|
+
import simplejson as json
|
147
|
+
if six.PY2:
|
148
|
+
import sys
|
149
|
+
reload(sys)
|
150
|
+
sys.setdefaultencoding("utf-8")
|
151
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
152
|
+
|
153
|
+
def __repr__(self):
|
154
|
+
"""For `print`"""
|
155
|
+
return self.to_str()
|
156
|
+
|
157
|
+
def __eq__(self, other):
|
158
|
+
"""Returns true if both objects are equal"""
|
159
|
+
if not isinstance(other, UpdateObsTargetPolicyResponse):
|
160
|
+
return False
|
161
|
+
|
162
|
+
return self.__dict__ == other.__dict__
|
163
|
+
|
164
|
+
def __ne__(self, other):
|
165
|
+
"""Returns true if both objects are not equal"""
|
166
|
+
return not self == other
|
@@ -40,9 +40,9 @@ class UpdatePermRuleResponse(SdkResponse):
|
|
40
40
|
:type id: str
|
41
41
|
:param ip_cidr: 授权对象的IP地址或网段
|
42
42
|
:type ip_cidr: str
|
43
|
-
:param rw_type:
|
43
|
+
:param rw_type: 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
|
44
44
|
:type rw_type: str
|
45
|
-
:param user_type:
|
45
|
+
:param user_type: 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
|
46
46
|
:type user_type: str
|
47
47
|
"""
|
48
48
|
|
@@ -111,7 +111,7 @@ class UpdatePermRuleResponse(SdkResponse):
|
|
111
111
|
def rw_type(self):
|
112
112
|
"""Gets the rw_type of this UpdatePermRuleResponse.
|
113
113
|
|
114
|
-
|
114
|
+
授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
|
115
115
|
|
116
116
|
:return: The rw_type of this UpdatePermRuleResponse.
|
117
117
|
:rtype: str
|
@@ -122,7 +122,7 @@ class UpdatePermRuleResponse(SdkResponse):
|
|
122
122
|
def rw_type(self, rw_type):
|
123
123
|
"""Sets the rw_type of this UpdatePermRuleResponse.
|
124
124
|
|
125
|
-
|
125
|
+
授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
|
126
126
|
|
127
127
|
:param rw_type: The rw_type of this UpdatePermRuleResponse.
|
128
128
|
:type rw_type: str
|
@@ -133,7 +133,7 @@ class UpdatePermRuleResponse(SdkResponse):
|
|
133
133
|
def user_type(self):
|
134
134
|
"""Gets the user_type of this UpdatePermRuleResponse.
|
135
135
|
|
136
|
-
|
136
|
+
授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
|
137
137
|
|
138
138
|
:return: The user_type of this UpdatePermRuleResponse.
|
139
139
|
:rtype: str
|
@@ -144,7 +144,7 @@ class UpdatePermRuleResponse(SdkResponse):
|
|
144
144
|
def user_type(self, user_type):
|
145
145
|
"""Sets the user_type of this UpdatePermRuleResponse.
|
146
146
|
|
147
|
-
|
147
|
+
授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
|
148
148
|
|
149
149
|
:param user_type: The user_type of this UpdatePermRuleResponse.
|
150
150
|
:type user_type: str
|
@@ -50,6 +50,20 @@ class SFSTurboRegion:
|
|
50
50
|
"https://sfs-turbo.me-east-1.myhuaweicloud.com")
|
51
51
|
CN_EAST_5 = Region("cn-east-5",
|
52
52
|
"https://sfs-turbo.cn-east-5.myhuaweicloud.com")
|
53
|
+
CN_SOUTH_4 = Region("cn-south-4",
|
54
|
+
"https://sfs-turbo.cn-south-4.myhuaweicloud.com")
|
55
|
+
RU_MOSCOW_1 = Region("ru-moscow-1",
|
56
|
+
"https://sfs-turbo.ru-moscow-1.myhuaweicloud.com")
|
57
|
+
MY_KUALALUMPUR_1 = Region("my-kualalumpur-1",
|
58
|
+
"https://sfs-turbo.my-kualalumpur-1.myhuaweicloud.com")
|
59
|
+
CN_EAST_4 = Region("cn-east-4",
|
60
|
+
"https://sfs-turbo.cn-east-4.myhuaweicloud.com")
|
61
|
+
AE_AD_1 = Region("ae-ad-1",
|
62
|
+
"https://sfs-turbo.ae-ad-1.myhuaweicloud.com")
|
63
|
+
CN_NORTH_11 = Region("cn-north-11",
|
64
|
+
"https://sfs-turbo.cn-north-11.myhuaweicloud.com")
|
65
|
+
AF_NORTH_1 = Region("af-north-1",
|
66
|
+
"https://sfs-turbo.af-north-1.myhuaweicloud.com")
|
53
67
|
|
54
68
|
static_fields = {
|
55
69
|
"eu-west-101": EU_WEST_101,
|
@@ -74,6 +88,13 @@ class SFSTurboRegion:
|
|
74
88
|
"ap-southeast-4": AP_SOUTHEAST_4,
|
75
89
|
"me-east-1": ME_EAST_1,
|
76
90
|
"cn-east-5": CN_EAST_5,
|
91
|
+
"cn-south-4": CN_SOUTH_4,
|
92
|
+
"ru-moscow-1": RU_MOSCOW_1,
|
93
|
+
"my-kualalumpur-1": MY_KUALALUMPUR_1,
|
94
|
+
"cn-east-4": CN_EAST_4,
|
95
|
+
"ae-ad-1": AE_AD_1,
|
96
|
+
"cn-north-11": CN_NORTH_11,
|
97
|
+
"af-north-1": AF_NORTH_1,
|
77
98
|
}
|
78
99
|
|
79
100
|
@classmethod
|