huaweicloudsdksfsturbo 3.1.157__py2.py3-none-any.whl → 3.1.159__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 (105) hide show
  1. huaweicloudsdksfsturbo/v1/__init__.py +32 -0
  2. huaweicloudsdksfsturbo/v1/model/__init__.py +32 -0
  3. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_request.py +139 -0
  4. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_request_body.py +313 -0
  5. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_response.py +141 -0
  6. huaweicloudsdksfsturbo/v1/model/auto_export_policy.py +61 -3
  7. huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_request_body.py +7 -37
  8. huaweicloudsdksfsturbo/v1/model/bss_info.py +6 -6
  9. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_request_body.py +110 -0
  10. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_v2_request.py +139 -0
  11. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_v2_response.py +141 -0
  12. huaweicloudsdksfsturbo/v1/model/client_ip_info.py +115 -0
  13. huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py +3 -3
  14. huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py +3 -3
  15. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request.py +3 -3
  16. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py +6 -6
  17. huaweicloudsdksfsturbo/v1/model/create_fs_dir_request.py +3 -3
  18. huaweicloudsdksfsturbo/v1/model/create_fs_task_response.py +28 -3
  19. huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py +3 -3
  20. huaweicloudsdksfsturbo/v1/model/create_ldap_config_request.py +3 -3
  21. huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py +21 -50
  22. huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py +31 -6
  23. huaweicloudsdksfsturbo/v1/model/create_perm_rule_request.py +3 -3
  24. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_request.py +139 -0
  25. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_request_body.py +142 -0
  26. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_response.py +141 -0
  27. huaweicloudsdksfsturbo/v1/model/delete_backend_target_request.py +6 -6
  28. huaweicloudsdksfsturbo/v1/model/delete_backend_target_response.py +3 -3
  29. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_request.py +3 -3
  30. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_request.py +3 -3
  31. huaweicloudsdksfsturbo/v1/model/delete_fs_task_request.py +3 -3
  32. huaweicloudsdksfsturbo/v1/model/delete_fs_task_response.py +28 -1
  33. huaweicloudsdksfsturbo/v1/model/delete_ldap_config_request.py +3 -3
  34. huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py +31 -6
  35. huaweicloudsdksfsturbo/v1/model/delete_perm_rule_request.py +3 -3
  36. huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py +3 -3
  37. huaweicloudsdksfsturbo/v1/model/extend.py +6 -6
  38. huaweicloudsdksfsturbo/v1/model/get_sub_job_detail.py +21 -21
  39. huaweicloudsdksfsturbo/v1/model/list_backend_targets_request.py +3 -3
  40. huaweicloudsdksfsturbo/v1/model/list_fs_tasks_request.py +3 -3
  41. huaweicloudsdksfsturbo/v1/model/list_fs_tasks_response.py +28 -3
  42. huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py +3 -3
  43. huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py +3 -3
  44. huaweicloudsdksfsturbo/v1/model/list_share_types_request.py +144 -0
  45. huaweicloudsdksfsturbo/v1/model/list_share_types_response.py +141 -0
  46. huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request_body.py +1 -2
  47. huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_response.py +3 -3
  48. huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py +9 -12
  49. huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py +6 -6
  50. huaweicloudsdksfsturbo/v1/model/resource_tag.py +6 -6
  51. huaweicloudsdksfsturbo/v1/model/share.py +15 -15
  52. huaweicloudsdksfsturbo/v1/model/share_info.py +6 -6
  53. huaweicloudsdksfsturbo/v1/model/share_type_available_zone.py +144 -0
  54. huaweicloudsdksfsturbo/v1/model/share_type_response_body.py +368 -0
  55. huaweicloudsdksfsturbo/v1/model/share_type_usage.py +161 -0
  56. huaweicloudsdksfsturbo/v1/model/share_type_usage_bandwidth.py +144 -0
  57. huaweicloudsdksfsturbo/v1/model/share_type_usage_capacity.py +144 -0
  58. huaweicloudsdksfsturbo/v1/model/share_type_usage_quantity.py +144 -0
  59. huaweicloudsdksfsturbo/v1/model/share_types_attribution.py +186 -0
  60. huaweicloudsdksfsturbo/v1/model/share_types_attribution_bandwidth.py +231 -0
  61. huaweicloudsdksfsturbo/v1/model/share_types_attribution_capacity.py +173 -0
  62. huaweicloudsdksfsturbo/v1/model/share_types_attribution_iops.py +144 -0
  63. huaweicloudsdksfsturbo/v1/model/share_types_attribution_single_channel4_k_latency.py +144 -0
  64. huaweicloudsdksfsturbo/v1/model/show_active_directory_domain_request.py +114 -0
  65. huaweicloudsdksfsturbo/v1/model/show_active_directory_domain_response.py +286 -0
  66. huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response.py +3 -3
  67. huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response_body.py +3 -3
  68. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_request.py +139 -0
  69. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_request_body.py +110 -0
  70. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_response.py +170 -0
  71. huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_request.py +3 -3
  72. huaweicloudsdksfsturbo/v1/model/show_fs_dir_request.py +3 -3
  73. huaweicloudsdksfsturbo/v1/model/show_fs_dir_usage_request.py +3 -3
  74. huaweicloudsdksfsturbo/v1/model/show_fs_task_response.py +28 -3
  75. huaweicloudsdksfsturbo/v1/model/show_job_detail_response.py +18 -18
  76. huaweicloudsdksfsturbo/v1/model/show_ldap_config_request.py +3 -3
  77. huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py +59 -34
  78. huaweicloudsdksfsturbo/v1/model/show_perm_rule_request.py +3 -3
  79. huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py +6 -6
  80. huaweicloudsdksfsturbo/v1/model/show_share_response.py +6 -6
  81. huaweicloudsdksfsturbo/v1/model/show_shared_tags_response.py +3 -32
  82. huaweicloudsdksfsturbo/v1/model/tag.py +3 -3
  83. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_request.py +139 -0
  84. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_request_body.py +313 -0
  85. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_response.py +141 -0
  86. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request.py +3 -3
  87. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py +6 -6
  88. huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py +3 -3
  89. huaweicloudsdksfsturbo/v1/model/update_ldap_config_request.py +3 -3
  90. huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py +18 -47
  91. huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py +31 -6
  92. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py +6 -6
  93. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py +6 -6
  94. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py +3 -3
  95. huaweicloudsdksfsturbo/v1/model/update_one_perm_rule_request_info.py +144 -0
  96. huaweicloudsdksfsturbo/v1/model/update_perm_rule_request.py +7 -7
  97. huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py +6 -6
  98. huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +3 -0
  99. huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +492 -41
  100. huaweicloudsdksfsturbo/v1/sfsturbo_client.py +492 -41
  101. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/METADATA +2 -2
  102. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/RECORD +105 -73
  103. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/LICENSE +0 -0
  104. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/WHEEL +0 -0
  105. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/top_level.txt +0 -0
@@ -41,19 +41,19 @@ class GetSubJobDetail:
41
41
 
42
42
  The model defined in huaweicloud sdk
43
43
 
44
- :param status: 子job的状态。success:成功。running:运行中。failed:失败。waiting:等待执行。
44
+ :param status: 子任务的状态。success:成功。running:运行中。failed:失败。waiting:等待执行。
45
45
  :type status: str
46
- :param job_id: job的ID。
46
+ :param job_id: 子任务的ID。
47
47
  :type job_id: str
48
- :param job_type: 子job的类型。
48
+ :param job_type: 子任务的类型。
49
49
  :type job_type: str
50
- :param begin_time: job开始时间。UTC时间,格式:'2016-01-02 15:04:05'
50
+ :param begin_time: 子任务开始时间。UTC时间,格式:'2016-01-02 15:04:05'
51
51
  :type begin_time: str
52
- :param end_time: job结束时间。UTC时间,格式:'2016-01-02 15:04:05'
52
+ :param end_time: 子任务结束时间。UTC时间,格式:'2016-01-02 15:04:05'
53
53
  :type end_time: str
54
- :param error_code: job执行失败时的错误码
54
+ :param error_code: 子任务执行失败时的错误码
55
55
  :type error_code: str
56
- :param fail_reason: job执行失败时的错误原因
56
+ :param fail_reason: 子任务执行失败时的错误原因
57
57
  :type fail_reason: str
58
58
  """
59
59
 
@@ -87,7 +87,7 @@ class GetSubJobDetail:
87
87
  def status(self):
88
88
  r"""Gets the status of this GetSubJobDetail.
89
89
 
90
- 子job的状态。success:成功。running:运行中。failed:失败。waiting:等待执行。
90
+ 子任务的状态。success:成功。running:运行中。failed:失败。waiting:等待执行。
91
91
 
92
92
  :return: The status of this GetSubJobDetail.
93
93
  :rtype: str
@@ -98,7 +98,7 @@ class GetSubJobDetail:
98
98
  def status(self, status):
99
99
  r"""Sets the status of this GetSubJobDetail.
100
100
 
101
- 子job的状态。success:成功。running:运行中。failed:失败。waiting:等待执行。
101
+ 子任务的状态。success:成功。running:运行中。failed:失败。waiting:等待执行。
102
102
 
103
103
  :param status: The status of this GetSubJobDetail.
104
104
  :type status: str
@@ -109,7 +109,7 @@ class GetSubJobDetail:
109
109
  def job_id(self):
110
110
  r"""Gets the job_id of this GetSubJobDetail.
111
111
 
112
- job的ID。
112
+ 子任务的ID。
113
113
 
114
114
  :return: The job_id of this GetSubJobDetail.
115
115
  :rtype: str
@@ -120,7 +120,7 @@ class GetSubJobDetail:
120
120
  def job_id(self, job_id):
121
121
  r"""Sets the job_id of this GetSubJobDetail.
122
122
 
123
- job的ID。
123
+ 子任务的ID。
124
124
 
125
125
  :param job_id: The job_id of this GetSubJobDetail.
126
126
  :type job_id: str
@@ -131,7 +131,7 @@ class GetSubJobDetail:
131
131
  def job_type(self):
132
132
  r"""Gets the job_type of this GetSubJobDetail.
133
133
 
134
- 子job的类型。
134
+ 子任务的类型。
135
135
 
136
136
  :return: The job_type of this GetSubJobDetail.
137
137
  :rtype: str
@@ -142,7 +142,7 @@ class GetSubJobDetail:
142
142
  def job_type(self, job_type):
143
143
  r"""Sets the job_type of this GetSubJobDetail.
144
144
 
145
- 子job的类型。
145
+ 子任务的类型。
146
146
 
147
147
  :param job_type: The job_type of this GetSubJobDetail.
148
148
  :type job_type: str
@@ -153,7 +153,7 @@ class GetSubJobDetail:
153
153
  def begin_time(self):
154
154
  r"""Gets the begin_time of this GetSubJobDetail.
155
155
 
156
- job开始时间。UTC时间,格式:'2016-01-02 15:04:05'
156
+ 子任务开始时间。UTC时间,格式:'2016-01-02 15:04:05'
157
157
 
158
158
  :return: The begin_time of this GetSubJobDetail.
159
159
  :rtype: str
@@ -164,7 +164,7 @@ class GetSubJobDetail:
164
164
  def begin_time(self, begin_time):
165
165
  r"""Sets the begin_time of this GetSubJobDetail.
166
166
 
167
- job开始时间。UTC时间,格式:'2016-01-02 15:04:05'
167
+ 子任务开始时间。UTC时间,格式:'2016-01-02 15:04:05'
168
168
 
169
169
  :param begin_time: The begin_time of this GetSubJobDetail.
170
170
  :type begin_time: str
@@ -175,7 +175,7 @@ class GetSubJobDetail:
175
175
  def end_time(self):
176
176
  r"""Gets the end_time of this GetSubJobDetail.
177
177
 
178
- job结束时间。UTC时间,格式:'2016-01-02 15:04:05'
178
+ 子任务结束时间。UTC时间,格式:'2016-01-02 15:04:05'
179
179
 
180
180
  :return: The end_time of this GetSubJobDetail.
181
181
  :rtype: str
@@ -186,7 +186,7 @@ class GetSubJobDetail:
186
186
  def end_time(self, end_time):
187
187
  r"""Sets the end_time of this GetSubJobDetail.
188
188
 
189
- job结束时间。UTC时间,格式:'2016-01-02 15:04:05'
189
+ 子任务结束时间。UTC时间,格式:'2016-01-02 15:04:05'
190
190
 
191
191
  :param end_time: The end_time of this GetSubJobDetail.
192
192
  :type end_time: str
@@ -197,7 +197,7 @@ class GetSubJobDetail:
197
197
  def error_code(self):
198
198
  r"""Gets the error_code of this GetSubJobDetail.
199
199
 
200
- job执行失败时的错误码
200
+ 子任务执行失败时的错误码
201
201
 
202
202
  :return: The error_code of this GetSubJobDetail.
203
203
  :rtype: str
@@ -208,7 +208,7 @@ class GetSubJobDetail:
208
208
  def error_code(self, error_code):
209
209
  r"""Sets the error_code of this GetSubJobDetail.
210
210
 
211
- job执行失败时的错误码
211
+ 子任务执行失败时的错误码
212
212
 
213
213
  :param error_code: The error_code of this GetSubJobDetail.
214
214
  :type error_code: str
@@ -219,7 +219,7 @@ class GetSubJobDetail:
219
219
  def fail_reason(self):
220
220
  r"""Gets the fail_reason of this GetSubJobDetail.
221
221
 
222
- job执行失败时的错误原因
222
+ 子任务执行失败时的错误原因
223
223
 
224
224
  :return: The fail_reason of this GetSubJobDetail.
225
225
  :rtype: str
@@ -230,7 +230,7 @@ class GetSubJobDetail:
230
230
  def fail_reason(self, fail_reason):
231
231
  r"""Sets the fail_reason of this GetSubJobDetail.
232
232
 
233
- job执行失败时的错误原因
233
+ 子任务执行失败时的错误原因
234
234
 
235
235
  :param fail_reason: The fail_reason of this GetSubJobDetail.
236
236
  :type fail_reason: str
@@ -33,7 +33,7 @@ class ListBackendTargetsRequest:
33
33
 
34
34
  The model defined in huaweicloud sdk
35
35
 
36
- :param share_id: 文件系统id
36
+ :param share_id: 文件系统ID
37
37
  :type share_id: str
38
38
  :param limit: 查询列表返回元素个数
39
39
  :type limit: int
@@ -58,7 +58,7 @@ class ListBackendTargetsRequest:
58
58
  def share_id(self):
59
59
  r"""Gets the share_id of this ListBackendTargetsRequest.
60
60
 
61
- 文件系统id
61
+ 文件系统ID
62
62
 
63
63
  :return: The share_id of this ListBackendTargetsRequest.
64
64
  :rtype: str
@@ -69,7 +69,7 @@ class ListBackendTargetsRequest:
69
69
  def share_id(self, share_id):
70
70
  r"""Sets the share_id of this ListBackendTargetsRequest.
71
71
 
72
- 文件系统id
72
+ 文件系统ID
73
73
 
74
74
  :param share_id: The share_id of this ListBackendTargetsRequest.
75
75
  :type share_id: str
@@ -39,7 +39,7 @@ class ListFsTasksRequest:
39
39
  :type share_id: str
40
40
  :param feature: 任务类型。例,DU任务取值为dir-usage
41
41
  :type feature: str
42
- :param marker: marker,取值为task_id
42
+ :param marker: marker填写为上一页返回的最后一条记录的task_id,作为下一次分页的起始值。比如,marker为d651ea2b-2b20-4c6d-8bbf-2adcec18dac9,limit为100,表示从d651ea2b-2b20-4c6d-8bbf-2adcec18dac9后返回最多100条满足查询条件的记录。
43
43
  :type marker: str
44
44
  :param limit: limit, 取值为正整数. 默认为20,最大值为100
45
45
  :type limit: int
@@ -108,7 +108,7 @@ class ListFsTasksRequest:
108
108
  def marker(self):
109
109
  r"""Gets the marker of this ListFsTasksRequest.
110
110
 
111
- marker,取值为task_id
111
+ marker填写为上一页返回的最后一条记录的task_id,作为下一次分页的起始值。比如,marker为d651ea2b-2b20-4c6d-8bbf-2adcec18dac9,limit为100,表示从d651ea2b-2b20-4c6d-8bbf-2adcec18dac9后返回最多100条满足查询条件的记录。
112
112
 
113
113
  :return: The marker of this ListFsTasksRequest.
114
114
  :rtype: str
@@ -119,7 +119,7 @@ class ListFsTasksRequest:
119
119
  def marker(self, marker):
120
120
  r"""Sets the marker of this ListFsTasksRequest.
121
121
 
122
- marker,取值为task_id
122
+ marker填写为上一页返回的最后一条记录的task_id,作为下一次分页的起始值。比如,marker为d651ea2b-2b20-4c6d-8bbf-2adcec18dac9,limit为100,表示从d651ea2b-2b20-4c6d-8bbf-2adcec18dac9后返回最多100条满足查询条件的记录。
123
123
 
124
124
  :param marker: The marker of this ListFsTasksRequest.
125
125
  :type marker: str
@@ -18,29 +18,36 @@ class ListFsTasksResponse(SdkResponse):
18
18
  sensitive_list = []
19
19
 
20
20
  openapi_types = {
21
- 'tasks': 'list[OneFsTaskResp]'
21
+ 'tasks': 'list[OneFsTaskResp]',
22
+ 'x_request_id': 'str'
22
23
  }
23
24
 
24
25
  attribute_map = {
25
- 'tasks': 'tasks'
26
+ 'tasks': 'tasks',
27
+ 'x_request_id': 'X-request-id'
26
28
  }
27
29
 
28
- def __init__(self, tasks=None):
30
+ def __init__(self, tasks=None, x_request_id=None):
29
31
  r"""ListFsTasksResponse
30
32
 
31
33
  The model defined in huaweicloud sdk
32
34
 
33
35
  :param tasks: 任务列表
34
36
  :type tasks: list[:class:`huaweicloudsdksfsturbo.v1.OneFsTaskResp`]
37
+ :param x_request_id:
38
+ :type x_request_id: str
35
39
  """
36
40
 
37
41
  super(ListFsTasksResponse, self).__init__()
38
42
 
39
43
  self._tasks = None
44
+ self._x_request_id = None
40
45
  self.discriminator = None
41
46
 
42
47
  if tasks is not None:
43
48
  self.tasks = tasks
49
+ if x_request_id is not None:
50
+ self.x_request_id = x_request_id
44
51
 
45
52
  @property
46
53
  def tasks(self):
@@ -64,6 +71,24 @@ class ListFsTasksResponse(SdkResponse):
64
71
  """
65
72
  self._tasks = tasks
66
73
 
74
+ @property
75
+ def x_request_id(self):
76
+ r"""Gets the x_request_id of this ListFsTasksResponse.
77
+
78
+ :return: The x_request_id of this ListFsTasksResponse.
79
+ :rtype: str
80
+ """
81
+ return self._x_request_id
82
+
83
+ @x_request_id.setter
84
+ def x_request_id(self, x_request_id):
85
+ r"""Sets the x_request_id of this ListFsTasksResponse.
86
+
87
+ :param x_request_id: The x_request_id of this ListFsTasksResponse.
88
+ :type x_request_id: str
89
+ """
90
+ self._x_request_id = x_request_id
91
+
67
92
  def to_dict(self):
68
93
  """Returns the model properties as a dict"""
69
94
  result = {}
@@ -49,7 +49,7 @@ class ListHpcCacheTasksRequest:
49
49
  :type status: str
50
50
  :param offset: offset,默认值为 0
51
51
  :type offset: int
52
- :param limit: limit,默认值为 20
52
+ :param limit: limit,默认值为 1000
53
53
  :type limit: int
54
54
  :param start_time: start_time
55
55
  :type start_time: str
@@ -174,7 +174,7 @@ class ListHpcCacheTasksRequest:
174
174
  def limit(self):
175
175
  r"""Gets the limit of this ListHpcCacheTasksRequest.
176
176
 
177
- limit,默认值为 20
177
+ limit,默认值为 1000
178
178
 
179
179
  :return: The limit of this ListHpcCacheTasksRequest.
180
180
  :rtype: int
@@ -185,7 +185,7 @@ class ListHpcCacheTasksRequest:
185
185
  def limit(self, limit):
186
186
  r"""Sets the limit of this ListHpcCacheTasksRequest.
187
187
 
188
- limit,默认值为 20
188
+ limit,默认值为 1000
189
189
 
190
190
  :param limit: The limit of this ListHpcCacheTasksRequest.
191
191
  :type limit: int
@@ -33,7 +33,7 @@ class ListPermRulesRequest:
33
33
 
34
34
  The model defined in huaweicloud sdk
35
35
 
36
- :param share_id: 文件系统id
36
+ :param share_id: 文件系统ID
37
37
  :type share_id: str
38
38
  :param limit: 返回的权限规则个数
39
39
  :type limit: int
@@ -58,7 +58,7 @@ class ListPermRulesRequest:
58
58
  def share_id(self):
59
59
  r"""Gets the share_id of this ListPermRulesRequest.
60
60
 
61
- 文件系统id
61
+ 文件系统ID
62
62
 
63
63
  :return: The share_id of this ListPermRulesRequest.
64
64
  :rtype: str
@@ -69,7 +69,7 @@ class ListPermRulesRequest:
69
69
  def share_id(self, share_id):
70
70
  r"""Sets the share_id of this ListPermRulesRequest.
71
71
 
72
- 文件系统id
72
+ 文件系统ID
73
73
 
74
74
  :param share_id: The share_id of this ListPermRulesRequest.
75
75
  :type share_id: str
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListShareTypesRequest:
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
+ 'limit': 'int',
21
+ 'offset': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'limit': 'limit',
26
+ 'offset': 'offset'
27
+ }
28
+
29
+ def __init__(self, limit=None, offset=None):
30
+ r"""ListShareTypesRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param limit: 查询文件系统类型和配额返回的个数最大值
35
+ :type limit: int
36
+ :param offset: 查询文件系统类型和配额返回的偏移量
37
+ :type offset: int
38
+ """
39
+
40
+
41
+
42
+ self._limit = None
43
+ self._offset = None
44
+ self.discriminator = None
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
+ r"""Gets the limit of this ListShareTypesRequest.
54
+
55
+ 查询文件系统类型和配额返回的个数最大值
56
+
57
+ :return: The limit of this ListShareTypesRequest.
58
+ :rtype: int
59
+ """
60
+ return self._limit
61
+
62
+ @limit.setter
63
+ def limit(self, limit):
64
+ r"""Sets the limit of this ListShareTypesRequest.
65
+
66
+ 查询文件系统类型和配额返回的个数最大值
67
+
68
+ :param limit: The limit of this ListShareTypesRequest.
69
+ :type limit: int
70
+ """
71
+ self._limit = limit
72
+
73
+ @property
74
+ def offset(self):
75
+ r"""Gets the offset of this ListShareTypesRequest.
76
+
77
+ 查询文件系统类型和配额返回的偏移量
78
+
79
+ :return: The offset of this ListShareTypesRequest.
80
+ :rtype: int
81
+ """
82
+ return self._offset
83
+
84
+ @offset.setter
85
+ def offset(self, offset):
86
+ r"""Sets the offset of this ListShareTypesRequest.
87
+
88
+ 查询文件系统类型和配额返回的偏移量
89
+
90
+ :param offset: The offset of this ListShareTypesRequest.
91
+ :type offset: int
92
+ """
93
+ self._offset = offset
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, ListShareTypesRequest):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,141 @@
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 ListShareTypesResponse(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
+ 'share_types': 'list[ShareTypeResponseBody]',
22
+ 'x_request_id': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'share_types': 'share_types',
27
+ 'x_request_id': 'X-request-id'
28
+ }
29
+
30
+ def __init__(self, share_types=None, x_request_id=None):
31
+ r"""ListShareTypesResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param share_types: 文件系统类型和配额列表
36
+ :type share_types: list[:class:`huaweicloudsdksfsturbo.v1.ShareTypeResponseBody`]
37
+ :param x_request_id:
38
+ :type x_request_id: str
39
+ """
40
+
41
+ super(ListShareTypesResponse, self).__init__()
42
+
43
+ self._share_types = None
44
+ self._x_request_id = None
45
+ self.discriminator = None
46
+
47
+ if share_types is not None:
48
+ self.share_types = share_types
49
+ if x_request_id is not None:
50
+ self.x_request_id = x_request_id
51
+
52
+ @property
53
+ def share_types(self):
54
+ r"""Gets the share_types of this ListShareTypesResponse.
55
+
56
+ 文件系统类型和配额列表
57
+
58
+ :return: The share_types of this ListShareTypesResponse.
59
+ :rtype: list[:class:`huaweicloudsdksfsturbo.v1.ShareTypeResponseBody`]
60
+ """
61
+ return self._share_types
62
+
63
+ @share_types.setter
64
+ def share_types(self, share_types):
65
+ r"""Sets the share_types of this ListShareTypesResponse.
66
+
67
+ 文件系统类型和配额列表
68
+
69
+ :param share_types: The share_types of this ListShareTypesResponse.
70
+ :type share_types: list[:class:`huaweicloudsdksfsturbo.v1.ShareTypeResponseBody`]
71
+ """
72
+ self._share_types = share_types
73
+
74
+ @property
75
+ def x_request_id(self):
76
+ r"""Gets the x_request_id of this ListShareTypesResponse.
77
+
78
+ :return: The x_request_id of this ListShareTypesResponse.
79
+ :rtype: str
80
+ """
81
+ return self._x_request_id
82
+
83
+ @x_request_id.setter
84
+ def x_request_id(self, x_request_id):
85
+ r"""Sets the x_request_id of this ListShareTypesResponse.
86
+
87
+ :param x_request_id: The x_request_id of this ListShareTypesResponse.
88
+ :type x_request_id: str
89
+ """
90
+ self._x_request_id = x_request_id
91
+
92
+ def to_dict(self):
93
+ """Returns the model properties as a dict"""
94
+ result = {}
95
+
96
+ for attr, _ in six.iteritems(self.openapi_types):
97
+ value = getattr(self, attr)
98
+ if isinstance(value, list):
99
+ result[attr] = list(map(
100
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101
+ value
102
+ ))
103
+ elif hasattr(value, "to_dict"):
104
+ result[attr] = value.to_dict()
105
+ elif isinstance(value, dict):
106
+ result[attr] = dict(map(
107
+ lambda item: (item[0], item[1].to_dict())
108
+ if hasattr(item[1], "to_dict") else item,
109
+ value.items()
110
+ ))
111
+ else:
112
+ if attr in self.sensitive_list:
113
+ result[attr] = "****"
114
+ else:
115
+ result[attr] = value
116
+
117
+ return result
118
+
119
+ def to_str(self):
120
+ """Returns the string representation of the model"""
121
+ import simplejson as json
122
+ if six.PY2:
123
+ import sys
124
+ reload(sys)
125
+ sys.setdefaultencoding("utf-8")
126
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
127
+
128
+ def __repr__(self):
129
+ """For `print`"""
130
+ return self.to_str()
131
+
132
+ def __eq__(self, other):
133
+ """Returns true if both objects are equal"""
134
+ if not isinstance(other, ListShareTypesResponse):
135
+ return False
136
+
137
+ return self.__dict__ == other.__dict__
138
+
139
+ def __ne__(self, other):
140
+ """Returns true if both objects are not equal"""
141
+ return not self == other
@@ -63,8 +63,7 @@ class ListSharesByTagRequestBody:
63
63
  self._matches = None
64
64
  self.discriminator = None
65
65
 
66
- if action is not None:
67
- self.action = action
66
+ self.action = action
68
67
  if limit is not None:
69
68
  self.limit = limit
70
69
  if offset is not None:
@@ -36,7 +36,7 @@ class ListSharesByTagResponse(SdkResponse):
36
36
 
37
37
  :param resources: 通过标签查询文件系统的资源列表
38
38
  :type resources: list[:class:`huaweicloudsdksfsturbo.v1.ListSharesByTagResource`]
39
- :param total_count: 设置返回的文件系统的偏移量
39
+ :param total_count: 返回的文件系统的总量
40
40
  :type total_count: int
41
41
  :param x_request_id:
42
42
  :type x_request_id: str
@@ -82,7 +82,7 @@ class ListSharesByTagResponse(SdkResponse):
82
82
  def total_count(self):
83
83
  r"""Gets the total_count of this ListSharesByTagResponse.
84
84
 
85
- 设置返回的文件系统的偏移量
85
+ 返回的文件系统的总量
86
86
 
87
87
  :return: The total_count of this ListSharesByTagResponse.
88
88
  :rtype: int
@@ -93,7 +93,7 @@ class ListSharesByTagResponse(SdkResponse):
93
93
  def total_count(self, total_count):
94
94
  r"""Sets the total_count of this ListSharesByTagResponse.
95
95
 
96
- 设置返回的文件系统的偏移量
96
+ 返回的文件系统的总量
97
97
 
98
98
  :param total_count: The total_count of this ListSharesByTagResponse.
99
99
  :type total_count: int