huaweicloudsdksfsturbo 3.1.120__py2.py3-none-any.whl → 3.1.122__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. huaweicloudsdksfsturbo/v1/__init__.py +13 -1
  2. huaweicloudsdksfsturbo/v1/model/__init__.py +13 -1
  3. huaweicloudsdksfsturbo/v1/model/auto_export_policy.py +115 -0
  4. huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py +3 -3
  5. huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py +3 -3
  6. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py +6 -6
  7. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_response.py +6 -6
  8. huaweicloudsdksfsturbo/v1/model/create_fs_dir_request_body.py +3 -3
  9. huaweicloudsdksfsturbo/v1/model/create_fs_task_request.py +3 -3
  10. huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py +34 -9
  11. huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py +122 -6
  12. huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py +3 -3
  13. huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_request.py +142 -0
  14. huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_response.py +112 -0
  15. huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py +3 -3
  16. huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py +3 -3
  17. huaweicloudsdksfsturbo/v1/model/extend.py +3 -3
  18. huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py +61 -3
  19. huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py +61 -3
  20. huaweicloudsdksfsturbo/v1/model/list_shared_tags_request.py +61 -1
  21. huaweicloudsdksfsturbo/v1/model/list_shares_request.py +6 -6
  22. huaweicloudsdksfsturbo/v1/model/metadata.py +6 -6
  23. huaweicloudsdksfsturbo/v1/model/obs_data_repository.py +53 -3
  24. huaweicloudsdksfsturbo/v1/model/obs_data_repository_policy.py +111 -0
  25. huaweicloudsdksfsturbo/v1/model/obs_target_attributes.py +202 -0
  26. huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py +6 -6
  27. huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py +6 -6
  28. huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_data.py +6 -35
  29. huaweicloudsdksfsturbo/v1/model/resource_tag.py +6 -6
  30. huaweicloudsdksfsturbo/v1/model/share.py +18 -18
  31. huaweicloudsdksfsturbo/v1/model/share_info.py +185 -15
  32. huaweicloudsdksfsturbo/v1/model/share_info_feature.py +173 -0
  33. huaweicloudsdksfsturbo/v1/model/share_info_features.py +111 -0
  34. huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_response.py +6 -6
  35. huaweicloudsdksfsturbo/v1/model/show_fs_dir_response.py +9 -9
  36. huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py +119 -3
  37. huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py +6 -6
  38. huaweicloudsdksfsturbo/v1/model/show_share_response.py +185 -15
  39. huaweicloudsdksfsturbo/v1/model/tag.py +3 -3
  40. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py +6 -6
  41. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_response.py +6 -6
  42. huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py +3 -3
  43. huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py +122 -6
  44. huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py +3 -3
  45. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py +167 -0
  46. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request_body.py +110 -0
  47. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_response.py +166 -0
  48. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py +167 -0
  49. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request_body.py +110 -0
  50. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py +166 -0
  51. huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py +6 -6
  52. huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +6 -0
  53. huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +246 -13
  54. huaweicloudsdksfsturbo/v1/sfsturbo_client.py +246 -13
  55. {huaweicloudsdksfsturbo-3.1.120.dist-info → huaweicloudsdksfsturbo-3.1.122.dist-info}/METADATA +2 -2
  56. {huaweicloudsdksfsturbo-3.1.120.dist-info → huaweicloudsdksfsturbo-3.1.122.dist-info}/RECORD +59 -47
  57. {huaweicloudsdksfsturbo-3.1.120.dist-info → huaweicloudsdksfsturbo-3.1.122.dist-info}/WHEEL +1 -1
  58. huaweicloudsdksfsturbo/v1/model/config_obs_target.py +0 -198
  59. {huaweicloudsdksfsturbo-3.1.120.dist-info → huaweicloudsdksfsturbo-3.1.122.dist-info}/LICENSE +0 -0
  60. {huaweicloudsdksfsturbo-3.1.120.dist-info → huaweicloudsdksfsturbo-3.1.122.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 = {}
@@ -31,9 +31,9 @@ class ListSharesRequest:
31
31
 
32
32
  The model defined in huaweicloud sdk
33
33
 
34
- :param limit: 返回的文件系统个数,最大值为200。
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
- 返回的文件系统个数,最大值为200。
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
- 返回的文件系统个数,最大值为200。
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: 扩展类型。创建增强型/HPC型/HPC缓存型文件系统时,该参数必填。 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 创建HPC型文件系统,需要填写\"hpc\"。 创建HPC缓存型,需要填写\"hpc_cache\"。
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: 文件系统的带宽规格。创建HPC型/HPC缓存型文件系统时,该参数必填。 HPC型,可以填写\"20M\"、\"40M\"、\"125M\"、\"250M\"、\"500M\"、\"1000M\"。 HPC缓存型,可以填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"、\"48G\"。
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
- 扩展类型。创建增强型/HPC型/HPC缓存型文件系统时,该参数必填。 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 创建HPC型文件系统,需要填写\"hpc\"。 创建HPC缓存型,需要填写\"hpc_cache\"。
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
- 扩展类型。创建增强型/HPC型/HPC缓存型文件系统时,该参数必填。 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 创建HPC型文件系统,需要填写\"hpc\"。 创建HPC缓存型,需要填写\"hpc_cache\"。
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
- 文件系统的带宽规格。创建HPC型/HPC缓存型文件系统时,该参数必填。 HPC型,可以填写\"20M\"、\"40M\"、\"125M\"、\"250M\"、\"500M\"、\"1000M\"。 HPC缓存型,可以填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"、\"48G\"。
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
- 文件系统的带宽规格。创建HPC型/HPC缓存型文件系统时,该参数必填。 HPC型,可以填写\"20M\"、\"40M\"、\"125M\"、\"250M\"、\"500M\"、\"1000M\"。 HPC缓存型,可以填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"、\"48G\"。
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