huaweicloudsdksfsturbo 3.1.156__py2.py3-none-any.whl → 3.1.158__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.156.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/METADATA +2 -2
  102. {huaweicloudsdksfsturbo-3.1.156.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/RECORD +105 -73
  103. {huaweicloudsdksfsturbo-3.1.156.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/LICENSE +0 -0
  104. {huaweicloudsdksfsturbo-3.1.156.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/WHEEL +0 -0
  105. {huaweicloudsdksfsturbo-3.1.156.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/top_level.txt +0 -0
@@ -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 AddActiveDirectoryDomainResponse(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
+ 'job_id': 'str',
22
+ 'x_request_id': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'job_id': 'job_id',
27
+ 'x_request_id': 'X-request-id'
28
+ }
29
+
30
+ def __init__(self, job_id=None, x_request_id=None):
31
+ r"""AddActiveDirectoryDomainResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param job_id: 加入AD域异步任务的id
36
+ :type job_id: str
37
+ :param x_request_id:
38
+ :type x_request_id: str
39
+ """
40
+
41
+ super(AddActiveDirectoryDomainResponse, self).__init__()
42
+
43
+ self._job_id = None
44
+ self._x_request_id = None
45
+ self.discriminator = None
46
+
47
+ if job_id is not None:
48
+ self.job_id = job_id
49
+ if x_request_id is not None:
50
+ self.x_request_id = x_request_id
51
+
52
+ @property
53
+ def job_id(self):
54
+ r"""Gets the job_id of this AddActiveDirectoryDomainResponse.
55
+
56
+ 加入AD域异步任务的id
57
+
58
+ :return: The job_id of this AddActiveDirectoryDomainResponse.
59
+ :rtype: str
60
+ """
61
+ return self._job_id
62
+
63
+ @job_id.setter
64
+ def job_id(self, job_id):
65
+ r"""Sets the job_id of this AddActiveDirectoryDomainResponse.
66
+
67
+ 加入AD域异步任务的id
68
+
69
+ :param job_id: The job_id of this AddActiveDirectoryDomainResponse.
70
+ :type job_id: str
71
+ """
72
+ self._job_id = job_id
73
+
74
+ @property
75
+ def x_request_id(self):
76
+ r"""Gets the x_request_id of this AddActiveDirectoryDomainResponse.
77
+
78
+ :return: The x_request_id of this AddActiveDirectoryDomainResponse.
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 AddActiveDirectoryDomainResponse.
86
+
87
+ :param x_request_id: The x_request_id of this AddActiveDirectoryDomainResponse.
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, AddActiveDirectoryDomainResponse):
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
@@ -17,29 +17,43 @@ class AutoExportPolicy:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'events': 'list[str]'
20
+ 'events': 'list[str]',
21
+ 'prefix': 'str',
22
+ 'suffix': 'str'
21
23
  }
22
24
 
23
25
  attribute_map = {
24
- 'events': 'events'
26
+ 'events': 'events',
27
+ 'prefix': 'prefix',
28
+ 'suffix': 'suffix'
25
29
  }
26
30
 
27
- def __init__(self, events=None):
31
+ def __init__(self, events=None, prefix=None, suffix=None):
28
32
  r"""AutoExportPolicy
29
33
 
30
34
  The model defined in huaweicloud sdk
31
35
 
32
36
  :param events: 后端存储自动导出到OBS桶的数据更新类型。 - NEW:表示新增数据,SFS Turbo联动目录下创建的文件,及之后对这些文件进行的元数据和数据修改,会被自动同步到OBS桶里。 - CHANGED:表示修改数据,从OBS桶里导入到SFS Turbo联动目录下的文件,在SFS Turbo上对这些文件所进行的数据和元数据的修改,会被自动同步到OBS桶里。 - DELETED:表示删除数据,在SFS Turbo联动目录下删除文件,OBS桶对应的对象也会被删除,只有被SFS Turbo写入的OBS对象才会被删除。
33
37
  :type events: list[str]
38
+ :param prefix: 后端存储内对象匹配前缀
39
+ :type prefix: str
40
+ :param suffix: 后端存储内对象匹配后缀
41
+ :type suffix: str
34
42
  """
35
43
 
36
44
 
37
45
 
38
46
  self._events = None
47
+ self._prefix = None
48
+ self._suffix = None
39
49
  self.discriminator = None
40
50
 
41
51
  if events is not None:
42
52
  self.events = events
53
+ if prefix is not None:
54
+ self.prefix = prefix
55
+ if suffix is not None:
56
+ self.suffix = suffix
43
57
 
44
58
  @property
45
59
  def events(self):
@@ -63,6 +77,50 @@ class AutoExportPolicy:
63
77
  """
64
78
  self._events = events
65
79
 
80
+ @property
81
+ def prefix(self):
82
+ r"""Gets the prefix of this AutoExportPolicy.
83
+
84
+ 后端存储内对象匹配前缀
85
+
86
+ :return: The prefix of this AutoExportPolicy.
87
+ :rtype: str
88
+ """
89
+ return self._prefix
90
+
91
+ @prefix.setter
92
+ def prefix(self, prefix):
93
+ r"""Sets the prefix of this AutoExportPolicy.
94
+
95
+ 后端存储内对象匹配前缀
96
+
97
+ :param prefix: The prefix of this AutoExportPolicy.
98
+ :type prefix: str
99
+ """
100
+ self._prefix = prefix
101
+
102
+ @property
103
+ def suffix(self):
104
+ r"""Gets the suffix of this AutoExportPolicy.
105
+
106
+ 后端存储内对象匹配后缀
107
+
108
+ :return: The suffix of this AutoExportPolicy.
109
+ :rtype: str
110
+ """
111
+ return self._suffix
112
+
113
+ @suffix.setter
114
+ def suffix(self, suffix):
115
+ r"""Sets the suffix of this AutoExportPolicy.
116
+
117
+ 后端存储内对象匹配后缀
118
+
119
+ :param suffix: The suffix of this AutoExportPolicy.
120
+ :type suffix: str
121
+ """
122
+ self._suffix = suffix
123
+
66
124
  def to_dict(self):
67
125
  """Returns the model properties as a dict"""
68
126
  result = {}
@@ -18,41 +18,33 @@ class BatchAddSharedTagsRequestBody:
18
18
 
19
19
  openapi_types = {
20
20
  'action': 'str',
21
- 'tags': 'list[ResourceTag]',
22
- 'sys_tags': 'list[ResourceTag]'
21
+ 'tags': 'list[ResourceTag]'
23
22
  }
24
23
 
25
24
  attribute_map = {
26
25
  'action': 'action',
27
- 'tags': 'tags',
28
- 'sys_tags': 'sys_tags'
26
+ 'tags': 'tags'
29
27
  }
30
28
 
31
- def __init__(self, action=None, tags=None, sys_tags=None):
29
+ def __init__(self, action=None, tags=None):
32
30
  r"""BatchAddSharedTagsRequestBody
33
31
 
34
32
  The model defined in huaweicloud sdk
35
33
 
36
34
  :param action: 操作标识,取值范围为:create。 为指定共享批量添加标签时使用create。
37
35
  :type action: str
38
- :param tags: 标签列表。 用户权限时该字段必选。如果有op_service权限时,tags和sys_tags二选一。
36
+ :param tags: 标签列表。
39
37
  :type tags: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
40
- :param sys_tags: 系统标签列表。 op_service权限可以访问,和tags二选一。目前TMS调用时只包含一个resource_tag结构体,key固定为:_sys_enterprise_project_id。
41
- :type sys_tags: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
42
38
  """
43
39
 
44
40
 
45
41
 
46
42
  self._action = None
47
43
  self._tags = None
48
- self._sys_tags = None
49
44
  self.discriminator = None
50
45
 
51
46
  self.action = action
52
- if tags is not None:
53
- self.tags = tags
54
- if sys_tags is not None:
55
- self.sys_tags = sys_tags
47
+ self.tags = tags
56
48
 
57
49
  @property
58
50
  def action(self):
@@ -80,7 +72,7 @@ class BatchAddSharedTagsRequestBody:
80
72
  def tags(self):
81
73
  r"""Gets the tags of this BatchAddSharedTagsRequestBody.
82
74
 
83
- 标签列表。 用户权限时该字段必选。如果有op_service权限时,tags和sys_tags二选一。
75
+ 标签列表。
84
76
 
85
77
  :return: The tags of this BatchAddSharedTagsRequestBody.
86
78
  :rtype: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
@@ -91,35 +83,13 @@ class BatchAddSharedTagsRequestBody:
91
83
  def tags(self, tags):
92
84
  r"""Sets the tags of this BatchAddSharedTagsRequestBody.
93
85
 
94
- 标签列表。 用户权限时该字段必选。如果有op_service权限时,tags和sys_tags二选一。
86
+ 标签列表。
95
87
 
96
88
  :param tags: The tags of this BatchAddSharedTagsRequestBody.
97
89
  :type tags: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
98
90
  """
99
91
  self._tags = tags
100
92
 
101
- @property
102
- def sys_tags(self):
103
- r"""Gets the sys_tags of this BatchAddSharedTagsRequestBody.
104
-
105
- 系统标签列表。 op_service权限可以访问,和tags二选一。目前TMS调用时只包含一个resource_tag结构体,key固定为:_sys_enterprise_project_id。
106
-
107
- :return: The sys_tags of this BatchAddSharedTagsRequestBody.
108
- :rtype: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
109
- """
110
- return self._sys_tags
111
-
112
- @sys_tags.setter
113
- def sys_tags(self, sys_tags):
114
- r"""Sets the sys_tags of this BatchAddSharedTagsRequestBody.
115
-
116
- 系统标签列表。 op_service权限可以访问,和tags二选一。目前TMS调用时只包含一个resource_tag结构体,key固定为:_sys_enterprise_project_id。
117
-
118
- :param sys_tags: The sys_tags of this BatchAddSharedTagsRequestBody.
119
- :type sys_tags: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`]
120
- """
121
- self._sys_tags = sys_tags
122
-
123
93
  def to_dict(self):
124
94
  """Returns the model properties as a dict"""
125
95
  result = {}
@@ -35,13 +35,13 @@ class BssInfo:
35
35
 
36
36
  The model defined in huaweicloud sdk
37
37
 
38
- :param is_auto_renew: 是否自动续费
38
+ :param is_auto_renew: 是否自动续费。0表示不自动续费,1表示自动续费。
39
39
  :type is_auto_renew: int
40
40
  :param period_num: 包周期订购的周期数
41
41
  :type period_num: int
42
42
  :param period_type: 包周期的类型,可选包年或包月,2 表示包月,3 表示包年
43
43
  :type period_type: int
44
- :param is_auto_pay: 是否生成订单后自动扣款
44
+ :param is_auto_pay: 是否生成订单后自动扣款。0表示不自动续费,1表示自动续费。
45
45
  :type is_auto_pay: int
46
46
  """
47
47
 
@@ -64,7 +64,7 @@ class BssInfo:
64
64
  def is_auto_renew(self):
65
65
  r"""Gets the is_auto_renew of this BssInfo.
66
66
 
67
- 是否自动续费
67
+ 是否自动续费。0表示不自动续费,1表示自动续费。
68
68
 
69
69
  :return: The is_auto_renew of this BssInfo.
70
70
  :rtype: int
@@ -75,7 +75,7 @@ class BssInfo:
75
75
  def is_auto_renew(self, is_auto_renew):
76
76
  r"""Sets the is_auto_renew of this BssInfo.
77
77
 
78
- 是否自动续费
78
+ 是否自动续费。0表示不自动续费,1表示自动续费。
79
79
 
80
80
  :param is_auto_renew: The is_auto_renew of this BssInfo.
81
81
  :type is_auto_renew: int
@@ -130,7 +130,7 @@ class BssInfo:
130
130
  def is_auto_pay(self):
131
131
  r"""Gets the is_auto_pay of this BssInfo.
132
132
 
133
- 是否生成订单后自动扣款
133
+ 是否生成订单后自动扣款。0表示不自动续费,1表示自动续费。
134
134
 
135
135
  :return: The is_auto_pay of this BssInfo.
136
136
  :rtype: int
@@ -141,7 +141,7 @@ class BssInfo:
141
141
  def is_auto_pay(self, is_auto_pay):
142
142
  r"""Sets the is_auto_pay of this BssInfo.
143
143
 
144
- 是否生成订单后自动扣款
144
+ 是否生成订单后自动扣款。0表示不自动续费,1表示自动续费。
145
145
 
146
146
  :param is_auto_pay: The is_auto_pay of this BssInfo.
147
147
  :type is_auto_pay: int
@@ -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 ChangeShareChargeModeRequestBody:
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
+ 'bss_param': 'BssInfo'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'bss_param': 'bss_param'
25
+ }
26
+
27
+ def __init__(self, bss_param=None):
28
+ r"""ChangeShareChargeModeRequestBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param bss_param:
33
+ :type bss_param: :class:`huaweicloudsdksfsturbo.v1.BssInfo`
34
+ """
35
+
36
+
37
+
38
+ self._bss_param = None
39
+ self.discriminator = None
40
+
41
+ self.bss_param = bss_param
42
+
43
+ @property
44
+ def bss_param(self):
45
+ r"""Gets the bss_param of this ChangeShareChargeModeRequestBody.
46
+
47
+ :return: The bss_param of this ChangeShareChargeModeRequestBody.
48
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.BssInfo`
49
+ """
50
+ return self._bss_param
51
+
52
+ @bss_param.setter
53
+ def bss_param(self, bss_param):
54
+ r"""Sets the bss_param of this ChangeShareChargeModeRequestBody.
55
+
56
+ :param bss_param: The bss_param of this ChangeShareChargeModeRequestBody.
57
+ :type bss_param: :class:`huaweicloudsdksfsturbo.v1.BssInfo`
58
+ """
59
+ self._bss_param = bss_param
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, ChangeShareChargeModeRequestBody):
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,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ChangeShareChargeModeV2Request:
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
+ 'body': 'ChangeShareChargeModeRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'share_id': 'share_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, share_id=None, body=None):
30
+ r"""ChangeShareChargeModeV2Request
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param share_id: 文件系统ID
35
+ :type share_id: str
36
+ :param body: Body of the ChangeShareChargeModeV2Request
37
+ :type body: :class:`huaweicloudsdksfsturbo.v1.ChangeShareChargeModeRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._share_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.share_id = share_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def share_id(self):
52
+ r"""Gets the share_id of this ChangeShareChargeModeV2Request.
53
+
54
+ 文件系统ID
55
+
56
+ :return: The share_id of this ChangeShareChargeModeV2Request.
57
+ :rtype: str
58
+ """
59
+ return self._share_id
60
+
61
+ @share_id.setter
62
+ def share_id(self, share_id):
63
+ r"""Sets the share_id of this ChangeShareChargeModeV2Request.
64
+
65
+ 文件系统ID
66
+
67
+ :param share_id: The share_id of this ChangeShareChargeModeV2Request.
68
+ :type share_id: str
69
+ """
70
+ self._share_id = share_id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this ChangeShareChargeModeV2Request.
75
+
76
+ :return: The body of this ChangeShareChargeModeV2Request.
77
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ChangeShareChargeModeRequestBody`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this ChangeShareChargeModeV2Request.
84
+
85
+ :param body: The body of this ChangeShareChargeModeV2Request.
86
+ :type body: :class:`huaweicloudsdksfsturbo.v1.ChangeShareChargeModeRequestBody`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, ChangeShareChargeModeV2Request):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other