huaweicloudsdksfsturbo 3.1.160__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdksfsturbo/__init__.py +0 -0
- huaweicloudsdksfsturbo/v1/__init__.py +187 -0
- huaweicloudsdksfsturbo/v1/model/__init__.py +184 -0
- huaweicloudsdksfsturbo/v1/model/action_progress.py +115 -0
- huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_request_body.py +313 -0
- huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/auto_export_policy.py +173 -0
- huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_request_body.py +142 -0
- huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/bss_info.py +200 -0
- huaweicloudsdksfsturbo/v1/model/bss_info_extend.py +115 -0
- huaweicloudsdksfsturbo/v1/model/change_security_group.py +114 -0
- huaweicloudsdksfsturbo/v1/model/change_security_group_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/change_security_group_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/change_security_group_response.py +116 -0
- huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_v2_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_v2_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/change_share_name_req.py +110 -0
- huaweicloudsdksfsturbo/v1/model/change_share_name_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/change_share_name_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/client_ip_info.py +115 -0
- huaweicloudsdksfsturbo/v1/model/config_nas_target.py +170 -0
- huaweicloudsdksfsturbo/v1/model/create_backend_target_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py +138 -0
- huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py +278 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py +172 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_response.py +232 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_request_body.py +201 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_task_request.py +167 -0
- huaweicloudsdksfsturbo/v1/model/create_fs_task_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py +253 -0
- huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py +345 -0
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/create_perm_rule_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/create_perm_rule_response.py +116 -0
- huaweicloudsdksfsturbo/v1/model/create_perm_rules_request_body.py +114 -0
- huaweicloudsdksfsturbo/v1/model/create_share_request.py +111 -0
- huaweicloudsdksfsturbo/v1/model/create_share_request_body.py +135 -0
- huaweicloudsdksfsturbo/v1/model/create_share_response.py +174 -0
- huaweicloudsdksfsturbo/v1/model/create_shared_tag_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/create_shared_tag_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/create_shared_tag_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_request_body.py +142 -0
- huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/delete_backend_target_request.py +171 -0
- huaweicloudsdksfsturbo/v1/model/delete_backend_target_response.py +199 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_request_body.py +114 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_dir_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_dir_request_body.py +114 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_dir_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_task_request.py +170 -0
- huaweicloudsdksfsturbo/v1/model/delete_fs_task_response.py +112 -0
- 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_request.py +114 -0
- huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/delete_perm_rule_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/delete_perm_rule_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/delete_share_request.py +114 -0
- huaweicloudsdksfsturbo/v1/model/delete_share_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/delete_shared_tag_response.py +85 -0
- huaweicloudsdksfsturbo/v1/model/expand_share_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/expand_share_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/expand_share_response.py +145 -0
- huaweicloudsdksfsturbo/v1/model/extend.py +168 -0
- huaweicloudsdksfsturbo/v1/model/failure_details_message.py +114 -0
- huaweicloudsdksfsturbo/v1/model/fs_dir_req.py +114 -0
- huaweicloudsdksfsturbo/v1/model/fs_dir_uasge.py +114 -0
- huaweicloudsdksfsturbo/v1/model/fs_du_info.py +198 -0
- huaweicloudsdksfsturbo/v1/model/fs_file_count.py +289 -0
- huaweicloudsdksfsturbo/v1/model/get_sub_job_detail.py +289 -0
- huaweicloudsdksfsturbo/v1/model/list_backend_targets_request.py +172 -0
- huaweicloudsdksfsturbo/v1/model/list_backend_targets_response.py +170 -0
- huaweicloudsdksfsturbo/v1/model/list_fs_tasks_request.py +200 -0
- huaweicloudsdksfsturbo/v1/model/list_fs_tasks_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py +288 -0
- huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_response.py +170 -0
- huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py +172 -0
- huaweicloudsdksfsturbo/v1/model/list_perm_rules_response.py +116 -0
- huaweicloudsdksfsturbo/v1/model/list_share_types_request.py +144 -0
- huaweicloudsdksfsturbo/v1/model/list_share_types_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/list_shared_tags_request.py +144 -0
- huaweicloudsdksfsturbo/v1/model/list_shared_tags_response.py +116 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request.py +111 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request_body.py +259 -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 +144 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_response.py +145 -0
- huaweicloudsdksfsturbo/v1/model/metadata.py +231 -0
- huaweicloudsdksfsturbo/v1/model/obs_data_repository.py +192 -0
- huaweicloudsdksfsturbo/v1/model/obs_data_repository_policy.py +111 -0
- huaweicloudsdksfsturbo/v1/model/obs_target_attributes.py +202 -0
- huaweicloudsdksfsturbo/v1/model/one_fs_task_resp.py +223 -0
- huaweicloudsdksfsturbo/v1/model/one_hpc_cache_task_info_resp.py +366 -0
- huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py +170 -0
- huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py +198 -0
- huaweicloudsdksfsturbo/v1/model/req_config_hpc_cache_backend.py +110 -0
- huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_data.py +171 -0
- huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_info.py +138 -0
- huaweicloudsdksfsturbo/v1/model/resource_tag.py +142 -0
- huaweicloudsdksfsturbo/v1/model/set_hpc_cache_backend_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/set_hpc_cache_backend_response.py +112 -0
- huaweicloudsdksfsturbo/v1/model/share.py +451 -0
- huaweicloudsdksfsturbo/v1/model/share_info.py +919 -0
- huaweicloudsdksfsturbo/v1/model/share_info_feature.py +173 -0
- huaweicloudsdksfsturbo/v1/model/share_info_features.py +111 -0
- huaweicloudsdksfsturbo/v1/model/share_name.py +114 -0
- huaweicloudsdksfsturbo/v1/model/share_type_available_zone.py +144 -0
- huaweicloudsdksfsturbo/v1/model/share_type_response_body.py +368 -0
- huaweicloudsdksfsturbo/v1/model/share_type_usage.py +161 -0
- huaweicloudsdksfsturbo/v1/model/share_type_usage_bandwidth.py +144 -0
- huaweicloudsdksfsturbo/v1/model/share_type_usage_capacity.py +144 -0
- huaweicloudsdksfsturbo/v1/model/share_type_usage_quantity.py +144 -0
- huaweicloudsdksfsturbo/v1/model/share_types_attribution.py +186 -0
- huaweicloudsdksfsturbo/v1/model/share_types_attribution_bandwidth.py +231 -0
- huaweicloudsdksfsturbo/v1/model/share_types_attribution_capacity.py +173 -0
- huaweicloudsdksfsturbo/v1/model/share_types_attribution_iops.py +144 -0
- huaweicloudsdksfsturbo/v1/model/share_types_attribution_single_channel4_k_latency.py +144 -0
- huaweicloudsdksfsturbo/v1/model/show_active_directory_domain_request.py +114 -0
- huaweicloudsdksfsturbo/v1/model/show_active_directory_domain_response.py +286 -0
- huaweicloudsdksfsturbo/v1/model/show_backend_target_info_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response.py +278 -0
- huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response_body.py +252 -0
- huaweicloudsdksfsturbo/v1/model/show_client_ip_info_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/show_client_ip_info_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/show_client_ip_info_response.py +170 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_response.py +232 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_response.py +203 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_usage_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_usage_response.py +137 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_task_request.py +170 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_task_response.py +253 -0
- huaweicloudsdksfsturbo/v1/model/show_hpc_cache_task_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/show_hpc_cache_task_response.py +402 -0
- huaweicloudsdksfsturbo/v1/model/show_job_detail_request.py +114 -0
- huaweicloudsdksfsturbo/v1/model/show_job_detail_response.py +344 -0
- huaweicloudsdksfsturbo/v1/model/show_ldap_config_request.py +114 -0
- huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py +344 -0
- huaweicloudsdksfsturbo/v1/model/show_perm_rule_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py +203 -0
- huaweicloudsdksfsturbo/v1/model/show_share_request.py +114 -0
- huaweicloudsdksfsturbo/v1/model/show_share_response.py +920 -0
- huaweicloudsdksfsturbo/v1/model/show_shared_tags_request.py +114 -0
- huaweicloudsdksfsturbo/v1/model/show_shared_tags_response.py +116 -0
- huaweicloudsdksfsturbo/v1/model/tag.py +142 -0
- huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_request_body.py +313 -0
- huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py +172 -0
- huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_response.py +232 -0
- huaweicloudsdksfsturbo/v1/model/update_hpc_share_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py +142 -0
- huaweicloudsdksfsturbo/v1/model/update_hpc_share_response.py +141 -0
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_request.py +139 -0
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py +347 -0
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py +141 -0
- 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_one_perm_rule_request_info.py +144 -0
- huaweicloudsdksfsturbo/v1/model/update_perm_rule_request.py +167 -0
- huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py +203 -0
- huaweicloudsdksfsturbo/v1/region/__init__.py +0 -0
- huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +118 -0
- huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +3722 -0
- huaweicloudsdksfsturbo/v1/sfsturbo_client.py +3719 -0
- huaweicloudsdksfsturbo-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdksfsturbo-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdksfsturbo-3.1.160.dist-info/RECORD +191 -0
- huaweicloudsdksfsturbo-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdksfsturbo-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,192 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ObsDataRepository:
|
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
|
+
'bucket': 'str',
|
21
|
+
'endpoint': 'str',
|
22
|
+
'policy': 'ObsDataRepositoryPolicy',
|
23
|
+
'attributes': 'ObsTargetAttributes'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'bucket': 'bucket',
|
28
|
+
'endpoint': 'endpoint',
|
29
|
+
'policy': 'policy',
|
30
|
+
'attributes': 'attributes'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, bucket=None, endpoint=None, policy=None, attributes=None):
|
34
|
+
r"""ObsDataRepository
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param bucket: OBS桶名称
|
39
|
+
:type bucket: str
|
40
|
+
:param endpoint: OBS桶所在的区域域名
|
41
|
+
:type endpoint: str
|
42
|
+
:param policy:
|
43
|
+
:type policy: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy`
|
44
|
+
:param attributes:
|
45
|
+
:type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes`
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._bucket = None
|
51
|
+
self._endpoint = None
|
52
|
+
self._policy = None
|
53
|
+
self._attributes = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.bucket = bucket
|
57
|
+
self.endpoint = endpoint
|
58
|
+
if policy is not None:
|
59
|
+
self.policy = policy
|
60
|
+
if attributes is not None:
|
61
|
+
self.attributes = attributes
|
62
|
+
|
63
|
+
@property
|
64
|
+
def bucket(self):
|
65
|
+
r"""Gets the bucket of this ObsDataRepository.
|
66
|
+
|
67
|
+
OBS桶名称
|
68
|
+
|
69
|
+
:return: The bucket of this ObsDataRepository.
|
70
|
+
:rtype: str
|
71
|
+
"""
|
72
|
+
return self._bucket
|
73
|
+
|
74
|
+
@bucket.setter
|
75
|
+
def bucket(self, bucket):
|
76
|
+
r"""Sets the bucket of this ObsDataRepository.
|
77
|
+
|
78
|
+
OBS桶名称
|
79
|
+
|
80
|
+
:param bucket: The bucket of this ObsDataRepository.
|
81
|
+
:type bucket: str
|
82
|
+
"""
|
83
|
+
self._bucket = bucket
|
84
|
+
|
85
|
+
@property
|
86
|
+
def endpoint(self):
|
87
|
+
r"""Gets the endpoint of this ObsDataRepository.
|
88
|
+
|
89
|
+
OBS桶所在的区域域名
|
90
|
+
|
91
|
+
:return: The endpoint of this ObsDataRepository.
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._endpoint
|
95
|
+
|
96
|
+
@endpoint.setter
|
97
|
+
def endpoint(self, endpoint):
|
98
|
+
r"""Sets the endpoint of this ObsDataRepository.
|
99
|
+
|
100
|
+
OBS桶所在的区域域名
|
101
|
+
|
102
|
+
:param endpoint: The endpoint of this ObsDataRepository.
|
103
|
+
:type endpoint: str
|
104
|
+
"""
|
105
|
+
self._endpoint = endpoint
|
106
|
+
|
107
|
+
@property
|
108
|
+
def policy(self):
|
109
|
+
r"""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
|
+
r"""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
|
+
r"""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
|
+
r"""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
|
+
|
143
|
+
def to_dict(self):
|
144
|
+
"""Returns the model properties as a dict"""
|
145
|
+
result = {}
|
146
|
+
|
147
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
148
|
+
value = getattr(self, attr)
|
149
|
+
if isinstance(value, list):
|
150
|
+
result[attr] = list(map(
|
151
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
152
|
+
value
|
153
|
+
))
|
154
|
+
elif hasattr(value, "to_dict"):
|
155
|
+
result[attr] = value.to_dict()
|
156
|
+
elif isinstance(value, dict):
|
157
|
+
result[attr] = dict(map(
|
158
|
+
lambda item: (item[0], item[1].to_dict())
|
159
|
+
if hasattr(item[1], "to_dict") else item,
|
160
|
+
value.items()
|
161
|
+
))
|
162
|
+
else:
|
163
|
+
if attr in self.sensitive_list:
|
164
|
+
result[attr] = "****"
|
165
|
+
else:
|
166
|
+
result[attr] = value
|
167
|
+
|
168
|
+
return result
|
169
|
+
|
170
|
+
def to_str(self):
|
171
|
+
"""Returns the string representation of the model"""
|
172
|
+
import simplejson as json
|
173
|
+
if six.PY2:
|
174
|
+
import sys
|
175
|
+
reload(sys)
|
176
|
+
sys.setdefaultencoding("utf-8")
|
177
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
178
|
+
|
179
|
+
def __repr__(self):
|
180
|
+
"""For `print`"""
|
181
|
+
return self.to_str()
|
182
|
+
|
183
|
+
def __eq__(self, other):
|
184
|
+
"""Returns true if both objects are equal"""
|
185
|
+
if not isinstance(other, ObsDataRepository):
|
186
|
+
return False
|
187
|
+
|
188
|
+
return self.__dict__ == other.__dict__
|
189
|
+
|
190
|
+
def __ne__(self, other):
|
191
|
+
"""Returns true if both objects are not equal"""
|
192
|
+
return not self == other
|
@@ -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
|
+
r"""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
|
+
r"""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
|
+
r"""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
|
@@ -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 ObsTargetAttributes:
|
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
|
+
'file_mode': 'int',
|
21
|
+
'dir_mode': 'int',
|
22
|
+
'uid': 'int',
|
23
|
+
'gid': 'int'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'file_mode': 'file_mode',
|
28
|
+
'dir_mode': 'dir_mode',
|
29
|
+
'uid': 'uid',
|
30
|
+
'gid': 'gid'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, file_mode=None, dir_mode=None, uid=None, gid=None):
|
34
|
+
r"""ObsTargetAttributes
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param file_mode: 导入的文件权限。取值范围是0到777。 第一位表示文件所有者的权限,取值范围是0到7;第二位表示文件所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。文件所有者由uid指定,文件所属用户组由gid指定,不是文件所有者且不在文件所属用户组的用户为其他用户。 数字4、2、1分别表示读、写、执行权限,这些数字相加,即可得到所需的权限组合。例如:750中第一位7代表该文件所有者对该文件具有读、写、执行权限;第二位5代表该文件所属用户组对该文件具有读、执行权限;第三位0代表其他用户对该文件无权限。
|
39
|
+
:type file_mode: int
|
40
|
+
:param dir_mode: 导入的目录权限。取值范围是0到777。 第一位表示目录所有者的权限,取值范围是0到7;第二位表示目录所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。 数字4、2、1分别表示读、写、执行权限,这些数字相加,即可得到所需的权限组合。例如:750中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位0代表其他用户对该文件无权限。
|
41
|
+
:type dir_mode: int
|
42
|
+
:param uid: 导入对象所有者的用户id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。
|
43
|
+
:type uid: int
|
44
|
+
:param gid: 导入对象所属用户组id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。
|
45
|
+
:type gid: int
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._file_mode = None
|
51
|
+
self._dir_mode = None
|
52
|
+
self._uid = None
|
53
|
+
self._gid = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if file_mode is not None:
|
57
|
+
self.file_mode = file_mode
|
58
|
+
if dir_mode is not None:
|
59
|
+
self.dir_mode = dir_mode
|
60
|
+
if uid is not None:
|
61
|
+
self.uid = uid
|
62
|
+
if gid is not None:
|
63
|
+
self.gid = gid
|
64
|
+
|
65
|
+
@property
|
66
|
+
def file_mode(self):
|
67
|
+
r"""Gets the file_mode of this ObsTargetAttributes.
|
68
|
+
|
69
|
+
导入的文件权限。取值范围是0到777。 第一位表示文件所有者的权限,取值范围是0到7;第二位表示文件所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。文件所有者由uid指定,文件所属用户组由gid指定,不是文件所有者且不在文件所属用户组的用户为其他用户。 数字4、2、1分别表示读、写、执行权限,这些数字相加,即可得到所需的权限组合。例如:750中第一位7代表该文件所有者对该文件具有读、写、执行权限;第二位5代表该文件所属用户组对该文件具有读、执行权限;第三位0代表其他用户对该文件无权限。
|
70
|
+
|
71
|
+
:return: The file_mode of this ObsTargetAttributes.
|
72
|
+
:rtype: int
|
73
|
+
"""
|
74
|
+
return self._file_mode
|
75
|
+
|
76
|
+
@file_mode.setter
|
77
|
+
def file_mode(self, file_mode):
|
78
|
+
r"""Sets the file_mode of this ObsTargetAttributes.
|
79
|
+
|
80
|
+
导入的文件权限。取值范围是0到777。 第一位表示文件所有者的权限,取值范围是0到7;第二位表示文件所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。文件所有者由uid指定,文件所属用户组由gid指定,不是文件所有者且不在文件所属用户组的用户为其他用户。 数字4、2、1分别表示读、写、执行权限,这些数字相加,即可得到所需的权限组合。例如:750中第一位7代表该文件所有者对该文件具有读、写、执行权限;第二位5代表该文件所属用户组对该文件具有读、执行权限;第三位0代表其他用户对该文件无权限。
|
81
|
+
|
82
|
+
:param file_mode: The file_mode of this ObsTargetAttributes.
|
83
|
+
:type file_mode: int
|
84
|
+
"""
|
85
|
+
self._file_mode = file_mode
|
86
|
+
|
87
|
+
@property
|
88
|
+
def dir_mode(self):
|
89
|
+
r"""Gets the dir_mode of this ObsTargetAttributes.
|
90
|
+
|
91
|
+
导入的目录权限。取值范围是0到777。 第一位表示目录所有者的权限,取值范围是0到7;第二位表示目录所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。 数字4、2、1分别表示读、写、执行权限,这些数字相加,即可得到所需的权限组合。例如:750中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位0代表其他用户对该文件无权限。
|
92
|
+
|
93
|
+
:return: The dir_mode of this ObsTargetAttributes.
|
94
|
+
:rtype: int
|
95
|
+
"""
|
96
|
+
return self._dir_mode
|
97
|
+
|
98
|
+
@dir_mode.setter
|
99
|
+
def dir_mode(self, dir_mode):
|
100
|
+
r"""Sets the dir_mode of this ObsTargetAttributes.
|
101
|
+
|
102
|
+
导入的目录权限。取值范围是0到777。 第一位表示目录所有者的权限,取值范围是0到7;第二位表示目录所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。 数字4、2、1分别表示读、写、执行权限,这些数字相加,即可得到所需的权限组合。例如:750中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位0代表其他用户对该文件无权限。
|
103
|
+
|
104
|
+
:param dir_mode: The dir_mode of this ObsTargetAttributes.
|
105
|
+
:type dir_mode: int
|
106
|
+
"""
|
107
|
+
self._dir_mode = dir_mode
|
108
|
+
|
109
|
+
@property
|
110
|
+
def uid(self):
|
111
|
+
r"""Gets the uid of this ObsTargetAttributes.
|
112
|
+
|
113
|
+
导入对象所有者的用户id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。
|
114
|
+
|
115
|
+
:return: The uid of this ObsTargetAttributes.
|
116
|
+
:rtype: int
|
117
|
+
"""
|
118
|
+
return self._uid
|
119
|
+
|
120
|
+
@uid.setter
|
121
|
+
def uid(self, uid):
|
122
|
+
r"""Sets the uid of this ObsTargetAttributes.
|
123
|
+
|
124
|
+
导入对象所有者的用户id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。
|
125
|
+
|
126
|
+
:param uid: The uid of this ObsTargetAttributes.
|
127
|
+
:type uid: int
|
128
|
+
"""
|
129
|
+
self._uid = uid
|
130
|
+
|
131
|
+
@property
|
132
|
+
def gid(self):
|
133
|
+
r"""Gets the gid of this ObsTargetAttributes.
|
134
|
+
|
135
|
+
导入对象所属用户组id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。
|
136
|
+
|
137
|
+
:return: The gid of this ObsTargetAttributes.
|
138
|
+
:rtype: int
|
139
|
+
"""
|
140
|
+
return self._gid
|
141
|
+
|
142
|
+
@gid.setter
|
143
|
+
def gid(self, gid):
|
144
|
+
r"""Sets the gid of this ObsTargetAttributes.
|
145
|
+
|
146
|
+
导入对象所属用户组id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。
|
147
|
+
|
148
|
+
:param gid: The gid of this ObsTargetAttributes.
|
149
|
+
:type gid: int
|
150
|
+
"""
|
151
|
+
self._gid = gid
|
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, ObsTargetAttributes):
|
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
|